Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

awscc.ec2.transit_gateway_attachment

CloudFormation Type: AWS::EC2::TransitGatewayAttachment

Resource Type definition for AWS::EC2::TransitGatewayAttachment

Example

let vpc = awscc.ec2.vpc {
  cidr_block = "10.0.0.0/16"
}

let subnet = awscc.ec2.subnet {
  vpc_id            = vpc.vpc_id
  cidr_block        = "10.0.1.0/24"
  availability_zone = "ap-northeast-1a"
}

let tgw = awscc.ec2.transit_gateway {
  description = "Example Transit Gateway"
}

awscc.ec2.transit_gateway_attachment {
  transit_gateway_id = tgw.id
  vpc_id             = vpc.vpc_id
  subnet_ids         = [subnet.subnet_id]

  tags = {
    Environment = "example"
  }
}

Argument Reference

options

The options for the transit gateway vpc attachment.

subnet_ids

  • Type: List<SubnetId>
  • Required: Yes

tags

  • Type: Map
  • Required: No

transit_gateway_id

  • Type: TransitGatewayId
  • Required: Yes

vpc_id

  • Type: VpcId
  • Required: Yes

Enum Values

appliance_mode_support (ApplianceModeSupport)

ValueDSL Identifier
enableawscc.ec2.transit_gateway_attachment.ApplianceModeSupport.enable
disableawscc.ec2.transit_gateway_attachment.ApplianceModeSupport.disable

Shorthand formats: enable or ApplianceModeSupport.enable

dns_support (DnsSupport)

ValueDSL Identifier
enableawscc.ec2.transit_gateway_attachment.DnsSupport.enable
disableawscc.ec2.transit_gateway_attachment.DnsSupport.disable

Shorthand formats: enable or DnsSupport.enable

ipv6_support (Ipv6Support)

ValueDSL Identifier
enableawscc.ec2.transit_gateway_attachment.Ipv6Support.enable
disableawscc.ec2.transit_gateway_attachment.Ipv6Support.disable

Shorthand formats: enable or Ipv6Support.enable

security_group_referencing_support (SecurityGroupReferencingSupport)

ValueDSL Identifier
enableawscc.ec2.transit_gateway_attachment.SecurityGroupReferencingSupport.enable
disableawscc.ec2.transit_gateway_attachment.SecurityGroupReferencingSupport.disable

Shorthand formats: enable or SecurityGroupReferencingSupport.enable

Struct Definitions

Options

FieldTypeRequiredDescription
appliance_mode_supportEnum (ApplianceModeSupport)NoIndicates whether to enable Ipv6 Support for Vpc Attachment. Valid Values: enable
dns_supportEnum (DnsSupport)NoIndicates whether to enable DNS Support for Vpc Attachment. Valid Values: enable
ipv6_supportEnum (Ipv6Support)NoIndicates whether to enable Ipv6 Support for Vpc Attachment. Valid Values: enable
security_group_referencing_supportEnum (SecurityGroupReferencingSupport)NoIndicates whether to enable Security Group referencing support for Vpc Attachment. Valid Values: enable

Attribute Reference

id

  • Type: TransitGatewayAttachmentId