TransitGatewayPeeringAttachmentAccepter
Manages the accepter’s side of an EC2 Transit Gateway Peering Attachment.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ec2.TransitGatewayPeeringAttachmentAccepter("example", new Aws.Ec2.TransitGatewayPeeringAttachmentAccepterArgs
{
Tags =
{
{ "Name", "Example cross-account attachment" },
},
TransitGatewayAttachmentId = aws_ec2_transit_gateway_peering_attachment.Example.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewTransitGatewayPeeringAttachmentAccepter(ctx, "example", &ec2.TransitGatewayPeeringAttachmentAccepterArgs{
Tags: pulumi.StringMap{
"Name": pulumi.String("Example cross-account attachment"),
},
TransitGatewayAttachmentId: pulumi.String(aws_ec2_transit_gateway_peering_attachment.Example.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.ec2.TransitGatewayPeeringAttachmentAccepter("example",
tags={
"Name": "Example cross-account attachment",
},
transit_gateway_attachment_id=aws_ec2_transit_gateway_peering_attachment["example"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.ec2.TransitGatewayPeeringAttachmentAccepter("example", {
tags: {
Name: "Example cross-account attachment",
},
transitGatewayAttachmentId: aws_ec2_transit_gateway_peering_attachment_example.id,
});Create a TransitGatewayPeeringAttachmentAccepter Resource
new TransitGatewayPeeringAttachmentAccepter(name: string, args: TransitGatewayPeeringAttachmentAccepterArgs, opts?: CustomResourceOptions);def TransitGatewayPeeringAttachmentAccepter(resource_name, opts=None, tags=None, transit_gateway_attachment_id=None, __props__=None);func NewTransitGatewayPeeringAttachmentAccepter(ctx *Context, name string, args TransitGatewayPeeringAttachmentAccepterArgs, opts ...ResourceOption) (*TransitGatewayPeeringAttachmentAccepter, error)public TransitGatewayPeeringAttachmentAccepter(string name, TransitGatewayPeeringAttachmentAccepterArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TransitGatewayPeeringAttachmentAccepterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TransitGatewayPeeringAttachmentAccepterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitGatewayPeeringAttachmentAccepterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
TransitGatewayPeeringAttachmentAccepter Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The TransitGatewayPeeringAttachmentAccepter resource accepts the following input properties:
- Transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Peering Attachment to manage.
- Dictionary<string, string>
Key-value tags for the EC2 Transit Gateway Peering Attachment.
- Transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Peering Attachment to manage.
- map[string]string
Key-value tags for the EC2 Transit Gateway Peering Attachment.
- transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Peering Attachment to manage.
- {[key: string]: string}
Key-value tags for the EC2 Transit Gateway Peering Attachment.
- transit_
gateway_ strattachment_ id The ID of the EC2 Transit Gateway Peering Attachment to manage.
- Dict[str, str]
Key-value tags for the EC2 Transit Gateway Peering Attachment.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitGatewayPeeringAttachmentAccepter resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Account stringId Identifier of the AWS account that owns the EC2 TGW peering.
- Peer
Region string - Peer
Transit stringGateway Id Identifier of EC2 Transit Gateway to peer with.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Account stringId Identifier of the AWS account that owns the EC2 TGW peering.
- Peer
Region string - Peer
Transit stringGateway Id Identifier of EC2 Transit Gateway to peer with.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- id string
- The provider-assigned unique ID for this managed resource.
- peer
Account stringId Identifier of the AWS account that owns the EC2 TGW peering.
- peer
Region string - peer
Transit stringGateway Id Identifier of EC2 Transit Gateway to peer with.
- transit
Gateway stringId Identifier of EC2 Transit Gateway.
- id str
- The provider-assigned unique ID for this managed resource.
- peer_
account_ strid Identifier of the AWS account that owns the EC2 TGW peering.
- peer_
region str - peer_
transit_ strgateway_ id Identifier of EC2 Transit Gateway to peer with.
- transit_
gateway_ strid Identifier of EC2 Transit Gateway.
Look up an Existing TransitGatewayPeeringAttachmentAccepter Resource
Get an existing TransitGatewayPeeringAttachmentAccepter 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>, state?: TransitGatewayPeeringAttachmentAccepterState, opts?: CustomResourceOptions): TransitGatewayPeeringAttachmentAccepterstatic get(resource_name, id, opts=None, peer_account_id=None, peer_region=None, peer_transit_gateway_id=None, tags=None, transit_gateway_attachment_id=None, transit_gateway_id=None, __props__=None);func GetTransitGatewayPeeringAttachmentAccepter(ctx *Context, name string, id IDInput, state *TransitGatewayPeeringAttachmentAccepterState, opts ...ResourceOption) (*TransitGatewayPeeringAttachmentAccepter, error)public static TransitGatewayPeeringAttachmentAccepter Get(string name, Input<string> id, TransitGatewayPeeringAttachmentAccepterState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Peer
Account stringId Identifier of the AWS account that owns the EC2 TGW peering.
- Peer
Region string - Peer
Transit stringGateway Id Identifier of EC2 Transit Gateway to peer with.
- Dictionary<string, string>
Key-value tags for the EC2 Transit Gateway Peering Attachment.
- Transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Peering Attachment to manage.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- Peer
Account stringId Identifier of the AWS account that owns the EC2 TGW peering.
- Peer
Region string - Peer
Transit stringGateway Id Identifier of EC2 Transit Gateway to peer with.
- map[string]string
Key-value tags for the EC2 Transit Gateway Peering Attachment.
- Transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Peering Attachment to manage.
- Transit
Gateway stringId Identifier of EC2 Transit Gateway.
- peer
Account stringId Identifier of the AWS account that owns the EC2 TGW peering.
- peer
Region string - peer
Transit stringGateway Id Identifier of EC2 Transit Gateway to peer with.
- {[key: string]: string}
Key-value tags for the EC2 Transit Gateway Peering Attachment.
- transit
Gateway stringAttachment Id The ID of the EC2 Transit Gateway Peering Attachment to manage.
- transit
Gateway stringId Identifier of EC2 Transit Gateway.
- peer_
account_ strid Identifier of the AWS account that owns the EC2 TGW peering.
- peer_
region str - peer_
transit_ strgateway_ id Identifier of EC2 Transit Gateway to peer with.
- Dict[str, str]
Key-value tags for the EC2 Transit Gateway Peering Attachment.
- transit_
gateway_ strattachment_ id The ID of the EC2 Transit Gateway Peering Attachment to manage.
- transit_
gateway_ strid Identifier of EC2 Transit Gateway.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.