CfnTransitGatewayVpcAttachmentPropsMixin
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnTransitGatewayVpcAttachmentPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies a VPC attachment.
- See:
- 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:
props (
Union[CfnTransitGatewayVpcAttachmentMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
OptionsProperty
- class CfnTransitGatewayVpcAttachmentPropsMixin.OptionsProperty(*, appliance_mode_support=None, dns_support=None, ipv6_support=None, security_group_referencing_support=None)
Bases:
objectDescribes the VPC attachment options.
- Parameters:
appliance_mode_support (
Optional[str]) – Enable or disable appliance mode support. The default isdisable.dns_support (
Optional[str]) – Enable or disable DNS support. The default isdisable.ipv6_support (
Optional[str]) – Enable or disable IPv6 support. The default isdisable.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:
- 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.
- dns_support
Enable or disable DNS support.
The default is
disable.
- ipv6_support
Enable or disable IPv6 support.
The default is
disable.
- 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 .