update_launch_configuration
¶
update_launch_configuration(
source_server_id: SourceServerID,
*,
config_overrides: Optional[drsClientConfig] = 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/drs.py
5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 | |