CfnTransitGatewayPolicyTableEntryPropsMixin
- class aws_cdk.cfn_property_mixins.aws_ec2.CfnTransitGatewayPolicyTableEntryPropsMixin(props, *, strategy=None)
Bases:
MixinAWS::EC2::TransitGatewayPolicyTableEntry Resource Definition.
- See:
- CloudformationResource:
AWS::EC2::TransitGatewayPolicyTableEntry
- 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 cfn_transit_gateway_policy_table_entry_props_mixin = ec2.CfnTransitGatewayPolicyTableEntryPropsMixin(ec2.CfnTransitGatewayPolicyTableEntryMixinProps( policy_rule=ec2.CfnTransitGatewayPolicyTableEntryPropsMixin.TransitGatewayPolicyRuleProperty( destination_cidr_block="destinationCidrBlock", destination_port_range="destinationPortRange", protocol="protocol", source_cidr_block="sourceCidrBlock", source_port_range="sourcePortRange" ), policy_rule_number="policyRuleNumber", target_route_table_id="targetRouteTableId", transit_gateway_policy_table_id="transitGatewayPolicyTableId" ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::EC2::TransitGatewayPolicyTableEntry.- Parameters:
props (
Union[CfnTransitGatewayPolicyTableEntryMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
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 = ['policyRule', 'policyRuleNumber', 'targetRouteTableId', 'transitGatewayPolicyTableId']
Static Methods
- classmethod is_mixin(x)
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.
TransitGatewayPolicyRuleProperty
- class CfnTransitGatewayPolicyTableEntryPropsMixin.TransitGatewayPolicyRuleProperty(*, destination_cidr_block=None, destination_port_range=None, protocol=None, source_cidr_block=None, source_port_range=None)
Bases:
object- Parameters:
destination_cidr_block (
Optional[str]) – The destination CIDR block for the transit gateway policy rule.destination_port_range (
Optional[str]) – The destination port range for the transit gateway policy rule.protocol (
Optional[str]) – The protocol for the transit gateway policy rule.source_cidr_block (
Optional[str]) – The source CIDR block for the transit gateway policy rule.source_port_range (
Optional[str]) – The source port range for the transit gateway policy rule.
- 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.cfn_property_mixins import aws_ec2 as ec2 transit_gateway_policy_rule_property = ec2.CfnTransitGatewayPolicyTableEntryPropsMixin.TransitGatewayPolicyRuleProperty( destination_cidr_block="destinationCidrBlock", destination_port_range="destinationPortRange", protocol="protocol", source_cidr_block="sourceCidrBlock", source_port_range="sourcePortRange" )
Attributes
- destination_cidr_block
The destination CIDR block for the transit gateway policy rule.
- destination_port_range
The destination port range for the transit gateway policy rule.
- protocol
The protocol for the transit gateway policy rule.
- source_cidr_block
The source CIDR block for the transit gateway policy rule.
- source_port_range
The source port range for the transit gateway policy rule.