CfnTransitGatewayVpcAttachmentProps

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

Bases: object

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

Parameters
  • add_subnet_ids (Optional[Sequence[str]]) – AWS::EC2::TransitGatewayVpcAttachment.AddSubnetIds.

  • options (Optional[Any]) – AWS::EC2::TransitGatewayVpcAttachment.Options.

  • remove_subnet_ids (Optional[Sequence[str]]) – AWS::EC2::TransitGatewayVpcAttachment.RemoveSubnetIds.

  • subnet_ids (Optional[Sequence[str]]) – AWS::EC2::TransitGatewayVpcAttachment.SubnetIds.

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

  • transit_gateway_id (Optional[str]) – AWS::EC2::TransitGatewayVpcAttachment.TransitGatewayId.

  • vpc_id (Optional[str]) – AWS::EC2::TransitGatewayVpcAttachment.VpcId.

Link

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

# options is of type object

cfn_transit_gateway_vpc_attachment_props = ec2.CfnTransitGatewayVpcAttachmentProps(
    add_subnet_ids=["addSubnetIds"],
    options=options,
    remove_subnet_ids=["removeSubnetIds"],
    subnet_ids=["subnetIds"],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    transit_gateway_id="transitGatewayId",
    vpc_id="vpcId"
)

Attributes

add_subnet_ids

AWS::EC2::TransitGatewayVpcAttachment.AddSubnetIds.

Link

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

Return type

Optional[List[str]]

options

AWS::EC2::TransitGatewayVpcAttachment.Options.

Link

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

Return type

Any

remove_subnet_ids

AWS::EC2::TransitGatewayVpcAttachment.RemoveSubnetIds.

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

AWS::EC2::TransitGatewayVpcAttachment.SubnetIds.

Link

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

Return type

Optional[List[str]]

tags

AWS::EC2::TransitGatewayVpcAttachment.Tags.

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

AWS::EC2::TransitGatewayVpcAttachment.TransitGatewayId.

Link

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

Return type

Optional[str]

vpc_id

AWS::EC2::TransitGatewayVpcAttachment.VpcId.

Link

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

Return type

Optional[str]