describeEndpointGroup method

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

Describe an endpoint group.

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

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

Implementation

Future<DescribeEndpointGroupResponse> describeEndpointGroup({
  required String endpointGroupArn,
}) async {
  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);
}