describeCustomRoutingEndpointGroup method

Future<DescribeCustomRoutingEndpointGroupResponse> describeCustomRoutingEndpointGroup({
  1. required String endpointGroupArn,
})

Describe an endpoint group for a custom routing accelerator.

May throw InvalidArgumentException. May throw EndpointGroupNotFoundException. May throw InternalServiceErrorException.

Parameter endpointGroupArn : The Amazon Resource Name (ARN) of the endpoint group to describe.

Implementation

Future<DescribeCustomRoutingEndpointGroupResponse>
    describeCustomRoutingEndpointGroup({
  required String endpointGroupArn,
}) async {
  ArgumentError.checkNotNull(endpointGroupArn, 'endpointGroupArn');
  _s.validateStringLength(
    'endpointGroupArn',
    endpointGroupArn,
    0,
    255,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'GlobalAccelerator_V20180706.DescribeCustomRoutingEndpointGroup'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'EndpointGroupArn': endpointGroupArn,
    },
  );

  return DescribeCustomRoutingEndpointGroupResponse.fromJson(
      jsonResponse.body);
}