deleteReplicationJob method
Deletes the specified replication job.
After you delete a replication job, there are no further replication runs. AWS deletes the contents of the Amazon S3 bucket used to store AWS SMS artifacts. The AMIs created by the replication runs are not deleted.
May throw InvalidParameterException. May throw MissingRequiredParameterException. May throw UnauthorizedOperationException. May throw OperationNotPermittedException. May throw ReplicationJobNotFoundException.
Parameter replicationJobId
:
The ID of the replication job.
Implementation
Future<void> deleteReplicationJob({
required String replicationJobId,
}) async {
ArgumentError.checkNotNull(replicationJobId, 'replicationJobId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AWSServerMigrationService_V2016_10_24.DeleteReplicationJob'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'replicationJobId': replicationJobId,
},
);
}