describeEndpoint method

Future<DescribeEndpointResponse> describeEndpoint({
  1. required String endpointArn,
})

Gets the properties associated with a specific endpoint. Use this operation to get the status of an endpoint. For information about endpoints, see Managing endpoints.

May throw InternalServerException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter endpointArn : The Amazon Resource Number (ARN) of the endpoint being described.

Implementation

Future<DescribeEndpointResponse> describeEndpoint({
  required String endpointArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Comprehend_20171127.DescribeEndpoint'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'EndpointArn': endpointArn,
    },
  );

  return DescribeEndpointResponse.fromJson(jsonResponse.body);
}