delete_secondary_network
¶
delete_secondary_network(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> client.delete_secondary_network(secondary_network_id='sn-0123456789abcdef0', client_token='550e8400-e29b-41d4-a716-446655440000')
Source code in docs_src/capo_ec2/_services/ec2.py
18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 | |