RuleProps
Properties for defining a Rule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-rule
Initializer
import ros_cdk_alb
ros_cdk_alb.RuleProps(
listener_id: typing.Union[str, IResolvable],
priority: typing.Union[typing.Union[int, float], IResolvable],
rule_actions: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleActionsProperty]]],
rule_conditions: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleConditionsProperty]]],
rule_name: typing.Union[str, IResolvable],
direction: typing.Union[str, IResolvable] = None
)
Properties
| Name | Type | Description |
|---|---|---|
listener_id | typing.Union[str, ros_cdk_core.IResolvable] | Property listenerId: The ID of the listener that is configured for the Application Load Balancer (ALB) instance. |
priority | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property priority: The priority of the forwarding rule. |
rule_actions | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, RuleActionsProperty]]] | Property ruleActions: The actions of the forwarding rule. |
rule_conditions | typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, RuleConditionsProperty]]] | Property ruleConditions: The conditions of the forwarding rule. |
rule_name | typing.Union[str, ros_cdk_core.IResolvable] | Property ruleName: The name of the forwarding rule. |
direction | typing.Union[str, ros_cdk_core.IResolvable] | Property direction: The direction in which the forwarding rule is applied. |
listener_idRequired
listener_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property listenerId: The ID of the listener that is configured for the Application Load Balancer (ALB) instance.
priorityRequired
priority: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property priority: The priority of the forwarding rule.
Valid values: 1 to 10000. A lower value specifies a higher priority. Note The priority of each forwarding rule within a listener must be unique.
rule_actionsRequired
rule_actions: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleActionsProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, RuleActionsProperty]]]
Property ruleActions: The actions of the forwarding rule.
rule_conditionsRequired
rule_conditions: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleConditionsProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, RuleConditionsProperty]]]
Property ruleConditions: The conditions of the forwarding rule.
rule_nameRequired
rule_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ruleName: The name of the forwarding rule.
- The length must be 2 to 128 English or Chinese characters.
- The name must start with a letter, a Chinese character, or a number, and can contain numbers, periods (.), underscores (_), hyphens (-), and spaces.
directionOptional
direction: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property direction: The direction in which the forwarding rule is applied.
Valid values:
- Request (default): The rule matches and processes requests sent from the client to the ALB instance.
- Response: The rule matches and processes responses returned from server groups to the ALB instance.
Basic ALB instances support only forwarding rules whose Direction is Request.