CfnTransitGatewayAttachmentProps

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

Bases: object

Properties for defining a CfnTransitGatewayAttachment.

Parameters
  • subnet_ids (Sequence[str]) – The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

  • transit_gateway_id (str) – The ID of the transit gateway.

  • vpc_id (str) – The ID of the VPC.

  • tags (Optional[Sequence[CfnTag]]) – The tags for the attachment.

Link

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

ExampleMetadata

fixture=_generated

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

The IDs of one or more subnets.

You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

Link

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

Return type

List[str]

tags

The tags for the attachment.

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

The ID of the transit gateway.

Link

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

Return type

str

vpc_id

The ID of the VPC.

Link

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

Return type

str