delete_secondary_subnet
async
¶
delete_secondary_subnet(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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.
>>> await client.delete_secondary_subnet(secondary_subnet_id='ss-0123456789abcdef0', client_token='550e8400-e29b-41d4-a716-446655440000')
Source code in docs_src/capo_ec2/_services/async_ec2.py
18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 | |