getVpcOrigin method

Future<GetVpcOriginResult> getVpcOrigin({
  1. required String id,
})

Get the details of an Amazon CloudFront VPC origin.

May throw AccessDenied. May throw EntityNotFound. May throw InvalidArgument. May throw UnsupportedOperation.

Parameter id : The VPC origin ID.

Implementation

Future<GetVpcOriginResult> getVpcOrigin({
  required String id,
}) async {
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri: '/2020-05-31/vpc-origin/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return GetVpcOriginResult(
    vpcOrigin: VpcOrigin.fromXml($elem),
    eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
  );
}