CfnTransitGatewayAttachmentPropsMixin

class aws_cdk.cfn_property_mixins.aws_ec2.CfnTransitGatewayAttachmentPropsMixin(props, *, strategy=None)

Bases: Mixin

Attaches a VPC to a transit gateway.

If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.

To send VPC traffic to an attached transit gateway, add a route to the VPC route table using AWS::EC2::Route .

To update tags for a VPC attachment after creation without replacing the attachment, use AWS::EC2::TransitGatewayVpcAttachment instead.

See:

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

CloudformationResource:

AWS::EC2::TransitGatewayAttachment

Mixin:

true

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.cfn_property_mixins import aws_ec2 as ec2
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy
# options: Any

cfn_transit_gateway_attachment_props_mixin = ec2.CfnTransitGatewayAttachmentPropsMixin(ec2.CfnTransitGatewayAttachmentMixinProps(
    options=options,
    subnet_ids=["subnetIds"],
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    transit_gateway_id="transitGatewayId",
    vpc_id="vpcId"
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::EC2::TransitGatewayAttachment.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['options', 'subnetIds', 'tags', 'transitGatewayId', 'vpcId']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

OptionsProperty

class CfnTransitGatewayAttachmentPropsMixin.OptionsProperty(*, appliance_mode_support=None, dns_support=None, ipv6_support=None, security_group_referencing_support=None)

Bases: object

Describes the VPC attachment options.

Parameters:
  • appliance_mode_support (Optional[str]) – Enable or disable appliance mode support. The default is disable .

  • dns_support (Optional[str]) – Enable or disable DNS support. The default is disable .

  • ipv6_support (Optional[str]) – Enable or disable IPv6 support. The default is disable .

  • security_group_referencing_support (Optional[str]) – Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature. For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayattachment-options.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.cfn_property_mixins import aws_ec2 as ec2

options_property = ec2.CfnTransitGatewayAttachmentPropsMixin.OptionsProperty(
    appliance_mode_support="applianceModeSupport",
    dns_support="dnsSupport",
    ipv6_support="ipv6Support",
    security_group_referencing_support="securityGroupReferencingSupport"
)

Attributes

appliance_mode_support

Enable or disable appliance mode support.

The default is disable .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayattachment-options.html#cfn-ec2-transitgatewayattachment-options-appliancemodesupport

dns_support

Enable or disable DNS support.

The default is disable .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayattachment-options.html#cfn-ec2-transitgatewayattachment-options-dnssupport

ipv6_support

Enable or disable IPv6 support.

The default is disable .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayattachment-options.html#cfn-ec2-transitgatewayattachment-options-ipv6support

security_group_referencing_support

Enables you to reference a security group across VPCs attached to a transit gateway (TGW).

Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.

For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewayattachment-options.html#cfn-ec2-transitgatewayattachment-options-securitygroupreferencingsupport