describeConnector method

Future<DescribeConnectorResponse> describeConnector({
  1. required String connectorId,
})

Describes the connector that's identified by the ConnectorId.

May throw InternalServiceError. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ServiceUnavailableException.

Parameter connectorId : The unique identifier for the connector.

Implementation

Future<DescribeConnectorResponse> describeConnector({
  required String connectorId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'TransferService.DescribeConnector'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ConnectorId': connectorId,
    },
  );

  return DescribeConnectorResponse.fromJson(jsonResponse.body);
}