update_launch_configuration
async
¶
update_launch_configuration(
source_server_id: SourceServerID,
*,
config_overrides: Optional[AsyncdrsClientConfig] = None,
name: Optional[SmallBoundedString] = None,
launch_disposition: Optional[LaunchDisposition] = None,
target_instance_type_right_sizing_method: Optional[
TargetInstanceTypeRightSizingMethod
] = None,
copy_private_ip: Optional[bool] = None,
copy_tags: Optional[bool] = None,
licensing: Optional[Licensing] = None,
post_launch_enabled: Optional[bool] = None,
launch_into_instance_properties: Optional[LaunchIntoInstanceProperties] = None,
recovery_mode: Optional[RecoveryMode] = None,
) -> LaunchConfiguration
Updates a LaunchConfiguration by Source Server ID.
Parameters:
-
source_server_id(SourceServerID) –The ID of the Source Server that we want to retrieve a Launch Configuration for.
-
name(Optional[SmallBoundedString], default:None) –The name of the launch configuration.
-
launch_disposition(Optional[LaunchDisposition], default:None) –The state of the Recovery Instance in EC2 after the recovery operation.
-
target_instance_type_right_sizing_method(Optional[TargetInstanceTypeRightSizingMethod], default:None) –Whether Elastic Disaster Recovery should try to automatically choose the instance type that best matches the OS, CPU, and RAM of your Source Server.
-
copy_private_ip(Optional[bool], default:None) –Whether we should copy the Private IP of the Source Server to the Recovery Instance.
-
copy_tags(Optional[bool], default:None) –Whether we want to copy the tags of the Source Server to the EC2 machine of the Recovery Instance.
-
licensing(Optional[Licensing], default:None) –The licensing configuration to be used for this launch configuration.
-
post_launch_enabled(Optional[bool], default:None) –Whether we want to enable post-launch actions for the Source Server.
-
launch_into_instance_properties(Optional[LaunchIntoInstanceProperties], default:None) –Launch into existing instance properties.
-
recovery_mode(Optional[RecoveryMode], default:None) –Recovery mode.
Raises:
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource for this operation was not found.
-
ThrottlingException–The request was denied due to request throttling.
-
UninitializedAccountException–The account performing the request has not been initialized.
-
ValidationException–The input fails to satisfy the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_drs/_services/async_drs.py
5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 | |