listVpcOrigins method

Future<ListVpcOriginsResult> listVpcOrigins({
  1. String? marker,
  2. int? maxItems,
})

List the CloudFront VPC origins in your account.

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

Parameter marker : The marker associated with the VPC origins list.

Parameter maxItems : The maximum number of items included in the list.

Implementation

Future<ListVpcOriginsResult> listVpcOrigins({
  String? marker,
  int? maxItems,
}) async {
  final $query = <String, List<String>>{
    if (marker != null) 'Marker': [marker],
    if (maxItems != null) 'MaxItems': [maxItems.toString()],
  };
  final $result = await _protocol.sendRaw(
    method: 'GET',
    requestUri: '/2020-05-31/vpc-origin',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  final $elem = await _s.xmlFromResponse($result);
  return ListVpcOriginsResult(
    vpcOriginList: VpcOriginList.fromXml($elem),
  );
}