CfnTransitGatewayPolicyTableEntryPropsMixin

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

Bases: Mixin

AWS::EC2::TransitGatewayPolicyTableEntry Resource Definition.

See:

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

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:

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 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.

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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule.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

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule.html#cfn-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule-destinationcidrblock

destination_port_range

The destination port range for the transit gateway policy rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule.html#cfn-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule-destinationportrange

protocol

The protocol for the transit gateway policy rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule.html#cfn-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule-protocol

source_cidr_block

The source CIDR block for the transit gateway policy rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule.html#cfn-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule-sourcecidrblock

source_port_range

The source port range for the transit gateway policy rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule.html#cfn-ec2-transitgatewaypolicytableentry-transitgatewaypolicyrule-sourceportrange