Skip to content

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: Rule direction.

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 name must be 2 to 128 characters in length. It can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter.


directionOptional

direction: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property direction: Rule direction.

Valid values: Request or Response.