updateLaunchConfiguration method

Future<LaunchConfiguration> updateLaunchConfiguration({
  1. required String sourceServerID,
  2. String? accountID,
  3. BootMode? bootMode,
  4. bool? copyPrivateIp,
  5. bool? copyTags,
  6. bool? enableMapAutoTagging,
  7. LaunchDisposition? launchDisposition,
  8. Licensing? licensing,
  9. String? mapAutoTaggingMpeID,
  10. String? name,
  11. PostLaunchActions? postLaunchActions,
  12. TargetInstanceTypeRightSizingMethod? targetInstanceTypeRightSizingMethod,
})

Updates multiple LaunchConfigurations by Source Server ID.

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

Parameter sourceServerID : Update Launch configuration by Source Server ID request.

Parameter accountID : Update Launch configuration Account ID.

Parameter bootMode : Update Launch configuration boot mode request.

Parameter copyPrivateIp : Update Launch configuration copy Private IP request.

Parameter copyTags : Update Launch configuration copy Tags request.

Parameter enableMapAutoTagging : Enable map auto tagging.

Parameter launchDisposition : Update Launch configuration launch disposition request.

Parameter licensing : Update Launch configuration licensing request.

Parameter mapAutoTaggingMpeID : Launch configuration map auto tagging MPE ID.

Parameter name : Update Launch configuration name request.

Parameter targetInstanceTypeRightSizingMethod : Update Launch configuration Target instance right sizing request.

Implementation

Future<LaunchConfiguration> updateLaunchConfiguration({
  required String sourceServerID,
  String? accountID,
  BootMode? bootMode,
  bool? copyPrivateIp,
  bool? copyTags,
  bool? enableMapAutoTagging,
  LaunchDisposition? launchDisposition,
  Licensing? licensing,
  String? mapAutoTaggingMpeID,
  String? name,
  PostLaunchActions? postLaunchActions,
  TargetInstanceTypeRightSizingMethod? targetInstanceTypeRightSizingMethod,
}) async {
  final $payload = <String, dynamic>{
    'sourceServerID': sourceServerID,
    if (accountID != null) 'accountID': accountID,
    if (bootMode != null) 'bootMode': bootMode.value,
    if (copyPrivateIp != null) 'copyPrivateIp': copyPrivateIp,
    if (copyTags != null) 'copyTags': copyTags,
    if (enableMapAutoTagging != null)
      'enableMapAutoTagging': enableMapAutoTagging,
    if (launchDisposition != null)
      'launchDisposition': launchDisposition.value,
    if (licensing != null) 'licensing': licensing,
    if (mapAutoTaggingMpeID != null)
      'mapAutoTaggingMpeID': mapAutoTaggingMpeID,
    if (name != null) 'name': name,
    if (postLaunchActions != null) 'postLaunchActions': postLaunchActions,
    if (targetInstanceTypeRightSizingMethod != null)
      'targetInstanceTypeRightSizingMethod':
          targetInstanceTypeRightSizingMethod.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/UpdateLaunchConfiguration',
    exceptionFnMap: _exceptionFns,
  );
  return LaunchConfiguration.fromJson(response);
}