Alibaba Cloud

v3.15.0 published on Thursday, Jan 13, 2022 by Pulumi

getRules

This data source provides the Alb Rules of the current Alibaba Cloud user.

NOTE: Available in v1.133.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Alb.GetRules.InvokeAsync(new AliCloud.Alb.GetRulesArgs
        {
            Ids = 
            {
                "example_id",
            },
        }));
        this.AlbRuleId1 = ids.Apply(ids => ids.Rules?[0]?.Id);
        var nameRegex = Output.Create(AliCloud.Alb.GetRules.InvokeAsync(new AliCloud.Alb.GetRulesArgs
        {
            NameRegex = "^my-Rule",
        }));
        this.AlbRuleId2 = nameRegex.Apply(nameRegex => nameRegex.Rules?[0]?.Id);
    }

    [Output("albRuleId1")]
    public Output<string> AlbRuleId1 { get; set; }
    [Output("albRuleId2")]
    public Output<string> AlbRuleId2 { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := alb.GetRules(ctx, &alb.GetRulesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("albRuleId1", ids.Rules[0].Id)
		opt0 := "^my-Rule"
		nameRegex, err := alb.GetRules(ctx, &alb.GetRulesArgs{
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("albRuleId2", nameRegex.Rules[0].Id)
		return nil
	})
}
import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.alb.get_rules(ids=["example_id"])
pulumi.export("albRuleId1", ids.rules[0].id)
name_regex = alicloud.alb.get_rules(name_regex="^my-Rule")
pulumi.export("albRuleId2", name_regex.rules[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.alb.getRules({
    ids: ["example_id"],
});
export const albRuleId1 = ids.then(ids => ids.rules?[0]?.id);
const nameRegex = alicloud.alb.getRules({
    nameRegex: "^my-Rule",
});
export const albRuleId2 = nameRegex.then(nameRegex => nameRegex.rules?[0]?.id);

Using getRules

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRules(args: GetRulesArgs, opts?: InvokeOptions): Promise<GetRulesResult>
function getRulesOutput(args: GetRulesOutputArgs, opts?: InvokeOptions): Output<GetRulesResult>
def get_rules(ids: Optional[Sequence[str]] = None,
              listener_ids: Optional[Sequence[str]] = None,
              load_balancer_ids: Optional[Sequence[str]] = None,
              name_regex: Optional[str] = None,
              output_file: Optional[str] = None,
              rule_ids: Optional[Sequence[str]] = None,
              status: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetRulesResult
def get_rules_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              listener_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              load_balancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              name_regex: Optional[pulumi.Input[str]] = None,
              output_file: Optional[pulumi.Input[str]] = None,
              rule_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
              status: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetRulesResult]
func GetRules(ctx *Context, args *GetRulesArgs, opts ...InvokeOption) (*GetRulesResult, error)
func GetRulesOutput(ctx *Context, args *GetRulesOutputArgs, opts ...InvokeOption) GetRulesResultOutput

> Note: This function is named GetRules in the Go SDK.

public static class GetRules 
{
    public static Task<GetRulesResult> InvokeAsync(GetRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetRulesResult> Invoke(GetRulesInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Ids List<string>
A list of Rule IDs.
ListenerIds List<string>
The listener ids.
LoadBalancerIds List<string>
The load balancer ids.
NameRegex string
A regex string to filter results by Rule name.
OutputFile string
RuleIds List<string>
The rule ids.
Status string
The status of the resource.
Ids []string
A list of Rule IDs.
ListenerIds []string
The listener ids.
LoadBalancerIds []string
The load balancer ids.
NameRegex string
A regex string to filter results by Rule name.
OutputFile string
RuleIds []string
The rule ids.
Status string
The status of the resource.
ids string[]
A list of Rule IDs.
listenerIds string[]
The listener ids.
loadBalancerIds string[]
The load balancer ids.
nameRegex string
A regex string to filter results by Rule name.
outputFile string
ruleIds string[]
The rule ids.
status string
The status of the resource.
ids Sequence[str]
A list of Rule IDs.
listener_ids Sequence[str]
The listener ids.
load_balancer_ids Sequence[str]
The load balancer ids.
name_regex str
A regex string to filter results by Rule name.
output_file str
rule_ids Sequence[str]
The rule ids.
status str
The status of the resource.

getRules Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
Names List<string>
Rules List<Pulumi.AliCloud.Alb.Outputs.GetRulesRule>
ListenerIds List<string>
LoadBalancerIds List<string>
NameRegex string
OutputFile string
RuleIds List<string>
Status string
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
Names []string
Rules []GetRulesRule
ListenerIds []string
LoadBalancerIds []string
NameRegex string
OutputFile string
RuleIds []string
Status string
id string
The provider-assigned unique ID for this managed resource.
ids string[]
names string[]
rules GetRulesRule[]
listenerIds string[]
loadBalancerIds string[]
nameRegex string
outputFile string
ruleIds string[]
status string
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
names Sequence[str]
rules Sequence[GetRulesRule]
listener_ids Sequence[str]
load_balancer_ids Sequence[str]
name_regex str
output_file str
rule_ids Sequence[str]
status str

Supporting Types

GetRulesRule

Id string
The ID of the Rule.
ListenerId string
The ID of the listener to which the forwarding rule belongs.
LoadBalancerId string
The ID of the Application Load Balancer (ALB) instance 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.GetRulesRuleRuleAction>
The actions of the forwarding rules.
RuleConditions List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleCondition>
The conditions of the forwarding rule.
RuleId string
The first ID of the resource.
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.
Id string
The ID of the Rule.
ListenerId string
The ID of the listener to which the forwarding rule belongs.
LoadBalancerId string
The ID of the Application Load Balancer (ALB) instance 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 []GetRulesRuleRuleAction
The actions of the forwarding rules.
RuleConditions []GetRulesRuleRuleCondition
The conditions of the forwarding rule.
RuleId string
The first ID of the resource.
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.
id string
The ID of the Rule.
listenerId string
The ID of the listener to which the forwarding rule belongs.
loadBalancerId string
The ID of the Application Load Balancer (ALB) instance 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 GetRulesRuleRuleAction[]
The actions of the forwarding rules.
ruleConditions GetRulesRuleRuleCondition[]
The conditions of the forwarding rule.
ruleId string
The first ID of the resource.
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.
id str
The ID of the Rule.
listener_id str
The ID of the listener to which the forwarding rule belongs.
load_balancer_id str
The ID of the Application Load Balancer (ALB) instance 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[GetRulesRuleRuleAction]
The actions of the forwarding rules.
rule_conditions Sequence[GetRulesRuleRuleCondition]
The conditions of the forwarding rule.
rule_id str
The first ID of the resource.
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.

GetRulesRuleRuleAction

FixedResponseConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleActionFixedResponseConfig>
The configuration of the fixed response.
ForwardGroupConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleActionForwardGroupConfig>
The configurations of the destination server groups.
InsertHeaderConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleActionInsertHeaderConfig>
The configuration of the inserted header field.
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.
RedirectConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleActionRedirectConfig>
The configuration of the external redirect action.
RewriteConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleActionRewriteConfig>
The redirect action within ALB.
Type string
The type of the forwarding rule.
FixedResponseConfigs []GetRulesRuleRuleActionFixedResponseConfig
The configuration of the fixed response.
ForwardGroupConfigs []GetRulesRuleRuleActionForwardGroupConfig
The configurations of the destination server groups.
InsertHeaderConfigs []GetRulesRuleRuleActionInsertHeaderConfig
The configuration of the inserted header field.
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.
RedirectConfigs []GetRulesRuleRuleActionRedirectConfig
The configuration of the external redirect action.
RewriteConfigs []GetRulesRuleRuleActionRewriteConfig
The redirect action within ALB.
Type string
The type of the forwarding rule.
fixedResponseConfigs GetRulesRuleRuleActionFixedResponseConfig[]
The configuration of the fixed response.
forwardGroupConfigs GetRulesRuleRuleActionForwardGroupConfig[]
The configurations of the destination server groups.
insertHeaderConfigs GetRulesRuleRuleActionInsertHeaderConfig[]
The configuration of the inserted header field.
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.
redirectConfigs GetRulesRuleRuleActionRedirectConfig[]
The configuration of the external redirect action.
rewriteConfigs GetRulesRuleRuleActionRewriteConfig[]
The redirect action within ALB.
type string
The type of the forwarding rule.
fixed_response_configs Sequence[GetRulesRuleRuleActionFixedResponseConfig]
The configuration of the fixed response.
forward_group_configs Sequence[GetRulesRuleRuleActionForwardGroupConfig]
The configurations of the destination server groups.
insert_header_configs Sequence[GetRulesRuleRuleActionInsertHeaderConfig]
The configuration of the inserted header field.
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.
redirect_configs Sequence[GetRulesRuleRuleActionRedirectConfig]
The configuration of the external redirect action.
rewrite_configs Sequence[GetRulesRuleRuleActionRewriteConfig]
The redirect action within ALB.
type str
The type of the forwarding rule.

GetRulesRuleRuleActionFixedResponseConfig

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.

GetRulesRuleRuleActionForwardGroupConfig

ServerGroupTuples []GetRulesRuleRuleActionForwardGroupConfigServerGroupTuple
The destination server group to which requests are forwarded.
serverGroupTuples GetRulesRuleRuleActionForwardGroupConfigServerGroupTuple[]
The destination server group to which requests are forwarded.
server_group_tuples Sequence[GetRulesRuleRuleActionForwardGroupConfigServerGroupTuple]
The destination server group to which requests are forwarded.

GetRulesRuleRuleActionForwardGroupConfigServerGroupTuple

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.

GetRulesRuleRuleActionInsertHeaderConfig

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.

GetRulesRuleRuleActionRedirectConfig

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.

GetRulesRuleRuleActionRewriteConfig

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.

GetRulesRuleRuleCondition

CookieConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleConditionCookieConfig>
The configuration of the cookie.
HeaderConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleConditionHeaderConfig>
The configuration of the header field.
HostConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleConditionHostConfig>
The configuration of the host.
MethodConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleConditionMethodConfig>
The configuration of the request method.
PathConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleConditionPathConfig>
The configuration of the path for the request to be forwarded.
QueryStringConfigs List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleConditionQueryStringConfig>
The configuration of the query string.
Type string
The type of the forwarding rule.
CookieConfigs []GetRulesRuleRuleConditionCookieConfig
The configuration of the cookie.
HeaderConfigs []GetRulesRuleRuleConditionHeaderConfig
The configuration of the header field.
HostConfigs []GetRulesRuleRuleConditionHostConfig
The configuration of the host.
MethodConfigs []GetRulesRuleRuleConditionMethodConfig
The configuration of the request method.
PathConfigs []GetRulesRuleRuleConditionPathConfig
The configuration of the path for the request to be forwarded.
QueryStringConfigs []GetRulesRuleRuleConditionQueryStringConfig
The configuration of the query string.
Type string
The type of the forwarding rule.
cookieConfigs GetRulesRuleRuleConditionCookieConfig[]
The configuration of the cookie.
headerConfigs GetRulesRuleRuleConditionHeaderConfig[]
The configuration of the header field.
hostConfigs GetRulesRuleRuleConditionHostConfig[]
The configuration of the host.
methodConfigs GetRulesRuleRuleConditionMethodConfig[]
The configuration of the request method.
pathConfigs GetRulesRuleRuleConditionPathConfig[]
The configuration of the path for the request to be forwarded.
queryStringConfigs GetRulesRuleRuleConditionQueryStringConfig[]
The configuration of the query string.
type string
The type of the forwarding rule.
cookie_configs Sequence[GetRulesRuleRuleConditionCookieConfig]
The configuration of the cookie.
header_configs Sequence[GetRulesRuleRuleConditionHeaderConfig]
The configuration of the header field.
host_configs Sequence[GetRulesRuleRuleConditionHostConfig]
The configuration of the host.
method_configs Sequence[GetRulesRuleRuleConditionMethodConfig]
The configuration of the request method.
path_configs Sequence[GetRulesRuleRuleConditionPathConfig]
The configuration of the path for the request to be forwarded.
query_string_configs Sequence[GetRulesRuleRuleConditionQueryStringConfig]
The configuration of the query string.
type str
The type of the forwarding rule.

GetRulesRuleRuleConditionCookieConfig

Values List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleConditionCookieConfigValue>
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
Values []GetRulesRuleRuleConditionCookieConfigValue
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values GetRulesRuleRuleConditionCookieConfigValue[]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values Sequence[GetRulesRuleRuleConditionCookieConfigValue]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).

GetRulesRuleRuleConditionCookieConfigValue

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: # [ ] { } \ | < > &.

GetRulesRuleRuleConditionHeaderConfig

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 path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
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 path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
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 path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
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 path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).

GetRulesRuleRuleConditionHostConfig

Values List<string>
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
Values []string
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values string[]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values Sequence[str]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).

GetRulesRuleRuleConditionMethodConfig

Values List<string>
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
Values []string
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values string[]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values Sequence[str]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).

GetRulesRuleRuleConditionPathConfig

Values List<string>
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
Values []string
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values string[]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values Sequence[str]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).

GetRulesRuleRuleConditionQueryStringConfig

Values List<Pulumi.AliCloud.Alb.Inputs.GetRulesRuleRuleConditionQueryStringConfigValue>
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
Values []GetRulesRuleRuleConditionQueryStringConfigValue
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values GetRulesRuleRuleConditionQueryStringConfigValue[]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).
values Sequence[GetRulesRuleRuleConditionQueryStringConfigValue]
The path of the request to be forwarded. The path must be 1 to 128 characters in length and must start with a forward slash (/). The path can contain letters, digits, and the following special characters: $ - _ . + / & ~ @ :. It cannot contain the following special characters: " % # ; ! ( ) [ ] ^ , “. The value is case-sensitive, and can contain asterisks (*) and question marks (?).

GetRulesRuleRuleConditionQueryStringConfigValue

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: # [ ] { } \ | < > &.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.