opentelekomcloud.WafPreciseprotectionRuleV1
Explore with Pulumi AI
Up-to-date reference of API arguments for WAF precise protection rule you can get at documentation portal
Manages a WAF Precise Protection Rule resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const policy1 = new opentelekomcloud.WafPolicyV1("policy1", {});
const rule1 = new opentelekomcloud.WafPreciseprotectionRuleV1("rule1", {
policyId: policy1.wafPolicyV1Id,
conditions: [
{
category: "path",
contents: ["/login"],
logic: "contain",
},
{
category: "ip",
contents: ["192.168.1.1"],
logic: "equal",
},
],
actionCategory: "block",
priority: 10,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
policy1 = opentelekomcloud.WafPolicyV1("policy1")
rule1 = opentelekomcloud.WafPreciseprotectionRuleV1("rule1",
policy_id=policy1.waf_policy_v1_id,
conditions=[
{
"category": "path",
"contents": ["/login"],
"logic": "contain",
},
{
"category": "ip",
"contents": ["192.168.1.1"],
"logic": "equal",
},
],
action_category="block",
priority=10)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
policy1, err := opentelekomcloud.NewWafPolicyV1(ctx, "policy1", nil)
if err != nil {
return err
}
_, err = opentelekomcloud.NewWafPreciseprotectionRuleV1(ctx, "rule1", &opentelekomcloud.WafPreciseprotectionRuleV1Args{
PolicyId: policy1.WafPolicyV1Id,
Conditions: opentelekomcloud.WafPreciseprotectionRuleV1ConditionArray{
&opentelekomcloud.WafPreciseprotectionRuleV1ConditionArgs{
Category: pulumi.String("path"),
Contents: pulumi.StringArray{
pulumi.String("/login"),
},
Logic: pulumi.String("contain"),
},
&opentelekomcloud.WafPreciseprotectionRuleV1ConditionArgs{
Category: pulumi.String("ip"),
Contents: pulumi.StringArray{
pulumi.String("192.168.1.1"),
},
Logic: pulumi.String("equal"),
},
},
ActionCategory: pulumi.String("block"),
Priority: pulumi.Float64(10),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var policy1 = new Opentelekomcloud.WafPolicyV1("policy1");
var rule1 = new Opentelekomcloud.WafPreciseprotectionRuleV1("rule1", new()
{
PolicyId = policy1.WafPolicyV1Id,
Conditions = new[]
{
new Opentelekomcloud.Inputs.WafPreciseprotectionRuleV1ConditionArgs
{
Category = "path",
Contents = new[]
{
"/login",
},
Logic = "contain",
},
new Opentelekomcloud.Inputs.WafPreciseprotectionRuleV1ConditionArgs
{
Category = "ip",
Contents = new[]
{
"192.168.1.1",
},
Logic = "equal",
},
},
ActionCategory = "block",
Priority = 10,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.WafPolicyV1;
import com.pulumi.opentelekomcloud.WafPreciseprotectionRuleV1;
import com.pulumi.opentelekomcloud.WafPreciseprotectionRuleV1Args;
import com.pulumi.opentelekomcloud.inputs.WafPreciseprotectionRuleV1ConditionArgs;
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 policy1 = new WafPolicyV1("policy1");
var rule1 = new WafPreciseprotectionRuleV1("rule1", WafPreciseprotectionRuleV1Args.builder()
.policyId(policy1.wafPolicyV1Id())
.conditions(
WafPreciseprotectionRuleV1ConditionArgs.builder()
.category("path")
.contents("/login")
.logic("contain")
.build(),
WafPreciseprotectionRuleV1ConditionArgs.builder()
.category("ip")
.contents("192.168.1.1")
.logic("equal")
.build())
.actionCategory("block")
.priority(10)
.build());
}
}
resources:
policy1:
type: opentelekomcloud:WafPolicyV1
rule1:
type: opentelekomcloud:WafPreciseprotectionRuleV1
properties:
policyId: ${policy1.wafPolicyV1Id}
conditions:
- category: path
contents:
- /login
logic: contain
- category: ip
contents:
- 192.168.1.1
logic: equal
actionCategory: block
priority: 10
Create WafPreciseprotectionRuleV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WafPreciseprotectionRuleV1(name: string, args: WafPreciseprotectionRuleV1Args, opts?: CustomResourceOptions);
@overload
def WafPreciseprotectionRuleV1(resource_name: str,
args: WafPreciseprotectionRuleV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def WafPreciseprotectionRuleV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
action_category: Optional[str] = None,
conditions: Optional[Sequence[WafPreciseprotectionRuleV1ConditionArgs]] = None,
policy_id: Optional[str] = None,
end: Optional[str] = None,
name: Optional[str] = None,
priority: Optional[float] = None,
start: Optional[str] = None,
time: Optional[bool] = None,
timeouts: Optional[WafPreciseprotectionRuleV1TimeoutsArgs] = None,
waf_preciseprotection_rule_v1_id: Optional[str] = None)
func NewWafPreciseprotectionRuleV1(ctx *Context, name string, args WafPreciseprotectionRuleV1Args, opts ...ResourceOption) (*WafPreciseprotectionRuleV1, error)
public WafPreciseprotectionRuleV1(string name, WafPreciseprotectionRuleV1Args args, CustomResourceOptions? opts = null)
public WafPreciseprotectionRuleV1(String name, WafPreciseprotectionRuleV1Args args)
public WafPreciseprotectionRuleV1(String name, WafPreciseprotectionRuleV1Args args, CustomResourceOptions options)
type: opentelekomcloud:WafPreciseprotectionRuleV1
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 WafPreciseprotectionRuleV1Args
- 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 WafPreciseprotectionRuleV1Args
- 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 WafPreciseprotectionRuleV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafPreciseprotectionRuleV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WafPreciseprotectionRuleV1Args
- 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 wafPreciseprotectionRuleV1Resource = new Opentelekomcloud.WafPreciseprotectionRuleV1("wafPreciseprotectionRuleV1Resource", new()
{
ActionCategory = "string",
Conditions = new[]
{
new Opentelekomcloud.Inputs.WafPreciseprotectionRuleV1ConditionArgs
{
Category = "string",
Contents = new[]
{
"string",
},
Logic = "string",
Index = "string",
},
},
PolicyId = "string",
End = "string",
Name = "string",
Priority = 0,
Start = "string",
Time = false,
Timeouts = new Opentelekomcloud.Inputs.WafPreciseprotectionRuleV1TimeoutsArgs
{
Create = "string",
Delete = "string",
},
WafPreciseprotectionRuleV1Id = "string",
});
example, err := opentelekomcloud.NewWafPreciseprotectionRuleV1(ctx, "wafPreciseprotectionRuleV1Resource", &opentelekomcloud.WafPreciseprotectionRuleV1Args{
ActionCategory: pulumi.String("string"),
Conditions: opentelekomcloud.WafPreciseprotectionRuleV1ConditionArray{
&opentelekomcloud.WafPreciseprotectionRuleV1ConditionArgs{
Category: pulumi.String("string"),
Contents: pulumi.StringArray{
pulumi.String("string"),
},
Logic: pulumi.String("string"),
Index: pulumi.String("string"),
},
},
PolicyId: pulumi.String("string"),
End: pulumi.String("string"),
Name: pulumi.String("string"),
Priority: pulumi.Float64(0),
Start: pulumi.String("string"),
Time: pulumi.Bool(false),
Timeouts: &opentelekomcloud.WafPreciseprotectionRuleV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
WafPreciseprotectionRuleV1Id: pulumi.String("string"),
})
var wafPreciseprotectionRuleV1Resource = new WafPreciseprotectionRuleV1("wafPreciseprotectionRuleV1Resource", WafPreciseprotectionRuleV1Args.builder()
.actionCategory("string")
.conditions(WafPreciseprotectionRuleV1ConditionArgs.builder()
.category("string")
.contents("string")
.logic("string")
.index("string")
.build())
.policyId("string")
.end("string")
.name("string")
.priority(0)
.start("string")
.time(false)
.timeouts(WafPreciseprotectionRuleV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.wafPreciseprotectionRuleV1Id("string")
.build());
waf_preciseprotection_rule_v1_resource = opentelekomcloud.WafPreciseprotectionRuleV1("wafPreciseprotectionRuleV1Resource",
action_category="string",
conditions=[{
"category": "string",
"contents": ["string"],
"logic": "string",
"index": "string",
}],
policy_id="string",
end="string",
name="string",
priority=0,
start="string",
time=False,
timeouts={
"create": "string",
"delete": "string",
},
waf_preciseprotection_rule_v1_id="string")
const wafPreciseprotectionRuleV1Resource = new opentelekomcloud.WafPreciseprotectionRuleV1("wafPreciseprotectionRuleV1Resource", {
actionCategory: "string",
conditions: [{
category: "string",
contents: ["string"],
logic: "string",
index: "string",
}],
policyId: "string",
end: "string",
name: "string",
priority: 0,
start: "string",
time: false,
timeouts: {
create: "string",
"delete": "string",
},
wafPreciseprotectionRuleV1Id: "string",
});
type: opentelekomcloud:WafPreciseprotectionRuleV1
properties:
actionCategory: string
conditions:
- category: string
contents:
- string
index: string
logic: string
end: string
name: string
policyId: string
priority: 0
start: string
time: false
timeouts:
create: string
delete: string
wafPreciseprotectionRuleV1Id: string
WafPreciseprotectionRuleV1 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 WafPreciseprotectionRuleV1 resource accepts the following input properties:
- Action
Category string - Conditions
List<Waf
Preciseprotection Rule V1Condition> - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- End string
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- Name string
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- Priority double
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- Start string
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- Time bool
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- Timeouts
Waf
Preciseprotection Rule V1Timeouts - Waf
Preciseprotection stringRule V1Id - ID of the rule.
- Action
Category string - Conditions
[]Waf
Preciseprotection Rule V1Condition Args - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- End string
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- Name string
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- Priority float64
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- Start string
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- Time bool
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- Timeouts
Waf
Preciseprotection Rule V1Timeouts Args - Waf
Preciseprotection stringRule V1Id - ID of the rule.
- action
Category String - conditions
List<Waf
Preciseprotection Rule V1Condition> - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- end String
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- name String
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- priority Double
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- start String
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- time Boolean
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- timeouts
Waf
Preciseprotection Rule V1Timeouts - waf
Preciseprotection StringRule V1Id - ID of the rule.
- action
Category string - conditions
Waf
Preciseprotection Rule V1Condition[] - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- policy
Id string - The WAF policy ID. Changing this creates a new rule.
- end string
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- name string
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- priority number
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- start string
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- time boolean
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- timeouts
Waf
Preciseprotection Rule V1Timeouts - waf
Preciseprotection stringRule V1Id - ID of the rule.
- action_
category str - conditions
Sequence[Waf
Preciseprotection Rule V1Condition Args] - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- policy_
id str - The WAF policy ID. Changing this creates a new rule.
- end str
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- name str
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- priority float
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- start str
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- time bool
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- timeouts
Waf
Preciseprotection Rule V1Timeouts Args - waf_
preciseprotection_ strrule_ v1_ id - ID of the rule.
- action
Category String - conditions List<Property Map>
- Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- end String
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- name String
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- priority Number
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- start String
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- time Boolean
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- timeouts Property Map
- waf
Preciseprotection StringRule V1Id - ID of the rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the WafPreciseprotectionRuleV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing WafPreciseprotectionRuleV1 Resource
Get an existing WafPreciseprotectionRuleV1 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?: WafPreciseprotectionRuleV1State, opts?: CustomResourceOptions): WafPreciseprotectionRuleV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_category: Optional[str] = None,
conditions: Optional[Sequence[WafPreciseprotectionRuleV1ConditionArgs]] = None,
end: Optional[str] = None,
name: Optional[str] = None,
policy_id: Optional[str] = None,
priority: Optional[float] = None,
start: Optional[str] = None,
time: Optional[bool] = None,
timeouts: Optional[WafPreciseprotectionRuleV1TimeoutsArgs] = None,
waf_preciseprotection_rule_v1_id: Optional[str] = None) -> WafPreciseprotectionRuleV1
func GetWafPreciseprotectionRuleV1(ctx *Context, name string, id IDInput, state *WafPreciseprotectionRuleV1State, opts ...ResourceOption) (*WafPreciseprotectionRuleV1, error)
public static WafPreciseprotectionRuleV1 Get(string name, Input<string> id, WafPreciseprotectionRuleV1State? state, CustomResourceOptions? opts = null)
public static WafPreciseprotectionRuleV1 get(String name, Output<String> id, WafPreciseprotectionRuleV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:WafPreciseprotectionRuleV1 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.
- Action
Category string - Conditions
List<Waf
Preciseprotection Rule V1Condition> - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- End string
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- Name string
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Priority double
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- Start string
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- Time bool
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- Timeouts
Waf
Preciseprotection Rule V1Timeouts - Waf
Preciseprotection stringRule V1Id - ID of the rule.
- Action
Category string - Conditions
[]Waf
Preciseprotection Rule V1Condition Args - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- End string
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- Name string
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- Policy
Id string - The WAF policy ID. Changing this creates a new rule.
- Priority float64
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- Start string
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- Time bool
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- Timeouts
Waf
Preciseprotection Rule V1Timeouts Args - Waf
Preciseprotection stringRule V1Id - ID of the rule.
- action
Category String - conditions
List<Waf
Preciseprotection Rule V1Condition> - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- end String
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- name String
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- priority Double
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- start String
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- time Boolean
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- timeouts
Waf
Preciseprotection Rule V1Timeouts - waf
Preciseprotection StringRule V1Id - ID of the rule.
- action
Category string - conditions
Waf
Preciseprotection Rule V1Condition[] - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- end string
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- name string
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- policy
Id string - The WAF policy ID. Changing this creates a new rule.
- priority number
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- start string
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- time boolean
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- timeouts
Waf
Preciseprotection Rule V1Timeouts - waf
Preciseprotection stringRule V1Id - ID of the rule.
- action_
category str - conditions
Sequence[Waf
Preciseprotection Rule V1Condition Args] - Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- end str
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- name str
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- policy_
id str - The WAF policy ID. Changing this creates a new rule.
- priority float
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- start str
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- time bool
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- timeouts
Waf
Preciseprotection Rule V1Timeouts Args - waf_
preciseprotection_ strrule_ v1_ id - ID of the rule.
- action
Category String - conditions List<Property Map>
- Specifies the condition parameters. Changing this creates a new rule. The conditions object structure is documented below.
- end String
- Specifies the time when the precise protection rule expires. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- name String
- Specifies the name of a precise protection rule. Changing this creates a new rule.
- policy
Id String - The WAF policy ID. Changing this creates a new rule.
- priority Number
- Specifies the priority of a rule being executed. Smaller values correspond to higher priorities. If two rules are assigned with the same priority, the rule added earlier has higher priority, the rule added earlier has higher priority. The value ranges from 0 to 65535. Changing this creates a new rule.
- start String
- Specifies the time when the precise protection rule takes effect. If time is set to true, either the start time or the end time must be set. Changing this creates a new rule.
- time Boolean
- Specifies the effect time of the precise protection rule. Changing this creates a new rule.
- timeouts Property Map
- waf
Preciseprotection StringRule V1Id - ID of the rule.
Supporting Types
WafPreciseprotectionRuleV1Condition, WafPreciseprotectionRuleV1ConditionArgs
- Category string
- Specifies the condition type. The value can be path, user-agent, ip, params, cookie, referer, or header.
- Contents List<string>
- Specifies a list of content matching the condition. Currently, only one value is accepted.
- Logic string
- contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, and not_suffix indicate Include, Exclude, Equal to, Not equal to, Prefix is, Prefix is not, Suffix is, and Suffix is not respectively. If category is set to ip, logic can only be equal or not_equal.
- Index string
- If
category
is set to cookie, index indicates cookie name, if set to params, index indicates param name, if set to header, index indicates an option in the header.
- Category string
- Specifies the condition type. The value can be path, user-agent, ip, params, cookie, referer, or header.
- Contents []string
- Specifies a list of content matching the condition. Currently, only one value is accepted.
- Logic string
- contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, and not_suffix indicate Include, Exclude, Equal to, Not equal to, Prefix is, Prefix is not, Suffix is, and Suffix is not respectively. If category is set to ip, logic can only be equal or not_equal.
- Index string
- If
category
is set to cookie, index indicates cookie name, if set to params, index indicates param name, if set to header, index indicates an option in the header.
- category String
- Specifies the condition type. The value can be path, user-agent, ip, params, cookie, referer, or header.
- contents List<String>
- Specifies a list of content matching the condition. Currently, only one value is accepted.
- logic String
- contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, and not_suffix indicate Include, Exclude, Equal to, Not equal to, Prefix is, Prefix is not, Suffix is, and Suffix is not respectively. If category is set to ip, logic can only be equal or not_equal.
- index String
- If
category
is set to cookie, index indicates cookie name, if set to params, index indicates param name, if set to header, index indicates an option in the header.
- category string
- Specifies the condition type. The value can be path, user-agent, ip, params, cookie, referer, or header.
- contents string[]
- Specifies a list of content matching the condition. Currently, only one value is accepted.
- logic string
- contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, and not_suffix indicate Include, Exclude, Equal to, Not equal to, Prefix is, Prefix is not, Suffix is, and Suffix is not respectively. If category is set to ip, logic can only be equal or not_equal.
- index string
- If
category
is set to cookie, index indicates cookie name, if set to params, index indicates param name, if set to header, index indicates an option in the header.
- category str
- Specifies the condition type. The value can be path, user-agent, ip, params, cookie, referer, or header.
- contents Sequence[str]
- Specifies a list of content matching the condition. Currently, only one value is accepted.
- logic str
- contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, and not_suffix indicate Include, Exclude, Equal to, Not equal to, Prefix is, Prefix is not, Suffix is, and Suffix is not respectively. If category is set to ip, logic can only be equal or not_equal.
- index str
- If
category
is set to cookie, index indicates cookie name, if set to params, index indicates param name, if set to header, index indicates an option in the header.
- category String
- Specifies the condition type. The value can be path, user-agent, ip, params, cookie, referer, or header.
- contents List<String>
- Specifies a list of content matching the condition. Currently, only one value is accepted.
- logic String
- contain, not_contain, equal, not_equal, prefix, not_prefix, suffix, and not_suffix indicate Include, Exclude, Equal to, Not equal to, Prefix is, Prefix is not, Suffix is, and Suffix is not respectively. If category is set to ip, logic can only be equal or not_equal.
- index String
- If
category
is set to cookie, index indicates cookie name, if set to params, index indicates param name, if set to header, index indicates an option in the header.
WafPreciseprotectionRuleV1Timeouts, WafPreciseprotectionRuleV1TimeoutsArgs
Import
Precise Protection Rules can be imported using policy_id/id
, e.g.
$ pulumi import opentelekomcloud:index/wafPreciseprotectionRuleV1:WafPreciseprotectionRuleV1 rule_1 ff95e71c8ae74eba9887193ab22c5757/b39f3a5a1b4f447a8030f0b0703f47f5
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.