delete_secondary_subnet
¶
delete_secondary_subnet(
*,
config_overrides: Optional[EC2ClientConfig] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
secondary_subnet_id: Optional[SecondarySubnetId] = None,
) -> DeleteSecondarySubnetResult
Deletes a secondary subnet. A secondary subnet must not contain any secondary interfaces prior to deletion.
Parameters:
-
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensure Idempotency.
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
secondary_subnet_id(Optional[SecondarySubnetId], default:None) –The ID of the secondary subnet to delete.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a secondary subnet This example deletes a secondary subnet.
>>> client.delete_secondary_subnet(secondary_subnet_id='ss-0123456789abcdef0', client_token='550e8400-e29b-41d4-a716-446655440000')
Source code in docs_src/capo_ec2/_services/ec2.py
18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 | |