CfnTransitGatewayAttachmentProps

class aws_cdk.aws_ec2.CfnTransitGatewayAttachmentProps(*, subnet_ids, tags=None, transit_gateway_id, vpc_id)

Bases: object

Properties for defining a AWS::EC2::TransitGatewayAttachment.

Parameters
  • subnet_ids (Sequence[str]) – AWS::EC2::TransitGatewayAttachment.SubnetIds.

  • tags (Optional[Sequence[CfnTag]]) – AWS::EC2::TransitGatewayAttachment.Tags.

  • transit_gateway_id (str) – AWS::EC2::TransitGatewayAttachment.TransitGatewayId.

  • vpc_id (str) – AWS::EC2::TransitGatewayAttachment.VpcId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayattachment.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

cfn_transit_gateway_attachment_props = ec2.CfnTransitGatewayAttachmentProps(
    subnet_ids=["subnetIds"],
    transit_gateway_id="transitGatewayId",
    vpc_id="vpcId",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

subnet_ids

AWS::EC2::TransitGatewayAttachment.SubnetIds.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayattachment.html#cfn-ec2-transitgatewayattachment-subnetids

Return type

List[str]

tags

AWS::EC2::TransitGatewayAttachment.Tags.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayattachment.html#cfn-ec2-transitgatewayattachment-tags

Return type

Optional[List[CfnTag]]

transit_gateway_id

AWS::EC2::TransitGatewayAttachment.TransitGatewayId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayattachment.html#cfn-ec2-transitgatewayattachment-transitgatewayid

Return type

str

vpc_id

AWS::EC2::TransitGatewayAttachment.VpcId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayattachment.html#cfn-ec2-transitgatewayattachment-vpcid

Return type

str