getCloudFrontOriginAccessIdentityConfig2018_06_18 method

Future<GetCloudFrontOriginAccessIdentityConfigResult> getCloudFrontOriginAccessIdentityConfig2018_06_18(
  1. {@required String id}
)

Get the configuration information about an origin access identity.

May throw NoSuchCloudFrontOriginAccessIdentity. May throw AccessDenied.

Parameter id : The identity's ID.

Implementation

Future<GetCloudFrontOriginAccessIdentityConfigResult>
    getCloudFrontOriginAccessIdentityConfig2018_06_18({
  @_s.required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri:
        '/2018-06-18/origin-access-identity/cloudfront/${Uri.encodeComponent(id)}/config',
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return GetCloudFrontOriginAccessIdentityConfigResult(
    cloudFrontOriginAccessIdentityConfig:
        CloudFrontOriginAccessIdentityConfig.fromXml($elem),
    eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
  );
}