alicloud.alb.Rule
Explore with Pulumi AI
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 since v1.133.0.
NOTE: This version only supports forwarding rules in the request direction.
Create Rule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);@overload
def Rule(resource_name: str,
args: RuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Rule(resource_name: str,
opts: Optional[ResourceOptions] = 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,
direction: Optional[str] = None,
dry_run: Optional[bool] = None)func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)type: alicloud:alb:Rule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var ruleResource = new AliCloud.Alb.Rule("ruleResource", new()
{
ListenerId = "string",
Priority = 0,
RuleActions = new[]
{
new AliCloud.Alb.Inputs.RuleRuleActionArgs
{
Order = 0,
Type = "string",
CorsConfig = new AliCloud.Alb.Inputs.RuleRuleActionCorsConfigArgs
{
AllowCredentials = "string",
AllowHeaders = new[]
{
"string",
},
AllowMethods = new[]
{
"string",
},
AllowOrigins = new[]
{
"string",
},
ExposeHeaders = new[]
{
"string",
},
MaxAge = 0,
},
FixedResponseConfig = new AliCloud.Alb.Inputs.RuleRuleActionFixedResponseConfigArgs
{
Content = "string",
ContentType = "string",
HttpCode = "string",
},
ForwardGroupConfig = new AliCloud.Alb.Inputs.RuleRuleActionForwardGroupConfigArgs
{
ServerGroupStickySession = new AliCloud.Alb.Inputs.RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs
{
Enabled = false,
Timeout = 0,
},
ServerGroupTuples = new[]
{
new AliCloud.Alb.Inputs.RuleRuleActionForwardGroupConfigServerGroupTupleArgs
{
ServerGroupId = "string",
Weight = 0,
},
},
},
InsertHeaderConfig = new AliCloud.Alb.Inputs.RuleRuleActionInsertHeaderConfigArgs
{
Key = "string",
Value = "string",
ValueType = "string",
},
RedirectConfig = new AliCloud.Alb.Inputs.RuleRuleActionRedirectConfigArgs
{
Host = "string",
HttpCode = "string",
Path = "string",
Port = "string",
Protocol = "string",
Query = "string",
},
RemoveHeaderConfig = new AliCloud.Alb.Inputs.RuleRuleActionRemoveHeaderConfigArgs
{
Key = "string",
},
RewriteConfig = new AliCloud.Alb.Inputs.RuleRuleActionRewriteConfigArgs
{
Host = "string",
Path = "string",
Query = "string",
},
TrafficLimitConfig = new AliCloud.Alb.Inputs.RuleRuleActionTrafficLimitConfigArgs
{
PerIpQps = 0,
Qps = 0,
},
TrafficMirrorConfig = new AliCloud.Alb.Inputs.RuleRuleActionTrafficMirrorConfigArgs
{
MirrorGroupConfig = new AliCloud.Alb.Inputs.RuleRuleActionTrafficMirrorConfigMirrorGroupConfigArgs
{
ServerGroupTuples = new[]
{
new AliCloud.Alb.Inputs.RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTupleArgs
{
ServerGroupId = "string",
},
},
},
TargetType = "string",
},
},
},
RuleConditions = new[]
{
new AliCloud.Alb.Inputs.RuleRuleConditionArgs
{
Type = "string",
CookieConfig = new AliCloud.Alb.Inputs.RuleRuleConditionCookieConfigArgs
{
Values = new[]
{
new AliCloud.Alb.Inputs.RuleRuleConditionCookieConfigValueArgs
{
Key = "string",
Value = "string",
},
},
},
HeaderConfig = new AliCloud.Alb.Inputs.RuleRuleConditionHeaderConfigArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
HostConfig = new AliCloud.Alb.Inputs.RuleRuleConditionHostConfigArgs
{
Values = new[]
{
"string",
},
},
MethodConfig = new AliCloud.Alb.Inputs.RuleRuleConditionMethodConfigArgs
{
Values = new[]
{
"string",
},
},
PathConfig = new AliCloud.Alb.Inputs.RuleRuleConditionPathConfigArgs
{
Values = new[]
{
"string",
},
},
QueryStringConfig = new AliCloud.Alb.Inputs.RuleRuleConditionQueryStringConfigArgs
{
Values = new[]
{
new AliCloud.Alb.Inputs.RuleRuleConditionQueryStringConfigValueArgs
{
Key = "string",
Value = "string",
},
},
},
ResponseHeaderConfig = new AliCloud.Alb.Inputs.RuleRuleConditionResponseHeaderConfigArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
ResponseStatusCodeConfig = new AliCloud.Alb.Inputs.RuleRuleConditionResponseStatusCodeConfigArgs
{
Values = new[]
{
"string",
},
},
SourceIpConfig = new AliCloud.Alb.Inputs.RuleRuleConditionSourceIpConfigArgs
{
Values = new[]
{
"string",
},
},
},
},
RuleName = "string",
Direction = "string",
DryRun = false,
});
example, err := alb.NewRule(ctx, "ruleResource", &alb.RuleArgs{
ListenerId: pulumi.String("string"),
Priority: pulumi.Int(0),
RuleActions: alb.RuleRuleActionArray{
&alb.RuleRuleActionArgs{
Order: pulumi.Int(0),
Type: pulumi.String("string"),
CorsConfig: &alb.RuleRuleActionCorsConfigArgs{
AllowCredentials: pulumi.String("string"),
AllowHeaders: pulumi.StringArray{
pulumi.String("string"),
},
AllowMethods: pulumi.StringArray{
pulumi.String("string"),
},
AllowOrigins: pulumi.StringArray{
pulumi.String("string"),
},
ExposeHeaders: pulumi.StringArray{
pulumi.String("string"),
},
MaxAge: pulumi.Int(0),
},
FixedResponseConfig: &alb.RuleRuleActionFixedResponseConfigArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
HttpCode: pulumi.String("string"),
},
ForwardGroupConfig: &alb.RuleRuleActionForwardGroupConfigArgs{
ServerGroupStickySession: &alb.RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs{
Enabled: pulumi.Bool(false),
Timeout: pulumi.Int(0),
},
ServerGroupTuples: alb.RuleRuleActionForwardGroupConfigServerGroupTupleArray{
&alb.RuleRuleActionForwardGroupConfigServerGroupTupleArgs{
ServerGroupId: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
},
InsertHeaderConfig: &alb.RuleRuleActionInsertHeaderConfigArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
ValueType: pulumi.String("string"),
},
RedirectConfig: &alb.RuleRuleActionRedirectConfigArgs{
Host: pulumi.String("string"),
HttpCode: pulumi.String("string"),
Path: pulumi.String("string"),
Port: pulumi.String("string"),
Protocol: pulumi.String("string"),
Query: pulumi.String("string"),
},
RemoveHeaderConfig: &alb.RuleRuleActionRemoveHeaderConfigArgs{
Key: pulumi.String("string"),
},
RewriteConfig: &alb.RuleRuleActionRewriteConfigArgs{
Host: pulumi.String("string"),
Path: pulumi.String("string"),
Query: pulumi.String("string"),
},
TrafficLimitConfig: &alb.RuleRuleActionTrafficLimitConfigArgs{
PerIpQps: pulumi.Int(0),
Qps: pulumi.Int(0),
},
TrafficMirrorConfig: &alb.RuleRuleActionTrafficMirrorConfigArgs{
MirrorGroupConfig: &alb.RuleRuleActionTrafficMirrorConfigMirrorGroupConfigArgs{
ServerGroupTuples: alb.RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTupleArray{
&alb.RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTupleArgs{
ServerGroupId: pulumi.String("string"),
},
},
},
TargetType: pulumi.String("string"),
},
},
},
RuleConditions: alb.RuleRuleConditionArray{
&alb.RuleRuleConditionArgs{
Type: pulumi.String("string"),
CookieConfig: &alb.RuleRuleConditionCookieConfigArgs{
Values: alb.RuleRuleConditionCookieConfigValueArray{
&alb.RuleRuleConditionCookieConfigValueArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
HeaderConfig: &alb.RuleRuleConditionHeaderConfigArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
HostConfig: &alb.RuleRuleConditionHostConfigArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
MethodConfig: &alb.RuleRuleConditionMethodConfigArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
PathConfig: &alb.RuleRuleConditionPathConfigArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
QueryStringConfig: &alb.RuleRuleConditionQueryStringConfigArgs{
Values: alb.RuleRuleConditionQueryStringConfigValueArray{
&alb.RuleRuleConditionQueryStringConfigValueArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
ResponseHeaderConfig: &alb.RuleRuleConditionResponseHeaderConfigArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
ResponseStatusCodeConfig: &alb.RuleRuleConditionResponseStatusCodeConfigArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
SourceIpConfig: &alb.RuleRuleConditionSourceIpConfigArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
RuleName: pulumi.String("string"),
Direction: pulumi.String("string"),
DryRun: pulumi.Bool(false),
})
var ruleResource = new com.pulumi.alicloud.alb.Rule("ruleResource", com.pulumi.alicloud.alb.RuleArgs.builder()
.listenerId("string")
.priority(0)
.ruleActions(RuleRuleActionArgs.builder()
.order(0)
.type("string")
.corsConfig(RuleRuleActionCorsConfigArgs.builder()
.allowCredentials("string")
.allowHeaders("string")
.allowMethods("string")
.allowOrigins("string")
.exposeHeaders("string")
.maxAge(0)
.build())
.fixedResponseConfig(RuleRuleActionFixedResponseConfigArgs.builder()
.content("string")
.contentType("string")
.httpCode("string")
.build())
.forwardGroupConfig(RuleRuleActionForwardGroupConfigArgs.builder()
.serverGroupStickySession(RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs.builder()
.enabled(false)
.timeout(0)
.build())
.serverGroupTuples(RuleRuleActionForwardGroupConfigServerGroupTupleArgs.builder()
.serverGroupId("string")
.weight(0)
.build())
.build())
.insertHeaderConfig(RuleRuleActionInsertHeaderConfigArgs.builder()
.key("string")
.value("string")
.valueType("string")
.build())
.redirectConfig(RuleRuleActionRedirectConfigArgs.builder()
.host("string")
.httpCode("string")
.path("string")
.port("string")
.protocol("string")
.query("string")
.build())
.removeHeaderConfig(RuleRuleActionRemoveHeaderConfigArgs.builder()
.key("string")
.build())
.rewriteConfig(RuleRuleActionRewriteConfigArgs.builder()
.host("string")
.path("string")
.query("string")
.build())
.trafficLimitConfig(RuleRuleActionTrafficLimitConfigArgs.builder()
.perIpQps(0)
.qps(0)
.build())
.trafficMirrorConfig(RuleRuleActionTrafficMirrorConfigArgs.builder()
.mirrorGroupConfig(RuleRuleActionTrafficMirrorConfigMirrorGroupConfigArgs.builder()
.serverGroupTuples(RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTupleArgs.builder()
.serverGroupId("string")
.build())
.build())
.targetType("string")
.build())
.build())
.ruleConditions(RuleRuleConditionArgs.builder()
.type("string")
.cookieConfig(RuleRuleConditionCookieConfigArgs.builder()
.values(RuleRuleConditionCookieConfigValueArgs.builder()
.key("string")
.value("string")
.build())
.build())
.headerConfig(RuleRuleConditionHeaderConfigArgs.builder()
.key("string")
.values("string")
.build())
.hostConfig(RuleRuleConditionHostConfigArgs.builder()
.values("string")
.build())
.methodConfig(RuleRuleConditionMethodConfigArgs.builder()
.values("string")
.build())
.pathConfig(RuleRuleConditionPathConfigArgs.builder()
.values("string")
.build())
.queryStringConfig(RuleRuleConditionQueryStringConfigArgs.builder()
.values(RuleRuleConditionQueryStringConfigValueArgs.builder()
.key("string")
.value("string")
.build())
.build())
.responseHeaderConfig(RuleRuleConditionResponseHeaderConfigArgs.builder()
.key("string")
.values("string")
.build())
.responseStatusCodeConfig(RuleRuleConditionResponseStatusCodeConfigArgs.builder()
.values("string")
.build())
.sourceIpConfig(RuleRuleConditionSourceIpConfigArgs.builder()
.values("string")
.build())
.build())
.ruleName("string")
.direction("string")
.dryRun(false)
.build());
rule_resource = alicloud.alb.Rule("ruleResource",
listener_id="string",
priority=0,
rule_actions=[{
"order": 0,
"type": "string",
"cors_config": {
"allow_credentials": "string",
"allow_headers": ["string"],
"allow_methods": ["string"],
"allow_origins": ["string"],
"expose_headers": ["string"],
"max_age": 0,
},
"fixed_response_config": {
"content": "string",
"content_type": "string",
"http_code": "string",
},
"forward_group_config": {
"server_group_sticky_session": {
"enabled": False,
"timeout": 0,
},
"server_group_tuples": [{
"server_group_id": "string",
"weight": 0,
}],
},
"insert_header_config": {
"key": "string",
"value": "string",
"value_type": "string",
},
"redirect_config": {
"host": "string",
"http_code": "string",
"path": "string",
"port": "string",
"protocol": "string",
"query": "string",
},
"remove_header_config": {
"key": "string",
},
"rewrite_config": {
"host": "string",
"path": "string",
"query": "string",
},
"traffic_limit_config": {
"per_ip_qps": 0,
"qps": 0,
},
"traffic_mirror_config": {
"mirror_group_config": {
"server_group_tuples": [{
"server_group_id": "string",
}],
},
"target_type": "string",
},
}],
rule_conditions=[{
"type": "string",
"cookie_config": {
"values": [{
"key": "string",
"value": "string",
}],
},
"header_config": {
"key": "string",
"values": ["string"],
},
"host_config": {
"values": ["string"],
},
"method_config": {
"values": ["string"],
},
"path_config": {
"values": ["string"],
},
"query_string_config": {
"values": [{
"key": "string",
"value": "string",
}],
},
"response_header_config": {
"key": "string",
"values": ["string"],
},
"response_status_code_config": {
"values": ["string"],
},
"source_ip_config": {
"values": ["string"],
},
}],
rule_name="string",
direction="string",
dry_run=False)
const ruleResource = new alicloud.alb.Rule("ruleResource", {
listenerId: "string",
priority: 0,
ruleActions: [{
order: 0,
type: "string",
corsConfig: {
allowCredentials: "string",
allowHeaders: ["string"],
allowMethods: ["string"],
allowOrigins: ["string"],
exposeHeaders: ["string"],
maxAge: 0,
},
fixedResponseConfig: {
content: "string",
contentType: "string",
httpCode: "string",
},
forwardGroupConfig: {
serverGroupStickySession: {
enabled: false,
timeout: 0,
},
serverGroupTuples: [{
serverGroupId: "string",
weight: 0,
}],
},
insertHeaderConfig: {
key: "string",
value: "string",
valueType: "string",
},
redirectConfig: {
host: "string",
httpCode: "string",
path: "string",
port: "string",
protocol: "string",
query: "string",
},
removeHeaderConfig: {
key: "string",
},
rewriteConfig: {
host: "string",
path: "string",
query: "string",
},
trafficLimitConfig: {
perIpQps: 0,
qps: 0,
},
trafficMirrorConfig: {
mirrorGroupConfig: {
serverGroupTuples: [{
serverGroupId: "string",
}],
},
targetType: "string",
},
}],
ruleConditions: [{
type: "string",
cookieConfig: {
values: [{
key: "string",
value: "string",
}],
},
headerConfig: {
key: "string",
values: ["string"],
},
hostConfig: {
values: ["string"],
},
methodConfig: {
values: ["string"],
},
pathConfig: {
values: ["string"],
},
queryStringConfig: {
values: [{
key: "string",
value: "string",
}],
},
responseHeaderConfig: {
key: "string",
values: ["string"],
},
responseStatusCodeConfig: {
values: ["string"],
},
sourceIpConfig: {
values: ["string"],
},
}],
ruleName: "string",
direction: "string",
dryRun: false,
});
type: alicloud:alb:Rule
properties:
direction: string
dryRun: false
listenerId: string
priority: 0
ruleActions:
- corsConfig:
allowCredentials: string
allowHeaders:
- string
allowMethods:
- string
allowOrigins:
- string
exposeHeaders:
- string
maxAge: 0
fixedResponseConfig:
content: string
contentType: string
httpCode: string
forwardGroupConfig:
serverGroupStickySession:
enabled: false
timeout: 0
serverGroupTuples:
- serverGroupId: string
weight: 0
insertHeaderConfig:
key: string
value: string
valueType: string
order: 0
redirectConfig:
host: string
httpCode: string
path: string
port: string
protocol: string
query: string
removeHeaderConfig:
key: string
rewriteConfig:
host: string
path: string
query: string
trafficLimitConfig:
perIpQps: 0
qps: 0
trafficMirrorConfig:
mirrorGroupConfig:
serverGroupTuples:
- serverGroupId: string
targetType: string
type: string
ruleConditions:
- cookieConfig:
values:
- key: string
value: string
headerConfig:
key: string
values:
- string
hostConfig:
values:
- string
methodConfig:
values:
- string
pathConfig:
values:
- string
queryStringConfig:
values:
- key: string
value: string
responseHeaderConfig:
key: string
values:
- string
responseStatusCodeConfig:
values:
- string
sourceIpConfig:
values:
- string
type: string
ruleName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Rule resource accepts the following input properties:
- Listener
Id 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.
- Rule
Actions List<Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Action> - The actions of the forwarding rules. See
rule_actionsbelow. - Rule
Conditions List<Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Condition> - The conditions of the forwarding rule. See
rule_conditionsbelow. - Rule
Name 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.
- Direction string
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- Dry
Run bool - Specifies whether to precheck this request.
- Listener
Id 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.
- Rule
Actions []RuleRule Action Args - The actions of the forwarding rules. See
rule_actionsbelow. - Rule
Conditions []RuleRule Condition Args - The conditions of the forwarding rule. See
rule_conditionsbelow. - Rule
Name 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.
- Direction string
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- Dry
Run bool - Specifies whether to precheck this request.
- listener
Id 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.
- rule
Actions List<RuleRule Action> - The actions of the forwarding rules. See
rule_actionsbelow. - rule
Conditions List<RuleRule Condition> - The conditions of the forwarding rule. See
rule_conditionsbelow. - rule
Name 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.
- direction String
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- dry
Run Boolean - Specifies whether to precheck this request.
- listener
Id 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.
- rule
Actions RuleRule Action[] - The actions of the forwarding rules. See
rule_actionsbelow. - rule
Conditions RuleRule Condition[] - The conditions of the forwarding rule. See
rule_conditionsbelow. - rule
Name 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.
- direction string
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- dry
Run 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[RuleRule Action Args] - The actions of the forwarding rules. See
rule_actionsbelow. - rule_
conditions Sequence[RuleRule Condition Args] - The conditions of the forwarding rule. See
rule_conditionsbelow. - 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.
- direction str
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- dry_
run bool - Specifies whether to precheck this request.
- listener
Id 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.
- rule
Actions List<Property Map> - The actions of the forwarding rules. See
rule_actionsbelow. - rule
Conditions List<Property Map> - The conditions of the forwarding rule. See
rule_conditionsbelow. - rule
Name 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.
- direction String
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- dry
Run 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:
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,
direction: Optional[str] = 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) -> Rulefunc 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)resources: _: type: alicloud:alb:Rule get: id: ${id}- 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.
- Direction string
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- Dry
Run bool - Specifies whether to precheck this request.
- Listener
Id 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.
- Rule
Actions List<Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Action> - The actions of the forwarding rules. See
rule_actionsbelow. - Rule
Conditions List<Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Condition> - The conditions of the forwarding rule. See
rule_conditionsbelow. - Rule
Name 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.
- Direction string
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- Dry
Run bool - Specifies whether to precheck this request.
- Listener
Id 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.
- Rule
Actions []RuleRule Action Args - The actions of the forwarding rules. See
rule_actionsbelow. - Rule
Conditions []RuleRule Condition Args - The conditions of the forwarding rule. See
rule_conditionsbelow. - Rule
Name 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.
- direction String
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- dry
Run Boolean - Specifies whether to precheck this request.
- listener
Id 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.
- rule
Actions List<RuleRule Action> - The actions of the forwarding rules. See
rule_actionsbelow. - rule
Conditions List<RuleRule Condition> - The conditions of the forwarding rule. See
rule_conditionsbelow. - rule
Name 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.
- direction string
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- dry
Run boolean - Specifies whether to precheck this request.
- listener
Id 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.
- rule
Actions RuleRule Action[] - The actions of the forwarding rules. See
rule_actionsbelow. - rule
Conditions RuleRule Condition[] - The conditions of the forwarding rule. See
rule_conditionsbelow. - rule
Name 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.
- direction str
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- 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[RuleRule Action Args] - The actions of the forwarding rules. See
rule_actionsbelow. - rule_
conditions Sequence[RuleRule Condition Args] - The conditions of the forwarding rule. See
rule_conditionsbelow. - 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.
- direction String
- The direction to which the forwarding rule is applied. Default value:
Request. Valid values:Request: The forwarding rule is applied to the client requests received by ALB.Response: The forwarding rule is applied to the responses returned by backend servers.
- dry
Run Boolean - Specifies whether to precheck this request.
- listener
Id 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.
- rule
Actions List<Property Map> - The actions of the forwarding rules. See
rule_actionsbelow. - rule
Conditions List<Property Map> - The conditions of the forwarding rule. See
rule_conditionsbelow. - rule
Name 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, RuleRuleActionArgs
- Order int
- The order of the forwarding rule actions. Valid values:
1to50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique. - Type string
- The action type. Valid values:
ForwardGroup,Redirect,FixedResponse,Rewrite,InsertHeader,RemoveHeader,TrafficLimit,TrafficMirrorandCors. Note: The preceding actions can be classified into two types:FinalType: A forwarding rule can contain only oneFinalTypeaction, which is executed last. This type of action can contain only oneForwardGroup,RedirectorFixedResponseaction.ExtType: A forwarding rule can contain one or moreExtTypeactions, which are executed beforeFinalTypeactions and need to coexist with theFinalTypeactions. This type of action can contain multipleInsertHeaderactions or oneRewriteaction. NOTE: TheTrafficLimitandTrafficMirroroption is available since 1.162.0. NOTE: From version 1.205.0,typecan be set toCors. - Cors
Config Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Action Cors Config - Request forwarding based on CORS. See
cors_configbelow. - Fixed
Response Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Action Fixed Response Config - The configuration of the fixed response. See
fixed_response_configbelow. - Forward
Group Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Action Forward Group Config - The forward response action within ALB. See
forward_group_configbelow. - Insert
Header Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Action Insert Header Config - The configuration of the inserted header field. See
insert_header_configbelow. - Redirect
Config Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Action Redirect Config - The configuration of the external redirect action. See
redirect_configbelow. - Remove
Header Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Action Remove Header Config - The configuration of the inserted header field. See
remove_header_configbelow. - Rewrite
Config Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Action Rewrite Config - The redirect action within ALB. See
rewrite_configbelow. - Traffic
Limit Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Action Traffic Limit Config - The Flow speed limit. See
traffic_limit_configbelow. - Traffic
Mirror Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Action Traffic Mirror Config - The Traffic mirroring. See
traffic_mirror_configbelow.
- Order int
- The order of the forwarding rule actions. Valid values:
1to50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique. - Type string
- The action type. Valid values:
ForwardGroup,Redirect,FixedResponse,Rewrite,InsertHeader,RemoveHeader,TrafficLimit,TrafficMirrorandCors. Note: The preceding actions can be classified into two types:FinalType: A forwarding rule can contain only oneFinalTypeaction, which is executed last. This type of action can contain only oneForwardGroup,RedirectorFixedResponseaction.ExtType: A forwarding rule can contain one or moreExtTypeactions, which are executed beforeFinalTypeactions and need to coexist with theFinalTypeactions. This type of action can contain multipleInsertHeaderactions or oneRewriteaction. NOTE: TheTrafficLimitandTrafficMirroroption is available since 1.162.0. NOTE: From version 1.205.0,typecan be set toCors. - Cors
Config RuleRule Action Cors Config - Request forwarding based on CORS. See
cors_configbelow. - Fixed
Response RuleConfig Rule Action Fixed Response Config - The configuration of the fixed response. See
fixed_response_configbelow. - Forward
Group RuleConfig Rule Action Forward Group Config - The forward response action within ALB. See
forward_group_configbelow. - Insert
Header RuleConfig Rule Action Insert Header Config - The configuration of the inserted header field. See
insert_header_configbelow. - Redirect
Config RuleRule Action Redirect Config - The configuration of the external redirect action. See
redirect_configbelow. - Remove
Header RuleConfig Rule Action Remove Header Config - The configuration of the inserted header field. See
remove_header_configbelow. - Rewrite
Config RuleRule Action Rewrite Config - The redirect action within ALB. See
rewrite_configbelow. - Traffic
Limit RuleConfig Rule Action Traffic Limit Config - The Flow speed limit. See
traffic_limit_configbelow. - Traffic
Mirror RuleConfig Rule Action Traffic Mirror Config - The Traffic mirroring. See
traffic_mirror_configbelow.
- order Integer
- The order of the forwarding rule actions. Valid values:
1to50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique. - type String
- The action type. Valid values:
ForwardGroup,Redirect,FixedResponse,Rewrite,InsertHeader,RemoveHeader,TrafficLimit,TrafficMirrorandCors. Note: The preceding actions can be classified into two types:FinalType: A forwarding rule can contain only oneFinalTypeaction, which is executed last. This type of action can contain only oneForwardGroup,RedirectorFixedResponseaction.ExtType: A forwarding rule can contain one or moreExtTypeactions, which are executed beforeFinalTypeactions and need to coexist with theFinalTypeactions. This type of action can contain multipleInsertHeaderactions or oneRewriteaction. NOTE: TheTrafficLimitandTrafficMirroroption is available since 1.162.0. NOTE: From version 1.205.0,typecan be set toCors. - cors
Config RuleRule Action Cors Config - Request forwarding based on CORS. See
cors_configbelow. - fixed
Response RuleConfig Rule Action Fixed Response Config - The configuration of the fixed response. See
fixed_response_configbelow. - forward
Group RuleConfig Rule Action Forward Group Config - The forward response action within ALB. See
forward_group_configbelow. - insert
Header RuleConfig Rule Action Insert Header Config - The configuration of the inserted header field. See
insert_header_configbelow. - redirect
Config RuleRule Action Redirect Config - The configuration of the external redirect action. See
redirect_configbelow. - remove
Header RuleConfig Rule Action Remove Header Config - The configuration of the inserted header field. See
remove_header_configbelow. - rewrite
Config RuleRule Action Rewrite Config - The redirect action within ALB. See
rewrite_configbelow. - traffic
Limit RuleConfig Rule Action Traffic Limit Config - The Flow speed limit. See
traffic_limit_configbelow. - traffic
Mirror RuleConfig Rule Action Traffic Mirror Config - The Traffic mirroring. See
traffic_mirror_configbelow.
- order number
- The order of the forwarding rule actions. Valid values:
1to50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique. - type string
- The action type. Valid values:
ForwardGroup,Redirect,FixedResponse,Rewrite,InsertHeader,RemoveHeader,TrafficLimit,TrafficMirrorandCors. Note: The preceding actions can be classified into two types:FinalType: A forwarding rule can contain only oneFinalTypeaction, which is executed last. This type of action can contain only oneForwardGroup,RedirectorFixedResponseaction.ExtType: A forwarding rule can contain one or moreExtTypeactions, which are executed beforeFinalTypeactions and need to coexist with theFinalTypeactions. This type of action can contain multipleInsertHeaderactions or oneRewriteaction. NOTE: TheTrafficLimitandTrafficMirroroption is available since 1.162.0. NOTE: From version 1.205.0,typecan be set toCors. - cors
Config RuleRule Action Cors Config - Request forwarding based on CORS. See
cors_configbelow. - fixed
Response RuleConfig Rule Action Fixed Response Config - The configuration of the fixed response. See
fixed_response_configbelow. - forward
Group RuleConfig Rule Action Forward Group Config - The forward response action within ALB. See
forward_group_configbelow. - insert
Header RuleConfig Rule Action Insert Header Config - The configuration of the inserted header field. See
insert_header_configbelow. - redirect
Config RuleRule Action Redirect Config - The configuration of the external redirect action. See
redirect_configbelow. - remove
Header RuleConfig Rule Action Remove Header Config - The configuration of the inserted header field. See
remove_header_configbelow. - rewrite
Config RuleRule Action Rewrite Config - The redirect action within ALB. See
rewrite_configbelow. - traffic
Limit RuleConfig Rule Action Traffic Limit Config - The Flow speed limit. See
traffic_limit_configbelow. - traffic
Mirror RuleConfig Rule Action Traffic Mirror Config - The Traffic mirroring. See
traffic_mirror_configbelow.
- order int
- The order of the forwarding rule actions. Valid values:
1to50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique. - type str
- The action type. Valid values:
ForwardGroup,Redirect,FixedResponse,Rewrite,InsertHeader,RemoveHeader,TrafficLimit,TrafficMirrorandCors. Note: The preceding actions can be classified into two types:FinalType: A forwarding rule can contain only oneFinalTypeaction, which is executed last. This type of action can contain only oneForwardGroup,RedirectorFixedResponseaction.ExtType: A forwarding rule can contain one or moreExtTypeactions, which are executed beforeFinalTypeactions and need to coexist with theFinalTypeactions. This type of action can contain multipleInsertHeaderactions or oneRewriteaction. NOTE: TheTrafficLimitandTrafficMirroroption is available since 1.162.0. NOTE: From version 1.205.0,typecan be set toCors. - cors_
config RuleRule Action Cors Config - Request forwarding based on CORS. See
cors_configbelow. - fixed_
response_ Ruleconfig Rule Action Fixed Response Config - The configuration of the fixed response. See
fixed_response_configbelow. - forward_
group_ Ruleconfig Rule Action Forward Group Config - The forward response action within ALB. See
forward_group_configbelow. - insert_
header_ Ruleconfig Rule Action Insert Header Config - The configuration of the inserted header field. See
insert_header_configbelow. - redirect_
config RuleRule Action Redirect Config - The configuration of the external redirect action. See
redirect_configbelow. - remove_
header_ Ruleconfig Rule Action Remove Header Config - The configuration of the inserted header field. See
remove_header_configbelow. - rewrite_
config RuleRule Action Rewrite Config - The redirect action within ALB. See
rewrite_configbelow. - traffic_
limit_ Ruleconfig Rule Action Traffic Limit Config - The Flow speed limit. See
traffic_limit_configbelow. - traffic_
mirror_ Ruleconfig Rule Action Traffic Mirror Config - The Traffic mirroring. See
traffic_mirror_configbelow.
- order Number
- The order of the forwarding rule actions. Valid values:
1to50000. The actions are performed in ascending order. You cannot leave this parameter empty. Each value must be unique. - type String
- The action type. Valid values:
ForwardGroup,Redirect,FixedResponse,Rewrite,InsertHeader,RemoveHeader,TrafficLimit,TrafficMirrorandCors. Note: The preceding actions can be classified into two types:FinalType: A forwarding rule can contain only oneFinalTypeaction, which is executed last. This type of action can contain only oneForwardGroup,RedirectorFixedResponseaction.ExtType: A forwarding rule can contain one or moreExtTypeactions, which are executed beforeFinalTypeactions and need to coexist with theFinalTypeactions. This type of action can contain multipleInsertHeaderactions or oneRewriteaction. NOTE: TheTrafficLimitandTrafficMirroroption is available since 1.162.0. NOTE: From version 1.205.0,typecan be set toCors. - cors
Config Property Map - Request forwarding based on CORS. See
cors_configbelow. - fixed
Response Property MapConfig - The configuration of the fixed response. See
fixed_response_configbelow. - forward
Group Property MapConfig - The forward response action within ALB. See
forward_group_configbelow. - insert
Header Property MapConfig - The configuration of the inserted header field. See
insert_header_configbelow. - redirect
Config Property Map - The configuration of the external redirect action. See
redirect_configbelow. - remove
Header Property MapConfig - The configuration of the inserted header field. See
remove_header_configbelow. - rewrite
Config Property Map - The redirect action within ALB. See
rewrite_configbelow. - traffic
Limit Property MapConfig - The Flow speed limit. See
traffic_limit_configbelow. - traffic
Mirror Property MapConfig - The Traffic mirroring. See
traffic_mirror_configbelow.
RuleRuleActionCorsConfig, RuleRuleActionCorsConfigArgs
- Allow
Credentials string - Specifies whether credentials can be passed during CORS operations. Valid values:
on,off. - Allow
Headers List<string> - The allowed headers for CORS requests.
- Allow
Methods List<string> - The allowed HTTP methods for CORS requests. Valid values:
GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH. - Allow
Origins List<string> - The allowed origins of CORS requests.
- Expose
Headers List<string> - The headers that can be exposed.
- Max
Age int - The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values:
-1to172800.
- Allow
Credentials string - Specifies whether credentials can be passed during CORS operations. Valid values:
on,off. - Allow
Headers []string - The allowed headers for CORS requests.
- Allow
Methods []string - The allowed HTTP methods for CORS requests. Valid values:
GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH. - Allow
Origins []string - The allowed origins of CORS requests.
- Expose
Headers []string - The headers that can be exposed.
- Max
Age int - The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values:
-1to172800.
- allow
Credentials String - Specifies whether credentials can be passed during CORS operations. Valid values:
on,off. - allow
Headers List<String> - The allowed headers for CORS requests.
- allow
Methods List<String> - The allowed HTTP methods for CORS requests. Valid values:
GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH. - allow
Origins List<String> - The allowed origins of CORS requests.
- expose
Headers List<String> - The headers that can be exposed.
- max
Age Integer - The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values:
-1to172800.
- allow
Credentials string - Specifies whether credentials can be passed during CORS operations. Valid values:
on,off. - allow
Headers string[] - The allowed headers for CORS requests.
- allow
Methods string[] - The allowed HTTP methods for CORS requests. Valid values:
GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH. - allow
Origins string[] - The allowed origins of CORS requests.
- expose
Headers string[] - The headers that can be exposed.
- max
Age number - The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values:
-1to172800.
- allow_
credentials str - Specifies whether credentials can be passed during CORS operations. Valid values:
on,off. - allow_
headers Sequence[str] - The allowed headers for CORS requests.
- allow_
methods Sequence[str] - The allowed HTTP methods for CORS requests. Valid values:
GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH. - allow_
origins Sequence[str] - The allowed origins of CORS requests.
- expose_
headers Sequence[str] - The headers that can be exposed.
- max_
age int - The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values:
-1to172800.
- allow
Credentials String - Specifies whether credentials can be passed during CORS operations. Valid values:
on,off. - allow
Headers List<String> - The allowed headers for CORS requests.
- allow
Methods List<String> - The allowed HTTP methods for CORS requests. Valid values:
GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH. - allow
Origins List<String> - The allowed origins of CORS requests.
- expose
Headers List<String> - The headers that can be exposed.
- max
Age Number - The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values:
-1to172800.
RuleRuleActionFixedResponseConfig, RuleRuleActionFixedResponseConfigArgs
- Content string
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- Content
Type string - The format of the fixed response. Valid values:
text/plain,text/css,text/html,application/javascript, andapplication/json. - Http
Code string - The redirect method. Valid values:
301,302,303,307, and308.
- Content string
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- Content
Type string - The format of the fixed response. Valid values:
text/plain,text/css,text/html,application/javascript, andapplication/json. - Http
Code string - The redirect method. Valid values:
301,302,303,307, and308.
- content String
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- content
Type String - The format of the fixed response. Valid values:
text/plain,text/css,text/html,application/javascript, andapplication/json. - http
Code String - The redirect method. Valid values:
301,302,303,307, and308.
- content string
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- content
Type string - The format of the fixed response. Valid values:
text/plain,text/css,text/html,application/javascript, andapplication/json. - http
Code string - The redirect method. Valid values:
301,302,303,307, and308.
- 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, andapplication/json. - http_
code str - The redirect method. Valid values:
301,302,303,307, and308.
- content String
- The fixed response. The response cannot exceed 1 KB in size and can contain only ASCII characters.
- content
Type String - The format of the fixed response. Valid values:
text/plain,text/css,text/html,application/javascript, andapplication/json. - http
Code String - The redirect method. Valid values:
301,302,303,307, and308.
RuleRuleActionForwardGroupConfig, RuleRuleActionForwardGroupConfigArgs
- Server
Group Pulumi.Sticky Session Ali Cloud. Alb. Inputs. Rule Rule Action Forward Group Config Server Group Sticky Session - The configuration of session persistence for server groups. See
server_group_sticky_sessionbelow. - Server
Group List<Pulumi.Tuples Ali Cloud. Alb. Inputs. Rule Rule Action Forward Group Config Server Group Tuple> - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- Server
Group RuleSticky Session Rule Action Forward Group Config Server Group Sticky Session - The configuration of session persistence for server groups. See
server_group_sticky_sessionbelow. - Server
Group []RuleTuples Rule Action Forward Group Config Server Group Tuple - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- server
Group RuleSticky Session Rule Action Forward Group Config Server Group Sticky Session - The configuration of session persistence for server groups. See
server_group_sticky_sessionbelow. - server
Group List<RuleTuples Rule Action Forward Group Config Server Group Tuple> - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- server
Group RuleSticky Session Rule Action Forward Group Config Server Group Sticky Session - The configuration of session persistence for server groups. See
server_group_sticky_sessionbelow. - server
Group RuleTuples Rule Action Forward Group Config Server Group Tuple[] - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- server_
group_ Rulesticky_ session Rule Action Forward Group Config Server Group Sticky Session - The configuration of session persistence for server groups. See
server_group_sticky_sessionbelow. - server_
group_ Sequence[Ruletuples Rule Action Forward Group Config Server Group Tuple] - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- server
Group Property MapSticky Session - The configuration of session persistence for server groups. See
server_group_sticky_sessionbelow. - server
Group List<Property Map>Tuples - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
RuleRuleActionForwardGroupConfigServerGroupStickySession, RuleRuleActionForwardGroupConfigServerGroupStickySessionArgs
RuleRuleActionForwardGroupConfigServerGroupTuple, RuleRuleActionForwardGroupConfigServerGroupTupleArgs
- Server
Group stringId - 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 ofserver_group_tuplesis greater than 2.
- Server
Group stringId - 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 ofserver_group_tuplesis greater than 2.
- server
Group StringId - 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 ofserver_group_tuplesis greater than 2.
- server
Group stringId - 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 ofserver_group_tuplesis greater than 2.
- server_
group_ strid - 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 ofserver_group_tuplesis greater than 2.
- server
Group StringId - 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 ofserver_group_tuplesis greater than 2.
RuleRuleActionInsertHeaderConfig, RuleRuleActionInsertHeaderConfigArgs
- key str
- value str
- value_
type str - The value type of the inserted header field. Valid values:
UserDefined: a custom valueReferenceHeader: uses a field of the user request header.SystemDefined: a system value.
RuleRuleActionRedirectConfig, RuleRuleActionRedirectConfigArgs
- 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.
- Http
Code string - The redirect method. Valid values:
301,302,303,307, and308. - 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:
HTTPandHTTPS. 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.
- Http
Code string - The redirect method. Valid values:
301,302,303,307, and308. - 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:
HTTPandHTTPS. 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.
- http
Code String - The redirect method. Valid values:
301,302,303,307, and308. - 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:
HTTPandHTTPS. 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.
- http
Code string - The redirect method. Valid values:
301,302,303,307, and308. - 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:
HTTPandHTTPS. 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, and308. - 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:
HTTPandHTTPS. 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.
- http
Code String - The redirect method. Valid values:
301,302,303,307, and308. - 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:
HTTPandHTTPS. 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.
RuleRuleActionRemoveHeaderConfig, RuleRuleActionRemoveHeaderConfigArgs
- Key string
- Key string
- key String
- key string
- key str
- key String
RuleRuleActionRewriteConfig, RuleRuleActionRewriteConfigArgs
- 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, RuleRuleActionTrafficLimitConfigArgs
- per
Ip IntegerQps - The number of requests per second for a single IP address. Value range: 1~1000000. Note: If the QPS parameter is also configured, the value of the PerIpQps parameter must be smaller than the value of the QPS parameter.
- qps Integer
- The Number of requests per second. Valid values:
1to100000.
- per
Ip numberQps - The number of requests per second for a single IP address. Value range: 1~1000000. Note: If the QPS parameter is also configured, the value of the PerIpQps parameter must be smaller than the value of the QPS parameter.
- qps number
- The Number of requests per second. Valid values:
1to100000.
- per_
ip_ intqps - The number of requests per second for a single IP address. Value range: 1~1000000. Note: If the QPS parameter is also configured, the value of the PerIpQps parameter must be smaller than the value of the QPS parameter.
- qps int
- The Number of requests per second. Valid values:
1to100000.
- per
Ip NumberQps - The number of requests per second for a single IP address. Value range: 1~1000000. Note: If the QPS parameter is also configured, the value of the PerIpQps parameter must be smaller than the value of the QPS parameter.
- qps Number
- The Number of requests per second. Valid values:
1to100000.
RuleRuleActionTrafficMirrorConfig, RuleRuleActionTrafficMirrorConfigArgs
- Mirror
Group Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Action Traffic Mirror Config Mirror Group Config - The Traffic is mirrored to the server group. See
mirror_group_configbelow. - Target
Type string - The Mirror target type.
- Mirror
Group RuleConfig Rule Action Traffic Mirror Config Mirror Group Config - The Traffic is mirrored to the server group. See
mirror_group_configbelow. - Target
Type string - The Mirror target type.
- mirror
Group RuleConfig Rule Action Traffic Mirror Config Mirror Group Config - The Traffic is mirrored to the server group. See
mirror_group_configbelow. - target
Type String - The Mirror target type.
- mirror
Group RuleConfig Rule Action Traffic Mirror Config Mirror Group Config - The Traffic is mirrored to the server group. See
mirror_group_configbelow. - target
Type string - The Mirror target type.
- mirror_
group_ Ruleconfig Rule Action Traffic Mirror Config Mirror Group Config - The Traffic is mirrored to the server group. See
mirror_group_configbelow. - target_
type str - The Mirror target type.
- mirror
Group Property MapConfig - The Traffic is mirrored to the server group. See
mirror_group_configbelow. - target
Type String - The Mirror target type.
RuleRuleActionTrafficMirrorConfigMirrorGroupConfig, RuleRuleActionTrafficMirrorConfigMirrorGroupConfigArgs
- Server
Group List<Pulumi.Tuples Ali Cloud. Alb. Inputs. Rule Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple> - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- Server
Group []RuleTuples Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- server
Group List<RuleTuples Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple> - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- server
Group RuleTuples Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple[] - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- server_
group_ Sequence[Ruletuples Rule Action Traffic Mirror Config Mirror Group Config Server Group Tuple] - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
- server
Group List<Property Map>Tuples - The destination server group to which requests are forwarded. See
server_group_tuplesbelow.
RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTuple, RuleRuleActionTrafficMirrorConfigMirrorGroupConfigServerGroupTupleArgs
- Server
Group stringId - The ID of the destination server group to which requests are forwarded.
- Server
Group stringId - The ID of the destination server group to which requests are forwarded.
- server
Group StringId - The ID of the destination server group to which requests are forwarded.
- server
Group stringId - The ID of the destination server group to which requests are forwarded.
- server_
group_ strid - The ID of the destination server group to which requests are forwarded.
- server
Group StringId - The ID of the destination server group to which requests are forwarded.
RuleRuleCondition, RuleRuleConditionArgs
- Type string
- The type of the forwarding rule. Valid values:
Host: Requests are forwarded based on hosts.Path: Requests are forwarded based on the path.Header: Requests are forwarded based on the HTTP header field.QueryString: Requests are forwarded based on the query string.Method: Request are forwarded based on the request method.Cookie: Requests are forwarded based on the cookie.SourceIp: Requests are forwarded based on the source ip. NOTE: TheSourceIpoption is available since 1.162.0.ResponseHeader: Response header. NOTE: TheSourceIpoption is available since 1.213.1.ResponseStatusCode: Response status code. NOTE: TheSourceIpoption is available since 1.213.1.
-
Pulumi.
Ali Cloud. Alb. Inputs. Rule Rule Condition Cookie Config - The configuration of the cookie. See See
cookie_configbelow. - Header
Config Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Condition Header Config - The configuration of the header field. See
header_configbelow. - Host
Config Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Condition Host Config - The configuration of the host field. See
host_configbelow. - Method
Config Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Condition Method Config - The configuration of the request method. See
method_configbelow. - Path
Config Pulumi.Ali Cloud. Alb. Inputs. Rule Rule Condition Path Config - The configuration of the path for the request to be forwarded. See
path_configbelow. - Query
String Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Condition Query String Config - The configuration of the query string. See
query_string_configbelow. - Response
Header Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Condition Response Header Config - The configuration of the header field. See
response_header_configbelow. - Response
Status Pulumi.Code Config Ali Cloud. Alb. Inputs. Rule Rule Condition Response Status Code Config - The configuration of the header field. See
response_status_code_configbelow. - Source
Ip Pulumi.Config Ali Cloud. Alb. Inputs. Rule Rule Condition Source Ip Config - The Based on source IP traffic matching. Required and valid when Type is SourceIP. See
source_ip_configbelow.
- Type string
- The type of the forwarding rule. Valid values:
Host: Requests are forwarded based on hosts.Path: Requests are forwarded based on the path.Header: Requests are forwarded based on the HTTP header field.QueryString: Requests are forwarded based on the query string.Method: Request are forwarded based on the request method.Cookie: Requests are forwarded based on the cookie.SourceIp: Requests are forwarded based on the source ip. NOTE: TheSourceIpoption is available since 1.162.0.ResponseHeader: Response header. NOTE: TheSourceIpoption is available since 1.213.1.ResponseStatusCode: Response status code. NOTE: TheSourceIpoption is available since 1.213.1.
-
Rule
Rule Condition Cookie Config - The configuration of the cookie. See See
cookie_configbelow. - Header
Config RuleRule Condition Header Config - The configuration of the header field. See
header_configbelow. - Host
Config RuleRule Condition Host Config - The configuration of the host field. See
host_configbelow. - Method
Config RuleRule Condition Method Config - The configuration of the request method. See
method_configbelow. - Path
Config RuleRule Condition Path Config - The configuration of the path for the request to be forwarded. See
path_configbelow. - Query
String RuleConfig Rule Condition Query String Config - The configuration of the query string. See
query_string_configbelow. - Response
Header RuleConfig Rule Condition Response Header Config - The configuration of the header field. See
response_header_configbelow. - Response
Status RuleCode Config Rule Condition Response Status Code Config - The configuration of the header field. See
response_status_code_configbelow. - Source
Ip RuleConfig Rule Condition Source Ip Config - The Based on source IP traffic matching. Required and valid when Type is SourceIP. See
source_ip_configbelow.
- type String
- The type of the forwarding rule. Valid values:
Host: Requests are forwarded based on hosts.Path: Requests are forwarded based on the path.Header: Requests are forwarded based on the HTTP header field.QueryString: Requests are forwarded based on the query string.Method: Request are forwarded based on the request method.Cookie: Requests are forwarded based on the cookie.SourceIp: Requests are forwarded based on the source ip. NOTE: TheSourceIpoption is available since 1.162.0.ResponseHeader: Response header. NOTE: TheSourceIpoption is available since 1.213.1.ResponseStatusCode: Response status code. NOTE: TheSourceIpoption is available since 1.213.1.
-
Rule
Rule Condition Cookie Config - The configuration of the cookie. See See
cookie_configbelow. - header
Config RuleRule Condition Header Config - The configuration of the header field. See
header_configbelow. - host
Config RuleRule Condition Host Config - The configuration of the host field. See
host_configbelow. - method
Config RuleRule Condition Method Config - The configuration of the request method. See
method_configbelow. - path
Config RuleRule Condition Path Config - The configuration of the path for the request to be forwarded. See
path_configbelow. - query
String RuleConfig Rule Condition Query String Config - The configuration of the query string. See
query_string_configbelow. - response
Header RuleConfig Rule Condition Response Header Config - The configuration of the header field. See
response_header_configbelow. - response
Status RuleCode Config Rule Condition Response Status Code Config - The configuration of the header field. See
response_status_code_configbelow. - source
Ip RuleConfig Rule Condition Source Ip Config - The Based on source IP traffic matching. Required and valid when Type is SourceIP. See
source_ip_configbelow.
- type string
- The type of the forwarding rule. Valid values:
Host: Requests are forwarded based on hosts.Path: Requests are forwarded based on the path.Header: Requests are forwarded based on the HTTP header field.QueryString: Requests are forwarded based on the query string.Method: Request are forwarded based on the request method.Cookie: Requests are forwarded based on the cookie.SourceIp: Requests are forwarded based on the source ip. NOTE: TheSourceIpoption is available since 1.162.0.ResponseHeader: Response header. NOTE: TheSourceIpoption is available since 1.213.1.ResponseStatusCode: Response status code. NOTE: TheSourceIpoption is available since 1.213.1.
-
Rule
Rule Condition Cookie Config - The configuration of the cookie. See See
cookie_configbelow. - header
Config RuleRule Condition Header Config - The configuration of the header field. See
header_configbelow. - host
Config RuleRule Condition Host Config - The configuration of the host field. See
host_configbelow. - method
Config RuleRule Condition Method Config - The configuration of the request method. See
method_configbelow. - path
Config RuleRule Condition Path Config - The configuration of the path for the request to be forwarded. See
path_configbelow. - query
String RuleConfig Rule Condition Query String Config - The configuration of the query string. See
query_string_configbelow. - response
Header RuleConfig Rule Condition Response Header Config - The configuration of the header field. See
response_header_configbelow. - response
Status RuleCode Config Rule Condition Response Status Code Config - The configuration of the header field. See
response_status_code_configbelow. - source
Ip RuleConfig Rule Condition Source Ip Config - The Based on source IP traffic matching. Required and valid when Type is SourceIP. See
source_ip_configbelow.
- type str
- The type of the forwarding rule. Valid values:
Host: Requests are forwarded based on hosts.Path: Requests are forwarded based on the path.Header: Requests are forwarded based on the HTTP header field.QueryString: Requests are forwarded based on the query string.Method: Request are forwarded based on the request method.Cookie: Requests are forwarded based on the cookie.SourceIp: Requests are forwarded based on the source ip. NOTE: TheSourceIpoption is available since 1.162.0.ResponseHeader: Response header. NOTE: TheSourceIpoption is available since 1.213.1.ResponseStatusCode: Response status code. NOTE: TheSourceIpoption is available since 1.213.1.
-
Rule
Rule Condition Cookie Config - The configuration of the cookie. See See
cookie_configbelow. - header_
config RuleRule Condition Header Config - The configuration of the header field. See
header_configbelow. - host_
config RuleRule Condition Host Config - The configuration of the host field. See
host_configbelow. - method_
config RuleRule Condition Method Config - The configuration of the request method. See
method_configbelow. - path_
config RuleRule Condition Path Config - The configuration of the path for the request to be forwarded. See
path_configbelow. - query_
string_ Ruleconfig Rule Condition Query String Config - The configuration of the query string. See
query_string_configbelow. - response_
header_ Ruleconfig Rule Condition Response Header Config - The configuration of the header field. See
response_header_configbelow. - response_
status_ Rulecode_ config Rule Condition Response Status Code Config - The configuration of the header field. See
response_status_code_configbelow. - source_
ip_ Ruleconfig Rule Condition Source Ip Config - The Based on source IP traffic matching. Required and valid when Type is SourceIP. See
source_ip_configbelow.
- type String
- The type of the forwarding rule. Valid values:
Host: Requests are forwarded based on hosts.Path: Requests are forwarded based on the path.Header: Requests are forwarded based on the HTTP header field.QueryString: Requests are forwarded based on the query string.Method: Request are forwarded based on the request method.Cookie: Requests are forwarded based on the cookie.SourceIp: Requests are forwarded based on the source ip. NOTE: TheSourceIpoption is available since 1.162.0.ResponseHeader: Response header. NOTE: TheSourceIpoption is available since 1.213.1.ResponseStatusCode: Response status code. NOTE: TheSourceIpoption is available since 1.213.1.
- Property Map
- The configuration of the cookie. See See
cookie_configbelow. - header
Config Property Map - The configuration of the header field. See
header_configbelow. - host
Config Property Map - The configuration of the host field. See
host_configbelow. - method
Config Property Map - The configuration of the request method. See
method_configbelow. - path
Config Property Map - The configuration of the path for the request to be forwarded. See
path_configbelow. - query
String Property MapConfig - The configuration of the query string. See
query_string_configbelow. - response
Header Property MapConfig - The configuration of the header field. See
response_header_configbelow. - response
Status Property MapCode Config - The configuration of the header field. See
response_status_code_configbelow. - source
Ip Property MapConfig - The Based on source IP traffic matching. Required and valid when Type is SourceIP. See
source_ip_configbelow.
RuleRuleConditionCookieConfig, RuleRuleConditionCookieConfigArgs
- Values
List<Pulumi.
Ali Cloud. Alb. Inputs. Rule Rule Condition Cookie Config Value> - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- Values
[]Rule
Rule Condition Cookie Config Value - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values
List<Rule
Rule Condition Cookie Config Value> - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values
Rule
Rule Condition Cookie Config Value[] - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values
Sequence[Rule
Rule Condition Cookie Config Value] - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<Property Map>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
RuleRuleConditionCookieConfigValue, RuleRuleConditionCookieConfigValueArgs
RuleRuleConditionHeaderConfig, RuleRuleConditionHeaderConfigArgs
RuleRuleConditionHostConfig, RuleRuleConditionHostConfigArgs
- Values List<string>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- Values []string
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values string[]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values Sequence[str]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
RuleRuleConditionMethodConfig, RuleRuleConditionMethodConfigArgs
- Values List<string>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- Values []string
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values string[]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values Sequence[str]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
RuleRuleConditionPathConfig, RuleRuleConditionPathConfigArgs
- Values List<string>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- Values []string
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values string[]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values Sequence[str]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
RuleRuleConditionQueryStringConfig, RuleRuleConditionQueryStringConfigArgs
- Values
List<Pulumi.
Ali Cloud. Alb. Inputs. Rule Rule Condition Query String Config Value> - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- Values
[]Rule
Rule Condition Query String Config Value - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values
List<Rule
Rule Condition Query String Config Value> - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values
Rule
Rule Condition Query String Config Value[] - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values
Sequence[Rule
Rule Condition Query String Config Value] - Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<Property Map>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
RuleRuleConditionQueryStringConfigValue, RuleRuleConditionQueryStringConfigValueArgs
RuleRuleConditionResponseHeaderConfig, RuleRuleConditionResponseHeaderConfigArgs
RuleRuleConditionResponseStatusCodeConfig, RuleRuleConditionResponseStatusCodeConfigArgs
- Values List<string>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- Values []string
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values string[]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values Sequence[str]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
RuleRuleConditionSourceIpConfig, RuleRuleConditionSourceIpConfigArgs
- Values List<string>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- Values []string
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values string[]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values Sequence[str]
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
- values List<String>
- Add one or more IP addresses or IP address segments. You can add up to 5 forwarding rules in a SourceIp.
Import
Application Load Balancer (ALB) Rule can be imported using the id, e.g.
$ pulumi import alicloud:alb/rule:Rule example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.