Skip to content

RuleProps

Properties for defining a Rule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-rule

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkalb"
&alicloudroscdkalb.RuleProps {
    ListenerId: interface{},
    Priority: interface{},
    RuleActions: interface{},
    RuleConditions: interface{},
    RuleName: interface{},
    Direction: interface{},
}

Properties

Name Type Description
ListenerId interface{} Property listenerId: The ID of the listener that is configured for the Application Load Balancer (ALB) instance.
Priority interface{} Property priority: The priority of the forwarding rule.
RuleActions interface{} Property ruleActions: The actions of the forwarding rule.
RuleConditions interface{} Property ruleConditions: The conditions of the forwarding rule.
RuleName interface{} Property ruleName: The name of the forwarding rule.
Direction interface{} Property direction: The direction in which the forwarding rule is applied.

ListenerIdRequired

ListenerId interface{}
  • Type: interface{}

Property listenerId: The ID of the listener that is configured for the Application Load Balancer (ALB) instance.


PriorityRequired

Priority interface{}
  • Type: interface{}

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

RuleActions interface{}
  • Type: interface{}

Property ruleActions: The actions of the forwarding rule.


RuleConditionsRequired

RuleConditions interface{}
  • Type: interface{}

Property ruleConditions: The conditions of the forwarding rule.


RuleNameRequired

RuleName interface{}
  • Type: interface{}

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 interface{}
  • Type: interface{}

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.