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:
- 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.
- options
The VPC attachment options.
- remove_subnet_ids
The IDs of one or more subnets to remove.
- subnet_ids
The IDs of the subnets.
- tags
The tags for the VPC attachment.
- transit_gateway_id
The ID of the transit gateway.