getDevEndpoint method

Future<GetDevEndpointResponse> getDevEndpoint({
  1. required String endpointName,
})

Retrieves information about a specified development endpoint.

May throw EntityNotFoundException. May throw InternalServiceException. May throw OperationTimeoutException. May throw InvalidInputException.

Parameter endpointName : Name of the DevEndpoint to retrieve information for.

Implementation

Future<GetDevEndpointResponse> getDevEndpoint({
  required String endpointName,
}) async {
  ArgumentError.checkNotNull(endpointName, 'endpointName');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.GetDevEndpoint'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'EndpointName': endpointName,
    },
  );

  return GetDevEndpointResponse.fromJson(jsonResponse.body);
}