describeEndpoint method

Future<DescribeEndpointOutput> describeEndpoint({
  1. required String endpointName,
})

Returns the description of an endpoint.

Parameter endpointName : The name of the endpoint.

Implementation

Future<DescribeEndpointOutput> describeEndpoint({
  required String endpointName,
}) async {
  ArgumentError.checkNotNull(endpointName, 'endpointName');
  _s.validateStringLength(
    'endpointName',
    endpointName,
    0,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeEndpoint'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'EndpointName': endpointName,
    },
  );

  return DescribeEndpointOutput.fromJson(jsonResponse.body);
}