Skip to content

/AWS1/CL_EC2=>CREATETGWPEERINGATTACHMENT()

About CreateTransitGatewayPeeringAttachment

Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The peer transit gateway can be in your account or a different Amazon Web Services account.

After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.

Method Signature

IMPORTING

Required arguments:

IV_TRANSITGATEWAYID TYPE /AWS1/EC2TRANSITGATEWAYID /AWS1/EC2TRANSITGATEWAYID

The ID of the transit gateway.

IV_PEERTRANSITGATEWAYID TYPE /AWS1/EC2TRANSITASSOCIATIONG00 /AWS1/EC2TRANSITASSOCIATIONG00

The ID of the peer transit gateway with which to create the peering attachment.

IV_PEERACCOUNTID TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The ID of the Amazon Web Services account that owns the peer transit gateway.

IV_PEERREGION TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The Region where the peer transit gateway is located.

Optional arguments:

IO_OPTIONS TYPE REF TO /AWS1/CL_EC2CRETGWPEERINGATT01 /AWS1/CL_EC2CRETGWPEERINGATT01

Requests a transit gateway peering attachment.

IT_TAGSPECIFICATIONS TYPE /AWS1/CL_EC2TAGSPECIFICATION=>TT_TAGSPECIFICATIONLIST TT_TAGSPECIFICATIONLIST

The tags to apply to the transit gateway peering 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_EC2CRETGWPEERINGATT02 /AWS1/CL_EC2CRETGWPEERINGATT02