getOriginAccessControl method
Gets a CloudFront origin access control, including its unique identifier.
May throw AccessDenied.
May throw NoSuchOriginAccessControl.
Parameter id :
The unique identifier of the origin access control.
Implementation
Future<GetOriginAccessControlResult> getOriginAccessControl({
required String id,
}) async {
final $result = await _protocol.sendRaw(
method: 'GET',
requestUri:
'/2020-05-31/origin-access-control/${Uri.encodeComponent(id)}',
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return GetOriginAccessControlResult(
originAccessControl: OriginAccessControl.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}