Skip to content

RuleProps

Properties for defining a Rule.

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

Initializer

import com.aliyun.ros.cdk.alb.RuleProps;
RuleProps.builder()
    .listenerId(java.lang.String)
    .listenerId(IResolvable)
    .priority(java.lang.Number)
    .priority(IResolvable)
    .ruleActions(IResolvable)
    .ruleActions(java.util.List<IResolvable)
    .ruleActions(RuleActionsProperty>)
    .ruleConditions(IResolvable)
    .ruleConditions(java.util.List<IResolvable)
    .ruleConditions(RuleConditionsProperty>)
    .ruleName(java.lang.String)
    .ruleName(IResolvable)
//  .direction(java.lang.String)
//  .direction(IResolvable)
    .build();

Properties

Name Type Description
listenerId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property listenerId: The ID of the listener that is configured for the Application Load Balancer (ALB) instance.
priority java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property priority: The priority of the forwarding rule.
ruleActions com.aliyun.ros.cdk.core.IResolvable OR java.util.ListRuleActionsProperty> Property ruleActions: The actions of the forwarding rule.
ruleConditions com.aliyun.ros.cdk.core.IResolvable OR java.util.ListRuleConditionsProperty> Property ruleConditions: The conditions of the forwarding rule.
ruleName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ruleName: The name of the forwarding rule.
direction java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property direction: Rule direction.

listenerIdRequired

public java.lang.Object getListenerId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


priorityRequired

public java.lang.Object getPriority();
  • Type: java.lang.Number OR com.aliyun.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 java.lang.Object getRuleActions();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListRuleActionsProperty>

Property ruleActions: The actions of the forwarding rule.


ruleConditionsRequired

public java.lang.Object getRuleConditions();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListRuleConditionsProperty>

Property ruleConditions: The conditions of the forwarding rule.


ruleNameRequired

public java.lang.Object getRuleName();
  • Type: java.lang.String OR com.aliyun.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

public java.lang.Object getDirection();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property direction: Rule direction.

Valid values: Request or Response.