deleteCloudConnector method
Deletes a cloud connector.
May throw ConflictException.
May throw InternalServerError.
May throw ResourceNotFoundException.
Parameter cloudConnectorId :
The ID of the cloud connector to delete.
Implementation
Future<DeleteCloudConnectorResult> deleteCloudConnector({
required String cloudConnectorId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.DeleteCloudConnector'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CloudConnectorId': cloudConnectorId,
},
);
return DeleteCloudConnectorResult.fromJson(jsonResponse.body);
}