CfnTransitGatewayVpcAttachmentPropsMixin

class aws_cdk.mixins_preview.aws_ec2.mixins.CfnTransitGatewayVpcAttachmentPropsMixin(props, *, strategy=None)

Bases: Mixin

Specifies a VPC attachment.

See:

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

CloudformationResource:

AWS::EC2::TransitGatewayVpcAttachment

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins

# options: Any

cfn_transit_gateway_vpc_attachment_props_mixin = ec2_mixins.CfnTransitGatewayVpcAttachmentPropsMixin(ec2_mixins.CfnTransitGatewayVpcAttachmentMixinProps(
    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"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

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

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

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

Static Methods

classmethod is_mixin(x)

(experimental) 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.

Stability:

experimental

OptionsProperty

class CfnTransitGatewayVpcAttachmentPropsMixin.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-transitgatewayvpcattachment-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.mixins_preview.aws_ec2 import mixins as ec2_mixins

options_property = ec2_mixins.CfnTransitGatewayVpcAttachmentPropsMixin.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-transitgatewayvpcattachment-options.html#cfn-ec2-transitgatewayvpcattachment-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-transitgatewayvpcattachment-options.html#cfn-ec2-transitgatewayvpcattachment-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-transitgatewayvpcattachment-options.html#cfn-ec2-transitgatewayvpcattachment-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-transitgatewayvpcattachment-options.html#cfn-ec2-transitgatewayvpcattachment-options-securitygroupreferencingsupport