startDataMigration method
Future<StartDataMigrationResponse>
startDataMigration({
- required String dataMigrationIdentifier,
- required StartReplicationMigrationTypeValue startType,
Starts the specified data migration.
May throw FailedDependencyFault.
May throw InvalidOperationFault.
May throw InvalidResourceStateFault.
May throw ResourceNotFoundFault.
May throw ResourceQuotaExceededFault.
Parameter dataMigrationIdentifier :
The identifier (name or ARN) of the data migration to start.
Parameter startType :
Specifies the start type for the data migration. Valid values include
start-replication, reload-target, and
resume-processing.
Implementation
Future<StartDataMigrationResponse> startDataMigration({
required String dataMigrationIdentifier,
required StartReplicationMigrationTypeValue startType,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.StartDataMigration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DataMigrationIdentifier': dataMigrationIdentifier,
'StartType': startType.value,
},
);
return StartDataMigrationResponse.fromJson(jsonResponse.body);
}