CfnTransitGatewayVpcAttachmentProps

class aws_cdk.aws_ec2.CfnTransitGatewayVpcAttachmentProps(*, subnet_ids, transit_gateway_id, vpc_id, add_subnet_ids=None, options=None, remove_subnet_ids=None, tags=None)

Bases: object

Properties for defining a CfnTransitGatewayVpcAttachment.

Parameters:
  • subnet_ids (Sequence[str]) – The IDs of the subnets.

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

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

  • add_subnet_ids (Optional[Sequence[str]]) – The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.

  • options (Any) – The VPC attachment options.

  • remove_subnet_ids (Optional[Sequence[str]]) – The IDs of one or more subnets to remove.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags for the VPC attachment.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

# options: Any

cfn_transit_gateway_vpc_attachment_props = ec2.CfnTransitGatewayVpcAttachmentProps(
    subnet_ids=["subnetIds"],
    transit_gateway_id="transitGatewayId",
    vpc_id="vpcId",

    # the properties below are optional
    add_subnet_ids=["addSubnetIds"],
    options=options,
    remove_subnet_ids=["removeSubnetIds"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

add_subnet_ids

The IDs of one or more subnets to add.

You can specify at most one subnet per Availability Zone.

See:

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

options

The VPC attachment options.

See:

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

remove_subnet_ids

The IDs of one or more subnets to remove.

See:

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

subnet_ids

The IDs of the subnets.

See:

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

tags

The tags for the VPC attachment.

See:

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

transit_gateway_id

The ID of the transit gateway.

See:

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

vpc_id

The ID of the VPC.

See:

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