Skip to content

/AWS1/CL_EC2=>ATTACHINTERNETGATEWAY()

About AttachInternetGateway

Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information, see Internet gateways in the Amazon VPC User Guide.

Method Signature

IMPORTING

Required arguments:

IV_INTERNETGATEWAYID TYPE /AWS1/EC2INTERNETGATEWAYID /AWS1/EC2INTERNETGATEWAYID

The ID of the internet gateway.

IV_VPCID TYPE /AWS1/EC2VPCID /AWS1/EC2VPCID

The ID of the VPC.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks 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.