delete_internet_gateway
(**kwargs)¶Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.
See also: AWS API Documentation
Request Syntax
response = client.delete_internet_gateway(
DryRun=True|False,
InternetGatewayId='string'
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.[REQUIRED]
The ID of the internet gateway.
None
Examples
This example deletes the specified Internet gateway.
response = client.delete_internet_gateway(
InternetGatewayId='igw-c0a643a9',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}