listCloudFrontOriginAccessIdentities2020_05_31 method
Future<ListCloudFrontOriginAccessIdentitiesResult>
listCloudFrontOriginAccessIdentities2020_05_31({})
Lists origin access identities.
May throw InvalidArgument.
Parameter marker
:
Use this when paginating results to indicate where to begin in your list
of origin access identities. The results include identities in the list
that occur after the marker. To get the next page of results, set the
Marker
to the value of the NextMarker
from the
current page's response (which is also the ID of the last identity on that
page).
Parameter maxItems
:
The maximum number of origin access identities you want in the response
body.
Implementation
Future<ListCloudFrontOriginAccessIdentitiesResult>
listCloudFrontOriginAccessIdentities2020_05_31({
String? marker,
String? maxItems,
}) async {
final $query = <String, List<String>>{
if (marker != null) 'Marker': [marker],
if (maxItems != null) 'MaxItems': [maxItems],
};
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri: '/2020-05-31/origin-access-identity/cloudfront',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return ListCloudFrontOriginAccessIdentitiesResult(
cloudFrontOriginAccessIdentityList:
CloudFrontOriginAccessIdentityList.fromXml($elem),
);
}