getConnector method

Future<GetConnectorResponse> getConnector({
  1. required String arn,
})

Returns the details of the specified connector.

May throw ResourceNotFoundException. May throw ValidationException.

Parameter arn : The Amazon Resource Name (ARN) of the connector.

Implementation

Future<GetConnectorResponse> getConnector({
  required String arn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StarlingDoveService.GetConnector'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Arn': arn,
    },
  );

  return GetConnectorResponse.fromJson(jsonResponse.body);
}