Class VpcAttachment
Manages an EC2 Transit Gateway VPC Attachment. For examples of custom route table association and propagation, see the EC2 Transit Gateway Networking Examples Guide.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ec2TransitGateway.VpcAttachment("example", new Aws.Ec2TransitGateway.VpcAttachmentArgs
{
SubnetIds =
{
aws_subnet.Example.Id,
},
TransitGatewayId = aws_ec2_transit_gateway.Example.Id,
VpcId = aws_vpc.Example.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2TransitGateway
Assembly: Pulumi.Aws.dll
Syntax
public class VpcAttachment : CustomResource
Constructors
View SourceVpcAttachment(String, VpcAttachmentArgs, CustomResourceOptions)
Create a VpcAttachment resource with the given unique name, arguments, and options.
Declaration
public VpcAttachment(string name, VpcAttachmentArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VpcAttachmentArgs | 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. Default value: enable.
Declaration
public Output<string> DnsSupport { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Ipv6Support
Whether IPv6 support is enabled. Valid values: disable, enable. Default value: disable.
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>> |
TransitGatewayDefaultRouteTableAssociation
Boolean whether the VPC Attachment should be associated with the EC2 Transit Gateway association default route table. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. 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. This cannot be configured or perform drift detection with Resource Access Manager shared EC2 Transit Gateways. 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>, VpcAttachmentState, CustomResourceOptions)
Get an existing VpcAttachment resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VpcAttachment Get(string name, Input<string> id, VpcAttachmentState 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. |
| VpcAttachmentState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VpcAttachment |