startCutover method

Future<StartCutoverResponse> startCutover({
  1. required List<String> sourceServerIDs,
  2. String? accountID,
  3. Map<String, String>? tags,
})

Launches a Cutover Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartCutover and changes the SourceServer.lifeCycle.state property to CUTTING_OVER.

May throw ConflictException. May throw UninitializedAccountException. May throw ValidationException.

Parameter sourceServerIDs : Start Cutover by Source Server IDs.

Parameter accountID : Start Cutover by Account IDs

Parameter tags : Start Cutover by Tags.

Implementation

Future<StartCutoverResponse> startCutover({
  required List<String> sourceServerIDs,
  String? accountID,
  Map<String, String>? tags,
}) async {
  final $payload = <String, dynamic>{
    'sourceServerIDs': sourceServerIDs,
    if (accountID != null) 'accountID': accountID,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/StartCutover',
    exceptionFnMap: _exceptionFns,
  );
  return StartCutoverResponse.fromJson(response);
}