volcengine.waf.CustomPage
Explore with Pulumi AI
Provides a resource to manage waf custom page
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.waf.CustomPage("foo", {
accurate: {
accurateRules: [
{
httpObj: "request.uri",
objType: 1,
opretar: 2,
property: 0,
valueString: "tf",
},
{
httpObj: "request.schema",
objType: 0,
opretar: 2,
property: 0,
valueString: "tf-2",
},
],
logic: 2,
},
advanced: 1,
body: "tf-test-body",
clientIp: "ALL",
code: 403,
contentType: "text/html",
description: "tf-test",
enable: 1,
host: "www.123.com",
pageMode: 1,
policy: 1,
projectName: "default",
redirectUrl: "/test/tf/path",
url: "/tf-test",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.waf.CustomPage("foo",
accurate=volcengine.waf.CustomPageAccurateArgs(
accurate_rules=[
volcengine.waf.CustomPageAccurateAccurateRuleArgs(
http_obj="request.uri",
obj_type=1,
opretar=2,
property=0,
value_string="tf",
),
volcengine.waf.CustomPageAccurateAccurateRuleArgs(
http_obj="request.schema",
obj_type=0,
opretar=2,
property=0,
value_string="tf-2",
),
],
logic=2,
),
advanced=1,
body="tf-test-body",
client_ip="ALL",
code=403,
content_type="text/html",
description="tf-test",
enable=1,
host="www.123.com",
page_mode=1,
policy=1,
project_name="default",
redirect_url="/test/tf/path",
url="/tf-test")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/waf"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := waf.NewCustomPage(ctx, "foo", &waf.CustomPageArgs{
Accurate: &waf.CustomPageAccurateArgs{
AccurateRules: waf.CustomPageAccurateAccurateRuleArray{
&waf.CustomPageAccurateAccurateRuleArgs{
HttpObj: pulumi.String("request.uri"),
ObjType: pulumi.Int(1),
Opretar: pulumi.Int(2),
Property: pulumi.Int(0),
ValueString: pulumi.String("tf"),
},
&waf.CustomPageAccurateAccurateRuleArgs{
HttpObj: pulumi.String("request.schema"),
ObjType: pulumi.Int(0),
Opretar: pulumi.Int(2),
Property: pulumi.Int(0),
ValueString: pulumi.String("tf-2"),
},
},
Logic: pulumi.Int(2),
},
Advanced: pulumi.Int(1),
Body: pulumi.String("tf-test-body"),
ClientIp: pulumi.String("ALL"),
Code: pulumi.Int(403),
ContentType: pulumi.String("text/html"),
Description: pulumi.String("tf-test"),
Enable: pulumi.Int(1),
Host: pulumi.String("www.123.com"),
PageMode: pulumi.Int(1),
Policy: pulumi.Int(1),
ProjectName: pulumi.String("default"),
RedirectUrl: pulumi.String("/test/tf/path"),
Url: pulumi.String("/tf-test"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Waf.CustomPage("foo", new()
{
Accurate = new Volcengine.Waf.Inputs.CustomPageAccurateArgs
{
AccurateRules = new[]
{
new Volcengine.Waf.Inputs.CustomPageAccurateAccurateRuleArgs
{
HttpObj = "request.uri",
ObjType = 1,
Opretar = 2,
Property = 0,
ValueString = "tf",
},
new Volcengine.Waf.Inputs.CustomPageAccurateAccurateRuleArgs
{
HttpObj = "request.schema",
ObjType = 0,
Opretar = 2,
Property = 0,
ValueString = "tf-2",
},
},
Logic = 2,
},
Advanced = 1,
Body = "tf-test-body",
ClientIp = "ALL",
Code = 403,
ContentType = "text/html",
Description = "tf-test",
Enable = 1,
Host = "www.123.com",
PageMode = 1,
Policy = 1,
ProjectName = "default",
RedirectUrl = "/test/tf/path",
Url = "/tf-test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.waf.CustomPage;
import com.pulumi.volcengine.waf.CustomPageArgs;
import com.pulumi.volcengine.waf.inputs.CustomPageAccurateArgs;
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 CustomPage("foo", CustomPageArgs.builder()
.accurate(CustomPageAccurateArgs.builder()
.accurateRules(
CustomPageAccurateAccurateRuleArgs.builder()
.httpObj("request.uri")
.objType(1)
.opretar(2)
.property(0)
.valueString("tf")
.build(),
CustomPageAccurateAccurateRuleArgs.builder()
.httpObj("request.schema")
.objType(0)
.opretar(2)
.property(0)
.valueString("tf-2")
.build())
.logic(2)
.build())
.advanced(1)
.body("tf-test-body")
.clientIp("ALL")
.code(403)
.contentType("text/html")
.description("tf-test")
.enable(1)
.host("www.123.com")
.pageMode(1)
.policy(1)
.projectName("default")
.redirectUrl("/test/tf/path")
.url("/tf-test")
.build());
}
}
resources:
foo:
type: volcengine:waf:CustomPage
properties:
accurate:
accurateRules:
- httpObj: request.uri
objType: 1
opretar: 2
property: 0
valueString: tf
- httpObj: request.schema
objType: 0
opretar: 2
property: 0
valueString: tf-2
logic: 2
advanced: 1
body: tf-test-body
clientIp: ALL
code: 403
contentType: text/html
description: tf-test
enable: 1
host: www.123.com
pageMode: 1
policy: 1
projectName: default
redirectUrl: /test/tf/path
url: /tf-test
Create CustomPage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomPage(name: string, args: CustomPageArgs, opts?: CustomResourceOptions);
@overload
def CustomPage(resource_name: str,
args: CustomPageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomPage(resource_name: str,
opts: Optional[ResourceOptions] = None,
enable: Optional[int] = None,
url: Optional[str] = None,
policy: Optional[int] = None,
client_ip: Optional[str] = None,
code: Optional[int] = None,
page_mode: Optional[int] = None,
host: Optional[str] = None,
description: Optional[str] = None,
accurate: Optional[CustomPageAccurateArgs] = None,
name: Optional[str] = None,
content_type: Optional[str] = None,
body: Optional[str] = None,
project_name: Optional[str] = None,
redirect_url: Optional[str] = None,
advanced: Optional[int] = None)
func NewCustomPage(ctx *Context, name string, args CustomPageArgs, opts ...ResourceOption) (*CustomPage, error)
public CustomPage(string name, CustomPageArgs args, CustomResourceOptions? opts = null)
public CustomPage(String name, CustomPageArgs args)
public CustomPage(String name, CustomPageArgs args, CustomResourceOptions options)
type: volcengine:waf:CustomPage
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 CustomPageArgs
- 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 CustomPageArgs
- 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 CustomPageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomPageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomPageArgs
- 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 customPageResource = new Volcengine.Waf.CustomPage("customPageResource", new()
{
Enable = 0,
Url = "string",
Policy = 0,
ClientIp = "string",
Code = 0,
PageMode = 0,
Host = "string",
Description = "string",
Accurate = new Volcengine.Waf.Inputs.CustomPageAccurateArgs
{
AccurateRules = new[]
{
new Volcengine.Waf.Inputs.CustomPageAccurateAccurateRuleArgs
{
HttpObj = "string",
ObjType = 0,
Opretar = 0,
Property = 0,
ValueString = "string",
},
},
Logic = 0,
},
Name = "string",
ContentType = "string",
Body = "string",
ProjectName = "string",
RedirectUrl = "string",
Advanced = 0,
});
example, err := waf.NewCustomPage(ctx, "customPageResource", &waf.CustomPageArgs{
Enable: pulumi.Int(0),
Url: pulumi.String("string"),
Policy: pulumi.Int(0),
ClientIp: pulumi.String("string"),
Code: pulumi.Int(0),
PageMode: pulumi.Int(0),
Host: pulumi.String("string"),
Description: pulumi.String("string"),
Accurate: &waf.CustomPageAccurateArgs{
AccurateRules: waf.CustomPageAccurateAccurateRuleArray{
&waf.CustomPageAccurateAccurateRuleArgs{
HttpObj: pulumi.String("string"),
ObjType: pulumi.Int(0),
Opretar: pulumi.Int(0),
Property: pulumi.Int(0),
ValueString: pulumi.String("string"),
},
},
Logic: pulumi.Int(0),
},
Name: pulumi.String("string"),
ContentType: pulumi.String("string"),
Body: pulumi.String("string"),
ProjectName: pulumi.String("string"),
RedirectUrl: pulumi.String("string"),
Advanced: pulumi.Int(0),
})
var customPageResource = new CustomPage("customPageResource", CustomPageArgs.builder()
.enable(0)
.url("string")
.policy(0)
.clientIp("string")
.code(0)
.pageMode(0)
.host("string")
.description("string")
.accurate(CustomPageAccurateArgs.builder()
.accurateRules(CustomPageAccurateAccurateRuleArgs.builder()
.httpObj("string")
.objType(0)
.opretar(0)
.property(0)
.valueString("string")
.build())
.logic(0)
.build())
.name("string")
.contentType("string")
.body("string")
.projectName("string")
.redirectUrl("string")
.advanced(0)
.build());
custom_page_resource = volcengine.waf.CustomPage("customPageResource",
enable=0,
url="string",
policy=0,
client_ip="string",
code=0,
page_mode=0,
host="string",
description="string",
accurate={
"accurate_rules": [{
"http_obj": "string",
"obj_type": 0,
"opretar": 0,
"property": 0,
"value_string": "string",
}],
"logic": 0,
},
name="string",
content_type="string",
body="string",
project_name="string",
redirect_url="string",
advanced=0)
const customPageResource = new volcengine.waf.CustomPage("customPageResource", {
enable: 0,
url: "string",
policy: 0,
clientIp: "string",
code: 0,
pageMode: 0,
host: "string",
description: "string",
accurate: {
accurateRules: [{
httpObj: "string",
objType: 0,
opretar: 0,
property: 0,
valueString: "string",
}],
logic: 0,
},
name: "string",
contentType: "string",
body: "string",
projectName: "string",
redirectUrl: "string",
advanced: 0,
});
type: volcengine:waf:CustomPage
properties:
accurate:
accurateRules:
- httpObj: string
objType: 0
opretar: 0
property: 0
valueString: string
logic: 0
advanced: 0
body: string
clientIp: string
code: 0
contentType: string
description: string
enable: 0
host: string
name: string
pageMode: 0
policy: 0
projectName: string
redirectUrl: string
url: string
CustomPage 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 CustomPage resource accepts the following input properties:
- Client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- Code int
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- Enable int
- Whether to enable the rule.
- Host string
- Domain name to be protected.
- Page
Mode int - The layout template of the response page.
- Policy int
- Action to be taken on requests that match the rule.
- Url string
- Match the path.
- Accurate
Custom
Page Accurate - Advanced conditions.
- Advanced int
- Whether to configure advanced conditions.
- Body string
- The layout content of the response page.
- Content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- Description string
- Rule description.
- Name string
- Rule name.
- Project
Name string - The name of the project to which your domain names belong.
- Redirect
Url string - The path where users should be redirected.
- Client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- Code int
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- Enable int
- Whether to enable the rule.
- Host string
- Domain name to be protected.
- Page
Mode int - The layout template of the response page.
- Policy int
- Action to be taken on requests that match the rule.
- Url string
- Match the path.
- Accurate
Custom
Page Accurate Args - Advanced conditions.
- Advanced int
- Whether to configure advanced conditions.
- Body string
- The layout content of the response page.
- Content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- Description string
- Rule description.
- Name string
- Rule name.
- Project
Name string - The name of the project to which your domain names belong.
- Redirect
Url string - The path where users should be redirected.
- client
Ip String - Fill in ALL, which means this rule will take effect on all IP addresses.
- code Integer
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- enable Integer
- Whether to enable the rule.
- host String
- Domain name to be protected.
- page
Mode Integer - The layout template of the response page.
- policy Integer
- Action to be taken on requests that match the rule.
- url String
- Match the path.
- accurate
Custom
Page Accurate - Advanced conditions.
- advanced Integer
- Whether to configure advanced conditions.
- body String
- The layout content of the response page.
- content
Type String - The layout template of the response page. Required if PageMode=0 or 1.
- description String
- Rule description.
- name String
- Rule name.
- project
Name String - The name of the project to which your domain names belong.
- redirect
Url String - The path where users should be redirected.
- client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- code number
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- enable number
- Whether to enable the rule.
- host string
- Domain name to be protected.
- page
Mode number - The layout template of the response page.
- policy number
- Action to be taken on requests that match the rule.
- url string
- Match the path.
- accurate
Custom
Page Accurate - Advanced conditions.
- advanced number
- Whether to configure advanced conditions.
- body string
- The layout content of the response page.
- content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- description string
- Rule description.
- name string
- Rule name.
- project
Name string - The name of the project to which your domain names belong.
- redirect
Url string - The path where users should be redirected.
- client_
ip str - Fill in ALL, which means this rule will take effect on all IP addresses.
- code int
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- enable int
- Whether to enable the rule.
- host str
- Domain name to be protected.
- page_
mode int - The layout template of the response page.
- policy int
- Action to be taken on requests that match the rule.
- url str
- Match the path.
- accurate
Custom
Page Accurate Args - Advanced conditions.
- advanced int
- Whether to configure advanced conditions.
- body str
- The layout content of the response page.
- content_
type str - The layout template of the response page. Required if PageMode=0 or 1.
- description str
- Rule description.
- name str
- Rule name.
- project_
name str - The name of the project to which your domain names belong.
- redirect_
url str - The path where users should be redirected.
- client
Ip String - Fill in ALL, which means this rule will take effect on all IP addresses.
- code Number
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- enable Number
- Whether to enable the rule.
- host String
- Domain name to be protected.
- page
Mode Number - The layout template of the response page.
- policy Number
- Action to be taken on requests that match the rule.
- url String
- Match the path.
- accurate Property Map
- Advanced conditions.
- advanced Number
- Whether to configure advanced conditions.
- body String
- The layout content of the response page.
- content
Type String - The layout template of the response page. Required if PageMode=0 or 1.
- description String
- Rule description.
- name String
- Rule name.
- project
Name String - The name of the project to which your domain names belong.
- redirect
Url String - The path where users should be redirected.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomPage resource produces the following output properties:
- Group
Id int - The ID of the advanced conditional rule group.
- Header string
- Request header information.
- Id string
- The provider-assigned unique ID for this managed resource.
- Isolation
Id string - The ID of Region.
- Rule
Tag string - Unique identification of the rules.
- Update
Time string - Rule update time.
- Group
Id int - The ID of the advanced conditional rule group.
- Header string
- Request header information.
- Id string
- The provider-assigned unique ID for this managed resource.
- Isolation
Id string - The ID of Region.
- Rule
Tag string - Unique identification of the rules.
- Update
Time string - Rule update time.
- group
Id Integer - The ID of the advanced conditional rule group.
- header String
- Request header information.
- id String
- The provider-assigned unique ID for this managed resource.
- isolation
Id String - The ID of Region.
- rule
Tag String - Unique identification of the rules.
- update
Time String - Rule update time.
- group
Id number - The ID of the advanced conditional rule group.
- header string
- Request header information.
- id string
- The provider-assigned unique ID for this managed resource.
- isolation
Id string - The ID of Region.
- rule
Tag string - Unique identification of the rules.
- update
Time string - Rule update time.
- group_
id int - The ID of the advanced conditional rule group.
- header str
- Request header information.
- id str
- The provider-assigned unique ID for this managed resource.
- isolation_
id str - The ID of Region.
- rule_
tag str - Unique identification of the rules.
- update_
time str - Rule update time.
- group
Id Number - The ID of the advanced conditional rule group.
- header String
- Request header information.
- id String
- The provider-assigned unique ID for this managed resource.
- isolation
Id String - The ID of Region.
- rule
Tag String - Unique identification of the rules.
- update
Time String - Rule update time.
Look up Existing CustomPage Resource
Get an existing CustomPage 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?: CustomPageState, opts?: CustomResourceOptions): CustomPage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accurate: Optional[CustomPageAccurateArgs] = None,
advanced: Optional[int] = None,
body: Optional[str] = None,
client_ip: Optional[str] = None,
code: Optional[int] = None,
content_type: Optional[str] = None,
description: Optional[str] = None,
enable: Optional[int] = None,
group_id: Optional[int] = None,
header: Optional[str] = None,
host: Optional[str] = None,
isolation_id: Optional[str] = None,
name: Optional[str] = None,
page_mode: Optional[int] = None,
policy: Optional[int] = None,
project_name: Optional[str] = None,
redirect_url: Optional[str] = None,
rule_tag: Optional[str] = None,
update_time: Optional[str] = None,
url: Optional[str] = None) -> CustomPage
func GetCustomPage(ctx *Context, name string, id IDInput, state *CustomPageState, opts ...ResourceOption) (*CustomPage, error)
public static CustomPage Get(string name, Input<string> id, CustomPageState? state, CustomResourceOptions? opts = null)
public static CustomPage get(String name, Output<String> id, CustomPageState state, CustomResourceOptions options)
resources: _: type: volcengine:waf:CustomPage 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.
- Accurate
Custom
Page Accurate - Advanced conditions.
- Advanced int
- Whether to configure advanced conditions.
- Body string
- The layout content of the response page.
- Client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- Code int
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- Content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- Description string
- Rule description.
- Enable int
- Whether to enable the rule.
- Group
Id int - The ID of the advanced conditional rule group.
- Header string
- Request header information.
- Host string
- Domain name to be protected.
- Isolation
Id string - The ID of Region.
- Name string
- Rule name.
- Page
Mode int - The layout template of the response page.
- Policy int
- Action to be taken on requests that match the rule.
- Project
Name string - The name of the project to which your domain names belong.
- Redirect
Url string - The path where users should be redirected.
- Rule
Tag string - Unique identification of the rules.
- Update
Time string - Rule update time.
- Url string
- Match the path.
- Accurate
Custom
Page Accurate Args - Advanced conditions.
- Advanced int
- Whether to configure advanced conditions.
- Body string
- The layout content of the response page.
- Client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- Code int
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- Content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- Description string
- Rule description.
- Enable int
- Whether to enable the rule.
- Group
Id int - The ID of the advanced conditional rule group.
- Header string
- Request header information.
- Host string
- Domain name to be protected.
- Isolation
Id string - The ID of Region.
- Name string
- Rule name.
- Page
Mode int - The layout template of the response page.
- Policy int
- Action to be taken on requests that match the rule.
- Project
Name string - The name of the project to which your domain names belong.
- Redirect
Url string - The path where users should be redirected.
- Rule
Tag string - Unique identification of the rules.
- Update
Time string - Rule update time.
- Url string
- Match the path.
- accurate
Custom
Page Accurate - Advanced conditions.
- advanced Integer
- Whether to configure advanced conditions.
- body String
- The layout content of the response page.
- client
Ip String - Fill in ALL, which means this rule will take effect on all IP addresses.
- code Integer
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- content
Type String - The layout template of the response page. Required if PageMode=0 or 1.
- description String
- Rule description.
- enable Integer
- Whether to enable the rule.
- group
Id Integer - The ID of the advanced conditional rule group.
- header String
- Request header information.
- host String
- Domain name to be protected.
- isolation
Id String - The ID of Region.
- name String
- Rule name.
- page
Mode Integer - The layout template of the response page.
- policy Integer
- Action to be taken on requests that match the rule.
- project
Name String - The name of the project to which your domain names belong.
- redirect
Url String - The path where users should be redirected.
- rule
Tag String - Unique identification of the rules.
- update
Time String - Rule update time.
- url String
- Match the path.
- accurate
Custom
Page Accurate - Advanced conditions.
- advanced number
- Whether to configure advanced conditions.
- body string
- The layout content of the response page.
- client
Ip string - Fill in ALL, which means this rule will take effect on all IP addresses.
- code number
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- content
Type string - The layout template of the response page. Required if PageMode=0 or 1.
- description string
- Rule description.
- enable number
- Whether to enable the rule.
- group
Id number - The ID of the advanced conditional rule group.
- header string
- Request header information.
- host string
- Domain name to be protected.
- isolation
Id string - The ID of Region.
- name string
- Rule name.
- page
Mode number - The layout template of the response page.
- policy number
- Action to be taken on requests that match the rule.
- project
Name string - The name of the project to which your domain names belong.
- redirect
Url string - The path where users should be redirected.
- rule
Tag string - Unique identification of the rules.
- update
Time string - Rule update time.
- url string
- Match the path.
- accurate
Custom
Page Accurate Args - Advanced conditions.
- advanced int
- Whether to configure advanced conditions.
- body str
- The layout content of the response page.
- client_
ip str - Fill in ALL, which means this rule will take effect on all IP addresses.
- code int
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- content_
type str - The layout template of the response page. Required if PageMode=0 or 1.
- description str
- Rule description.
- enable int
- Whether to enable the rule.
- group_
id int - The ID of the advanced conditional rule group.
- header str
- Request header information.
- host str
- Domain name to be protected.
- isolation_
id str - The ID of Region.
- name str
- Rule name.
- page_
mode int - The layout template of the response page.
- policy int
- Action to be taken on requests that match the rule.
- project_
name str - The name of the project to which your domain names belong.
- redirect_
url str - The path where users should be redirected.
- rule_
tag str - Unique identification of the rules.
- update_
time str - Rule update time.
- url str
- Match the path.
- accurate Property Map
- Advanced conditions.
- advanced Number
- Whether to configure advanced conditions.
- body String
- The layout content of the response page.
- client
Ip String - Fill in ALL, which means this rule will take effect on all IP addresses.
- code Number
- Custom HTTP code returned when the request is blocked. Required if PageMode=0 or 1.
- content
Type String - The layout template of the response page. Required if PageMode=0 or 1.
- description String
- Rule description.
- enable Number
- Whether to enable the rule.
- group
Id Number - The ID of the advanced conditional rule group.
- header String
- Request header information.
- host String
- Domain name to be protected.
- isolation
Id String - The ID of Region.
- name String
- Rule name.
- page
Mode Number - The layout template of the response page.
- policy Number
- Action to be taken on requests that match the rule.
- project
Name String - The name of the project to which your domain names belong.
- redirect
Url String - The path where users should be redirected.
- rule
Tag String - Unique identification of the rules.
- update
Time String - Rule update time.
- url String
- Match the path.
Supporting Types
CustomPageAccurate, CustomPageAccurateArgs
- Accurate
Rules List<CustomPage Accurate Accurate Rule> - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- Accurate
Rules []CustomPage Accurate Accurate Rule - Details of advanced conditions.
- Logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<CustomPage Accurate Accurate Rule> - Details of advanced conditions.
- logic Integer
- The logical relationship of advanced conditions.
- accurate
Rules CustomPage Accurate Accurate Rule[] - Details of advanced conditions.
- logic number
- The logical relationship of advanced conditions.
- accurate_
rules Sequence[CustomPage Accurate Accurate Rule] - Details of advanced conditions.
- logic int
- The logical relationship of advanced conditions.
- accurate
Rules List<Property Map> - Details of advanced conditions.
- logic Number
- The logical relationship of advanced conditions.
CustomPageAccurateAccurateRule, CustomPageAccurateAccurateRuleArgs
- Http
Obj string - The HTTP object to be added to the advanced conditions.
- Obj
Type int - The matching field for HTTP objects.
- Opretar int
- The logical operator for the condition.
- Property int
- Operate the properties of the http object.
- Value
String string - The value to be matched.
- Http
Obj string - The HTTP object to be added to the advanced conditions.
- Obj
Type int - The matching field for HTTP objects.
- Opretar int
- The logical operator for the condition.
- Property int
- Operate the properties of the http object.
- Value
String string - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Integer - The matching field for HTTP objects.
- opretar Integer
- The logical operator for the condition.
- property Integer
- Operate the properties of the http object.
- value
String String - The value to be matched.
- http
Obj string - The HTTP object to be added to the advanced conditions.
- obj
Type number - The matching field for HTTP objects.
- opretar number
- The logical operator for the condition.
- property number
- Operate the properties of the http object.
- value
String string - The value to be matched.
- http_
obj str - The HTTP object to be added to the advanced conditions.
- obj_
type int - The matching field for HTTP objects.
- opretar int
- The logical operator for the condition.
- property int
- Operate the properties of the http object.
- value_
string str - The value to be matched.
- http
Obj String - The HTTP object to be added to the advanced conditions.
- obj
Type Number - The matching field for HTTP objects.
- opretar Number
- The logical operator for the condition.
- property Number
- Operate the properties of the http object.
- value
String String - The value to be matched.
Import
WafCustomPage can be imported using the id, e.g.
$ pulumi import volcengine:waf/customPage:CustomPage default resource_id:Host
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.