Skip to content

/AWS1/CL_EC2=>CREATETGWVPCATTACHMENT()

About CreateTransitGatewayVpcAttachment

Attaches the specified VPC to the specified transit gateway.

If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.

To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.

Method Signature

IMPORTING

Required arguments:

IV_TRANSITGATEWAYID TYPE /AWS1/EC2TRANSITGATEWAYID /AWS1/EC2TRANSITGATEWAYID

The ID of the transit gateway.

IV_VPCID TYPE /AWS1/EC2VPCID /AWS1/EC2VPCID

The ID of the VPC.

IT_SUBNETIDS TYPE /AWS1/CL_EC2TGWSUBNETIDLIST_W=>TT_TRANSITGATEWAYSUBNETIDLIST TT_TRANSITGATEWAYSUBNETIDLIST

The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

Optional arguments:

IO_OPTIONS TYPE REF TO /AWS1/CL_EC2CRETGWVPCATTACHM01 /AWS1/CL_EC2CRETGWVPCATTACHM01

The VPC attachment options.

IT_TAGSPECIFICATIONS TYPE /AWS1/CL_EC2TAGSPECIFICATION=>TT_TAGSPECIFICATIONLIST TT_TAGSPECIFICATIONLIST

The tags to apply to the VPC attachment.

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2CRETGWVPCATTACHM02 /AWS1/CL_EC2CRETGWVPCATTACHM02