Class 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,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class TransitGatewayPeeringAttachmentAccepter : CustomResource
Constructors
View SourceTransitGatewayPeeringAttachmentAccepter(String, TransitGatewayPeeringAttachmentAccepterArgs, CustomResourceOptions)
Create a TransitGatewayPeeringAttachmentAccepter resource with the given unique name, arguments, and options.
Declaration
public TransitGatewayPeeringAttachmentAccepter(string name, TransitGatewayPeeringAttachmentAccepterArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| TransitGatewayPeeringAttachmentAccepterArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourcePeerAccountId
Identifier of the AWS account that owns the EC2 TGW peering.
Declaration
public Output<string> PeerAccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PeerRegion
Declaration
public Output<string> PeerRegion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PeerTransitGatewayId
Identifier of EC2 Transit Gateway to peer with.
Declaration
public Output<string> PeerTransitGatewayId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Key-value tags for the EC2 Transit Gateway Peering Attachment.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
TransitGatewayAttachmentId
The ID of the EC2 Transit Gateway Peering Attachment to manage.
Declaration
public Output<string> TransitGatewayAttachmentId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TransitGatewayId
Identifier of EC2 Transit Gateway.
Declaration
public Output<string> TransitGatewayId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, TransitGatewayPeeringAttachmentAccepterState, CustomResourceOptions)
Get an existing TransitGatewayPeeringAttachmentAccepter resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static TransitGatewayPeeringAttachmentAccepter Get(string name, Input<string> id, TransitGatewayPeeringAttachmentAccepterState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| TransitGatewayPeeringAttachmentAccepterState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| TransitGatewayPeeringAttachmentAccepter |