1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ec2
  6. TransitGatewayPeeringAttachment

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    The AWS::EC2::TransitGatewayPeeringAttachment type

    Create TransitGatewayPeeringAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TransitGatewayPeeringAttachment(name: string, args: TransitGatewayPeeringAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def TransitGatewayPeeringAttachment(resource_name: str,
                                        args: TransitGatewayPeeringAttachmentArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitGatewayPeeringAttachment(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        peer_account_id: Optional[str] = None,
                                        peer_region: Optional[str] = None,
                                        peer_transit_gateway_id: Optional[str] = None,
                                        transit_gateway_id: Optional[str] = None,
                                        options: Optional[TransitGatewayPeeringAttachmentOptionsArgs] = None,
                                        tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewTransitGatewayPeeringAttachment(ctx *Context, name string, args TransitGatewayPeeringAttachmentArgs, opts ...ResourceOption) (*TransitGatewayPeeringAttachment, error)
    public TransitGatewayPeeringAttachment(string name, TransitGatewayPeeringAttachmentArgs args, CustomResourceOptions? opts = null)
    public TransitGatewayPeeringAttachment(String name, TransitGatewayPeeringAttachmentArgs args)
    public TransitGatewayPeeringAttachment(String name, TransitGatewayPeeringAttachmentArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:TransitGatewayPeeringAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ec2_transit_gateway_peering_attachment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TransitGatewayPeeringAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TransitGatewayPeeringAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TransitGatewayPeeringAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitGatewayPeeringAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitGatewayPeeringAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TransitGatewayPeeringAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TransitGatewayPeeringAttachment resource accepts the following input properties:

    PeerAccountId string
    The ID of the peer account
    PeerRegion string
    Peer Region
    PeerTransitGatewayId string
    The ID of the peer transit gateway.
    TransitGatewayId string
    The ID of the transit gateway.
    Options Pulumi.AwsNative.Ec2.Inputs.TransitGatewayPeeringAttachmentOptions
    Options for transit gateway peering attachment
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    The tags for the transit gateway peering attachment.
    PeerAccountId string
    The ID of the peer account
    PeerRegion string
    Peer Region
    PeerTransitGatewayId string
    The ID of the peer transit gateway.
    TransitGatewayId string
    The ID of the transit gateway.
    Options TransitGatewayPeeringAttachmentOptionsArgs
    Options for transit gateway peering attachment
    Tags TagArgs
    The tags for the transit gateway peering attachment.
    peer_account_id string
    The ID of the peer account
    peer_region string
    Peer Region
    peer_transit_gateway_id string
    The ID of the peer transit gateway.
    transit_gateway_id string
    The ID of the transit gateway.
    options object
    Options for transit gateway peering attachment
    tags list(object)
    The tags for the transit gateway peering attachment.
    peerAccountId String
    The ID of the peer account
    peerRegion String
    Peer Region
    peerTransitGatewayId String
    The ID of the peer transit gateway.
    transitGatewayId String
    The ID of the transit gateway.
    options TransitGatewayPeeringAttachmentOptions
    Options for transit gateway peering attachment
    tags List<Tag>
    The tags for the transit gateway peering attachment.
    peerAccountId string
    The ID of the peer account
    peerRegion string
    Peer Region
    peerTransitGatewayId string
    The ID of the peer transit gateway.
    transitGatewayId string
    The ID of the transit gateway.
    options TransitGatewayPeeringAttachmentOptions
    Options for transit gateway peering attachment
    tags Tag[]
    The tags for the transit gateway peering attachment.
    peer_account_id str
    The ID of the peer account
    peer_region str
    Peer Region
    peer_transit_gateway_id str
    The ID of the peer transit gateway.
    transit_gateway_id str
    The ID of the transit gateway.
    options TransitGatewayPeeringAttachmentOptionsArgs
    Options for transit gateway peering attachment
    tags Sequence[TagArgs]
    The tags for the transit gateway peering attachment.
    peerAccountId String
    The ID of the peer account
    peerRegion String
    Peer Region
    peerTransitGatewayId String
    The ID of the peer transit gateway.
    transitGatewayId String
    The ID of the transit gateway.
    options Property Map
    Options for transit gateway peering attachment
    tags List<Property Map>
    The tags for the transit gateway peering attachment.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TransitGatewayPeeringAttachment resource produces the following output properties:

    AccepterAllowMultipathResilience bool
    Whether the accepter side of the peering attachment has opted in to MultipathResilience.
    CreationTime string
    The time the transit gateway peering attachment was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    MultipathResilienceStatus string
    The connection-level MultipathResilience status, computed from both sides of the peering attachment. (enabled/pending/disabled)
    RequesterAllowMultipathResilience bool
    Whether the requester side of the peering attachment has opted in to MultipathResilience.
    RequesterMultipathResilienceMode string
    The MultipathResilience mode chosen by the requester side of the peering attachment.
    State string
    The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.
    Status Pulumi.AwsNative.Ec2.Outputs.TransitGatewayPeeringAttachmentPeeringAttachmentStatus
    The status of the transit gateway peering attachment.
    TransitGatewayAttachmentId string
    The ID of the transit gateway peering attachment.
    AccepterAllowMultipathResilience bool
    Whether the accepter side of the peering attachment has opted in to MultipathResilience.
    CreationTime string
    The time the transit gateway peering attachment was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    MultipathResilienceStatus string
    The connection-level MultipathResilience status, computed from both sides of the peering attachment. (enabled/pending/disabled)
    RequesterAllowMultipathResilience bool
    Whether the requester side of the peering attachment has opted in to MultipathResilience.
    RequesterMultipathResilienceMode string
    The MultipathResilience mode chosen by the requester side of the peering attachment.
    State string
    The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.
    Status TransitGatewayPeeringAttachmentPeeringAttachmentStatus
    The status of the transit gateway peering attachment.
    TransitGatewayAttachmentId string
    The ID of the transit gateway peering attachment.
    accepter_allow_multipath_resilience bool
    Whether the accepter side of the peering attachment has opted in to MultipathResilience.
    creation_time string
    The time the transit gateway peering attachment was created.
    id string
    The provider-assigned unique ID for this managed resource.
    multipath_resilience_status string
    The connection-level MultipathResilience status, computed from both sides of the peering attachment. (enabled/pending/disabled)
    requester_allow_multipath_resilience bool
    Whether the requester side of the peering attachment has opted in to MultipathResilience.
    requester_multipath_resilience_mode string
    The MultipathResilience mode chosen by the requester side of the peering attachment.
    state string
    The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.
    status object
    The status of the transit gateway peering attachment.
    transit_gateway_attachment_id string
    The ID of the transit gateway peering attachment.
    accepterAllowMultipathResilience Boolean
    Whether the accepter side of the peering attachment has opted in to MultipathResilience.
    creationTime String
    The time the transit gateway peering attachment was created.
    id String
    The provider-assigned unique ID for this managed resource.
    multipathResilienceStatus String
    The connection-level MultipathResilience status, computed from both sides of the peering attachment. (enabled/pending/disabled)
    requesterAllowMultipathResilience Boolean
    Whether the requester side of the peering attachment has opted in to MultipathResilience.
    requesterMultipathResilienceMode String
    The MultipathResilience mode chosen by the requester side of the peering attachment.
    state String
    The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.
    status TransitGatewayPeeringAttachmentPeeringAttachmentStatus
    The status of the transit gateway peering attachment.
    transitGatewayAttachmentId String
    The ID of the transit gateway peering attachment.
    accepterAllowMultipathResilience boolean
    Whether the accepter side of the peering attachment has opted in to MultipathResilience.
    creationTime string
    The time the transit gateway peering attachment was created.
    id string
    The provider-assigned unique ID for this managed resource.
    multipathResilienceStatus string
    The connection-level MultipathResilience status, computed from both sides of the peering attachment. (enabled/pending/disabled)
    requesterAllowMultipathResilience boolean
    Whether the requester side of the peering attachment has opted in to MultipathResilience.
    requesterMultipathResilienceMode string
    The MultipathResilience mode chosen by the requester side of the peering attachment.
    state string
    The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.
    status TransitGatewayPeeringAttachmentPeeringAttachmentStatus
    The status of the transit gateway peering attachment.
    transitGatewayAttachmentId string
    The ID of the transit gateway peering attachment.
    accepter_allow_multipath_resilience bool
    Whether the accepter side of the peering attachment has opted in to MultipathResilience.
    creation_time str
    The time the transit gateway peering attachment was created.
    id str
    The provider-assigned unique ID for this managed resource.
    multipath_resilience_status str
    The connection-level MultipathResilience status, computed from both sides of the peering attachment. (enabled/pending/disabled)
    requester_allow_multipath_resilience bool
    Whether the requester side of the peering attachment has opted in to MultipathResilience.
    requester_multipath_resilience_mode str
    The MultipathResilience mode chosen by the requester side of the peering attachment.
    state str
    The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.
    status TransitGatewayPeeringAttachmentPeeringAttachmentStatus
    The status of the transit gateway peering attachment.
    transit_gateway_attachment_id str
    The ID of the transit gateway peering attachment.
    accepterAllowMultipathResilience Boolean
    Whether the accepter side of the peering attachment has opted in to MultipathResilience.
    creationTime String
    The time the transit gateway peering attachment was created.
    id String
    The provider-assigned unique ID for this managed resource.
    multipathResilienceStatus String
    The connection-level MultipathResilience status, computed from both sides of the peering attachment. (enabled/pending/disabled)
    requesterAllowMultipathResilience Boolean
    Whether the requester side of the peering attachment has opted in to MultipathResilience.
    requesterMultipathResilienceMode String
    The MultipathResilience mode chosen by the requester side of the peering attachment.
    state String
    The state of the transit gateway peering attachment. Note that the initiating state has been deprecated.
    status Property Map
    The status of the transit gateway peering attachment.
    transitGatewayAttachmentId String
    The ID of the transit gateway peering attachment.

    Look up Existing TransitGatewayPeeringAttachment Resource

    Get an existing TransitGatewayPeeringAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): TransitGatewayPeeringAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> TransitGatewayPeeringAttachment
    func GetTransitGatewayPeeringAttachment(ctx *Context, name string, id IDInput, state *TransitGatewayPeeringAttachmentState, opts ...ResourceOption) (*TransitGatewayPeeringAttachment, error)
    public static TransitGatewayPeeringAttachment Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static TransitGatewayPeeringAttachment get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingTransitGatewayPeeringAttachment:    type: aws-native:ec2:TransitGatewayPeeringAttachment    get:      id: ${id}
    import {
      to = aws-native_ec2_transit_gateway_peering_attachment.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state TransitGatewayPeeringAttachmentState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    TransitGatewayPeeringAttachmentOptions, TransitGatewayPeeringAttachmentOptionsArgs

    AllowMultipathResilience bool
    Whether to enable MultipathResilience on this side of the peering attachment.
    MultipathResilienceMode Pulumi.AwsNative.Ec2.TransitGatewayPeeringAttachmentOptionsMultipathResilienceMode
    The MultipathResilience mode. Only valid when AllowMultipathResilience is true.
    AllowMultipathResilience bool
    Whether to enable MultipathResilience on this side of the peering attachment.
    MultipathResilienceMode TransitGatewayPeeringAttachmentOptionsMultipathResilienceMode
    The MultipathResilience mode. Only valid when AllowMultipathResilience is true.
    allow_multipath_resilience bool
    Whether to enable MultipathResilience on this side of the peering attachment.
    multipath_resilience_mode "always-on"
    The MultipathResilience mode. Only valid when AllowMultipathResilience is true.
    allowMultipathResilience Boolean
    Whether to enable MultipathResilience on this side of the peering attachment.
    multipathResilienceMode TransitGatewayPeeringAttachmentOptionsMultipathResilienceMode
    The MultipathResilience mode. Only valid when AllowMultipathResilience is true.
    allowMultipathResilience boolean
    Whether to enable MultipathResilience on this side of the peering attachment.
    multipathResilienceMode TransitGatewayPeeringAttachmentOptionsMultipathResilienceMode
    The MultipathResilience mode. Only valid when AllowMultipathResilience is true.
    allow_multipath_resilience bool
    Whether to enable MultipathResilience on this side of the peering attachment.
    multipath_resilience_mode TransitGatewayPeeringAttachmentOptionsMultipathResilienceMode
    The MultipathResilience mode. Only valid when AllowMultipathResilience is true.
    allowMultipathResilience Boolean
    Whether to enable MultipathResilience on this side of the peering attachment.
    multipathResilienceMode "always-on"
    The MultipathResilience mode. Only valid when AllowMultipathResilience is true.

    TransitGatewayPeeringAttachmentOptionsMultipathResilienceMode

    The MultipathResilience mode. Only valid when AllowMultipathResilience is true.

    NameValue
    AlwaysOnalways-on
    NameValue
    TransitGatewayPeeringAttachmentOptionsMultipathResilienceModeAlwaysOnalways-on
    Value
    always-on
    NameValue
    AlwaysOnalways-on
    NameValue
    AlwaysOnalways-on
    NameValue
    ALWAYS_ONalways-on
    Value
    always-on

    TransitGatewayPeeringAttachmentPeeringAttachmentStatus

    Code string
    The status code.
    Message string
    The status message, if applicable.
    Code string
    The status code.
    Message string
    The status message, if applicable.
    code string
    The status code.
    message string
    The status message, if applicable.
    code String
    The status code.
    message String
    The status message, if applicable.
    code string
    The status code.
    message string
    The status message, if applicable.
    code str
    The status code.
    message str
    The status message, if applicable.
    code String
    The status code.
    message String
    The status message, if applicable.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial