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 (Optional[Any]) – The VPC attachment options in JSON or YAML. - DnsSupport (enable | disable) - Ipv6Support (enable| disable) - ApplianceModeSupport (enable | disable)

  • 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.

Link

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.

Link

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

Return type

Optional[List[str]]

options

The VPC attachment options in JSON or YAML.

  • DnsSupport (enable | disable)

  • Ipv6Support (enable| disable)

  • ApplianceModeSupport (enable | disable)

Link

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

Return type

Any

remove_subnet_ids

The IDs of one or more subnets to remove.

Link

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

Return type

Optional[List[str]]

subnet_ids

The IDs of the subnets.

Link

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

Return type

List[str]

tags

The tags for the VPC attachment.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayvpcattachment.html#cfn-ec2-transitgatewayvpcattachment-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-transitgatewayvpcattachment.html#cfn-ec2-transitgatewayvpcattachment-transitgatewayid

Return type

str

vpc_id

The ID of the VPC.

Link

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

Return type

str