completeMigration method
Complete the migration of data.
May throw ReplicationGroupNotFoundFault. May throw InvalidReplicationGroupStateFault. May throw ReplicationGroupNotUnderMigrationFault.
Parameter replicationGroupId
:
The ID of the replication group to which data is being migrated.
Parameter force
:
Forces the migration to stop without ensuring that data is in sync. It is
recommended to use this option only to abort the migration and not
recommended when application wants to continue migration to ElastiCache.
Implementation
Future<CompleteMigrationResponse> completeMigration({
required String replicationGroupId,
bool? force,
}) async {
ArgumentError.checkNotNull(replicationGroupId, 'replicationGroupId');
final $request = <String, dynamic>{};
$request['ReplicationGroupId'] = replicationGroupId;
force?.also((arg) => $request['Force'] = arg);
final $result = await _protocol.send(
$request,
action: 'CompleteMigration',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CompleteMigrationMessage'],
shapes: shapes,
resultWrapper: 'CompleteMigrationResult',
);
return CompleteMigrationResponse.fromXml($result);
}