RuleProps
Properties for defining a Rule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-rule
Initializer
import { RuleProps } from '@alicloud/ros-cdk-alb'
const ruleProps: RuleProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
listenerId | string | @alicloud/ros-cdk-core.IResolvable | Property listenerId: The ID of the listener that is configured for the Application Load Balancer (ALB) instance. |
priority | number | @alicloud/ros-cdk-core.IResolvable | Property priority: The priority of the forwarding rule. |
ruleActions | @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | RuleActionsProperty[] | Property ruleActions: The actions of the forwarding rule. |
ruleConditions | @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | RuleConditionsProperty[] | Property ruleConditions: The conditions of the forwarding rule. |
ruleName | string | @alicloud/ros-cdk-core.IResolvable | Property ruleName: The name of the forwarding rule. |
direction | string | @alicloud/ros-cdk-core.IResolvable | Property direction: The direction in which the forwarding rule is applied. |
listenerIdRequired
public readonly listenerId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property listenerId: The ID of the listener that is configured for the Application Load Balancer (ALB) instance.
priorityRequired
public readonly priority: number | IResolvable;
- Type: number | @alicloud/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.
ruleActionsRequired
public readonly ruleActions: IResolvable | IResolvable | RuleActionsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | RuleActionsProperty[]
Property ruleActions: The actions of the forwarding rule.
ruleConditionsRequired
public readonly ruleConditions: IResolvable | IResolvable | RuleConditionsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | RuleConditionsProperty[]
Property ruleConditions: The conditions of the forwarding rule.
ruleNameRequired
public readonly ruleName: string | IResolvable;
- Type: string | @alicloud/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
public readonly direction: string | IResolvable;
- Type: string | @alicloud/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.