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.

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

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

Implementation

Future<DescribeEndpointResponse> describeEndpoint({
  required String endpointArn,
}) async {
  ArgumentError.checkNotNull(endpointArn, 'endpointArn');
  _s.validateStringLength(
    'endpointArn',
    endpointArn,
    0,
    256,
    isRequired: true,
  );
  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);
}