terminate_target_instances
async
¶
terminate_target_instances(
source_server_i_ds: TerminateTargetInstancesRequestSourceServerIDs,
*,
config_overrides: Optional[AsyncmgnClientConfig] = None,
tags: Optional[TagsMap] = None,
account_id: Optional[AccountID] = None,
) -> TerminateTargetInstancesResponse
Starts a job that terminates specific launched EC2 Test and Cutover instances. This command will not work for any Source Server with a lifecycle.state of TESTING, CUTTING_OVER, or CUTOVER.
Parameters:
-
source_server_i_ds(TerminateTargetInstancesRequestSourceServerIDs) –Terminate Target instance by Source Server IDs.
-
tags(Optional[TagsMap], default:None) –Terminate Target instance by Tags.
-
account_id(Optional[AccountID], default:None) –Terminate Target instance by Account ID
Raises:
-
ConflictException–The request could not be completed due to a conflict with the current state of the target resource.
-
UninitializedAccountException–Uninitialized account exception.
-
ValidationException–Validate exception.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mgn/_services/async_mgn.py
7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 | |