describeEndpointGroup method

Future<DescribeEndpointGroupResponse> describeEndpointGroup({
  1. required String endpointGroupArn,
})

Describe an endpoint group.

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

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

Implementation

Future<DescribeEndpointGroupResponse> describeEndpointGroup({
  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.DescribeEndpointGroup'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'EndpointGroupArn': endpointGroupArn,
    },
  );

  return DescribeEndpointGroupResponse.fromJson(jsonResponse.body);
}