disassociateConnector method
Disassociates the specified connector from AWS SMS.
After you disassociate a connector, it is no longer available to support replication jobs.
May throw MissingRequiredParameterException. May throw UnauthorizedOperationException. May throw OperationNotPermittedException. May throw InvalidParameterException.
Parameter connectorId
:
The ID of the connector.
Implementation
Future<void> disassociateConnector({
required String connectorId,
}) async {
ArgumentError.checkNotNull(connectorId, 'connectorId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AWSServerMigrationService_V2016_10_24.DisassociateConnector'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'connectorId': connectorId,
},
);
}