Detaches an Internet gateway from a VPC, disabling connectivity
between the Internet and the VPC.
Declaration Syntax
C# |
public DetachInternetGatewayResponse DetachInternetGateway( DetachInternetGatewayRequest request )
Parameters
- request (DetachInternetGatewayRequest)
- Detach Internet Gateway request
Return Value
Detach Internet Gateway Response from the service
Remarks
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.
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |