azure-native.cdn.Policy
Explore with Pulumi AI
Defines web application firewall policy for Azure CDN. API Version: 2020-09-01.
Example Usage
Creates specific policy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var policy = new AzureNative.Cdn.Policy("policy", new()
{
CustomRules = new AzureNative.Cdn.Inputs.CustomRuleListArgs
{
Rules = new[]
{
new AzureNative.Cdn.Inputs.CustomRuleArgs
{
Action = "Block",
EnabledState = "Enabled",
MatchConditions = new[]
{
new AzureNative.Cdn.Inputs.MatchConditionArgs
{
MatchValue = new[]
{
"CH",
},
MatchVariable = "RemoteAddr",
NegateCondition = false,
Operator = "GeoMatch",
Transforms = new[] {},
},
new AzureNative.Cdn.Inputs.MatchConditionArgs
{
MatchValue = new[]
{
"windows",
},
MatchVariable = "RequestHeader",
NegateCondition = false,
Operator = "Contains",
Selector = "UserAgent",
Transforms = new[] {},
},
new AzureNative.Cdn.Inputs.MatchConditionArgs
{
MatchValue = new[]
{
"<?php",
"?>",
},
MatchVariable = "QueryString",
NegateCondition = false,
Operator = "Contains",
Selector = "search",
Transforms = new[]
{
"UrlDecode",
"Lowercase",
},
},
},
Name = "CustomRule1",
Priority = 2,
},
},
},
Location = "WestUs",
ManagedRules = new AzureNative.Cdn.Inputs.ManagedRuleSetListArgs
{
ManagedRuleSets = new[]
{
new AzureNative.Cdn.Inputs.ManagedRuleSetArgs
{
RuleGroupOverrides = new[]
{
new AzureNative.Cdn.Inputs.ManagedRuleGroupOverrideArgs
{
RuleGroupName = "Group1",
Rules = new[]
{
new AzureNative.Cdn.Inputs.ManagedRuleOverrideArgs
{
Action = "Redirect",
EnabledState = "Enabled",
RuleId = "GROUP1-0001",
},
new AzureNative.Cdn.Inputs.ManagedRuleOverrideArgs
{
EnabledState = "Disabled",
RuleId = "GROUP1-0002",
},
},
},
},
RuleSetType = "DefaultRuleSet",
RuleSetVersion = "preview-1.0",
},
},
},
PolicyName = "MicrosoftCdnWafPolicy",
PolicySettings = new AzureNative.Cdn.Inputs.PolicySettingsArgs
{
DefaultCustomBlockResponseBody = "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg==",
DefaultCustomBlockResponseStatusCode = 200,
DefaultRedirectUrl = "http://www.bing.com",
},
RateLimitRules = new AzureNative.Cdn.Inputs.RateLimitRuleListArgs
{
Rules = new[]
{
new AzureNative.Cdn.Inputs.RateLimitRuleArgs
{
Action = "Block",
EnabledState = "Enabled",
MatchConditions = new[]
{
new AzureNative.Cdn.Inputs.MatchConditionArgs
{
MatchValue = new[]
{
"192.168.1.0/24",
"10.0.0.0/24",
},
MatchVariable = "RemoteAddr",
NegateCondition = false,
Operator = "IPMatch",
Transforms = new[] {},
},
},
Name = "RateLimitRule1",
Priority = 1,
RateLimitDurationInMinutes = 0,
RateLimitThreshold = 1000,
},
},
},
ResourceGroupName = "rg1",
Sku = new AzureNative.Cdn.Inputs.SkuArgs
{
Name = "Standard_Microsoft",
},
});
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.cdn.Policy;
import com.pulumi.azurenative.cdn.PolicyArgs;
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 policy = new Policy("policy", PolicyArgs.builder()
.customRules(Map.of("rules", Map.ofEntries(
Map.entry("action", "Block"),
Map.entry("enabledState", "Enabled"),
Map.entry("matchConditions",
Map.ofEntries(
Map.entry("matchValue", "CH"),
Map.entry("matchVariable", "RemoteAddr"),
Map.entry("negateCondition", false),
Map.entry("operator", "GeoMatch"),
Map.entry("transforms", )
),
Map.ofEntries(
Map.entry("matchValue", "windows"),
Map.entry("matchVariable", "RequestHeader"),
Map.entry("negateCondition", false),
Map.entry("operator", "Contains"),
Map.entry("selector", "UserAgent"),
Map.entry("transforms", )
),
Map.ofEntries(
Map.entry("matchValue",
"<?php",
"?>"),
Map.entry("matchVariable", "QueryString"),
Map.entry("negateCondition", false),
Map.entry("operator", "Contains"),
Map.entry("selector", "search"),
Map.entry("transforms",
"UrlDecode",
"Lowercase")
)),
Map.entry("name", "CustomRule1"),
Map.entry("priority", 2)
)))
.location("WestUs")
.managedRules(Map.of("managedRuleSets", Map.ofEntries(
Map.entry("ruleGroupOverrides", Map.ofEntries(
Map.entry("ruleGroupName", "Group1"),
Map.entry("rules",
Map.ofEntries(
Map.entry("action", "Redirect"),
Map.entry("enabledState", "Enabled"),
Map.entry("ruleId", "GROUP1-0001")
),
Map.ofEntries(
Map.entry("enabledState", "Disabled"),
Map.entry("ruleId", "GROUP1-0002")
))
)),
Map.entry("ruleSetType", "DefaultRuleSet"),
Map.entry("ruleSetVersion", "preview-1.0")
)))
.policyName("MicrosoftCdnWafPolicy")
.policySettings(Map.ofEntries(
Map.entry("defaultCustomBlockResponseBody", "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="),
Map.entry("defaultCustomBlockResponseStatusCode", 200),
Map.entry("defaultRedirectUrl", "http://www.bing.com")
))
.rateLimitRules(Map.of("rules", Map.ofEntries(
Map.entry("action", "Block"),
Map.entry("enabledState", "Enabled"),
Map.entry("matchConditions", Map.ofEntries(
Map.entry("matchValue",
"192.168.1.0/24",
"10.0.0.0/24"),
Map.entry("matchVariable", "RemoteAddr"),
Map.entry("negateCondition", false),
Map.entry("operator", "IPMatch"),
Map.entry("transforms", )
)),
Map.entry("name", "RateLimitRule1"),
Map.entry("priority", 1),
Map.entry("rateLimitDurationInMinutes", 0),
Map.entry("rateLimitThreshold", 1000)
)))
.resourceGroupName("rg1")
.sku(Map.of("name", "Standard_Microsoft"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
policy = azure_native.cdn.Policy("policy",
custom_rules=azure_native.cdn.CustomRuleListResponseArgs(
rules=[{
"action": "Block",
"enabledState": "Enabled",
"matchConditions": [
azure_native.cdn.MatchConditionArgs(
match_value=["CH"],
match_variable="RemoteAddr",
negate_condition=False,
operator="GeoMatch",
transforms=[],
),
azure_native.cdn.MatchConditionArgs(
match_value=["windows"],
match_variable="RequestHeader",
negate_condition=False,
operator="Contains",
selector="UserAgent",
transforms=[],
),
azure_native.cdn.MatchConditionArgs(
match_value=[
"<?php",
"?>",
],
match_variable="QueryString",
negate_condition=False,
operator="Contains",
selector="search",
transforms=[
"UrlDecode",
"Lowercase",
],
),
],
"name": "CustomRule1",
"priority": 2,
}],
),
location="WestUs",
managed_rules=azure_native.cdn.ManagedRuleSetListResponseArgs(
managed_rule_sets=[{
"ruleGroupOverrides": [{
"ruleGroupName": "Group1",
"rules": [
azure_native.cdn.ManagedRuleOverrideArgs(
action="Redirect",
enabled_state="Enabled",
rule_id="GROUP1-0001",
),
azure_native.cdn.ManagedRuleOverrideArgs(
enabled_state="Disabled",
rule_id="GROUP1-0002",
),
],
}],
"ruleSetType": "DefaultRuleSet",
"ruleSetVersion": "preview-1.0",
}],
),
policy_name="MicrosoftCdnWafPolicy",
policy_settings=azure_native.cdn.PolicySettingsArgs(
default_custom_block_response_body="PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg==",
default_custom_block_response_status_code=200,
default_redirect_url="http://www.bing.com",
),
rate_limit_rules=azure_native.cdn.RateLimitRuleListResponseArgs(
rules=[{
"action": "Block",
"enabledState": "Enabled",
"matchConditions": [azure_native.cdn.MatchConditionArgs(
match_value=[
"192.168.1.0/24",
"10.0.0.0/24",
],
match_variable="RemoteAddr",
negate_condition=False,
operator="IPMatch",
transforms=[],
)],
"name": "RateLimitRule1",
"priority": 1,
"rateLimitDurationInMinutes": 0,
"rateLimitThreshold": 1000,
}],
),
resource_group_name="rg1",
sku=azure_native.cdn.SkuArgs(
name="Standard_Microsoft",
))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const policy = new azure_native.cdn.Policy("policy", {
customRules: {
rules: [{
action: "Block",
enabledState: "Enabled",
matchConditions: [
{
matchValue: ["CH"],
matchVariable: "RemoteAddr",
negateCondition: false,
operator: "GeoMatch",
transforms: [],
},
{
matchValue: ["windows"],
matchVariable: "RequestHeader",
negateCondition: false,
operator: "Contains",
selector: "UserAgent",
transforms: [],
},
{
matchValue: [
"<?php",
"?>",
],
matchVariable: "QueryString",
negateCondition: false,
operator: "Contains",
selector: "search",
transforms: [
"UrlDecode",
"Lowercase",
],
},
],
name: "CustomRule1",
priority: 2,
}],
},
location: "WestUs",
managedRules: {
managedRuleSets: [{
ruleGroupOverrides: [{
ruleGroupName: "Group1",
rules: [
{
action: "Redirect",
enabledState: "Enabled",
ruleId: "GROUP1-0001",
},
{
enabledState: "Disabled",
ruleId: "GROUP1-0002",
},
],
}],
ruleSetType: "DefaultRuleSet",
ruleSetVersion: "preview-1.0",
}],
},
policyName: "MicrosoftCdnWafPolicy",
policySettings: {
defaultCustomBlockResponseBody: "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg==",
defaultCustomBlockResponseStatusCode: 200,
defaultRedirectUrl: "http://www.bing.com",
},
rateLimitRules: {
rules: [{
action: "Block",
enabledState: "Enabled",
matchConditions: [{
matchValue: [
"192.168.1.0/24",
"10.0.0.0/24",
],
matchVariable: "RemoteAddr",
negateCondition: false,
operator: "IPMatch",
transforms: [],
}],
name: "RateLimitRule1",
priority: 1,
rateLimitDurationInMinutes: 0,
rateLimitThreshold: 1000,
}],
},
resourceGroupName: "rg1",
sku: {
name: "Standard_Microsoft",
},
});
resources:
policy:
type: azure-native:cdn:Policy
properties:
customRules:
rules:
- action: Block
enabledState: Enabled
matchConditions:
- matchValue:
- CH
matchVariable: RemoteAddr
negateCondition: false
operator: GeoMatch
transforms: []
- matchValue:
- windows
matchVariable: RequestHeader
negateCondition: false
operator: Contains
selector: UserAgent
transforms: []
- matchValue:
- <?php
- ?>
matchVariable: QueryString
negateCondition: false
operator: Contains
selector: search
transforms:
- UrlDecode
- Lowercase
name: CustomRule1
priority: 2
location: WestUs
managedRules:
managedRuleSets:
- ruleGroupOverrides:
- ruleGroupName: Group1
rules:
- action: Redirect
enabledState: Enabled
ruleId: GROUP1-0001
- enabledState: Disabled
ruleId: GROUP1-0002
ruleSetType: DefaultRuleSet
ruleSetVersion: preview-1.0
policyName: MicrosoftCdnWafPolicy
policySettings:
defaultCustomBlockResponseBody: PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg==
defaultCustomBlockResponseStatusCode: 200
defaultRedirectUrl: http://www.bing.com
rateLimitRules:
rules:
- action: Block
enabledState: Enabled
matchConditions:
- matchValue:
- 192.168.1.0/24
- 10.0.0.0/24
matchVariable: RemoteAddr
negateCondition: false
operator: IPMatch
transforms: []
name: RateLimitRule1
priority: 1
rateLimitDurationInMinutes: 0
rateLimitThreshold: 1000
resourceGroupName: rg1
sku:
name: Standard_Microsoft
Create Policy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Policy(name: string, args: PolicyArgs, opts?: CustomResourceOptions);
@overload
def Policy(resource_name: str,
args: PolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Policy(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
sku: Optional[SkuArgs] = None,
custom_rules: Optional[CustomRuleListArgs] = None,
location: Optional[str] = None,
managed_rules: Optional[ManagedRuleSetListArgs] = None,
policy_name: Optional[str] = None,
policy_settings: Optional[PolicySettingsArgs] = None,
rate_limit_rules: Optional[RateLimitRuleListArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPolicy(ctx *Context, name string, args PolicyArgs, opts ...ResourceOption) (*Policy, error)
public Policy(string name, PolicyArgs args, CustomResourceOptions? opts = null)
public Policy(String name, PolicyArgs args)
public Policy(String name, PolicyArgs args, CustomResourceOptions options)
type: azure-native:cdn:Policy
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 PolicyArgs
- 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 PolicyArgs
- 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 PolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyArgs
- 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 azure_nativePolicyResource = new AzureNative.Cdn.Policy("azure-nativePolicyResource", new()
{
ResourceGroupName = "string",
Sku =
{
{ "name", "string" },
},
CustomRules =
{
{ "rules", new[]
{
{
{ "action", "string" },
{ "matchConditions", new[]
{
{
{ "matchValue", new[]
{
"string",
} },
{ "matchVariable", "string" },
{ "operator", "string" },
{ "negateCondition", false },
{ "selector", "string" },
{ "transforms", new[]
{
"string",
} },
},
} },
{ "name", "string" },
{ "priority", 0 },
{ "enabledState", "string" },
},
} },
},
Location = "string",
ManagedRules =
{
{ "managedRuleSets", new[]
{
{
{ "ruleSetType", "string" },
{ "ruleSetVersion", "string" },
{ "anomalyScore", 0 },
{ "ruleGroupOverrides", new[]
{
{
{ "ruleGroupName", "string" },
{ "rules", new[]
{
{
{ "ruleId", "string" },
{ "action", "string" },
{ "enabledState", "string" },
},
} },
},
} },
},
} },
},
PolicyName = "string",
PolicySettings =
{
{ "defaultCustomBlockResponseBody", "string" },
{ "defaultCustomBlockResponseStatusCode", 0 },
{ "defaultRedirectUrl", "string" },
{ "enabledState", "string" },
{ "mode", "string" },
},
RateLimitRules =
{
{ "rules", new[]
{
{
{ "action", "string" },
{ "matchConditions", new[]
{
{
{ "matchValue", new[]
{
"string",
} },
{ "matchVariable", "string" },
{ "operator", "string" },
{ "negateCondition", false },
{ "selector", "string" },
{ "transforms", new[]
{
"string",
} },
},
} },
{ "name", "string" },
{ "priority", 0 },
{ "rateLimitDurationInMinutes", 0 },
{ "rateLimitThreshold", 0 },
{ "enabledState", "string" },
},
} },
},
Tags =
{
{ "string", "string" },
},
});
example, err := cdn.NewPolicy(ctx, "azure-nativePolicyResource", &cdn.PolicyArgs{
ResourceGroupName: "string",
Sku: map[string]interface{}{
"name": "string",
},
CustomRules: map[string]interface{}{
"rules": []map[string]interface{}{
map[string]interface{}{
"action": "string",
"matchConditions": []map[string]interface{}{
map[string]interface{}{
"matchValue": []string{
"string",
},
"matchVariable": "string",
"operator": "string",
"negateCondition": false,
"selector": "string",
"transforms": []string{
"string",
},
},
},
"name": "string",
"priority": 0,
"enabledState": "string",
},
},
},
Location: "string",
ManagedRules: map[string]interface{}{
"managedRuleSets": []map[string]interface{}{
map[string]interface{}{
"ruleSetType": "string",
"ruleSetVersion": "string",
"anomalyScore": 0,
"ruleGroupOverrides": []map[string]interface{}{
map[string]interface{}{
"ruleGroupName": "string",
"rules": []map[string]interface{}{
map[string]interface{}{
"ruleId": "string",
"action": "string",
"enabledState": "string",
},
},
},
},
},
},
},
PolicyName: "string",
PolicySettings: map[string]interface{}{
"defaultCustomBlockResponseBody": "string",
"defaultCustomBlockResponseStatusCode": 0,
"defaultRedirectUrl": "string",
"enabledState": "string",
"mode": "string",
},
RateLimitRules: map[string]interface{}{
"rules": []map[string]interface{}{
map[string]interface{}{
"action": "string",
"matchConditions": []map[string]interface{}{
map[string]interface{}{
"matchValue": []string{
"string",
},
"matchVariable": "string",
"operator": "string",
"negateCondition": false,
"selector": "string",
"transforms": []string{
"string",
},
},
},
"name": "string",
"priority": 0,
"rateLimitDurationInMinutes": 0,
"rateLimitThreshold": 0,
"enabledState": "string",
},
},
},
Tags: map[string]interface{}{
"string": "string",
},
})
var azure_nativePolicyResource = new Policy("azure-nativePolicyResource", PolicyArgs.builder()
.resourceGroupName("string")
.sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.customRules(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.managedRules(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.policyName("string")
.policySettings(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.rateLimitRules(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
azure_native_policy_resource = azure_native.cdn.Policy("azure-nativePolicyResource",
resource_group_name=string,
sku={
name: string,
},
custom_rules={
rules: [{
action: string,
matchConditions: [{
matchValue: [string],
matchVariable: string,
operator: string,
negateCondition: False,
selector: string,
transforms: [string],
}],
name: string,
priority: 0,
enabledState: string,
}],
},
location=string,
managed_rules={
managedRuleSets: [{
ruleSetType: string,
ruleSetVersion: string,
anomalyScore: 0,
ruleGroupOverrides: [{
ruleGroupName: string,
rules: [{
ruleId: string,
action: string,
enabledState: string,
}],
}],
}],
},
policy_name=string,
policy_settings={
defaultCustomBlockResponseBody: string,
defaultCustomBlockResponseStatusCode: 0,
defaultRedirectUrl: string,
enabledState: string,
mode: string,
},
rate_limit_rules={
rules: [{
action: string,
matchConditions: [{
matchValue: [string],
matchVariable: string,
operator: string,
negateCondition: False,
selector: string,
transforms: [string],
}],
name: string,
priority: 0,
rateLimitDurationInMinutes: 0,
rateLimitThreshold: 0,
enabledState: string,
}],
},
tags={
string: string,
})
const azure_nativePolicyResource = new azure_native.cdn.Policy("azure-nativePolicyResource", {
resourceGroupName: "string",
sku: {
name: "string",
},
customRules: {
rules: [{
action: "string",
matchConditions: [{
matchValue: ["string"],
matchVariable: "string",
operator: "string",
negateCondition: false,
selector: "string",
transforms: ["string"],
}],
name: "string",
priority: 0,
enabledState: "string",
}],
},
location: "string",
managedRules: {
managedRuleSets: [{
ruleSetType: "string",
ruleSetVersion: "string",
anomalyScore: 0,
ruleGroupOverrides: [{
ruleGroupName: "string",
rules: [{
ruleId: "string",
action: "string",
enabledState: "string",
}],
}],
}],
},
policyName: "string",
policySettings: {
defaultCustomBlockResponseBody: "string",
defaultCustomBlockResponseStatusCode: 0,
defaultRedirectUrl: "string",
enabledState: "string",
mode: "string",
},
rateLimitRules: {
rules: [{
action: "string",
matchConditions: [{
matchValue: ["string"],
matchVariable: "string",
operator: "string",
negateCondition: false,
selector: "string",
transforms: ["string"],
}],
name: "string",
priority: 0,
rateLimitDurationInMinutes: 0,
rateLimitThreshold: 0,
enabledState: "string",
}],
},
tags: {
string: "string",
},
});
type: azure-native:cdn:Policy
properties:
customRules:
rules:
- action: string
enabledState: string
matchConditions:
- matchValue:
- string
matchVariable: string
negateCondition: false
operator: string
selector: string
transforms:
- string
name: string
priority: 0
location: string
managedRules:
managedRuleSets:
- anomalyScore: 0
ruleGroupOverrides:
- ruleGroupName: string
rules:
- action: string
enabledState: string
ruleId: string
ruleSetType: string
ruleSetVersion: string
policyName: string
policySettings:
defaultCustomBlockResponseBody: string
defaultCustomBlockResponseStatusCode: 0
defaultRedirectUrl: string
enabledState: string
mode: string
rateLimitRules:
rules:
- action: string
enabledState: string
matchConditions:
- matchValue:
- string
matchVariable: string
negateCondition: false
operator: string
selector: string
transforms:
- string
name: string
priority: 0
rateLimitDurationInMinutes: 0
rateLimitThreshold: 0
resourceGroupName: string
sku:
name: string
tags:
string: string
Policy 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 Policy resource accepts the following input properties:
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Sku
Pulumi.
Azure Native. Cdn. Inputs. Sku - The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
- Custom
Rules Pulumi.Azure Native. Cdn. Inputs. Custom Rule List - Describes custom rules inside the policy.
- Location string
- Resource location.
- Managed
Rules Pulumi.Azure Native. Cdn. Inputs. Managed Rule Set List - Describes managed rules inside the policy.
- Policy
Name string - The name of the CdnWebApplicationFirewallPolicy.
- Policy
Settings Pulumi.Azure Native. Cdn. Inputs. Policy Settings - Describes policySettings for policy
- Rate
Limit Pulumi.Rules Azure Native. Cdn. Inputs. Rate Limit Rule List - Describes rate limit rules inside the policy.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Sku
Sku
Args - The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
- Custom
Rules CustomRule List Args - Describes custom rules inside the policy.
- Location string
- Resource location.
- Managed
Rules ManagedRule Set List Args - Describes managed rules inside the policy.
- Policy
Name string - The name of the CdnWebApplicationFirewallPolicy.
- Policy
Settings PolicySettings Args - Describes policySettings for policy
- Rate
Limit RateRules Limit Rule List Args - Describes rate limit rules inside the policy.
- map[string]string
- Resource tags.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- sku Sku
- The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
- custom
Rules CustomRule List - Describes custom rules inside the policy.
- location String
- Resource location.
- managed
Rules ManagedRule Set List - Describes managed rules inside the policy.
- policy
Name String - The name of the CdnWebApplicationFirewallPolicy.
- policy
Settings PolicySettings - Describes policySettings for policy
- rate
Limit RateRules Limit Rule List - Describes rate limit rules inside the policy.
- Map<String,String>
- Resource tags.
- resource
Group stringName - Name of the Resource group within the Azure subscription.
- sku Sku
- The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
- custom
Rules CustomRule List - Describes custom rules inside the policy.
- location string
- Resource location.
- managed
Rules ManagedRule Set List - Describes managed rules inside the policy.
- policy
Name string - The name of the CdnWebApplicationFirewallPolicy.
- policy
Settings PolicySettings - Describes policySettings for policy
- rate
Limit RateRules Limit Rule List - Describes rate limit rules inside the policy.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - Name of the Resource group within the Azure subscription.
- sku
Sku
Args - The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
- custom_
rules CustomRule List Args - Describes custom rules inside the policy.
- location str
- Resource location.
- managed_
rules ManagedRule Set List Args - Describes managed rules inside the policy.
- policy_
name str - The name of the CdnWebApplicationFirewallPolicy.
- policy_
settings PolicySettings Args - Describes policySettings for policy
- rate_
limit_ Raterules Limit Rule List Args - Describes rate limit rules inside the policy.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- sku Property Map
- The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.
- custom
Rules Property Map - Describes custom rules inside the policy.
- location String
- Resource location.
- managed
Rules Property Map - Describes managed rules inside the policy.
- policy
Name String - The name of the CdnWebApplicationFirewallPolicy.
- policy
Settings Property Map - Describes policySettings for policy
- rate
Limit Property MapRules - Describes rate limit rules inside the policy.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Policy resource produces the following output properties:
- Endpoint
Links List<Pulumi.Azure Native. Cdn. Outputs. Cdn Endpoint Response> - Describes Azure CDN endpoints associated with this Web Application Firewall policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning state of the WebApplicationFirewallPolicy.
- Resource
State string - System
Data Pulumi.Azure Native. Cdn. Outputs. System Data Response - Read only system data
- Type string
- Resource type.
- Etag string
- Gets a unique read-only string that changes whenever the resource is updated.
- Endpoint
Links []CdnEndpoint Response - Describes Azure CDN endpoints associated with this Web Application Firewall policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning state of the WebApplicationFirewallPolicy.
- Resource
State string - System
Data SystemData Response - Read only system data
- Type string
- Resource type.
- Etag string
- Gets a unique read-only string that changes whenever the resource is updated.
- endpoint
Links List<CdnEndpoint Response> - Describes Azure CDN endpoints associated with this Web Application Firewall policy.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning state of the WebApplicationFirewallPolicy.
- resource
State String - system
Data SystemData Response - Read only system data
- type String
- Resource type.
- etag String
- Gets a unique read-only string that changes whenever the resource is updated.
- endpoint
Links CdnEndpoint Response[] - Describes Azure CDN endpoints associated with this Web Application Firewall policy.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - Provisioning state of the WebApplicationFirewallPolicy.
- resource
State string - system
Data SystemData Response - Read only system data
- type string
- Resource type.
- etag string
- Gets a unique read-only string that changes whenever the resource is updated.
- endpoint_
links Sequence[CdnEndpoint Response] - Describes Azure CDN endpoints associated with this Web Application Firewall policy.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - Provisioning state of the WebApplicationFirewallPolicy.
- resource_
state str - system_
data SystemData Response - Read only system data
- type str
- Resource type.
- etag str
- Gets a unique read-only string that changes whenever the resource is updated.
- endpoint
Links List<Property Map> - Describes Azure CDN endpoints associated with this Web Application Firewall policy.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning state of the WebApplicationFirewallPolicy.
- resource
State String - system
Data Property Map - Read only system data
- type String
- Resource type.
- etag String
- Gets a unique read-only string that changes whenever the resource is updated.
Supporting Types
ActionType, ActionTypeArgs
- Allow
- Allow
- Block
- Block
- Log
- Log
- Redirect
- Redirect
- Action
Type Allow - Allow
- Action
Type Block - Block
- Action
Type Log - Log
- Action
Type Redirect - Redirect
- Allow
- Allow
- Block
- Block
- Log
- Log
- Redirect
- Redirect
- Allow
- Allow
- Block
- Block
- Log
- Log
- Redirect
- Redirect
- ALLOW
- Allow
- BLOCK
- Block
- LOG
- Log
- REDIRECT
- Redirect
- "Allow"
- Allow
- "Block"
- Block
- "Log"
- Log
- "Redirect"
- Redirect
CdnEndpointResponse, CdnEndpointResponseArgs
- Id string
- ARM Resource ID string.
- Id string
- ARM Resource ID string.
- id String
- ARM Resource ID string.
- id string
- ARM Resource ID string.
- id str
- ARM Resource ID string.
- id String
- ARM Resource ID string.
CustomRule, CustomRuleArgs
- Action
string | Pulumi.
Azure Native. Cdn. Action Type - Describes what action to be applied when rule matches
- Match
Conditions List<Pulumi.Azure Native. Cdn. Inputs. Match Condition> - List of match conditions.
- Name string
- Defines the name of the custom rule
- Priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- Enabled
State string | Pulumi.Azure Native. Cdn. Custom Rule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- Action
string | Action
Type - Describes what action to be applied when rule matches
- Match
Conditions []MatchCondition - List of match conditions.
- Name string
- Defines the name of the custom rule
- Priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- Enabled
State string | CustomRule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action
String | Action
Type - Describes what action to be applied when rule matches
- match
Conditions List<MatchCondition> - List of match conditions.
- name String
- Defines the name of the custom rule
- priority Integer
- Defines in what order this rule be evaluated in the overall list of custom rules
- enabled
State String | CustomRule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action
string | Action
Type - Describes what action to be applied when rule matches
- match
Conditions MatchCondition[] - List of match conditions.
- name string
- Defines the name of the custom rule
- priority number
- Defines in what order this rule be evaluated in the overall list of custom rules
- enabled
State string | CustomRule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action
str | Action
Type - Describes what action to be applied when rule matches
- match_
conditions Sequence[MatchCondition] - List of match conditions.
- name str
- Defines the name of the custom rule
- priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- enabled_
state str | CustomRule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action String | "Allow" | "Block" | "Log" | "Redirect"
- Describes what action to be applied when rule matches
- match
Conditions List<Property Map> - List of match conditions.
- name String
- Defines the name of the custom rule
- priority Number
- Defines in what order this rule be evaluated in the overall list of custom rules
- enabled
State String | "Disabled" | "Enabled" - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
CustomRuleEnabledState, CustomRuleEnabledStateArgs
- Disabled
- Disabled
- Enabled
- Enabled
- Custom
Rule Enabled State Disabled - Disabled
- Custom
Rule Enabled State Enabled - Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- DISABLED
- Disabled
- ENABLED
- Enabled
- "Disabled"
- Disabled
- "Enabled"
- Enabled
CustomRuleList, CustomRuleListArgs
- Rules
List<Pulumi.
Azure Native. Cdn. Inputs. Custom Rule> - List of rules
- Rules
[]Custom
Rule - List of rules
- rules
List<Custom
Rule> - List of rules
- rules
Custom
Rule[] - List of rules
- rules
Sequence[Custom
Rule] - List of rules
- rules List<Property Map>
- List of rules
CustomRuleListResponse, CustomRuleListResponseArgs
- Rules
[]Custom
Rule Response - List of rules
- rules
List<Custom
Rule Response> - List of rules
- rules
Custom
Rule Response[] - List of rules
- rules
Sequence[Custom
Rule Response] - List of rules
- rules List<Property Map>
- List of rules
CustomRuleResponse, CustomRuleResponseArgs
- Action string
- Describes what action to be applied when rule matches
- Match
Conditions List<Pulumi.Azure Native. Cdn. Inputs. Match Condition Response> - List of match conditions.
- Name string
- Defines the name of the custom rule
- Priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- Enabled
State string - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- Action string
- Describes what action to be applied when rule matches
- Match
Conditions []MatchCondition Response - List of match conditions.
- Name string
- Defines the name of the custom rule
- Priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- Enabled
State string - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action String
- Describes what action to be applied when rule matches
- match
Conditions List<MatchCondition Response> - List of match conditions.
- name String
- Defines the name of the custom rule
- priority Integer
- Defines in what order this rule be evaluated in the overall list of custom rules
- enabled
State String - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action string
- Describes what action to be applied when rule matches
- match
Conditions MatchCondition Response[] - List of match conditions.
- name string
- Defines the name of the custom rule
- priority number
- Defines in what order this rule be evaluated in the overall list of custom rules
- enabled
State string - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action str
- Describes what action to be applied when rule matches
- match_
conditions Sequence[MatchCondition Response] - List of match conditions.
- name str
- Defines the name of the custom rule
- priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- enabled_
state str - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action String
- Describes what action to be applied when rule matches
- match
Conditions List<Property Map> - List of match conditions.
- name String
- Defines the name of the custom rule
- priority Number
- Defines in what order this rule be evaluated in the overall list of custom rules
- enabled
State String - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
ManagedRuleEnabledState, ManagedRuleEnabledStateArgs
- Disabled
- Disabled
- Enabled
- Enabled
- Managed
Rule Enabled State Disabled - Disabled
- Managed
Rule Enabled State Enabled - Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- DISABLED
- Disabled
- ENABLED
- Enabled
- "Disabled"
- Disabled
- "Enabled"
- Enabled
ManagedRuleGroupOverride, ManagedRuleGroupOverrideArgs
- Rule
Group stringName - Describes the managed rule group within the rule set to override
- Rules
List<Pulumi.
Azure Native. Cdn. Inputs. Managed Rule Override> - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- Rule
Group stringName - Describes the managed rule group within the rule set to override
- Rules
[]Managed
Rule Override - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- rule
Group StringName - Describes the managed rule group within the rule set to override
- rules
List<Managed
Rule Override> - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- rule
Group stringName - Describes the managed rule group within the rule set to override
- rules
Managed
Rule Override[] - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- rule_
group_ strname - Describes the managed rule group within the rule set to override
- rules
Sequence[Managed
Rule Override] - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- rule
Group StringName - Describes the managed rule group within the rule set to override
- rules List<Property Map>
- List of rules that will be disabled. If none specified, all rules in the group will be disabled.
ManagedRuleGroupOverrideResponse, ManagedRuleGroupOverrideResponseArgs
- Rule
Group stringName - Describes the managed rule group within the rule set to override
- Rules
List<Pulumi.
Azure Native. Cdn. Inputs. Managed Rule Override Response> - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- Rule
Group stringName - Describes the managed rule group within the rule set to override
- Rules
[]Managed
Rule Override Response - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- rule
Group StringName - Describes the managed rule group within the rule set to override
- rules
List<Managed
Rule Override Response> - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- rule
Group stringName - Describes the managed rule group within the rule set to override
- rules
Managed
Rule Override Response[] - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- rule_
group_ strname - Describes the managed rule group within the rule set to override
- rules
Sequence[Managed
Rule Override Response] - List of rules that will be disabled. If none specified, all rules in the group will be disabled.
- rule
Group StringName - Describes the managed rule group within the rule set to override
- rules List<Property Map>
- List of rules that will be disabled. If none specified, all rules in the group will be disabled.
ManagedRuleOverride, ManagedRuleOverrideArgs
- Rule
Id string - Identifier for the managed rule.
- Action
string | Pulumi.
Azure Native. Cdn. Action Type - Describes the override action to be applied when rule matches.
- Enabled
State string | Pulumi.Azure Native. Cdn. Managed Rule Enabled State - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- Rule
Id string - Identifier for the managed rule.
- Action
string | Action
Type - Describes the override action to be applied when rule matches.
- Enabled
State string | ManagedRule Enabled State - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- rule
Id String - Identifier for the managed rule.
- action
String | Action
Type - Describes the override action to be applied when rule matches.
- enabled
State String | ManagedRule Enabled State - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- rule
Id string - Identifier for the managed rule.
- action
string | Action
Type - Describes the override action to be applied when rule matches.
- enabled
State string | ManagedRule Enabled State - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- rule_
id str - Identifier for the managed rule.
- action
str | Action
Type - Describes the override action to be applied when rule matches.
- enabled_
state str | ManagedRule Enabled State - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- rule
Id String - Identifier for the managed rule.
- action String | "Allow" | "Block" | "Log" | "Redirect"
- Describes the override action to be applied when rule matches.
- enabled
State String | "Disabled" | "Enabled" - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
ManagedRuleOverrideResponse, ManagedRuleOverrideResponseArgs
- Rule
Id string - Identifier for the managed rule.
- Action string
- Describes the override action to be applied when rule matches.
- Enabled
State string - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- Rule
Id string - Identifier for the managed rule.
- Action string
- Describes the override action to be applied when rule matches.
- Enabled
State string - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- rule
Id String - Identifier for the managed rule.
- action String
- Describes the override action to be applied when rule matches.
- enabled
State String - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- rule
Id string - Identifier for the managed rule.
- action string
- Describes the override action to be applied when rule matches.
- enabled
State string - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- rule_
id str - Identifier for the managed rule.
- action str
- Describes the override action to be applied when rule matches.
- enabled_
state str - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- rule
Id String - Identifier for the managed rule.
- action String
- Describes the override action to be applied when rule matches.
- enabled
State String - Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
ManagedRuleSet, ManagedRuleSetArgs
- Rule
Set stringType - Defines the rule set type to use.
- Rule
Set stringVersion - Defines the version of the rule set to use.
- Anomaly
Score int - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- Rule
Group List<Pulumi.Overrides Azure Native. Cdn. Inputs. Managed Rule Group Override> - Defines the rule overrides to apply to the rule set.
- Rule
Set stringType - Defines the rule set type to use.
- Rule
Set stringVersion - Defines the version of the rule set to use.
- Anomaly
Score int - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- Rule
Group []ManagedOverrides Rule Group Override - Defines the rule overrides to apply to the rule set.
- rule
Set StringType - Defines the rule set type to use.
- rule
Set StringVersion - Defines the version of the rule set to use.
- anomaly
Score Integer - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- rule
Group List<ManagedOverrides Rule Group Override> - Defines the rule overrides to apply to the rule set.
- rule
Set stringType - Defines the rule set type to use.
- rule
Set stringVersion - Defines the version of the rule set to use.
- anomaly
Score number - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- rule
Group ManagedOverrides Rule Group Override[] - Defines the rule overrides to apply to the rule set.
- rule_
set_ strtype - Defines the rule set type to use.
- rule_
set_ strversion - Defines the version of the rule set to use.
- anomaly_
score int - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- rule_
group_ Sequence[Managedoverrides Rule Group Override] - Defines the rule overrides to apply to the rule set.
- rule
Set StringType - Defines the rule set type to use.
- rule
Set StringVersion - Defines the version of the rule set to use.
- anomaly
Score Number - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- rule
Group List<Property Map>Overrides - Defines the rule overrides to apply to the rule set.
ManagedRuleSetList, ManagedRuleSetListArgs
- Managed
Rule List<Pulumi.Sets Azure Native. Cdn. Inputs. Managed Rule Set> - List of rule sets.
- Managed
Rule []ManagedSets Rule Set - List of rule sets.
- managed
Rule List<ManagedSets Rule Set> - List of rule sets.
- managed
Rule ManagedSets Rule Set[] - List of rule sets.
- managed_
rule_ Sequence[Managedsets Rule Set] - List of rule sets.
- managed
Rule List<Property Map>Sets - List of rule sets.
ManagedRuleSetListResponse, ManagedRuleSetListResponseArgs
- Managed
Rule List<Pulumi.Sets Azure Native. Cdn. Inputs. Managed Rule Set Response> - List of rule sets.
- Managed
Rule []ManagedSets Rule Set Response - List of rule sets.
- managed
Rule List<ManagedSets Rule Set Response> - List of rule sets.
- managed
Rule ManagedSets Rule Set Response[] - List of rule sets.
- managed_
rule_ Sequence[Managedsets Rule Set Response] - List of rule sets.
- managed
Rule List<Property Map>Sets - List of rule sets.
ManagedRuleSetResponse, ManagedRuleSetResponseArgs
- Rule
Set stringType - Defines the rule set type to use.
- Rule
Set stringVersion - Defines the version of the rule set to use.
- Anomaly
Score int - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- Rule
Group List<Pulumi.Overrides Azure Native. Cdn. Inputs. Managed Rule Group Override Response> - Defines the rule overrides to apply to the rule set.
- Rule
Set stringType - Defines the rule set type to use.
- Rule
Set stringVersion - Defines the version of the rule set to use.
- Anomaly
Score int - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- Rule
Group []ManagedOverrides Rule Group Override Response - Defines the rule overrides to apply to the rule set.
- rule
Set StringType - Defines the rule set type to use.
- rule
Set StringVersion - Defines the version of the rule set to use.
- anomaly
Score Integer - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- rule
Group List<ManagedOverrides Rule Group Override Response> - Defines the rule overrides to apply to the rule set.
- rule
Set stringType - Defines the rule set type to use.
- rule
Set stringVersion - Defines the version of the rule set to use.
- anomaly
Score number - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- rule
Group ManagedOverrides Rule Group Override Response[] - Defines the rule overrides to apply to the rule set.
- rule_
set_ strtype - Defines the rule set type to use.
- rule_
set_ strversion - Defines the version of the rule set to use.
- anomaly_
score int - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- rule_
group_ Sequence[Managedoverrides Rule Group Override Response] - Defines the rule overrides to apply to the rule set.
- rule
Set StringType - Defines the rule set type to use.
- rule
Set StringVersion - Defines the version of the rule set to use.
- anomaly
Score Number - Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
- rule
Group List<Property Map>Overrides - Defines the rule overrides to apply to the rule set.
MatchCondition, MatchConditionArgs
- Match
Value List<string> - List of possible match values.
- Match
Variable string | Pulumi.Azure Native. Cdn. Match Variable - Match variable to compare against.
- Operator
string | Pulumi.
Azure Native. Cdn. Operator - Describes operator to be matched
- Negate
Condition bool - Describes if the result of this condition should be negated.
- Selector string
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- Transforms
List<Union<string, Pulumi.
Azure Native. Cdn. Transform Type>> - List of transforms.
- Match
Value []string - List of possible match values.
- Match
Variable string | MatchVariable - Match variable to compare against.
- Operator string | Operator
- Describes operator to be matched
- Negate
Condition bool - Describes if the result of this condition should be negated.
- Selector string
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- Transforms []string
- List of transforms.
- match
Value List<String> - List of possible match values.
- match
Variable String | MatchVariable - Match variable to compare against.
- operator String | Operator
- Describes operator to be matched
- negate
Condition Boolean - Describes if the result of this condition should be negated.
- selector String
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- transforms
List<Either<String,Transform
Type>> - List of transforms.
- match
Value string[] - List of possible match values.
- match
Variable string | MatchVariable - Match variable to compare against.
- operator string | Operator
- Describes operator to be matched
- negate
Condition boolean - Describes if the result of this condition should be negated.
- selector string
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- transforms
(string | Transform
Type)[] - List of transforms.
- match_
value Sequence[str] - List of possible match values.
- match_
variable str | MatchVariable - Match variable to compare against.
- operator str | Operator
- Describes operator to be matched
- negate_
condition bool - Describes if the result of this condition should be negated.
- selector str
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- transforms
Sequence[Union[str, Transform
Type]] - List of transforms.
- match
Value List<String> - List of possible match values.
- match
Variable String | "RemoteAddress" | "Request Method" | "Query String" | "Post Args" | "Request Uri" | "Request Header" | "Request Body" | "Request Scheme" | "Url Path" | "Url File Extension" | "Url File Name" | "Http Version" | "Cookies" | "Is Device" - Match variable to compare against.
- operator
String | "Any" | "IPMatch" | "Geo
Match" | "Equal" | "Contains" | "Less Than" | "Greater Than" | "Less Than Or Equal" | "Greater Than Or Equal" | "Begins With" | "Ends With" | "Reg Ex" - Describes operator to be matched
- negate
Condition Boolean - Describes if the result of this condition should be negated.
- selector String
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- transforms
List<String | "Lowercase" | "Uppercase" | "Trim" | "Url
Decode" | "Url Encode" | "Remove Nulls"> - List of transforms.
MatchConditionResponse, MatchConditionResponseArgs
- Match
Value List<string> - List of possible match values.
- Match
Variable string - Match variable to compare against.
- Operator string
- Describes operator to be matched
- Negate
Condition bool - Describes if the result of this condition should be negated.
- Selector string
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- Transforms List<string>
- List of transforms.
- Match
Value []string - List of possible match values.
- Match
Variable string - Match variable to compare against.
- Operator string
- Describes operator to be matched
- Negate
Condition bool - Describes if the result of this condition should be negated.
- Selector string
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- Transforms []string
- List of transforms.
- match
Value List<String> - List of possible match values.
- match
Variable String - Match variable to compare against.
- operator String
- Describes operator to be matched
- negate
Condition Boolean - Describes if the result of this condition should be negated.
- selector String
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- transforms List<String>
- List of transforms.
- match
Value string[] - List of possible match values.
- match
Variable string - Match variable to compare against.
- operator string
- Describes operator to be matched
- negate
Condition boolean - Describes if the result of this condition should be negated.
- selector string
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- transforms string[]
- List of transforms.
- match_
value Sequence[str] - List of possible match values.
- match_
variable str - Match variable to compare against.
- operator str
- Describes operator to be matched
- negate_
condition bool - Describes if the result of this condition should be negated.
- selector str
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- transforms Sequence[str]
- List of transforms.
- match
Value List<String> - List of possible match values.
- match
Variable String - Match variable to compare against.
- operator String
- Describes operator to be matched
- negate
Condition Boolean - Describes if the result of this condition should be negated.
- selector String
- Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.
- transforms List<String>
- List of transforms.
MatchVariable, MatchVariableArgs
- Remote
Address - RemoteAddress
- Request
Method - RequestMethod
- Query
String - QueryString
- Post
Args - PostArgs
- Request
Uri - RequestUri
- Request
Header - RequestHeader
- Request
Body - RequestBody
- Request
Scheme - RequestScheme
- Url
Path - UrlPath
- Url
File Extension - UrlFileExtension
- Url
File Name - UrlFileName
- Http
Version - HttpVersion
- Cookies
- Cookies
- Is
Device - IsDevice
- Match
Variable Remote Address - RemoteAddress
- Match
Variable Request Method - RequestMethod
- Match
Variable Query String - QueryString
- Match
Variable Post Args - PostArgs
- Match
Variable Request Uri - RequestUri
- Match
Variable Request Header - RequestHeader
- Match
Variable Request Body - RequestBody
- Match
Variable Request Scheme - RequestScheme
- Match
Variable Url Path - UrlPath
- Match
Variable Url File Extension - UrlFileExtension
- Match
Variable Url File Name - UrlFileName
- Match
Variable Http Version - HttpVersion
- Match
Variable Cookies - Cookies
- Match
Variable Is Device - IsDevice
- Remote
Address - RemoteAddress
- Request
Method - RequestMethod
- Query
String - QueryString
- Post
Args - PostArgs
- Request
Uri - RequestUri
- Request
Header - RequestHeader
- Request
Body - RequestBody
- Request
Scheme - RequestScheme
- Url
Path - UrlPath
- Url
File Extension - UrlFileExtension
- Url
File Name - UrlFileName
- Http
Version - HttpVersion
- Cookies
- Cookies
- Is
Device - IsDevice
- Remote
Address - RemoteAddress
- Request
Method - RequestMethod
- Query
String - QueryString
- Post
Args - PostArgs
- Request
Uri - RequestUri
- Request
Header - RequestHeader
- Request
Body - RequestBody
- Request
Scheme - RequestScheme
- Url
Path - UrlPath
- Url
File Extension - UrlFileExtension
- Url
File Name - UrlFileName
- Http
Version - HttpVersion
- Cookies
- Cookies
- Is
Device - IsDevice
- REMOTE_ADDRESS
- RemoteAddress
- REQUEST_METHOD
- RequestMethod
- QUERY_STRING
- QueryString
- POST_ARGS
- PostArgs
- REQUEST_URI
- RequestUri
- REQUEST_HEADER
- RequestHeader
- REQUEST_BODY
- RequestBody
- REQUEST_SCHEME
- RequestScheme
- URL_PATH
- UrlPath
- URL_FILE_EXTENSION
- UrlFileExtension
- URL_FILE_NAME
- UrlFileName
- HTTP_VERSION
- HttpVersion
- COOKIES
- Cookies
- IS_DEVICE
- IsDevice
- "Remote
Address" - RemoteAddress
- "Request
Method" - RequestMethod
- "Query
String" - QueryString
- "Post
Args" - PostArgs
- "Request
Uri" - RequestUri
- "Request
Header" - RequestHeader
- "Request
Body" - RequestBody
- "Request
Scheme" - RequestScheme
- "Url
Path" - UrlPath
- "Url
File Extension" - UrlFileExtension
- "Url
File Name" - UrlFileName
- "Http
Version" - HttpVersion
- "Cookies"
- Cookies
- "Is
Device" - IsDevice
Operator, OperatorArgs
- Any
- Any
- IPMatch
- IPMatch
- Geo
Match - GeoMatch
- Equal
- Equal
- Contains
- Contains
- Less
Than - LessThan
- Greater
Than - GreaterThan
- Less
Than Or Equal - LessThanOrEqual
- Greater
Than Or Equal - GreaterThanOrEqual
- Begins
With - BeginsWith
- Ends
With - EndsWith
- Reg
Ex - RegEx
- Operator
Any - Any
- Operator
IPMatch - IPMatch
- Operator
Geo Match - GeoMatch
- Operator
Equal - Equal
- Operator
Contains - Contains
- Operator
Less Than - LessThan
- Operator
Greater Than - GreaterThan
- Operator
Less Than Or Equal - LessThanOrEqual
- Operator
Greater Than Or Equal - GreaterThanOrEqual
- Operator
Begins With - BeginsWith
- Operator
Ends With - EndsWith
- Operator
Reg Ex - RegEx
- Any
- Any
- IPMatch
- IPMatch
- Geo
Match - GeoMatch
- Equal
- Equal
- Contains
- Contains
- Less
Than - LessThan
- Greater
Than - GreaterThan
- Less
Than Or Equal - LessThanOrEqual
- Greater
Than Or Equal - GreaterThanOrEqual
- Begins
With - BeginsWith
- Ends
With - EndsWith
- Reg
Ex - RegEx
- Any
- Any
- IPMatch
- IPMatch
- Geo
Match - GeoMatch
- Equal
- Equal
- Contains
- Contains
- Less
Than - LessThan
- Greater
Than - GreaterThan
- Less
Than Or Equal - LessThanOrEqual
- Greater
Than Or Equal - GreaterThanOrEqual
- Begins
With - BeginsWith
- Ends
With - EndsWith
- Reg
Ex - RegEx
- ANY
- Any
- IP_MATCH
- IPMatch
- GEO_MATCH
- GeoMatch
- EQUAL
- Equal
- CONTAINS
- Contains
- LESS_THAN
- LessThan
- GREATER_THAN
- GreaterThan
- LESS_THAN_OR_EQUAL
- LessThanOrEqual
- GREATER_THAN_OR_EQUAL
- GreaterThanOrEqual
- BEGINS_WITH
- BeginsWith
- ENDS_WITH
- EndsWith
- REG_EX
- RegEx
- "Any"
- Any
- "IPMatch"
- IPMatch
- "Geo
Match" - GeoMatch
- "Equal"
- Equal
- "Contains"
- Contains
- "Less
Than" - LessThan
- "Greater
Than" - GreaterThan
- "Less
Than Or Equal" - LessThanOrEqual
- "Greater
Than Or Equal" - GreaterThanOrEqual
- "Begins
With" - BeginsWith
- "Ends
With" - EndsWith
- "Reg
Ex" - RegEx
PolicyEnabledState, PolicyEnabledStateArgs
- Disabled
- Disabled
- Enabled
- Enabled
- Policy
Enabled State Disabled - Disabled
- Policy
Enabled State Enabled - Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- DISABLED
- Disabled
- ENABLED
- Enabled
- "Disabled"
- Disabled
- "Enabled"
- Enabled
PolicyMode, PolicyModeArgs
- Prevention
- Prevention
- Detection
- Detection
- Policy
Mode Prevention - Prevention
- Policy
Mode Detection - Detection
- Prevention
- Prevention
- Detection
- Detection
- Prevention
- Prevention
- Detection
- Detection
- PREVENTION
- Prevention
- DETECTION
- Detection
- "Prevention"
- Prevention
- "Detection"
- Detection
PolicySettings, PolicySettingsArgs
- Default
Custom stringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- Default
Custom intBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- Default
Redirect stringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- Enabled
State string | Pulumi.Azure Native. Cdn. Policy Enabled State - describes if the policy is in enabled state or disabled state
- Mode
string | Pulumi.
Azure Native. Cdn. Policy Mode - Describes if it is in detection mode or prevention mode at policy level.
- Default
Custom stringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- Default
Custom intBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- Default
Redirect stringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- Enabled
State string | PolicyEnabled State - describes if the policy is in enabled state or disabled state
- Mode
string | Policy
Mode - Describes if it is in detection mode or prevention mode at policy level.
- default
Custom StringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- default
Custom IntegerBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- default
Redirect StringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- enabled
State String | PolicyEnabled State - describes if the policy is in enabled state or disabled state
- mode
String | Policy
Mode - Describes if it is in detection mode or prevention mode at policy level.
- default
Custom stringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- default
Custom numberBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- default
Redirect stringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- enabled
State string | PolicyEnabled State - describes if the policy is in enabled state or disabled state
- mode
string | Policy
Mode - Describes if it is in detection mode or prevention mode at policy level.
- default_
custom_ strblock_ response_ body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- default_
custom_ intblock_ response_ status_ code - If the action type is block, this field defines the default customer overridable http response status code.
- default_
redirect_ strurl - If action type is redirect, this field represents the default redirect URL for the client.
- enabled_
state str | PolicyEnabled State - describes if the policy is in enabled state or disabled state
- mode
str | Policy
Mode - Describes if it is in detection mode or prevention mode at policy level.
- default
Custom StringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- default
Custom NumberBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- default
Redirect StringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- enabled
State String | "Disabled" | "Enabled" - describes if the policy is in enabled state or disabled state
- mode String | "Prevention" | "Detection"
- Describes if it is in detection mode or prevention mode at policy level.
PolicySettingsResponse, PolicySettingsResponseArgs
- Default
Custom stringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- Default
Custom intBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- Default
Redirect stringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- Enabled
State string - describes if the policy is in enabled state or disabled state
- Mode string
- Describes if it is in detection mode or prevention mode at policy level.
- Default
Custom stringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- Default
Custom intBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- Default
Redirect stringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- Enabled
State string - describes if the policy is in enabled state or disabled state
- Mode string
- Describes if it is in detection mode or prevention mode at policy level.
- default
Custom StringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- default
Custom IntegerBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- default
Redirect StringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- enabled
State String - describes if the policy is in enabled state or disabled state
- mode String
- Describes if it is in detection mode or prevention mode at policy level.
- default
Custom stringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- default
Custom numberBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- default
Redirect stringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- enabled
State string - describes if the policy is in enabled state or disabled state
- mode string
- Describes if it is in detection mode or prevention mode at policy level.
- default_
custom_ strblock_ response_ body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- default_
custom_ intblock_ response_ status_ code - If the action type is block, this field defines the default customer overridable http response status code.
- default_
redirect_ strurl - If action type is redirect, this field represents the default redirect URL for the client.
- enabled_
state str - describes if the policy is in enabled state or disabled state
- mode str
- Describes if it is in detection mode or prevention mode at policy level.
- default
Custom StringBlock Response Body - If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
- default
Custom NumberBlock Response Status Code - If the action type is block, this field defines the default customer overridable http response status code.
- default
Redirect StringUrl - If action type is redirect, this field represents the default redirect URL for the client.
- enabled
State String - describes if the policy is in enabled state or disabled state
- mode String
- Describes if it is in detection mode or prevention mode at policy level.
RateLimitRule, RateLimitRuleArgs
- Action
string | Pulumi.
Azure Native. Cdn. Action Type - Describes what action to be applied when rule matches
- Match
Conditions List<Pulumi.Azure Native. Cdn. Inputs. Match Condition> - List of match conditions.
- Name string
- Defines the name of the custom rule
- Priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- Rate
Limit intDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- Rate
Limit intThreshold - Defines rate limit threshold.
- Enabled
State string | Pulumi.Azure Native. Cdn. Custom Rule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- Action
string | Action
Type - Describes what action to be applied when rule matches
- Match
Conditions []MatchCondition - List of match conditions.
- Name string
- Defines the name of the custom rule
- Priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- Rate
Limit intDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- Rate
Limit intThreshold - Defines rate limit threshold.
- Enabled
State string | CustomRule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action
String | Action
Type - Describes what action to be applied when rule matches
- match
Conditions List<MatchCondition> - List of match conditions.
- name String
- Defines the name of the custom rule
- priority Integer
- Defines in what order this rule be evaluated in the overall list of custom rules
- rate
Limit IntegerDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- rate
Limit IntegerThreshold - Defines rate limit threshold.
- enabled
State String | CustomRule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action
string | Action
Type - Describes what action to be applied when rule matches
- match
Conditions MatchCondition[] - List of match conditions.
- name string
- Defines the name of the custom rule
- priority number
- Defines in what order this rule be evaluated in the overall list of custom rules
- rate
Limit numberDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- rate
Limit numberThreshold - Defines rate limit threshold.
- enabled
State string | CustomRule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action
str | Action
Type - Describes what action to be applied when rule matches
- match_
conditions Sequence[MatchCondition] - List of match conditions.
- name str
- Defines the name of the custom rule
- priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- rate_
limit_ intduration_ in_ minutes - Defines rate limit duration. Default is 1 minute.
- rate_
limit_ intthreshold - Defines rate limit threshold.
- enabled_
state str | CustomRule Enabled State - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action String | "Allow" | "Block" | "Log" | "Redirect"
- Describes what action to be applied when rule matches
- match
Conditions List<Property Map> - List of match conditions.
- name String
- Defines the name of the custom rule
- priority Number
- Defines in what order this rule be evaluated in the overall list of custom rules
- rate
Limit NumberDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- rate
Limit NumberThreshold - Defines rate limit threshold.
- enabled
State String | "Disabled" | "Enabled" - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
RateLimitRuleList, RateLimitRuleListArgs
- Rules
List<Pulumi.
Azure Native. Cdn. Inputs. Rate Limit Rule> - List of rules
- Rules
[]Rate
Limit Rule - List of rules
- rules
List<Rate
Limit Rule> - List of rules
- rules
Rate
Limit Rule[] - List of rules
- rules
Sequence[Rate
Limit Rule] - List of rules
- rules List<Property Map>
- List of rules
RateLimitRuleListResponse, RateLimitRuleListResponseArgs
- Rules
[]Rate
Limit Rule Response - List of rules
- rules
List<Rate
Limit Rule Response> - List of rules
- rules
Rate
Limit Rule Response[] - List of rules
- rules
Sequence[Rate
Limit Rule Response] - List of rules
- rules List<Property Map>
- List of rules
RateLimitRuleResponse, RateLimitRuleResponseArgs
- Action string
- Describes what action to be applied when rule matches
- Match
Conditions List<Pulumi.Azure Native. Cdn. Inputs. Match Condition Response> - List of match conditions.
- Name string
- Defines the name of the custom rule
- Priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- Rate
Limit intDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- Rate
Limit intThreshold - Defines rate limit threshold.
- Enabled
State string - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- Action string
- Describes what action to be applied when rule matches
- Match
Conditions []MatchCondition Response - List of match conditions.
- Name string
- Defines the name of the custom rule
- Priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- Rate
Limit intDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- Rate
Limit intThreshold - Defines rate limit threshold.
- Enabled
State string - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action String
- Describes what action to be applied when rule matches
- match
Conditions List<MatchCondition Response> - List of match conditions.
- name String
- Defines the name of the custom rule
- priority Integer
- Defines in what order this rule be evaluated in the overall list of custom rules
- rate
Limit IntegerDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- rate
Limit IntegerThreshold - Defines rate limit threshold.
- enabled
State String - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action string
- Describes what action to be applied when rule matches
- match
Conditions MatchCondition Response[] - List of match conditions.
- name string
- Defines the name of the custom rule
- priority number
- Defines in what order this rule be evaluated in the overall list of custom rules
- rate
Limit numberDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- rate
Limit numberThreshold - Defines rate limit threshold.
- enabled
State string - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action str
- Describes what action to be applied when rule matches
- match_
conditions Sequence[MatchCondition Response] - List of match conditions.
- name str
- Defines the name of the custom rule
- priority int
- Defines in what order this rule be evaluated in the overall list of custom rules
- rate_
limit_ intduration_ in_ minutes - Defines rate limit duration. Default is 1 minute.
- rate_
limit_ intthreshold - Defines rate limit threshold.
- enabled_
state str - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- action String
- Describes what action to be applied when rule matches
- match
Conditions List<Property Map> - List of match conditions.
- name String
- Defines the name of the custom rule
- priority Number
- Defines in what order this rule be evaluated in the overall list of custom rules
- rate
Limit NumberDuration In Minutes - Defines rate limit duration. Default is 1 minute.
- rate
Limit NumberThreshold - Defines rate limit threshold.
- enabled
State String - Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
Sku, SkuArgs
- Name
string | Pulumi.
Azure Native. Cdn. Sku Name - Name of the pricing tier.
- name
String | "Standard_Verizon" | "Premium_Verizon" | "Custom_Verizon" | "Standard_Akamai" | "Standard_China
Cdn" | "Standard_Microsoft" | "Premium_China Cdn" | "Standard_Azure Front Door" | "Premium_Azure Front Door" | "Standard_955Band Width_China Cdn" | "Standard_Avg Band Width_China Cdn" | "Standard Plus_China Cdn" | "Standard Plus_955Band Width_China Cdn" | "Standard Plus_Avg Band Width_China Cdn" - Name of the pricing tier.
SkuName, SkuNameArgs
- Standard_Verizon
- Standard_Verizon
- Premium_Verizon
- Premium_Verizon
- Custom_Verizon
- Custom_Verizon
- Standard_Akamai
- Standard_Akamai
- Standard_China
Cdn - Standard_ChinaCdn
- Standard_Microsoft
- Standard_Microsoft
- Premium_China
Cdn - Premium_ChinaCdn
- Standard_Azure
Front Door - Standard_AzureFrontDoor
- Premium_Azure
Front Door - Premium_AzureFrontDoor
- Standard_955Band
Width_China Cdn - Standard_955BandWidth_ChinaCdn
- Standard_Avg
Band Width_China Cdn - Standard_AvgBandWidth_ChinaCdn
- Standard
Plus_China Cdn - StandardPlus_ChinaCdn
- Standard
Plus_955Band Width_China Cdn - StandardPlus_955BandWidth_ChinaCdn
- Standard
Plus_Avg Band Width_China Cdn - StandardPlus_AvgBandWidth_ChinaCdn
- Sku
Name_Standard_Verizon - Standard_Verizon
- Sku
Name_Premium_Verizon - Premium_Verizon
- Sku
Name_Custom_Verizon - Custom_Verizon
- Sku
Name_Standard_Akamai - Standard_Akamai
- Sku
Name_Standard_China Cdn - Standard_ChinaCdn
- Sku
Name_Standard_Microsoft - Standard_Microsoft
- Sku
Name_Premium_China Cdn - Premium_ChinaCdn
- Sku
Name_Standard_Azure Front Door - Standard_AzureFrontDoor
- Sku
Name_Premium_Azure Front Door - Premium_AzureFrontDoor
- Sku
Name_Standard_955Band Width_China Cdn - Standard_955BandWidth_ChinaCdn
- Sku
Name_Standard_Avg Band Width_China Cdn - Standard_AvgBandWidth_ChinaCdn
- Sku
Name_Standard Plus_China Cdn - StandardPlus_ChinaCdn
- Sku
Name_Standard Plus_955Band Width_China Cdn - StandardPlus_955BandWidth_ChinaCdn
- Sku
Name_Standard Plus_Avg Band Width_China Cdn - StandardPlus_AvgBandWidth_ChinaCdn
- Standard_Verizon
- Standard_Verizon
- Premium_Verizon
- Premium_Verizon
- Custom_Verizon
- Custom_Verizon
- Standard_Akamai
- Standard_Akamai
- Standard_China
Cdn - Standard_ChinaCdn
- Standard_Microsoft
- Standard_Microsoft
- Premium_China
Cdn - Premium_ChinaCdn
- Standard_Azure
Front Door - Standard_AzureFrontDoor
- Premium_Azure
Front Door - Premium_AzureFrontDoor
- Standard_955Band
Width_China Cdn - Standard_955BandWidth_ChinaCdn
- Standard_Avg
Band Width_China Cdn - Standard_AvgBandWidth_ChinaCdn
- Standard
Plus_China Cdn - StandardPlus_ChinaCdn
- Standard
Plus_955Band Width_China Cdn - StandardPlus_955BandWidth_ChinaCdn
- Standard
Plus_Avg Band Width_China Cdn - StandardPlus_AvgBandWidth_ChinaCdn
- Standard_Verizon
- Standard_Verizon
- Premium_Verizon
- Premium_Verizon
- Custom_Verizon
- Custom_Verizon
- Standard_Akamai
- Standard_Akamai
- Standard_China
Cdn - Standard_ChinaCdn
- Standard_Microsoft
- Standard_Microsoft
- Premium_China
Cdn - Premium_ChinaCdn
- Standard_Azure
Front Door - Standard_AzureFrontDoor
- Premium_Azure
Front Door - Premium_AzureFrontDoor
- Standard_955Band
Width_China Cdn - Standard_955BandWidth_ChinaCdn
- Standard_Avg
Band Width_China Cdn - Standard_AvgBandWidth_ChinaCdn
- Standard
Plus_China Cdn - StandardPlus_ChinaCdn
- Standard
Plus_955Band Width_China Cdn - StandardPlus_955BandWidth_ChinaCdn
- Standard
Plus_Avg Band Width_China Cdn - StandardPlus_AvgBandWidth_ChinaCdn
- STANDARD_VERIZON
- Standard_Verizon
- PREMIUM_VERIZON
- Premium_Verizon
- CUSTOM_VERIZON
- Custom_Verizon
- STANDARD_AKAMAI
- Standard_Akamai
- STANDARD_CHINA_CDN
- Standard_ChinaCdn
- STANDARD_MICROSOFT
- Standard_Microsoft
- PREMIUM_CHINA_CDN
- Premium_ChinaCdn
- STANDARD_AZURE_FRONT_DOOR
- Standard_AzureFrontDoor
- PREMIUM_AZURE_FRONT_DOOR
- Premium_AzureFrontDoor
- STANDARD_955_BAND_WIDTH_CHINA_CDN
- Standard_955BandWidth_ChinaCdn
- STANDARD_AVG_BAND_WIDTH_CHINA_CDN
- Standard_AvgBandWidth_ChinaCdn
- STANDARD_PLUS_CHINA_CDN
- StandardPlus_ChinaCdn
- STANDARD_PLUS_955_BAND_WIDTH_CHINA_CDN
- StandardPlus_955BandWidth_ChinaCdn
- STANDARD_PLUS_AVG_BAND_WIDTH_CHINA_CDN
- StandardPlus_AvgBandWidth_ChinaCdn
- "Standard_Verizon"
- Standard_Verizon
- "Premium_Verizon"
- Premium_Verizon
- "Custom_Verizon"
- Custom_Verizon
- "Standard_Akamai"
- Standard_Akamai
- "Standard_China
Cdn" - Standard_ChinaCdn
- "Standard_Microsoft"
- Standard_Microsoft
- "Premium_China
Cdn" - Premium_ChinaCdn
- "Standard_Azure
Front Door" - Standard_AzureFrontDoor
- "Premium_Azure
Front Door" - Premium_AzureFrontDoor
- "Standard_955Band
Width_China Cdn" - Standard_955BandWidth_ChinaCdn
- "Standard_Avg
Band Width_China Cdn" - Standard_AvgBandWidth_ChinaCdn
- "Standard
Plus_China Cdn" - StandardPlus_ChinaCdn
- "Standard
Plus_955Band Width_China Cdn" - StandardPlus_955BandWidth_ChinaCdn
- "Standard
Plus_Avg Band Width_China Cdn" - StandardPlus_AvgBandWidth_ChinaCdn
SkuResponse, SkuResponseArgs
- Name string
- Name of the pricing tier.
- Name string
- Name of the pricing tier.
- name String
- Name of the pricing tier.
- name string
- Name of the pricing tier.
- name str
- Name of the pricing tier.
- name String
- Name of the pricing tier.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
- created
At string - The timestamp of resource creation (UTC)
- created
By string - An identifier for the identity that created the resource
- created
By stringType - The type of identity that created the resource
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - An identifier for the identity that last modified the resource
- last
Modified stringBy Type - The type of identity that last modified the resource
- created_
at str - The timestamp of resource creation (UTC)
- created_
by str - An identifier for the identity that created the resource
- created_
by_ strtype - The type of identity that created the resource
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - An identifier for the identity that last modified the resource
- last_
modified_ strby_ type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
TransformType, TransformTypeArgs
- Lowercase
- Lowercase
- Uppercase
- Uppercase
- Trim
- Trim
- Url
Decode - UrlDecode
- Url
Encode - UrlEncode
- Remove
Nulls - RemoveNulls
- Transform
Type Lowercase - Lowercase
- Transform
Type Uppercase - Uppercase
- Transform
Type Trim - Trim
- Transform
Type Url Decode - UrlDecode
- Transform
Type Url Encode - UrlEncode
- Transform
Type Remove Nulls - RemoveNulls
- Lowercase
- Lowercase
- Uppercase
- Uppercase
- Trim
- Trim
- Url
Decode - UrlDecode
- Url
Encode - UrlEncode
- Remove
Nulls - RemoveNulls
- Lowercase
- Lowercase
- Uppercase
- Uppercase
- Trim
- Trim
- Url
Decode - UrlDecode
- Url
Encode - UrlEncode
- Remove
Nulls - RemoveNulls
- LOWERCASE
- Lowercase
- UPPERCASE
- Uppercase
- TRIM
- Trim
- URL_DECODE
- UrlDecode
- URL_ENCODE
- UrlEncode
- REMOVE_NULLS
- RemoveNulls
- "Lowercase"
- Lowercase
- "Uppercase"
- Uppercase
- "Trim"
- Trim
- "Url
Decode" - UrlDecode
- "Url
Encode" - UrlEncode
- "Remove
Nulls" - RemoveNulls
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:Policy MicrosoftCdnWafPolicy /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/MicrosoftCdnWafPolicy
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0