aws ec2 detach-internet-gateway
Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--internet-gateway-idThe ID of the internet gateway.--vpc-idThe ID of the VPC.