Skip to content

TransitGatewayRequestPolicyRule

Source code in docs_src/capo_ec2/types/transit_gateway_request_policy_rule.py
class TransitGatewayRequestPolicyRule(TypedDict, closed=True):
    source_cidr_block: NotRequired["capo_ec2.types.string.String"]
    """<p>The source CIDR block for the policy rule.</p>"""
    source_port_range: NotRequired["capo_ec2.types.string.String"]
    """<p>The source port or port range for the policy rule. You can specify a port range only when <code>Protocol</code> is <code>6</code> (TCP) or <code>17</code> (UDP); for all other protocols, this value must be <code>*</code>.</p>"""
    destination_cidr_block: NotRequired["capo_ec2.types.string.String"]
    """<p>The destination CIDR block for the policy rule.</p>"""
    destination_port_range: NotRequired["capo_ec2.types.string.String"]
    """<p>The destination port or port range for the policy rule. You can specify a port range only when <code>Protocol</code> is <code>6</code> (TCP) or <code>17</code> (UDP); for all other protocols, this value must be <code>*</code>.</p>"""
    protocol: NotRequired["capo_ec2.types.string.String"]
    """<p>The protocol for the policy rule. Valid values are <code>1</code> (ICMP), <code>6</code> (TCP), <code>17</code> (UDP), <code>47</code> (GRE), or <code>*</code> for all protocols.</p>"""
    meta_data: NotRequired[
        "capo_ec2.types.transit_gateway_request_policy_rule_meta_data.TransitGatewayRequestPolicyRuleMetaData"
    ]
    """<p>The metadata key-value pair for the policy rule.</p>"""

destination_cidr_block instance-attribute

destination_cidr_block: NotRequired[String]

The destination CIDR block for the policy rule.

destination_port_range instance-attribute

destination_port_range: NotRequired[String]

The destination port or port range for the policy rule. You can specify a port range only when Protocol is 6 (TCP) or 17 (UDP); for all other protocols, this value must be *.

meta_data instance-attribute

The metadata key-value pair for the policy rule.

protocol instance-attribute

protocol: NotRequired[String]

The protocol for the policy rule. Valid values are 1 (ICMP), 6 (TCP), 17 (UDP), 47 (GRE), or * for all protocols.

source_cidr_block instance-attribute

source_cidr_block: NotRequired[String]

The source CIDR block for the policy rule.

source_port_range instance-attribute

source_port_range: NotRequired[String]

The source port or port range for the policy rule. You can specify a port range only when Protocol is 6 (TCP) or 17 (UDP); for all other protocols, this value must be *.