getCloudConnector method

Future<GetCloudConnectorResult> getCloudConnector({
  1. required String cloudConnectorId,
})

Returns detailed information about a cloud connector.

May throw InternalServerError. May throw ResourceNotFoundException.

Parameter cloudConnectorId : The ID of the cloud connector to retrieve information about.

Implementation

Future<GetCloudConnectorResult> getCloudConnector({
  required String cloudConnectorId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonSSM.GetCloudConnector'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'CloudConnectorId': cloudConnectorId,
    },
  );

  return GetCloudConnectorResult.fromJson(jsonResponse.body);
}