alicloud logo
Alibaba Cloud v3.29.0, Jan 20 23

alicloud.alb.Rule

Provides a Application Load Balancer (ALB) Rule resource.

For information about Application Load Balancer (ALB) Rule and how to use it, see What is Rule.

NOTE: Available in v1.133.0+.

NOTE: This version only supports forwarding rules in the request direction.

Create Rule Resource

new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);
@overload
def Rule(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         dry_run: Optional[bool] = None,
         listener_id: Optional[str] = None,
         priority: Optional[int] = None,
         rule_actions: Optional[Sequence[RuleRuleActionArgs]] = None,
         rule_conditions: Optional[Sequence[RuleRuleConditionArgs]] = None,
         rule_name: Optional[str] = None)
@overload
def Rule(resource_name: str,
         args: RuleArgs,
         opts: Optional[ResourceOptions] = None)
func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)
public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)
public Rule(String name, RuleArgs args)
public Rule(String name, RuleArgs args, CustomResourceOptions options)
type: alicloud:alb:Rule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args RuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args RuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args RuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args RuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Rule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Rule resource accepts the following input properties:

ListenerId string

The ID of the listener to which the forwarding rule belongs.

Priority int

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

RuleActions List<Pulumi.AliCloud.Alb.Inputs.RuleRuleActionArgs>

The actions of the forwarding rules. See the following Block rule_actions.

RuleConditions List<Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionArgs>

The conditions of the forwarding rule. See the following Block rule_conditions.

RuleName string

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

DryRun bool

Specifies whether to precheck this request.

ListenerId string

The ID of the listener to which the forwarding rule belongs.

Priority int

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

RuleActions []RuleRuleActionArgs

The actions of the forwarding rules. See the following Block rule_actions.

RuleConditions []RuleRuleConditionArgs

The conditions of the forwarding rule. See the following Block rule_conditions.

RuleName string

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

DryRun bool

Specifies whether to precheck this request.

listenerId String

The ID of the listener to which the forwarding rule belongs.

priority Integer

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

ruleActions List<RuleRuleActionArgs>

The actions of the forwarding rules. See the following Block rule_actions.

ruleConditions List<RuleRuleConditionArgs>

The conditions of the forwarding rule. See the following Block rule_conditions.

ruleName String

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

dryRun Boolean

Specifies whether to precheck this request.

listenerId string

The ID of the listener to which the forwarding rule belongs.

priority number

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

ruleActions RuleRuleActionArgs[]

The actions of the forwarding rules. See the following Block rule_actions.

ruleConditions RuleRuleConditionArgs[]

The conditions of the forwarding rule. See the following Block rule_conditions.

ruleName string

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

dryRun boolean

Specifies whether to precheck this request.

listener_id str

The ID of the listener to which the forwarding rule belongs.

priority int

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

rule_actions Sequence[RuleRuleActionArgs]

The actions of the forwarding rules. See the following Block rule_actions.

rule_conditions Sequence[RuleRuleConditionArgs]

The conditions of the forwarding rule. See the following Block rule_conditions.

rule_name str

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

dry_run bool

Specifies whether to precheck this request.

listenerId String

The ID of the listener to which the forwarding rule belongs.

priority Number

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

ruleActions List<Property Map>

The actions of the forwarding rules. See the following Block rule_actions.

ruleConditions List<Property Map>

The conditions of the forwarding rule. See the following Block rule_conditions.

ruleName String

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

dryRun Boolean

Specifies whether to precheck this request.

Outputs

All input properties are implicitly available as output properties. Additionally, the Rule resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the resource.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the resource.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the resource.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the resource.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the resource.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the resource.

Look up Existing Rule Resource

Get an existing Rule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RuleState, opts?: CustomResourceOptions): Rule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dry_run: Optional[bool] = None,
        listener_id: Optional[str] = None,
        priority: Optional[int] = None,
        rule_actions: Optional[Sequence[RuleRuleActionArgs]] = None,
        rule_conditions: Optional[Sequence[RuleRuleConditionArgs]] = None,
        rule_name: Optional[str] = None,
        status: Optional[str] = None) -> Rule
func GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)
public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)
public static Rule get(String name, Output<String> id, RuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
DryRun bool

Specifies whether to precheck this request.

ListenerId string

The ID of the listener to which the forwarding rule belongs.

Priority int

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

RuleActions List<Pulumi.AliCloud.Alb.Inputs.RuleRuleActionArgs>

The actions of the forwarding rules. See the following Block rule_actions.

RuleConditions List<Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionArgs>

The conditions of the forwarding rule. See the following Block rule_conditions.

RuleName string

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

Status string

The status of the resource.

DryRun bool

Specifies whether to precheck this request.

ListenerId string

The ID of the listener to which the forwarding rule belongs.

Priority int

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

RuleActions []RuleRuleActionArgs

The actions of the forwarding rules. See the following Block rule_actions.

RuleConditions []RuleRuleConditionArgs

The conditions of the forwarding rule. See the following Block rule_conditions.

RuleName string

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

Status string

The status of the resource.

dryRun Boolean

Specifies whether to precheck this request.

listenerId String

The ID of the listener to which the forwarding rule belongs.

priority Integer

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

ruleActions List<RuleRuleActionArgs>

The actions of the forwarding rules. See the following Block rule_actions.

ruleConditions List<RuleRuleConditionArgs>

The conditions of the forwarding rule. See the following Block rule_conditions.

ruleName String

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

status String

The status of the resource.

dryRun boolean

Specifies whether to precheck this request.

listenerId string

The ID of the listener to which the forwarding rule belongs.

priority number

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

ruleActions RuleRuleActionArgs[]

The actions of the forwarding rules. See the following Block rule_actions.

ruleConditions RuleRuleConditionArgs[]

The conditions of the forwarding rule. See the following Block rule_conditions.

ruleName string

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

status string

The status of the resource.

dry_run bool

Specifies whether to precheck this request.

listener_id str

The ID of the listener to which the forwarding rule belongs.

priority int

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

rule_actions Sequence[RuleRuleActionArgs]

The actions of the forwarding rules. See the following Block rule_actions.

rule_conditions Sequence[RuleRuleConditionArgs]

The conditions of the forwarding rule. See the following Block rule_conditions.

rule_name str

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

status str

The status of the resource.

dryRun Boolean

Specifies whether to precheck this request.

listenerId String

The ID of the listener to which the forwarding rule belongs.

priority Number

The priority of the rule. Valid values: 1 to 10000. A smaller value indicates a higher priority. Note: The priority of each rule within the same listener must be unique.

ruleActions List<Property Map>

The actions of the forwarding rules. See the following Block rule_actions.

ruleConditions List<Property Map>

The conditions of the forwarding rule. See the following Block rule_conditions.

ruleName String

The name of the forwarding rule. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.

status String

The status of the resource.

Supporting Types

RuleRuleAction

Order int

The order of the forwarding rule actions. Valid values: 1 to 50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique.

Type string

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

FixedResponseConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleActionFixedResponseConfig

The configuration of the fixed response. See the following Block fixed_response_config.

ForwardGroupConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleActionForwardGroupConfig

The forward response action within ALB. See the following Block forward_group_config.

InsertHeaderConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleActionInsertHeaderConfig

The configuration of the inserted header field. See the following Block insert_header_config.

RedirectConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleActionRedirectConfig

The configuration of the external redirect action. See the following Block redirect_config.

RewriteConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleActionRewriteConfig

The redirect action within ALB. See the following Block rewrite_config.

TrafficLimitConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleActionTrafficLimitConfig

The Flow speed limit. See the following Block traffic_limit_config.

TrafficMirrorConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleActionTrafficMirrorConfig

The Traffic mirroring. See the following Block traffic_mirror_config.

Order int

The order of the forwarding rule actions. Valid values: 1 to 50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique.

Type string

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

FixedResponseConfig RuleRuleActionFixedResponseConfig

The configuration of the fixed response. See the following Block fixed_response_config.

ForwardGroupConfig RuleRuleActionForwardGroupConfig

The forward response action within ALB. See the following Block forward_group_config.

InsertHeaderConfig RuleRuleActionInsertHeaderConfig

The configuration of the inserted header field. See the following Block insert_header_config.

RedirectConfig RuleRuleActionRedirectConfig

The configuration of the external redirect action. See the following Block redirect_config.

RewriteConfig RuleRuleActionRewriteConfig

The redirect action within ALB. See the following Block rewrite_config.

TrafficLimitConfig RuleRuleActionTrafficLimitConfig

The Flow speed limit. See the following Block traffic_limit_config.

TrafficMirrorConfig RuleRuleActionTrafficMirrorConfig

The Traffic mirroring. See the following Block traffic_mirror_config.

order Integer

The order of the forwarding rule actions. Valid values: 1 to 50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique.

type String

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

fixedResponseConfig RuleRuleActionFixedResponseConfig

The configuration of the fixed response. See the following Block fixed_response_config.

forwardGroupConfig RuleRuleActionForwardGroupConfig

The forward response action within ALB. See the following Block forward_group_config.

insertHeaderConfig RuleRuleActionInsertHeaderConfig

The configuration of the inserted header field. See the following Block insert_header_config.

redirectConfig RuleRuleActionRedirectConfig

The configuration of the external redirect action. See the following Block redirect_config.

rewriteConfig RuleRuleActionRewriteConfig

The redirect action within ALB. See the following Block rewrite_config.

trafficLimitConfig RuleRuleActionTrafficLimitConfig

The Flow speed limit. See the following Block traffic_limit_config.

trafficMirrorConfig RuleRuleActionTrafficMirrorConfig

The Traffic mirroring. See the following Block traffic_mirror_config.

order number

The order of the forwarding rule actions. Valid values: 1 to 50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique.

type string

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

fixedResponseConfig RuleRuleActionFixedResponseConfig

The configuration of the fixed response. See the following Block fixed_response_config.

forwardGroupConfig RuleRuleActionForwardGroupConfig

The forward response action within ALB. See the following Block forward_group_config.

insertHeaderConfig RuleRuleActionInsertHeaderConfig

The configuration of the inserted header field. See the following Block insert_header_config.

redirectConfig RuleRuleActionRedirectConfig

The configuration of the external redirect action. See the following Block redirect_config.

rewriteConfig RuleRuleActionRewriteConfig

The redirect action within ALB. See the following Block rewrite_config.

trafficLimitConfig RuleRuleActionTrafficLimitConfig

The Flow speed limit. See the following Block traffic_limit_config.

trafficMirrorConfig RuleRuleActionTrafficMirrorConfig

The Traffic mirroring. See the following Block traffic_mirror_config.

order int

The order of the forwarding rule actions. Valid values: 1 to 50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique.

type str

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

fixed_response_config RuleRuleActionFixedResponseConfig

The configuration of the fixed response. See the following Block fixed_response_config.

forward_group_config RuleRuleActionForwardGroupConfig

The forward response action within ALB. See the following Block forward_group_config.

insert_header_config RuleRuleActionInsertHeaderConfig

The configuration of the inserted header field. See the following Block insert_header_config.

redirect_config RuleRuleActionRedirectConfig

The configuration of the external redirect action. See the following Block redirect_config.

rewrite_config RuleRuleActionRewriteConfig

The redirect action within ALB. See the following Block rewrite_config.

traffic_limit_config RuleRuleActionTrafficLimitConfig

The Flow speed limit. See the following Block traffic_limit_config.

traffic_mirror_config RuleRuleActionTrafficMirrorConfig

The Traffic mirroring. See the following Block traffic_mirror_config.

order Number

The order of the forwarding rule actions. Valid values: 1 to 50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique.

type String

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

fixedResponseConfig Property Map

The configuration of the fixed response. See the following Block fixed_response_config.

forwardGroupConfig Property Map

The forward response action within ALB. See the following Block forward_group_config.

insertHeaderConfig Property Map

The configuration of the inserted header field. See the following Block insert_header_config.

redirectConfig Property Map

The configuration of the external redirect action. See the following Block redirect_config.

rewriteConfig Property Map

The redirect action within ALB. See the following Block rewrite_config.

trafficLimitConfig Property Map

The Flow speed limit. See the following Block traffic_limit_config.

trafficMirrorConfig Property Map

The Traffic mirroring. See the following Block traffic_mirror_config.

RuleRuleActionFixedResponseConfig

Content string

The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.

ContentType string

The format of the fixed response. Valid values: text/plain, text/css, text/html, application/javascript, and application/json.

HttpCode string

The redirect method. Valid values:301, 302, 303, 307, and 308.

Content string

The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.

ContentType string

The format of the fixed response. Valid values: text/plain, text/css, text/html, application/javascript, and application/json.

HttpCode string

The redirect method. Valid values:301, 302, 303, 307, and 308.

content String

The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.

contentType String

The format of the fixed response. Valid values: text/plain, text/css, text/html, application/javascript, and application/json.

httpCode String

The redirect method. Valid values:301, 302, 303, 307, and 308.

content string

The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.

contentType string

The format of the fixed response. Valid values: text/plain, text/css, text/html, application/javascript, and application/json.

httpCode string

The redirect method. Valid values:301, 302, 303, 307, and 308.

content str

The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.

content_type str

The format of the fixed response. Valid values: text/plain, text/css, text/html, application/javascript, and application/json.

http_code str

The redirect method. Valid values:301, 302, 303, 307, and 308.

content String

The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.

contentType String

The format of the fixed response. Valid values: text/plain, text/css, text/html, application/javascript, and application/json.

httpCode String

The redirect method. Valid values:301, 302, 303, 307, and 308.

RuleRuleActionForwardGroupConfig

ServerGroupStickySession RuleRuleActionForwardGroupConfigServerGroupStickySession

The configuration of session persistence for server groups.

ServerGroupTuples []RuleRuleActionForwardGroupConfigServerGroupTuple

The destination server group to which requests are forwarded.

serverGroupStickySession RuleRuleActionForwardGroupConfigServerGroupStickySession

The configuration of session persistence for server groups.

serverGroupTuples List<RuleRuleActionForwardGroupConfigServerGroupTuple>

The destination server group to which requests are forwarded.

serverGroupStickySession RuleRuleActionForwardGroupConfigServerGroupStickySession

The configuration of session persistence for server groups.

serverGroupTuples RuleRuleActionForwardGroupConfigServerGroupTuple[]

The destination server group to which requests are forwarded.

server_group_sticky_session RuleRuleActionForwardGroupConfigServerGroupStickySession

The configuration of session persistence for server groups.

server_group_tuples Sequence[RuleRuleActionForwardGroupConfigServerGroupTuple]

The destination server group to which requests are forwarded.

serverGroupStickySession Property Map

The configuration of session persistence for server groups.

serverGroupTuples List<Property Map>

The destination server group to which requests are forwarded.

RuleRuleActionForwardGroupConfigServerGroupStickySession

Enabled bool

Whether to enable session persistence.

Timeout int

The timeout period. Unit: seconds. Valid values: 1 to 86400. Default value: 1000.

Enabled bool

Whether to enable session persistence.

Timeout int

The timeout period. Unit: seconds. Valid values: 1 to 86400. Default value: 1000.

enabled Boolean

Whether to enable session persistence.

timeout Integer

The timeout period. Unit: seconds. Valid values: 1 to 86400. Default value: 1000.

enabled boolean

Whether to enable session persistence.

timeout number

The timeout period. Unit: seconds. Valid values: 1 to 86400. Default value: 1000.

enabled bool

Whether to enable session persistence.

timeout int

The timeout period. Unit: seconds. Valid values: 1 to 86400. Default value: 1000.

enabled Boolean

Whether to enable session persistence.

timeout Number

The timeout period. Unit: seconds. Valid values: 1 to 86400. Default value: 1000.

RuleRuleActionForwardGroupConfigServerGroupTuple

ServerGroupId string

The ID of the destination server group to which requests are forwarded.

Weight int

The Weight of server group. Default value: 100. NOTE: This attribute is required when the number of server_group_tuples is greater than 2.

ServerGroupId string

The ID of the destination server group to which requests are forwarded.

Weight int

The Weight of server group. Default value: 100. NOTE: This attribute is required when the number of server_group_tuples is greater than 2.

serverGroupId String

The ID of the destination server group to which requests are forwarded.

weight Integer

The Weight of server group. Default value: 100. NOTE: This attribute is required when the number of server_group_tuples is greater than 2.

serverGroupId string

The ID of the destination server group to which requests are forwarded.

weight number

The Weight of server group. Default value: 100. NOTE: This attribute is required when the number of server_group_tuples is greater than 2.

server_group_id str

The ID of the destination server group to which requests are forwarded.

weight int

The Weight of server group. Default value: 100. NOTE: This attribute is required when the number of server_group_tuples is greater than 2.

serverGroupId String

The ID of the destination server group to which requests are forwarded.

weight Number

The Weight of server group. Default value: 100. NOTE: This attribute is required when the number of server_group_tuples is greater than 2.

RuleRuleActionInsertHeaderConfig

Key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

Value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

ValueType string

Valid values: UserDefined: a custom value ReferenceHeader: uses a field of the user request header. SystemDefined: a system value.

Key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

Value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

ValueType string

Valid values: UserDefined: a custom value ReferenceHeader: uses a field of the user request header. SystemDefined: a system value.

key String

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value String

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

valueType String

Valid values: UserDefined: a custom value ReferenceHeader: uses a field of the user request header. SystemDefined: a system value.

key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

valueType string

Valid values: UserDefined: a custom value ReferenceHeader: uses a field of the user request header. SystemDefined: a system value.

key str

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value str

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

value_type str

Valid values: UserDefined: a custom value ReferenceHeader: uses a field of the user request header. SystemDefined: a system value.

key String

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value String

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

valueType String

Valid values: UserDefined: a custom value ReferenceHeader: uses a field of the user request header. SystemDefined: a system value.

RuleRuleActionRedirectConfig

Host string

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

HttpCode string

The redirect method. Valid values:301, 302, 303, 307, and 308.

Path string

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

Port string

The port of the destination to which requests are redirected. Valid values: 1 to 63335. Default value: ${port}. You cannot use this value together with other characters at the same time.

Protocol string

The protocol of the requests to be redirected. Valid values: HTTP and HTTPS. Default value: ${protocol}. You cannot use this value together with other characters at the same time. Note HTTPS listeners can redirect only HTTPS requests.

Query string

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

Host string

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

HttpCode string

The redirect method. Valid values:301, 302, 303, 307, and 308.

Path string

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

Port string

The port of the destination to which requests are redirected. Valid values: 1 to 63335. Default value: ${port}. You cannot use this value together with other characters at the same time.

Protocol string

The protocol of the requests to be redirected. Valid values: HTTP and HTTPS. Default value: ${protocol}. You cannot use this value together with other characters at the same time. Note HTTPS listeners can redirect only HTTPS requests.

Query string

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

host String

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

httpCode String

The redirect method. Valid values:301, 302, 303, 307, and 308.

path String

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

port String

The port of the destination to which requests are redirected. Valid values: 1 to 63335. Default value: ${port}. You cannot use this value together with other characters at the same time.

protocol String

The protocol of the requests to be redirected. Valid values: HTTP and HTTPS. Default value: ${protocol}. You cannot use this value together with other characters at the same time. Note HTTPS listeners can redirect only HTTPS requests.

query String

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

host string

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

httpCode string

The redirect method. Valid values:301, 302, 303, 307, and 308.

path string

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

port string

The port of the destination to which requests are redirected. Valid values: 1 to 63335. Default value: ${port}. You cannot use this value together with other characters at the same time.

protocol string

The protocol of the requests to be redirected. Valid values: HTTP and HTTPS. Default value: ${protocol}. You cannot use this value together with other characters at the same time. Note HTTPS listeners can redirect only HTTPS requests.

query string

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

host str

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

http_code str

The redirect method. Valid values:301, 302, 303, 307, and 308.

path str

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

port str

The port of the destination to which requests are redirected. Valid values: 1 to 63335. Default value: ${port}. You cannot use this value together with other characters at the same time.

protocol str

The protocol of the requests to be redirected. Valid values: HTTP and HTTPS. Default value: ${protocol}. You cannot use this value together with other characters at the same time. Note HTTPS listeners can redirect only HTTPS requests.

query str

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

host String

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

httpCode String

The redirect method. Valid values:301, 302, 303, 307, and 308.

path String

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

port String

The port of the destination to which requests are redirected. Valid values: 1 to 63335. Default value: ${port}. You cannot use this value together with other characters at the same time.

protocol String

The protocol of the requests to be redirected. Valid values: HTTP and HTTPS. Default value: ${protocol}. You cannot use this value together with other characters at the same time. Note HTTPS listeners can redirect only HTTPS requests.

query String

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

RuleRuleActionRewriteConfig

Host string

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

Path string

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

Query string

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

Host string

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

Path string

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

Query string

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

host String

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

path String

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

query String

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

host string

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

path string

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

query string

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

host str

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

path str

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

query str

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

host String

The host name of the destination to which requests are redirected within ALB. Valid values: The host name must be 3 to 128 characters in length, and can contain letters, digits, hyphens (-), periods (.), asterisks (), and question marks (?). The host name must contain at least one period (.), and cannot start or end with a period (.). The rightmost domain label can contain only letters, asterisks () and question marks (?) and cannot contain digits or hyphens (-). Other domain labels cannot start or end with a hyphen (-). You can include asterisks (*) and question marks (?) anywhere in a domain label. Default value: ${host}. You cannot use this value with other characters at the same time.

path String

The path to which requests are to be redirected within ALB. Valid values: The path must be 1 to 128 characters in length, and start with a forward slash (/). The path can contain letters, digits, asterisks (*), question marks (?)and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , ”. The path is case-sensitive. Default value: ${path}. This value can be used only once. You can use it with a valid string.

query String

The query string of the request to be redirected within ALB. The query string must be 1 to 128 characters in length, can contain letters and printable characters. It cannot contain the following special characters: # [ ] { } \ | < > &. Default value: ${query}. This value can be used only once. You can use it with a valid string.

RuleRuleActionTrafficLimitConfig

Qps int

The Number of requests per second. Value range: 1~100000.

Qps int

The Number of requests per second. Value range: 1~100000.

qps Integer

The Number of requests per second. Value range: 1~100000.

qps number

The Number of requests per second. Value range: 1~100000.

qps int

The Number of requests per second. Value range: 1~100000.

qps Number

The Number of requests per second. Value range: 1~100000.

RuleRuleActionTrafficMirrorConfig

MirrorGroupConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleActionTrafficMirrorConfigMirrorGroupConfig

The Traffic is mirrored to the server group. See the following Block mirror_group_config.

TargetType string

The Mirror target type.

MirrorGroupConfig RuleRuleActionTrafficMirrorConfigMirrorGroupConfig

The Traffic is mirrored to the server group. See the following Block mirror_group_config.

TargetType string

The Mirror target type.

mirrorGroupConfig RuleRuleActionTrafficMirrorConfigMirrorGroupConfig

The Traffic is mirrored to the server group. See the following Block mirror_group_config.

targetType String

The Mirror target type.

mirrorGroupConfig RuleRuleActionTrafficMirrorConfigMirrorGroupConfig

The Traffic is mirrored to the server group. See the following Block mirror_group_config.

targetType string

The Mirror target type.

mirror_group_config RuleRuleActionTrafficMirrorConfigMirrorGroupConfig

The Traffic is mirrored to the server group. See the following Block mirror_group_config.

target_type str

The Mirror target type.

mirrorGroupConfig Property Map

The Traffic is mirrored to the server group. See the following Block mirror_group_config.

targetType String

The Mirror target type.

RuleRuleActionTrafficMirrorConfigMirrorGroupConfig

ServerGroupTuples []RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTuple

The destination server group to which requests are forwarded.

serverGroupTuples List<RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTuple>

The destination server group to which requests are forwarded.

serverGroupTuples RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTuple[]

The destination server group to which requests are forwarded.

serverGroupTuples List<Property Map>

The destination server group to which requests are forwarded.

RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTuple

ServerGroupId string

The ID of the destination server group to which requests are forwarded.

ServerGroupId string

The ID of the destination server group to which requests are forwarded.

serverGroupId String

The ID of the destination server group to which requests are forwarded.

serverGroupId string

The ID of the destination server group to which requests are forwarded.

server_group_id str

The ID of the destination server group to which requests are forwarded.

serverGroupId String

The ID of the destination server group to which requests are forwarded.

RuleRuleCondition

Type string

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

CookieConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionCookieConfig

The configuration of the cookie. See the following Block cookie_config.

HeaderConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionHeaderConfig

The configuration of the header field. See the following Block header_config.

HostConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionHostConfig

The configuration of the host field. See the following Block host_config.

MethodConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionMethodConfig

The configuration of the request method. See the following Block method_config.

PathConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionPathConfig

The configuration of the path for the request to be forwarded. See the following Block path_config.

QueryStringConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionQueryStringConfig

The configuration of the query string. See the following Block query_string_config.

SourceIpConfig Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionSourceIpConfig

The Based on source IP traffic matching. Required and valid when Type is SourceIP. See the following Block source_ip_config.

Type string

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

CookieConfig RuleRuleConditionCookieConfig

The configuration of the cookie. See the following Block cookie_config.

HeaderConfig RuleRuleConditionHeaderConfig

The configuration of the header field. See the following Block header_config.

HostConfig RuleRuleConditionHostConfig

The configuration of the host field. See the following Block host_config.

MethodConfig RuleRuleConditionMethodConfig

The configuration of the request method. See the following Block method_config.

PathConfig RuleRuleConditionPathConfig

The configuration of the path for the request to be forwarded. See the following Block path_config.

QueryStringConfig RuleRuleConditionQueryStringConfig

The configuration of the query string. See the following Block query_string_config.

SourceIpConfig RuleRuleConditionSourceIpConfig

The Based on source IP traffic matching. Required and valid when Type is SourceIP. See the following Block source_ip_config.

type String

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

cookieConfig RuleRuleConditionCookieConfig

The configuration of the cookie. See the following Block cookie_config.

headerConfig RuleRuleConditionHeaderConfig

The configuration of the header field. See the following Block header_config.

hostConfig RuleRuleConditionHostConfig

The configuration of the host field. See the following Block host_config.

methodConfig RuleRuleConditionMethodConfig

The configuration of the request method. See the following Block method_config.

pathConfig RuleRuleConditionPathConfig

The configuration of the path for the request to be forwarded. See the following Block path_config.

queryStringConfig RuleRuleConditionQueryStringConfig

The configuration of the query string. See the following Block query_string_config.

sourceIpConfig RuleRuleConditionSourceIpConfig

The Based on source IP traffic matching. Required and valid when Type is SourceIP. See the following Block source_ip_config.

type string

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

cookieConfig RuleRuleConditionCookieConfig

The configuration of the cookie. See the following Block cookie_config.

headerConfig RuleRuleConditionHeaderConfig

The configuration of the header field. See the following Block header_config.

hostConfig RuleRuleConditionHostConfig

The configuration of the host field. See the following Block host_config.

methodConfig RuleRuleConditionMethodConfig

The configuration of the request method. See the following Block method_config.

pathConfig RuleRuleConditionPathConfig

The configuration of the path for the request to be forwarded. See the following Block path_config.

queryStringConfig RuleRuleConditionQueryStringConfig

The configuration of the query string. See the following Block query_string_config.

sourceIpConfig RuleRuleConditionSourceIpConfig

The Based on source IP traffic matching. Required and valid when Type is SourceIP. See the following Block source_ip_config.

type str

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

cookie_config RuleRuleConditionCookieConfig

The configuration of the cookie. See the following Block cookie_config.

header_config RuleRuleConditionHeaderConfig

The configuration of the header field. See the following Block header_config.

host_config RuleRuleConditionHostConfig

The configuration of the host field. See the following Block host_config.

method_config RuleRuleConditionMethodConfig

The configuration of the request method. See the following Block method_config.

path_config RuleRuleConditionPathConfig

The configuration of the path for the request to be forwarded. See the following Block path_config.

query_string_config RuleRuleConditionQueryStringConfig

The configuration of the query string. See the following Block query_string_config.

source_ip_config RuleRuleConditionSourceIpConfig

The Based on source IP traffic matching. Required and valid when Type is SourceIP. See the following Block source_ip_config.

type String

The type of the forwarding rule. Valid values: Header, Host, Path, Cookie, QueryString, Method and SourceIp.

cookieConfig Property Map

The configuration of the cookie. See the following Block cookie_config.

headerConfig Property Map

The configuration of the header field. See the following Block header_config.

hostConfig Property Map

The configuration of the host field. See the following Block host_config.

methodConfig Property Map

The configuration of the request method. See the following Block method_config.

pathConfig Property Map

The configuration of the path for the request to be forwarded. See the following Block path_config.

queryStringConfig Property Map

The configuration of the query string. See the following Block query_string_config.

sourceIpConfig Property Map

The Based on source IP traffic matching. Required and valid when Type is SourceIP. See the following Block source_ip_config.

RuleRuleConditionCookieConfig

Values List<Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionCookieConfigValue>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

Values []RuleRuleConditionCookieConfigValue

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<RuleRuleConditionCookieConfigValue>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values RuleRuleConditionCookieConfigValue[]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values Sequence[RuleRuleConditionCookieConfigValue]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<Property Map>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

RuleRuleConditionCookieConfigValue

Key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

Value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

Key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

Value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

key String

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value String

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

key str

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value str

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

key String

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value String

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

RuleRuleConditionHeaderConfig

Key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

Values List<string>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

Key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

Values []string

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

key String

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

values string[]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

key str

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

values Sequence[str]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

key String

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

RuleRuleConditionHostConfig

Values List<string>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

Values []string

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values string[]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values Sequence[str]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

RuleRuleConditionMethodConfig

Values List<string>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

Values []string

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values string[]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values Sequence[str]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

RuleRuleConditionPathConfig

Values List<string>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

Values []string

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values string[]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values Sequence[str]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

RuleRuleConditionQueryStringConfig

Values List<Pulumi.AliCloud.Alb.Inputs.RuleRuleConditionQueryStringConfigValue>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

Values []RuleRuleConditionQueryStringConfigValue

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<RuleRuleConditionQueryStringConfigValue>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values RuleRuleConditionQueryStringConfigValue[]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values Sequence[RuleRuleConditionQueryStringConfigValue]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<Property Map>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

RuleRuleConditionQueryStringConfigValue

Key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

Value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

Key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

Value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

key String

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value String

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

key string

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value string

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

key str

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value str

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

key String

The key of the header field. The key must be 1 to 40 characters in length, and can contain letters, digits, hyphens (-) and underscores (_). The key does not support Cookie or Host.

value String

The value must be 1 to 128 characters in length, and can contain lowercase letters, printable characters, asterisks (*), and question marks (?). The value cannot contain spaces or the following special characters: # [ ] { } \ | < > &.

RuleRuleConditionSourceIpConfig

Values List<string>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

Values []string

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values string[]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values Sequence[str]

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

values List<String>

The value of the header field. The value must be 1 to 128 characters in length, and can contain lowercase letters, printable ASCII characters whose values are ch >= 32 && ch < 127, asterisks (*), and question marks (?). The value cannot start or end with a space.

Import

Application Load Balancer (ALB) Rule can be imported using the id, e.g.

 $ pulumi import alicloud:alb/rule:Rule example <id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.