AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::TransitGatewayPeeringAttachment

CfnTransitGatewayPeeringAttachment

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 AWS account . After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.

Import

import { CfnTransitGatewayPeeringAttachment } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnTransitGatewayPeeringAttachment

Properties

Configuration passed to the constructor as CfnTransitGatewayPeeringAttachmentProps.

peerAccountIdRequired
string

The ID of the AWS account that owns the transit gateway.

peerRegionRequired
string

The Region where the transit gateway that you want to create the peer for is located.

peerTransitGatewayIdRequired
string

The ID of the transit gateway in the PeerRegion.

transitGatewayIdRequired
string | ITransitGatewayRef

The ID of the transit gateway peering attachment.

tagsOptional
CfnTag[]

The tags for the transit gateway peering attachment.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic