Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
VpcAttachment
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2TransitGateway
Assembly: Pulumi.Aws.dll
Syntax
public class VpcAttachment : CustomResource

Constructors

View Source

VpcAttachment(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 Source

DnsSupport

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>
View Source

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>
View Source

SubnetIds

Identifiers of EC2 Subnets.

Declaration
public Output<ImmutableArray<string>> SubnetIds { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

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>>
View Source

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>>
View Source

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>>
View Source

TransitGatewayId

Identifier of EC2 Transit Gateway.

Declaration
public Output<string> TransitGatewayId { get; }
Property Value
Type Description
Output<System.String>
View Source

VpcId

Identifier of EC2 VPC.

Declaration
public Output<string> VpcId { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.