Detach Internet Gateway

GET {{aws_ec2_base_url}}/?DryRun&InternetGatewayId&VpcId&Action=DetachInternetGateway

Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC.

Request Params

KeyDatatypeRequiredDescription
DryRunnullChecks 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 is UnauthorizedOperation.
InternetGatewayIdnullThe ID of the internet gateway.
VpcIdnullThe ID of the VPC.
Actionstring