Skip to content

RouteToTargetAction

Union Type

RouteToTargetAction module-attribute

An action that routes requests to a gateway target, either statically or with weighted traffic splitting.

Union Member Types

RouteToTargetActionStaticRoute dataclass

Bases: _SerdeShape

A static route that sends all matching requests to a single target.

Attributes

value instance-attribute
value: StaticRoute

RouteToTargetActionWeightedRoute dataclass

Bases: _SerdeShape

A weighted route that splits traffic between multiple targets.

Attributes

value instance-attribute

RouteToTargetActionUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str