startMigration method
Future<StartMigrationResponse>
startMigration({
- required List<
CustomerNodeEndpoint> customerNodeEndpointList, - required String replicationGroupId,
Start the migration of data.
May throw ReplicationGroupNotFoundFault. May throw InvalidReplicationGroupStateFault. May throw ReplicationGroupAlreadyUnderMigrationFault. May throw InvalidParameterValueException.
Parameter customerNodeEndpointList
:
List of endpoints from which data should be migrated. For Redis (cluster
mode disabled), list should have only one element.
Parameter replicationGroupId
:
The ID of the replication group to which data should be migrated.
Implementation
Future<StartMigrationResponse> startMigration({
required List<CustomerNodeEndpoint> customerNodeEndpointList,
required String replicationGroupId,
}) async {
ArgumentError.checkNotNull(
customerNodeEndpointList, 'customerNodeEndpointList');
ArgumentError.checkNotNull(replicationGroupId, 'replicationGroupId');
final $request = <String, dynamic>{};
$request['CustomerNodeEndpointList'] = customerNodeEndpointList;
$request['ReplicationGroupId'] = replicationGroupId;
final $result = await _protocol.send(
$request,
action: 'StartMigration',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['StartMigrationMessage'],
shapes: shapes,
resultWrapper: 'StartMigrationResult',
);
return StartMigrationResponse.fromXml($result);
}