TransitGatewayVpcAttachmentProps

class aws_cdk.aws_ec2_alpha.TransitGatewayVpcAttachmentProps(*, subnets, transit_gateway, vpc, transit_gateway_attachment_name=None, vpc_attachment_options=None)

Bases: object

(experimental) Common properties for creating a Transit Gateway VPC Attachment resource.

Parameters:
  • subnets (Sequence[ISubnet]) – (experimental) A list of one or more subnets to place the attachment in. It is recommended to specify more subnets for better availability.

  • transit_gateway (ITransitGateway) – (experimental) The transit gateway this attachment gets assigned to.

  • vpc (IVpc) – (experimental) A VPC attachment(s) will get assigned to.

  • transit_gateway_attachment_name (Optional[str]) – (experimental) Physical name of this Transit Gateway VPC Attachment. Default: - Assigned by CloudFormation.

  • vpc_attachment_options (Optional[ITransitGatewayVpcAttachmentOptions]) – (experimental) The VPC attachment options. Default: - All options are disabled.

Stability:

experimental

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_alpha as ec2_alpha
from aws_cdk import aws_ec2 as ec2

# subnet: ec2.Subnet
# transit_gateway: ec2_alpha.TransitGateway
# transit_gateway_vpc_attachment_options: ec2_alpha.ITransitGatewayVpcAttachmentOptions
# vpc: ec2.Vpc

transit_gateway_vpc_attachment_props = ec2_alpha.TransitGatewayVpcAttachmentProps(
    subnets=[subnet],
    transit_gateway=transit_gateway,
    vpc=vpc,

    # the properties below are optional
    transit_gateway_attachment_name="transitGatewayAttachmentName",
    vpc_attachment_options=transit_gateway_vpc_attachment_options
)

Attributes

subnets

(experimental) A list of one or more subnets to place the attachment in.

It is recommended to specify more subnets for better availability.

Stability:

experimental

transit_gateway

(experimental) The transit gateway this attachment gets assigned to.

Stability:

experimental

transit_gateway_attachment_name

(experimental) Physical name of this Transit Gateway VPC Attachment.

Default:
  • Assigned by CloudFormation.

Stability:

experimental

vpc

(experimental) A VPC attachment(s) will get assigned to.

Stability:

experimental

vpc_attachment_options

(experimental) The VPC attachment options.

Default:
  • All options are disabled.

Stability:

experimental