listInvalidations2019_03_26 method
Lists invalidation batches.
May throw InvalidArgument. May throw NoSuchDistribution. May throw AccessDenied.
Parameter distributionId
:
The distribution's ID.
Parameter marker
:
Use this parameter when paginating results to indicate where to begin in
your list of invalidation batches. Because the results are returned in
decreasing order from most recent to oldest, the most recent results are
on the first page, the second page will contain earlier results, and so
on. To get the next page of results, set Marker
to the value
of the NextMarker
from the current page's response. This
value is the same as the ID of the last invalidation batch on that page.
Parameter maxItems
:
The maximum number of invalidation batches that you want in the response
body.
Implementation
Future<ListInvalidationsResult> listInvalidations2019_03_26({
required String distributionId,
String? marker,
String? maxItems,
}) async {
ArgumentError.checkNotNull(distributionId, 'distributionId');
final $query = <String, List<String>>{
if (marker != null) 'Marker': [marker],
if (maxItems != null) 'MaxItems': [maxItems],
};
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri:
'/2019-03-26/distribution/${Uri.encodeComponent(distributionId)}/invalidation',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return ListInvalidationsResult(
invalidationList: InvalidationList.fromXml($elem),
);
}