delete_internet_gateway
async
¶
delete_internet_gateway(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
internet_gateway_id: Optional[InternetGatewayId] = None,
) -> None
Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.
Parameters:
-
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. -
internet_gateway_id(Optional[InternetGatewayId], default:None) –The ID of the internet gateway.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete an Internet gateway This example deletes the specified Internet gateway.
Source code in docs_src/capo_ec2/_services/async_ec2.py
16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 | |