getCloudFrontOriginAccessIdentity2019_03_26 method
Future<GetCloudFrontOriginAccessIdentityResult>
getCloudFrontOriginAccessIdentity2019_03_26({
- required String id,
Get the information about an origin access identity.
May throw NoSuchCloudFrontOriginAccessIdentity. May throw AccessDenied.
Parameter id
:
The identity's ID.
Implementation
Future<GetCloudFrontOriginAccessIdentityResult>
getCloudFrontOriginAccessIdentity2019_03_26({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri:
'/2019-03-26/origin-access-identity/cloudfront/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetCloudFrontOriginAccessIdentityResult(
cloudFrontOriginAccessIdentity:
CloudFrontOriginAccessIdentity.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}