published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
Provides a DdosCoo Web Cc Rule resource.
CC frequency control rules.
For information about DdosCoo Web Cc Rule and how to use it, see What is Web Cc Rule.
NOTE: Available since v1.271.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform";
const domain = config.get("domain") || "terraform-example.alibaba.com";
const _default = alicloud.ddos.getDdosCooInstances({});
const defaultDomainResource = new alicloud.ddos.DomainResource("default", {
domain: domain,
instanceIds: [_default.then(_default => _default.ids?.[0])],
proxyTypes: [{
proxyPorts: [443],
proxyType: "https",
}],
realServers: ["177.167.32.11"],
rsType: 0,
});
const defaultCooWebCcRule = new alicloud.ddos.CooWebCcRule("default", {
ruleDetail: {
action: "block",
rateLimit: {
interval: 11,
threshold: 2,
ttl: 840,
target: "header",
subKey: "33",
},
conditions: [
{
matchMethod: "belong",
field: "ip",
content: "1.1.1.1",
},
{
matchMethod: "contain",
field: "uri",
content: "/a",
},
{
matchMethod: "contain",
field: "header",
headerName: "123",
content: "1234",
},
],
statistics: {
mode: "distinct",
field: "header",
headerName: "12",
},
statusCode: {
enabled: true,
code: 100,
useRatio: false,
countThreshold: 2,
ratioThreshold: 5,
},
},
name: name,
domain: defaultDomainResource.id,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform"
domain = config.get("domain")
if domain is None:
domain = "terraform-example.alibaba.com"
default = alicloud.ddos.get_ddos_coo_instances()
default_domain_resource = alicloud.ddos.DomainResource("default",
domain=domain,
instance_ids=[default.ids[0]],
proxy_types=[{
"proxy_ports": [443],
"proxy_type": "https",
}],
real_servers=["177.167.32.11"],
rs_type=0)
default_coo_web_cc_rule = alicloud.ddos.CooWebCcRule("default",
rule_detail={
"action": "block",
"rate_limit": {
"interval": 11,
"threshold": 2,
"ttl": 840,
"target": "header",
"sub_key": "33",
},
"conditions": [
{
"match_method": "belong",
"field": "ip",
"content": "1.1.1.1",
},
{
"match_method": "contain",
"field": "uri",
"content": "/a",
},
{
"match_method": "contain",
"field": "header",
"header_name": "123",
"content": "1234",
},
],
"statistics": {
"mode": "distinct",
"field": "header",
"header_name": "12",
},
"status_code": {
"enabled": True,
"code": 100,
"use_ratio": False,
"count_threshold": 2,
"ratio_threshold": 5,
},
},
name=name,
domain=default_domain_resource.id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ddos"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform"
if param := cfg.Get("name"); param != "" {
name = param
}
domain := "terraform-example.alibaba.com"
if param := cfg.Get("domain"); param != "" {
domain = param
}
_default, err := ddos.GetDdosCooInstances(ctx, &ddos.GetDdosCooInstancesArgs{}, nil)
if err != nil {
return err
}
defaultDomainResource, err := ddos.NewDomainResource(ctx, "default", &ddos.DomainResourceArgs{
Domain: pulumi.String(domain),
InstanceIds: pulumi.StringArray{
pulumi.String(_default.Ids[0]),
},
ProxyTypes: ddos.DomainResourceProxyTypeArray{
&ddos.DomainResourceProxyTypeArgs{
ProxyPorts: pulumi.IntArray{
pulumi.Int(443),
},
ProxyType: pulumi.String("https"),
},
},
RealServers: pulumi.StringArray{
pulumi.String("177.167.32.11"),
},
RsType: pulumi.Int(0),
})
if err != nil {
return err
}
_, err = ddos.NewCooWebCcRule(ctx, "default", &ddos.CooWebCcRuleArgs{
RuleDetail: &ddos.CooWebCcRuleRuleDetailArgs{
Action: pulumi.String("block"),
RateLimit: &ddos.CooWebCcRuleRuleDetailRateLimitArgs{
Interval: pulumi.Int(11),
Threshold: pulumi.Int(2),
Ttl: pulumi.Int(840),
Target: pulumi.String("header"),
SubKey: pulumi.String("33"),
},
Conditions: ddos.CooWebCcRuleRuleDetailConditionArray{
&ddos.CooWebCcRuleRuleDetailConditionArgs{
MatchMethod: pulumi.String("belong"),
Field: pulumi.String("ip"),
Content: pulumi.String("1.1.1.1"),
},
&ddos.CooWebCcRuleRuleDetailConditionArgs{
MatchMethod: pulumi.String("contain"),
Field: pulumi.String("uri"),
Content: pulumi.String("/a"),
},
&ddos.CooWebCcRuleRuleDetailConditionArgs{
MatchMethod: pulumi.String("contain"),
Field: pulumi.String("header"),
HeaderName: pulumi.String("123"),
Content: pulumi.String("1234"),
},
},
Statistics: &ddos.CooWebCcRuleRuleDetailStatisticsArgs{
Mode: pulumi.String("distinct"),
Field: pulumi.String("header"),
HeaderName: pulumi.String("12"),
},
StatusCode: &ddos.CooWebCcRuleRuleDetailStatusCodeArgs{
Enabled: pulumi.Bool(true),
Code: pulumi.Int(100),
UseRatio: pulumi.Bool(false),
CountThreshold: pulumi.Int(2),
RatioThreshold: pulumi.Int(5),
},
},
Name: pulumi.String(name),
Domain: defaultDomainResource.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform";
var domain = config.Get("domain") ?? "terraform-example.alibaba.com";
var @default = AliCloud.Ddos.GetDdosCooInstances.Invoke();
var defaultDomainResource = new AliCloud.Ddos.DomainResource("default", new()
{
Domain = domain,
InstanceIds = new[]
{
@default.Apply(@default => @default.Apply(getDdosCooInstancesResult => getDdosCooInstancesResult.Ids[0])),
},
ProxyTypes = new[]
{
new AliCloud.Ddos.Inputs.DomainResourceProxyTypeArgs
{
ProxyPorts = new[]
{
443,
},
ProxyType = "https",
},
},
RealServers = new[]
{
"177.167.32.11",
},
RsType = 0,
});
var defaultCooWebCcRule = new AliCloud.Ddos.CooWebCcRule("default", new()
{
RuleDetail = new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailArgs
{
Action = "block",
RateLimit = new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailRateLimitArgs
{
Interval = 11,
Threshold = 2,
Ttl = 840,
Target = "header",
SubKey = "33",
},
Conditions = new[]
{
new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailConditionArgs
{
MatchMethod = "belong",
Field = "ip",
Content = "1.1.1.1",
},
new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailConditionArgs
{
MatchMethod = "contain",
Field = "uri",
Content = "/a",
},
new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailConditionArgs
{
MatchMethod = "contain",
Field = "header",
HeaderName = "123",
Content = "1234",
},
},
Statistics = new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailStatisticsArgs
{
Mode = "distinct",
Field = "header",
HeaderName = "12",
},
StatusCode = new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailStatusCodeArgs
{
Enabled = true,
Code = 100,
UseRatio = false,
CountThreshold = 2,
RatioThreshold = 5,
},
},
Name = name,
Domain = defaultDomainResource.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ddos.DdosFunctions;
import com.pulumi.alicloud.ddos.inputs.GetDdosCooInstancesArgs;
import com.pulumi.alicloud.ddos.DomainResource;
import com.pulumi.alicloud.ddos.DomainResourceArgs;
import com.pulumi.alicloud.ddos.inputs.DomainResourceProxyTypeArgs;
import com.pulumi.alicloud.ddos.CooWebCcRule;
import com.pulumi.alicloud.ddos.CooWebCcRuleArgs;
import com.pulumi.alicloud.ddos.inputs.CooWebCcRuleRuleDetailArgs;
import com.pulumi.alicloud.ddos.inputs.CooWebCcRuleRuleDetailRateLimitArgs;
import com.pulumi.alicloud.ddos.inputs.CooWebCcRuleRuleDetailStatisticsArgs;
import com.pulumi.alicloud.ddos.inputs.CooWebCcRuleRuleDetailStatusCodeArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform");
final var domain = config.get("domain").orElse("terraform-example.alibaba.com");
final var default = DdosFunctions.getDdosCooInstances(GetDdosCooInstancesArgs.builder()
.build());
var defaultDomainResource = new DomainResource("defaultDomainResource", DomainResourceArgs.builder()
.domain(domain)
.instanceIds(default_.ids()[0])
.proxyTypes(DomainResourceProxyTypeArgs.builder()
.proxyPorts(443)
.proxyType("https")
.build())
.realServers("177.167.32.11")
.rsType(0)
.build());
var defaultCooWebCcRule = new CooWebCcRule("defaultCooWebCcRule", CooWebCcRuleArgs.builder()
.ruleDetail(CooWebCcRuleRuleDetailArgs.builder()
.action("block")
.rateLimit(CooWebCcRuleRuleDetailRateLimitArgs.builder()
.interval(11)
.threshold(2)
.ttl(840)
.target("header")
.subKey("33")
.build())
.conditions(
CooWebCcRuleRuleDetailConditionArgs.builder()
.matchMethod("belong")
.field("ip")
.content("1.1.1.1")
.build(),
CooWebCcRuleRuleDetailConditionArgs.builder()
.matchMethod("contain")
.field("uri")
.content("/a")
.build(),
CooWebCcRuleRuleDetailConditionArgs.builder()
.matchMethod("contain")
.field("header")
.headerName("123")
.content("1234")
.build())
.statistics(CooWebCcRuleRuleDetailStatisticsArgs.builder()
.mode("distinct")
.field("header")
.headerName("12")
.build())
.statusCode(CooWebCcRuleRuleDetailStatusCodeArgs.builder()
.enabled(true)
.code(100)
.useRatio(false)
.countThreshold(2)
.ratioThreshold(5)
.build())
.build())
.name(name)
.domain(defaultDomainResource.id())
.build());
}
}
configuration:
name:
type: string
default: terraform
domain:
type: string
default: terraform-example.alibaba.com
resources:
defaultDomainResource:
type: alicloud:ddos:DomainResource
name: default
properties:
domain: ${domain}
instanceIds:
- ${default.ids[0]}
proxyTypes:
- proxyPorts:
- 443
proxyType: https
realServers:
- 177.167.32.11
rsType: 0
defaultCooWebCcRule:
type: alicloud:ddos:CooWebCcRule
name: default
properties:
ruleDetail:
action: block
rateLimit:
interval: '11'
threshold: '2'
ttl: '840'
target: header
subKey: '33'
conditions:
- matchMethod: belong
field: ip
content: 1.1.1.1
- matchMethod: contain
field: uri
content: /a
- matchMethod: contain
field: header
headerName: '123'
content: '1234'
statistics:
mode: distinct
field: header
headerName: '12'
statusCode:
enabled: true
code: '100'
useRatio: false
countThreshold: '2'
ratioThreshold: '5'
name: ${name}
domain: ${defaultDomainResource.id}
variables:
default:
fn::invoke:
function: alicloud:ddos:getDdosCooInstances
arguments: {}
📚 Need more examples? VIEW MORE EXAMPLES
Create CooWebCcRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CooWebCcRule(name: string, args: CooWebCcRuleArgs, opts?: CustomResourceOptions);@overload
def CooWebCcRule(resource_name: str,
args: CooWebCcRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CooWebCcRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
rule_detail: Optional[CooWebCcRuleRuleDetailArgs] = None,
name: Optional[str] = None)func NewCooWebCcRule(ctx *Context, name string, args CooWebCcRuleArgs, opts ...ResourceOption) (*CooWebCcRule, error)public CooWebCcRule(string name, CooWebCcRuleArgs args, CustomResourceOptions? opts = null)
public CooWebCcRule(String name, CooWebCcRuleArgs args)
public CooWebCcRule(String name, CooWebCcRuleArgs args, CustomResourceOptions options)
type: alicloud:ddos:CooWebCcRule
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 CooWebCcRuleArgs
- 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 CooWebCcRuleArgs
- 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 CooWebCcRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CooWebCcRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CooWebCcRuleArgs
- 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 cooWebCcRuleResource = new AliCloud.Ddos.CooWebCcRule("cooWebCcRuleResource", new()
{
Domain = "string",
RuleDetail = new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailArgs
{
Action = "string",
Conditions = new[]
{
new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailConditionArgs
{
Content = "string",
Field = "string",
MatchMethod = "string",
HeaderName = "string",
},
},
RateLimit = new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailRateLimitArgs
{
Interval = 0,
Target = "string",
Threshold = 0,
Ttl = 0,
SubKey = "string",
},
Statistics = new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailStatisticsArgs
{
Field = "string",
Mode = "string",
HeaderName = "string",
},
StatusCode = new AliCloud.Ddos.Inputs.CooWebCcRuleRuleDetailStatusCodeArgs
{
Code = 0,
Enabled = false,
UseRatio = false,
CountThreshold = 0,
RatioThreshold = 0,
},
},
Name = "string",
});
example, err := ddos.NewCooWebCcRule(ctx, "cooWebCcRuleResource", &ddos.CooWebCcRuleArgs{
Domain: pulumi.String("string"),
RuleDetail: &ddos.CooWebCcRuleRuleDetailArgs{
Action: pulumi.String("string"),
Conditions: ddos.CooWebCcRuleRuleDetailConditionArray{
&ddos.CooWebCcRuleRuleDetailConditionArgs{
Content: pulumi.String("string"),
Field: pulumi.String("string"),
MatchMethod: pulumi.String("string"),
HeaderName: pulumi.String("string"),
},
},
RateLimit: &ddos.CooWebCcRuleRuleDetailRateLimitArgs{
Interval: pulumi.Int(0),
Target: pulumi.String("string"),
Threshold: pulumi.Int(0),
Ttl: pulumi.Int(0),
SubKey: pulumi.String("string"),
},
Statistics: &ddos.CooWebCcRuleRuleDetailStatisticsArgs{
Field: pulumi.String("string"),
Mode: pulumi.String("string"),
HeaderName: pulumi.String("string"),
},
StatusCode: &ddos.CooWebCcRuleRuleDetailStatusCodeArgs{
Code: pulumi.Int(0),
Enabled: pulumi.Bool(false),
UseRatio: pulumi.Bool(false),
CountThreshold: pulumi.Int(0),
RatioThreshold: pulumi.Int(0),
},
},
Name: pulumi.String("string"),
})
var cooWebCcRuleResource = new CooWebCcRule("cooWebCcRuleResource", CooWebCcRuleArgs.builder()
.domain("string")
.ruleDetail(CooWebCcRuleRuleDetailArgs.builder()
.action("string")
.conditions(CooWebCcRuleRuleDetailConditionArgs.builder()
.content("string")
.field("string")
.matchMethod("string")
.headerName("string")
.build())
.rateLimit(CooWebCcRuleRuleDetailRateLimitArgs.builder()
.interval(0)
.target("string")
.threshold(0)
.ttl(0)
.subKey("string")
.build())
.statistics(CooWebCcRuleRuleDetailStatisticsArgs.builder()
.field("string")
.mode("string")
.headerName("string")
.build())
.statusCode(CooWebCcRuleRuleDetailStatusCodeArgs.builder()
.code(0)
.enabled(false)
.useRatio(false)
.countThreshold(0)
.ratioThreshold(0)
.build())
.build())
.name("string")
.build());
coo_web_cc_rule_resource = alicloud.ddos.CooWebCcRule("cooWebCcRuleResource",
domain="string",
rule_detail={
"action": "string",
"conditions": [{
"content": "string",
"field": "string",
"match_method": "string",
"header_name": "string",
}],
"rate_limit": {
"interval": 0,
"target": "string",
"threshold": 0,
"ttl": 0,
"sub_key": "string",
},
"statistics": {
"field": "string",
"mode": "string",
"header_name": "string",
},
"status_code": {
"code": 0,
"enabled": False,
"use_ratio": False,
"count_threshold": 0,
"ratio_threshold": 0,
},
},
name="string")
const cooWebCcRuleResource = new alicloud.ddos.CooWebCcRule("cooWebCcRuleResource", {
domain: "string",
ruleDetail: {
action: "string",
conditions: [{
content: "string",
field: "string",
matchMethod: "string",
headerName: "string",
}],
rateLimit: {
interval: 0,
target: "string",
threshold: 0,
ttl: 0,
subKey: "string",
},
statistics: {
field: "string",
mode: "string",
headerName: "string",
},
statusCode: {
code: 0,
enabled: false,
useRatio: false,
countThreshold: 0,
ratioThreshold: 0,
},
},
name: "string",
});
type: alicloud:ddos:CooWebCcRule
properties:
domain: string
name: string
ruleDetail:
action: string
conditions:
- content: string
field: string
headerName: string
matchMethod: string
rateLimit:
interval: 0
subKey: string
target: string
threshold: 0
ttl: 0
statistics:
field: string
headerName: string
mode: string
statusCode:
code: 0
countThreshold: 0
enabled: false
ratioThreshold: 0
useRatio: false
CooWebCcRule 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 CooWebCcRule resource accepts the following input properties:
- Domain string
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- Rule
Detail Pulumi.Ali Cloud. Ddos. Inputs. Coo Web Cc Rule Rule Detail - Rule details. See
rule_detailbelow. - Name string
- Rule name.
- Domain string
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- Rule
Detail CooWeb Cc Rule Rule Detail Args - Rule details. See
rule_detailbelow. - Name string
- Rule name.
- domain String
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- rule
Detail CooWeb Cc Rule Rule Detail - Rule details. See
rule_detailbelow. - name String
- Rule name.
- domain string
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- rule
Detail CooWeb Cc Rule Rule Detail - Rule details. See
rule_detailbelow. - name string
- Rule name.
- domain str
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- rule_
detail CooWeb Cc Rule Rule Detail Args - Rule details. See
rule_detailbelow. - name str
- Rule name.
- domain String
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- rule
Detail Property Map - Rule details. See
rule_detailbelow. - name String
- Rule name.
Outputs
All input properties are implicitly available as output properties. Additionally, the CooWebCcRule 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 CooWebCcRule Resource
Get an existing CooWebCcRule 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?: CooWebCcRuleState, opts?: CustomResourceOptions): CooWebCcRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
name: Optional[str] = None,
rule_detail: Optional[CooWebCcRuleRuleDetailArgs] = None) -> CooWebCcRulefunc GetCooWebCcRule(ctx *Context, name string, id IDInput, state *CooWebCcRuleState, opts ...ResourceOption) (*CooWebCcRule, error)public static CooWebCcRule Get(string name, Input<string> id, CooWebCcRuleState? state, CustomResourceOptions? opts = null)public static CooWebCcRule get(String name, Output<String> id, CooWebCcRuleState state, CustomResourceOptions options)resources: _: type: alicloud:ddos:CooWebCcRule 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.
- Domain string
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- Name string
- Rule name.
- Rule
Detail Pulumi.Ali Cloud. Ddos. Inputs. Coo Web Cc Rule Rule Detail - Rule details. See
rule_detailbelow.
- Domain string
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- Name string
- Rule name.
- Rule
Detail CooWeb Cc Rule Rule Detail Args - Rule details. See
rule_detailbelow.
- domain String
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- name String
- Rule name.
- rule
Detail CooWeb Cc Rule Rule Detail - Rule details. See
rule_detailbelow.
- domain string
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- name string
- Rule name.
- rule
Detail CooWeb Cc Rule Rule Detail - Rule details. See
rule_detailbelow.
- domain str
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- name str
- Rule name.
- rule_
detail CooWeb Cc Rule Rule Detail Args - Rule details. See
rule_detailbelow.
- domain String
The domain name of the website service.
NOTE: The domain name must already have website service forwarding rules configured. You can call DescribeDomains to query all domain names.
- name String
- Rule name.
- rule
Detail Property Map - Rule details. See
rule_detailbelow.
Supporting Types
CooWebCcRuleRuleDetail, CooWebCcRuleRuleDetailArgs
- Action string
- The action to take when a match occurs. Valid values:
- Conditions
List<Pulumi.
Ali Cloud. Ddos. Inputs. Coo Web Cc Rule Rule Detail Condition> - List of matching conditions. See
conditionbelow. - Rate
Limit Pulumi.Ali Cloud. Ddos. Inputs. Coo Web Cc Rule Rule Detail Rate Limit - Rate limiting statistics. See
rate_limitbelow. - Statistics
Pulumi.
Ali Cloud. Ddos. Inputs. Coo Web Cc Rule Rule Detail Statistics - Deduplicated statistics. This parameter is optional. If omitted, deduplication is not applied. See
statisticsbelow. - Status
Code Pulumi.Ali Cloud. Ddos. Inputs. Coo Web Cc Rule Rule Detail Status Code - The HTTP status code. See
status_codebelow.
- Action string
- The action to take when a match occurs. Valid values:
- Conditions
[]Coo
Web Cc Rule Rule Detail Condition - List of matching conditions. See
conditionbelow. - Rate
Limit CooWeb Cc Rule Rule Detail Rate Limit - Rate limiting statistics. See
rate_limitbelow. - Statistics
Coo
Web Cc Rule Rule Detail Statistics - Deduplicated statistics. This parameter is optional. If omitted, deduplication is not applied. See
statisticsbelow. - Status
Code CooWeb Cc Rule Rule Detail Status Code - The HTTP status code. See
status_codebelow.
- action String
- The action to take when a match occurs. Valid values:
- conditions
List<Coo
Web Cc Rule Rule Detail Condition> - List of matching conditions. See
conditionbelow. - rate
Limit CooWeb Cc Rule Rule Detail Rate Limit - Rate limiting statistics. See
rate_limitbelow. - statistics
Coo
Web Cc Rule Rule Detail Statistics - Deduplicated statistics. This parameter is optional. If omitted, deduplication is not applied. See
statisticsbelow. - status
Code CooWeb Cc Rule Rule Detail Status Code - The HTTP status code. See
status_codebelow.
- action string
- The action to take when a match occurs. Valid values:
- conditions
Coo
Web Cc Rule Rule Detail Condition[] - List of matching conditions. See
conditionbelow. - rate
Limit CooWeb Cc Rule Rule Detail Rate Limit - Rate limiting statistics. See
rate_limitbelow. - statistics
Coo
Web Cc Rule Rule Detail Statistics - Deduplicated statistics. This parameter is optional. If omitted, deduplication is not applied. See
statisticsbelow. - status
Code CooWeb Cc Rule Rule Detail Status Code - The HTTP status code. See
status_codebelow.
- action str
- The action to take when a match occurs. Valid values:
- conditions
Sequence[Coo
Web Cc Rule Rule Detail Condition] - List of matching conditions. See
conditionbelow. - rate_
limit CooWeb Cc Rule Rule Detail Rate Limit - Rate limiting statistics. See
rate_limitbelow. - statistics
Coo
Web Cc Rule Rule Detail Statistics - Deduplicated statistics. This parameter is optional. If omitted, deduplication is not applied. See
statisticsbelow. - status_
code CooWeb Cc Rule Rule Detail Status Code - The HTTP status code. See
status_codebelow.
- action String
- The action to take when a match occurs. Valid values:
- conditions List<Property Map>
- List of matching conditions. See
conditionbelow. - rate
Limit Property Map - Rate limiting statistics. See
rate_limitbelow. - statistics Property Map
- Deduplicated statistics. This parameter is optional. If omitted, deduplication is not applied. See
statisticsbelow. - status
Code Property Map - The HTTP status code. See
status_codebelow.
CooWebCcRuleRuleDetailCondition, CooWebCcRuleRuleDetailConditionArgs
- Content string
- Matching content.
- Field string
- The statistic source. Valid values:
- Match
Method string - Matching method.
- Header
Name string - Set this parameter only when the statistic source is
header.
- Content string
- Matching content.
- Field string
- The statistic source. Valid values:
- Match
Method string - Matching method.
- Header
Name string - Set this parameter only when the statistic source is
header.
- content String
- Matching content.
- field String
- The statistic source. Valid values:
- match
Method String - Matching method.
- header
Name String - Set this parameter only when the statistic source is
header.
- content string
- Matching content.
- field string
- The statistic source. Valid values:
- match
Method string - Matching method.
- header
Name string - Set this parameter only when the statistic source is
header.
- content str
- Matching content.
- field str
- The statistic source. Valid values:
- match_
method str - Matching method.
- header_
name str - Set this parameter only when the statistic source is
header.
- content String
- Matching content.
- field String
- The statistic source. Valid values:
- match
Method String - Matching method.
- header
Name String - Set this parameter only when the statistic source is
header.
CooWebCcRuleRuleDetailRateLimit, CooWebCcRuleRuleDetailRateLimitArgs
CooWebCcRuleRuleDetailStatistics, CooWebCcRuleRuleDetailStatisticsArgs
- Field string
- The statistic source. Valid values:
- Mode string
- The deduplication mode. Valid values:
- Header
Name string - Set this parameter only when the statistic source is
header.
- Field string
- The statistic source. Valid values:
- Mode string
- The deduplication mode. Valid values:
- Header
Name string - Set this parameter only when the statistic source is
header.
- field String
- The statistic source. Valid values:
- mode String
- The deduplication mode. Valid values:
- header
Name String - Set this parameter only when the statistic source is
header.
- field string
- The statistic source. Valid values:
- mode string
- The deduplication mode. Valid values:
- header
Name string - Set this parameter only when the statistic source is
header.
- field str
- The statistic source. Valid values:
- mode str
- The deduplication mode. Valid values:
- header_
name str - Set this parameter only when the statistic source is
header.
- field String
- The statistic source. Valid values:
- mode String
- The deduplication mode. Valid values:
- header
Name String - Set this parameter only when the statistic source is
header.
CooWebCcRuleRuleDetailStatusCode, CooWebCcRuleRuleDetailStatusCodeArgs
- Code int
- Status code. The value range is
100to599: - Enabled bool
- Whether the rule is enabled. Valid values:
- Use
Ratio bool - Whether to use a ratio:
- Count
Threshold int - When the ratio is not used, the enforcement action is triggered only when the corresponding status code reaches
CountThreshold. The value range is2to50000. - Ratio
Threshold int - When the ratio is used, the enforcement action is triggered only when the corresponding status code reaches
RatioThreshold. The value range is1to100.
- Code int
- Status code. The value range is
100to599: - Enabled bool
- Whether the rule is enabled. Valid values:
- Use
Ratio bool - Whether to use a ratio:
- Count
Threshold int - When the ratio is not used, the enforcement action is triggered only when the corresponding status code reaches
CountThreshold. The value range is2to50000. - Ratio
Threshold int - When the ratio is used, the enforcement action is triggered only when the corresponding status code reaches
RatioThreshold. The value range is1to100.
- code Integer
- Status code. The value range is
100to599: - enabled Boolean
- Whether the rule is enabled. Valid values:
- use
Ratio Boolean - Whether to use a ratio:
- count
Threshold Integer - When the ratio is not used, the enforcement action is triggered only when the corresponding status code reaches
CountThreshold. The value range is2to50000. - ratio
Threshold Integer - When the ratio is used, the enforcement action is triggered only when the corresponding status code reaches
RatioThreshold. The value range is1to100.
- code number
- Status code. The value range is
100to599: - enabled boolean
- Whether the rule is enabled. Valid values:
- use
Ratio boolean - Whether to use a ratio:
- count
Threshold number - When the ratio is not used, the enforcement action is triggered only when the corresponding status code reaches
CountThreshold. The value range is2to50000. - ratio
Threshold number - When the ratio is used, the enforcement action is triggered only when the corresponding status code reaches
RatioThreshold. The value range is1to100.
- code int
- Status code. The value range is
100to599: - enabled bool
- Whether the rule is enabled. Valid values:
- use_
ratio bool - Whether to use a ratio:
- count_
threshold int - When the ratio is not used, the enforcement action is triggered only when the corresponding status code reaches
CountThreshold. The value range is2to50000. - ratio_
threshold int - When the ratio is used, the enforcement action is triggered only when the corresponding status code reaches
RatioThreshold. The value range is1to100.
- code Number
- Status code. The value range is
100to599: - enabled Boolean
- Whether the rule is enabled. Valid values:
- use
Ratio Boolean - Whether to use a ratio:
- count
Threshold Number - When the ratio is not used, the enforcement action is triggered only when the corresponding status code reaches
CountThreshold. The value range is2to50000. - ratio
Threshold Number - When the ratio is used, the enforcement action is triggered only when the corresponding status code reaches
RatioThreshold. The value range is1to100.
Import
DdosCoo Web Cc Rule can be imported using the id, e.g.
$ pulumi import alicloud:ddos/cooWebCcRule:CooWebCcRule example <domain>:<name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
published on Saturday, Mar 14, 2026 by Pulumi
