Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. 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.
For more information about Amazon Virtual Private Cloud and Internet gateways, go to the Amazon Virtual Private Cloud User Guide.
Namespace: Amazon.EC2
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public virtual DetachInternetGatewayResponse DetachInternetGateway( DetachInternetGatewayRequest detachInternetGatewayRequest )
Parameters
- detachInternetGatewayRequest
-
Type: Amazon.EC2.Model.DetachInternetGatewayRequest
Container for the necessary parameters to execute the DetachInternetGateway service method on AmazonEC2.
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5