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

C# |
DetachInternetGatewayResponse DetachInternetGateway( DetachInternetGatewayRequest request )

- request (DetachInternetGatewayRequest)
- Detach Internet Gateway request

Detach Internet Gateway Response from the service

The VPC must not contain any running instances with elastic IP
addresses. For more information about your VPC and Internet gateway,
go to Amazon Virtual Private Cloud User Guide.

Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |