listDistributionsByRealtimeLogConfig2020_05_31 method
Gets a list of distributions that have a cache behavior that’s associated with the specified real-time log configuration.
You can specify the real-time log configuration by its name or its Amazon Resource Name (ARN). You must provide at least one. If you provide both, CloudFront uses the name to identify the real-time log configuration to list distributions for.
You can optionally specify the maximum number of items to receive in the
response. If the total number of items in the list exceeds the maximum
that you specify, or the default maximum, the response is paginated. To
get the next page of items, send a subsequent request that specifies the
NextMarker
value from the current response as the
Marker
value in the subsequent request.
May throw InvalidArgument.
Parameter marker
:
Use this field when paginating results to indicate where to begin in your
list of distributions. The response includes distributions in the list
that occur after the marker. To get the next page of the list, set this
field’s value to the value of NextMarker
from the current
page’s response.
Parameter maxItems
:
The maximum number of distributions that you want in the response.
Parameter realtimeLogConfigArn
:
The Amazon Resource Name (ARN) of the real-time log configuration whose
associated distributions you want to list.
Parameter realtimeLogConfigName
:
The name of the real-time log configuration whose associated distributions
you want to list.
Implementation
Future<ListDistributionsByRealtimeLogConfigResult>
listDistributionsByRealtimeLogConfig2020_05_31({
String? marker,
String? maxItems,
String? realtimeLogConfigArn,
String? realtimeLogConfigName,
}) async {
final $result = await _protocol.sendRaw(
method: 'POST',
requestUri: '/2020-05-31/distributionsByRealtimeLogConfig/',
payload: ListDistributionsByRealtimeLogConfigRequest(
marker: marker,
maxItems: maxItems,
realtimeLogConfigArn: realtimeLogConfigArn,
realtimeLogConfigName: realtimeLogConfigName)
.toXml(
'ListDistributionsByRealtimeLogConfigRequest',
attributes: [
_s.XmlAttribute(_s.XmlName('xmlns'),
'http://cloudfront.amazonaws.com/doc/2020-05-31/'),
],
),
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return ListDistributionsByRealtimeLogConfigResult(
distributionList: DistributionList.fromXml($elem),
);
}