Skip to content

EC2  >  Structures  >  TransitGatewayRequestPolicyRule

TransitGatewayRequestPolicyRule

Structure Class

TransitGatewayRequestPolicyRule dataclass

Bases: _SerdeShape

The matching criteria for a transit gateway policy table entry.

Attributes

destination_cidr_block class-attribute instance-attribute
destination_cidr_block: str | None = ...

The destination CIDR block for the policy rule.

destination_port_range class-attribute instance-attribute
destination_port_range: str | None = ...

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 class-attribute instance-attribute

The metadata key-value pair for the policy rule.

protocol class-attribute instance-attribute
protocol: str | None = ...

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

source_cidr_block class-attribute instance-attribute
source_cidr_block: str | None = ...

The source CIDR block for the policy rule.

source_port_range class-attribute instance-attribute
source_port_range: str | None = ...

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