Class VpcAttachmentAccepter
Manages the accepter's side of an EC2 Transit Gateway VPC Attachment.
When a cross-account (requester's AWS account differs from the accepter's AWS account) EC2 Transit Gateway VPC Attachment
is created, an EC2 Transit Gateway VPC Attachment resource is automatically created in the accepter's account.
The requester can use the aws.ec2transitgateway.VpcAttachment resource to manage its side of the connection
and the accepter can use the aws.ec2transitgateway.VpcAttachmentAccepter resource to "adopt" its side of the
connection into management.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ec2TransitGateway.VpcAttachmentAccepter("example", new Aws.Ec2TransitGateway.VpcAttachmentAccepterArgs
{
Tags =
{
{ "Name", "Example cross-account attachment" },
},
TransitGatewayAttachmentId = aws_ec2_transit_gateway_vpc_attachment.Example.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2TransitGateway
Assembly: Pulumi.Aws.dll
Syntax
public class VpcAttachmentAccepter : CustomResource
Constructors
View SourceVpcAttachmentAccepter(String, VpcAttachmentAccepterArgs, CustomResourceOptions)
Create a VpcAttachmentAccepter resource with the given unique name, arguments, and options.
Declaration
public VpcAttachmentAccepter(string name, VpcAttachmentAccepterArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VpcAttachmentAccepterArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDnsSupport
Whether DNS support is enabled. Valid values: disable, enable.
Declaration
public Output<string> DnsSupport { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Ipv6Support
Whether IPv6 support is enabled. Valid values: disable, enable.
Declaration
public Output<string> Ipv6Support { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubnetIds
Identifiers of EC2 Subnets.
Declaration
public Output<ImmutableArray<string>> SubnetIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Tags
Key-value tags for the EC2 Transit Gateway VPC 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 Attachment to manage.
Declaration
public Output<string> TransitGatewayAttachmentId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TransitGatewayDefaultRouteTableAssociation
Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. Default value: true.
Declaration
public Output<bool?> TransitGatewayDefaultRouteTableAssociation { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
TransitGatewayDefaultRouteTablePropagation
Boolean whether the VPC Attachment should propagate routes with the EC2 Transit Gateway propagation default route table. Default value: true.
Declaration
public Output<bool?> TransitGatewayDefaultRouteTablePropagation { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
TransitGatewayId
Identifier of EC2 Transit Gateway.
Declaration
public Output<string> TransitGatewayId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpcId
Identifier of EC2 VPC.
Declaration
public Output<string> VpcId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpcOwnerId
Identifier of the AWS account that owns the EC2 VPC.
Declaration
public Output<string> VpcOwnerId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, VpcAttachmentAccepterState, CustomResourceOptions)
Get an existing VpcAttachmentAccepter resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VpcAttachmentAccepter Get(string name, Input<string> id, VpcAttachmentAccepterState 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. |
| VpcAttachmentAccepterState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VpcAttachmentAccepter |