volcengine.alb.Rule
Explore with Pulumi AI
Provides a resource to manage alb rule
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Alb.Rule("foo", new()
{
Description = "test",
Domain = "www.test.com",
ListenerId = "lsn-1iidd19u4oni874adhezjkyj3",
RedirectConfig = new Volcengine.Alb.Inputs.RuleRedirectConfigArgs
{
RedirectDomain = "www.testtest.com",
RedirectHttpCode = "302",
RedirectPort = "555",
RedirectUri = "/testtest",
},
RewriteConfig = new Volcengine.Alb.Inputs.RuleRewriteConfigArgs
{
RewritePath = "/test",
},
RewriteEnabled = "off",
RuleAction = "Redirect",
ServerGroupId = "rsp-1g72w74y4umf42zbhq4k4hnln",
TrafficLimitEnabled = "off",
TrafficLimitQps = 100,
Url = "/test",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alb.NewRule(ctx, "foo", &alb.RuleArgs{
Description: pulumi.String("test"),
Domain: pulumi.String("www.test.com"),
ListenerId: pulumi.String("lsn-1iidd19u4oni874adhezjkyj3"),
RedirectConfig: &alb.RuleRedirectConfigArgs{
RedirectDomain: pulumi.String("www.testtest.com"),
RedirectHttpCode: pulumi.String("302"),
RedirectPort: pulumi.String("555"),
RedirectUri: pulumi.String("/testtest"),
},
RewriteConfig: &alb.RuleRewriteConfigArgs{
RewritePath: pulumi.String("/test"),
},
RewriteEnabled: pulumi.String("off"),
RuleAction: pulumi.String("Redirect"),
ServerGroupId: pulumi.String("rsp-1g72w74y4umf42zbhq4k4hnln"),
TrafficLimitEnabled: pulumi.String("off"),
TrafficLimitQps: pulumi.Int(100),
Url: pulumi.String("/test"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.alb.Rule;
import com.pulumi.volcengine.alb.RuleArgs;
import com.pulumi.volcengine.alb.inputs.RuleRedirectConfigArgs;
import com.pulumi.volcengine.alb.inputs.RuleRewriteConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new Rule("foo", RuleArgs.builder()
.description("test")
.domain("www.test.com")
.listenerId("lsn-1iidd19u4oni874adhezjkyj3")
.redirectConfig(RuleRedirectConfigArgs.builder()
.redirectDomain("www.testtest.com")
.redirectHttpCode("302")
.redirectPort("555")
.redirectUri("/testtest")
.build())
.rewriteConfig(RuleRewriteConfigArgs.builder()
.rewritePath("/test")
.build())
.rewriteEnabled("off")
.ruleAction("Redirect")
.serverGroupId("rsp-1g72w74y4umf42zbhq4k4hnln")
.trafficLimitEnabled("off")
.trafficLimitQps(100)
.url("/test")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.alb.Rule("foo",
description="test",
domain="www.test.com",
listener_id="lsn-1iidd19u4oni874adhezjkyj3",
redirect_config=volcengine.alb.RuleRedirectConfigArgs(
redirect_domain="www.testtest.com",
redirect_http_code="302",
redirect_port="555",
redirect_uri="/testtest",
),
rewrite_config=volcengine.alb.RuleRewriteConfigArgs(
rewrite_path="/test",
),
rewrite_enabled="off",
rule_action="Redirect",
server_group_id="rsp-1g72w74y4umf42zbhq4k4hnln",
traffic_limit_enabled="off",
traffic_limit_qps=100,
url="/test")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.alb.Rule("foo", {
description: "test",
domain: "www.test.com",
listenerId: "lsn-1iidd19u4oni874adhezjkyj3",
redirectConfig: {
redirectDomain: "www.testtest.com",
redirectHttpCode: "302",
redirectPort: "555",
redirectUri: "/testtest",
},
rewriteConfig: {
rewritePath: "/test",
},
rewriteEnabled: "off",
ruleAction: "Redirect",
serverGroupId: "rsp-1g72w74y4umf42zbhq4k4hnln",
trafficLimitEnabled: "off",
trafficLimitQps: 100,
url: "/test",
});
resources:
foo:
type: volcengine:alb:Rule
properties:
description: test
domain: www.test.com
listenerId: lsn-1iidd19u4oni874adhezjkyj3
redirectConfig:
redirectDomain: www.testtest.com
redirectHttpCode: '302'
redirectPort: '555'
redirectUri: /testtest
rewriteConfig:
rewritePath: /test
rewriteEnabled: off
ruleAction: Redirect
serverGroupId: rsp-1g72w74y4umf42zbhq4k4hnln
trafficLimitEnabled: off
trafficLimitQps: 100
url: /test
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,
rule_action: Optional[str] = None,
description: Optional[str] = None,
domain: Optional[str] = None,
redirect_config: Optional[RuleRedirectConfigArgs] = None,
rewrite_config: Optional[RuleRewriteConfigArgs] = None,
rewrite_enabled: Optional[str] = None,
server_group_id: Optional[str] = None,
traffic_limit_enabled: Optional[str] = None,
traffic_limit_qps: Optional[int] = None,
url: Optional[str] = None)
func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)
public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)
type: volcengine: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 Volcengine.Alb.Rule("ruleResource", new()
{
ListenerId = "string",
RuleAction = "string",
Description = "string",
Domain = "string",
RedirectConfig = new Volcengine.Alb.Inputs.RuleRedirectConfigArgs
{
RedirectDomain = "string",
RedirectHttpCode = "string",
RedirectPort = "string",
RedirectProtocol = "string",
RedirectUri = "string",
},
RewriteConfig = new Volcengine.Alb.Inputs.RuleRewriteConfigArgs
{
RewritePath = "string",
},
RewriteEnabled = "string",
ServerGroupId = "string",
TrafficLimitEnabled = "string",
TrafficLimitQps = 0,
Url = "string",
});
example, err := alb.NewRule(ctx, "ruleResource", &alb.RuleArgs{
ListenerId: pulumi.String("string"),
RuleAction: pulumi.String("string"),
Description: pulumi.String("string"),
Domain: pulumi.String("string"),
RedirectConfig: &alb.RuleRedirectConfigArgs{
RedirectDomain: pulumi.String("string"),
RedirectHttpCode: pulumi.String("string"),
RedirectPort: pulumi.String("string"),
RedirectProtocol: pulumi.String("string"),
RedirectUri: pulumi.String("string"),
},
RewriteConfig: &alb.RuleRewriteConfigArgs{
RewritePath: pulumi.String("string"),
},
RewriteEnabled: pulumi.String("string"),
ServerGroupId: pulumi.String("string"),
TrafficLimitEnabled: pulumi.String("string"),
TrafficLimitQps: pulumi.Int(0),
Url: pulumi.String("string"),
})
var ruleResource = new Rule("ruleResource", RuleArgs.builder()
.listenerId("string")
.ruleAction("string")
.description("string")
.domain("string")
.redirectConfig(RuleRedirectConfigArgs.builder()
.redirectDomain("string")
.redirectHttpCode("string")
.redirectPort("string")
.redirectProtocol("string")
.redirectUri("string")
.build())
.rewriteConfig(RuleRewriteConfigArgs.builder()
.rewritePath("string")
.build())
.rewriteEnabled("string")
.serverGroupId("string")
.trafficLimitEnabled("string")
.trafficLimitQps(0)
.url("string")
.build());
rule_resource = volcengine.alb.Rule("ruleResource",
listener_id="string",
rule_action="string",
description="string",
domain="string",
redirect_config=volcengine.alb.RuleRedirectConfigArgs(
redirect_domain="string",
redirect_http_code="string",
redirect_port="string",
redirect_protocol="string",
redirect_uri="string",
),
rewrite_config=volcengine.alb.RuleRewriteConfigArgs(
rewrite_path="string",
),
rewrite_enabled="string",
server_group_id="string",
traffic_limit_enabled="string",
traffic_limit_qps=0,
url="string")
const ruleResource = new volcengine.alb.Rule("ruleResource", {
listenerId: "string",
ruleAction: "string",
description: "string",
domain: "string",
redirectConfig: {
redirectDomain: "string",
redirectHttpCode: "string",
redirectPort: "string",
redirectProtocol: "string",
redirectUri: "string",
},
rewriteConfig: {
rewritePath: "string",
},
rewriteEnabled: "string",
serverGroupId: "string",
trafficLimitEnabled: "string",
trafficLimitQps: 0,
url: "string",
});
type: volcengine:alb:Rule
properties:
description: string
domain: string
listenerId: string
redirectConfig:
redirectDomain: string
redirectHttpCode: string
redirectPort: string
redirectProtocol: string
redirectUri: string
rewriteConfig:
rewritePath: string
rewriteEnabled: string
ruleAction: string
serverGroupId: string
trafficLimitEnabled: string
trafficLimitQps: 0
url: 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
The Rule resource accepts the following input properties:
- Listener
Id string - The ID of listener.
- Rule
Action string - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - Description string
- The description of the Rule.
- Domain string
- The domain of Rule.
- Redirect
Config RuleRedirect Config - The redirect related configuration.
- Rewrite
Config RuleRewrite Config - The list of rewrite configurations.
- Rewrite
Enabled string - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- Server
Group stringId - Server group ID, this parameter is required if
rule_action
is empty. - Traffic
Limit stringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- Traffic
Limit intQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- Url string
- The Url of Rule.
- Listener
Id string - The ID of listener.
- Rule
Action string - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - Description string
- The description of the Rule.
- Domain string
- The domain of Rule.
- Redirect
Config RuleRedirect Config Args - The redirect related configuration.
- Rewrite
Config RuleRewrite Config Args - The list of rewrite configurations.
- Rewrite
Enabled string - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- Server
Group stringId - Server group ID, this parameter is required if
rule_action
is empty. - Traffic
Limit stringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- Traffic
Limit intQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- Url string
- The Url of Rule.
- listener
Id String - The ID of listener.
- rule
Action String - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - description String
- The description of the Rule.
- domain String
- The domain of Rule.
- redirect
Config RuleRedirect Config - The redirect related configuration.
- rewrite
Config RuleRewrite Config - The list of rewrite configurations.
- rewrite
Enabled String - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- server
Group StringId - Server group ID, this parameter is required if
rule_action
is empty. - traffic
Limit StringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit IntegerQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url String
- The Url of Rule.
- listener
Id string - The ID of listener.
- rule
Action string - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - description string
- The description of the Rule.
- domain string
- The domain of Rule.
- redirect
Config RuleRedirect Config - The redirect related configuration.
- rewrite
Config RuleRewrite Config - The list of rewrite configurations.
- rewrite
Enabled string - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- server
Group stringId - Server group ID, this parameter is required if
rule_action
is empty. - traffic
Limit stringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit numberQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url string
- The Url of Rule.
- listener_
id str - The ID of listener.
- rule_
action str - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - description str
- The description of the Rule.
- domain str
- The domain of Rule.
- redirect_
config RuleRedirect Config Args - The redirect related configuration.
- rewrite_
config RuleRewrite Config Args - The list of rewrite configurations.
- rewrite_
enabled str - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- server_
group_ strid - Server group ID, this parameter is required if
rule_action
is empty. - traffic_
limit_ strenabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic_
limit_ intqps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url str
- The Url of Rule.
- listener
Id String - The ID of listener.
- rule
Action String - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - description String
- The description of the Rule.
- domain String
- The domain of Rule.
- redirect
Config Property Map - The redirect related configuration.
- rewrite
Config Property Map - The list of rewrite configurations.
- rewrite
Enabled String - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- server
Group StringId - Server group ID, this parameter is required if
rule_action
is empty. - traffic
Limit StringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit NumberQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url String
- The Url of Rule.
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,
description: Optional[str] = None,
domain: Optional[str] = None,
listener_id: Optional[str] = None,
redirect_config: Optional[RuleRedirectConfigArgs] = None,
rewrite_config: Optional[RuleRewriteConfigArgs] = None,
rewrite_enabled: Optional[str] = None,
rule_action: Optional[str] = None,
rule_id: Optional[str] = None,
server_group_id: Optional[str] = None,
traffic_limit_enabled: Optional[str] = None,
traffic_limit_qps: Optional[int] = None,
url: Optional[str] = None) -> Rule
func GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)
public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)
public static Rule get(String name, Output<String> id, RuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- The description of the Rule.
- Domain string
- The domain of Rule.
- Listener
Id string - The ID of listener.
- Redirect
Config RuleRedirect Config - The redirect related configuration.
- Rewrite
Config RuleRewrite Config - The list of rewrite configurations.
- Rewrite
Enabled string - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- Rule
Action string - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - Rule
Id string - The ID of rule.
- Server
Group stringId - Server group ID, this parameter is required if
rule_action
is empty. - Traffic
Limit stringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- Traffic
Limit intQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- Url string
- The Url of Rule.
- Description string
- The description of the Rule.
- Domain string
- The domain of Rule.
- Listener
Id string - The ID of listener.
- Redirect
Config RuleRedirect Config Args - The redirect related configuration.
- Rewrite
Config RuleRewrite Config Args - The list of rewrite configurations.
- Rewrite
Enabled string - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- Rule
Action string - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - Rule
Id string - The ID of rule.
- Server
Group stringId - Server group ID, this parameter is required if
rule_action
is empty. - Traffic
Limit stringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- Traffic
Limit intQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- Url string
- The Url of Rule.
- description String
- The description of the Rule.
- domain String
- The domain of Rule.
- listener
Id String - The ID of listener.
- redirect
Config RuleRedirect Config - The redirect related configuration.
- rewrite
Config RuleRewrite Config - The list of rewrite configurations.
- rewrite
Enabled String - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- rule
Action String - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - rule
Id String - The ID of rule.
- server
Group StringId - Server group ID, this parameter is required if
rule_action
is empty. - traffic
Limit StringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit IntegerQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url String
- The Url of Rule.
- description string
- The description of the Rule.
- domain string
- The domain of Rule.
- listener
Id string - The ID of listener.
- redirect
Config RuleRedirect Config - The redirect related configuration.
- rewrite
Config RuleRewrite Config - The list of rewrite configurations.
- rewrite
Enabled string - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- rule
Action string - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - rule
Id string - The ID of rule.
- server
Group stringId - Server group ID, this parameter is required if
rule_action
is empty. - traffic
Limit stringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit numberQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url string
- The Url of Rule.
- description str
- The description of the Rule.
- domain str
- The domain of Rule.
- listener_
id str - The ID of listener.
- redirect_
config RuleRedirect Config Args - The redirect related configuration.
- rewrite_
config RuleRewrite Config Args - The list of rewrite configurations.
- rewrite_
enabled str - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- rule_
action str - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - rule_
id str - The ID of rule.
- server_
group_ strid - Server group ID, this parameter is required if
rule_action
is empty. - traffic_
limit_ strenabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic_
limit_ intqps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url str
- The Url of Rule.
- description String
- The description of the Rule.
- domain String
- The domain of Rule.
- listener
Id String - The ID of listener.
- redirect
Config Property Map - The redirect related configuration.
- rewrite
Config Property Map - The list of rewrite configurations.
- rewrite
Enabled String - Rewrite configuration switch for forwarding rules, only allows configuration and takes effect when RuleAction is empty (i.e., forwarding to server group). Only available for whitelist users, please submit an application to experience. Supported values are as follows: on: enable. off: disable.
- rule
Action String - The forwarding rule action, if this parameter is empty(
""
), forward to server group, if value isRedirect
, will redirect. - rule
Id String - The ID of rule.
- server
Group StringId - Server group ID, this parameter is required if
rule_action
is empty. - traffic
Limit StringEnabled - Forwarding rule QPS rate limiting switch: on: enable. off: disable (default).
- traffic
Limit NumberQps - When Rules.N.TrafficLimitEnabled is turned on, this field is required. Requests per second. Valid values are between 100 and 100000.
- url String
- The Url of Rule.
Supporting Types
RuleRedirectConfig, RuleRedirectConfigArgs
- Redirect
Domain string - The redirect domain, only support exact domain name.
- Redirect
Http stringCode - The redirect http code, support 301(default), 302, 307, 308.
- Redirect
Port string - The redirect port.
- Redirect
Protocol string - The redirect protocol, support HTTP, HTTPS(default).
- Redirect
Uri string - The redirect URI.
- Redirect
Domain string - The redirect domain, only support exact domain name.
- Redirect
Http stringCode - The redirect http code, support 301(default), 302, 307, 308.
- Redirect
Port string - The redirect port.
- Redirect
Protocol string - The redirect protocol, support HTTP, HTTPS(default).
- Redirect
Uri string - The redirect URI.
- redirect
Domain String - The redirect domain, only support exact domain name.
- redirect
Http StringCode - The redirect http code, support 301(default), 302, 307, 308.
- redirect
Port String - The redirect port.
- redirect
Protocol String - The redirect protocol, support HTTP, HTTPS(default).
- redirect
Uri String - The redirect URI.
- redirect
Domain string - The redirect domain, only support exact domain name.
- redirect
Http stringCode - The redirect http code, support 301(default), 302, 307, 308.
- redirect
Port string - The redirect port.
- redirect
Protocol string - The redirect protocol, support HTTP, HTTPS(default).
- redirect
Uri string - The redirect URI.
- redirect_
domain str - The redirect domain, only support exact domain name.
- redirect_
http_ strcode - The redirect http code, support 301(default), 302, 307, 308.
- redirect_
port str - The redirect port.
- redirect_
protocol str - The redirect protocol, support HTTP, HTTPS(default).
- redirect_
uri str - The redirect URI.
- redirect
Domain String - The redirect domain, only support exact domain name.
- redirect
Http StringCode - The redirect http code, support 301(default), 302, 307, 308.
- redirect
Port String - The redirect port.
- redirect
Protocol String - The redirect protocol, support HTTP, HTTPS(default).
- redirect
Uri String - The redirect URI.
RuleRewriteConfig, RuleRewriteConfigArgs
- Rewrite
Path string - Rewrite path.
- Rewrite
Path string - Rewrite path.
- rewrite
Path String - Rewrite path.
- rewrite
Path string - Rewrite path.
- rewrite_
path str - Rewrite path.
- rewrite
Path String - Rewrite path.
Import
AlbRule can be imported using the listener id and rule id, e.g.
$ pulumi import volcengine:alb/rule:Rule default lsn-273yv0mhs5xj47fap8sehiiso:rule-****
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.