delete_secondary_network
async
¶
delete_secondary_network(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
secondary_network_id: Optional[SecondaryNetworkId] = None,
) -> DeleteSecondaryNetworkResult
Deletes a secondary network. You must delete all secondary subnets in the secondary network before you can delete the secondary network.
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_network_id(Optional[SecondaryNetworkId], default:None) –The ID of the secondary network.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a secondary network This example deletes a secondary network.
>>> await client.delete_secondary_network(secondary_network_id='sn-0123456789abcdef0', client_token='550e8400-e29b-41d4-a716-446655440000')
Source code in docs_src/capo_ec2/_services/async_ec2.py
18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 | |