SchedulerRule

Provides a DdosCoo Scheduler Rule resource. For information about DdosCoo Scheduler Rule and how to use it, seeWhat is DdosCoo Scheduler Rule.

NOTE: Available in 1.86.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.Ddos.SchedulerRule("example", new AliCloud.Ddos.SchedulerRuleArgs
        {
            RuleName = "tf-testacc7929727******",
            RuleType = 3,
            Rules = 
            {
                new AliCloud.Ddos.Inputs.SchedulerRuleRuleArgs
                {
                    Priority = 100,
                    RegionId = "cn-hangzhou",
                    Type = "A",
                    Value = "170.33.2.125",
                    ValueType = 3,
                },
                new AliCloud.Ddos.Inputs.SchedulerRuleRuleArgs
                {
                    Priority = 50,
                    RegionId = "cn-hangzhou",
                    Type = "A",
                    Value = "170.33.14.193",
                    ValueType = 1,
                },
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.ddos.SchedulerRule("example",
    rule_name="tf-testacc7929727******",
    rule_type=3,
    rules=[
        {
            "priority": "100",
            "regionId": "cn-hangzhou",
            "type": "A",
            "value": "170.33.2.125",
            "valueType": "3",
        },
        {
            "priority": "50",
            "regionId": "cn-hangzhou",
            "type": "A",
            "value": "170.33.14.193",
            "valueType": "1",
        },
    ])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.ddos.SchedulerRule("example", {
    ruleName: "tf-testacc7929727******",
    ruleType: 3,
    rules: [
        {
            priority: 100,
            regionId: "cn-hangzhou",
            type: "A",
            value: "170.33.2.125",
            valueType: 3,
        },
        {
            priority: 50,
            regionId: "cn-hangzhou",
            type: "A",
            value: "170.33.14.193",
            valueType: 1,
        },
    ],
});

Create a SchedulerRule Resource

def SchedulerRule(resource_name, opts=None, param=None, resource_group_id=None, rule_name=None, rule_type=None, rules=None, __props__=None);
name string
The unique name of the resource.
args SchedulerRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SchedulerRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SchedulerRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SchedulerRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The SchedulerRule resource accepts the following input properties:

RuleName string

The name of the rule.

RuleType int

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

Rules List<Pulumi.AliCloud.Ddos.Inputs.SchedulerRuleRuleArgs>

The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values: A: IP address. CNAME: Domain name. Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values: 1: Anti-DDoS Pro. 2: (Tiered protection) cloud resource IP. 3: (sea acceleration) MCA IP address. 6: (Cloud product linkage) cloud resource IP. RegionId: String type, optional (Required when ValueType is 2) the ID of the region.

Param string
ResourceGroupId string

The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.

RuleName string

The name of the rule.

RuleType int

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

Rules []SchedulerRuleRule

The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values: A: IP address. CNAME: Domain name. Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values: 1: Anti-DDoS Pro. 2: (Tiered protection) cloud resource IP. 3: (sea acceleration) MCA IP address. 6: (Cloud product linkage) cloud resource IP. RegionId: String type, optional (Required when ValueType is 2) the ID of the region.

Param string
ResourceGroupId string

The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.

ruleName string

The name of the rule.

ruleType number

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

rules SchedulerRuleRule[]

The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values: A: IP address. CNAME: Domain name. Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values: 1: Anti-DDoS Pro. 2: (Tiered protection) cloud resource IP. 3: (sea acceleration) MCA IP address. 6: (Cloud product linkage) cloud resource IP. RegionId: String type, optional (Required when ValueType is 2) the ID of the region.

param string
resourceGroupId string

The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.

rule_name str

The name of the rule.

rule_type float

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

rules List[SchedulerRuleRule]

The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values: A: IP address. CNAME: Domain name. Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values: 1: Anti-DDoS Pro. 2: (Tiered protection) cloud resource IP. 3: (sea acceleration) MCA IP address. 6: (Cloud product linkage) cloud resource IP. RegionId: String type, optional (Required when ValueType is 2) the ID of the region.

param str
resource_group_id str

The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.

Outputs

All input properties are implicitly available as output properties. Additionally, the SchedulerRule resource produces the following output properties:

Cname string

The cname is the traffic scheduler corresponding to rules.

Id string
The provider-assigned unique ID for this managed resource.
Cname string

The cname is the traffic scheduler corresponding to rules.

Id string
The provider-assigned unique ID for this managed resource.
cname string

The cname is the traffic scheduler corresponding to rules.

id string
The provider-assigned unique ID for this managed resource.
cname str

The cname is the traffic scheduler corresponding to rules.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing SchedulerRule Resource

Get an existing SchedulerRule 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?: SchedulerRuleState, opts?: CustomResourceOptions): SchedulerRule
static get(resource_name, id, opts=None, cname=None, param=None, resource_group_id=None, rule_name=None, rule_type=None, rules=None, __props__=None);
func GetSchedulerRule(ctx *Context, name string, id IDInput, state *SchedulerRuleState, opts ...ResourceOption) (*SchedulerRule, error)
public static SchedulerRule Get(string name, Input<string> id, SchedulerRuleState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Cname string

The cname is the traffic scheduler corresponding to rules.

Param string
ResourceGroupId string

The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.

RuleName string

The name of the rule.

RuleType int

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

Rules List<Pulumi.AliCloud.Ddos.Inputs.SchedulerRuleRuleArgs>

The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values: A: IP address. CNAME: Domain name. Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values: 1: Anti-DDoS Pro. 2: (Tiered protection) cloud resource IP. 3: (sea acceleration) MCA IP address. 6: (Cloud product linkage) cloud resource IP. RegionId: String type, optional (Required when ValueType is 2) the ID of the region.

Cname string

The cname is the traffic scheduler corresponding to rules.

Param string
ResourceGroupId string

The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.

RuleName string

The name of the rule.

RuleType int

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

Rules []SchedulerRuleRule

The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values: A: IP address. CNAME: Domain name. Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values: 1: Anti-DDoS Pro. 2: (Tiered protection) cloud resource IP. 3: (sea acceleration) MCA IP address. 6: (Cloud product linkage) cloud resource IP. RegionId: String type, optional (Required when ValueType is 2) the ID of the region.

cname string

The cname is the traffic scheduler corresponding to rules.

param string
resourceGroupId string

The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.

ruleName string

The name of the rule.

ruleType number

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

rules SchedulerRuleRule[]

The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values: A: IP address. CNAME: Domain name. Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values: 1: Anti-DDoS Pro. 2: (Tiered protection) cloud resource IP. 3: (sea acceleration) MCA IP address. 6: (Cloud product linkage) cloud resource IP. RegionId: String type, optional (Required when ValueType is 2) the ID of the region.

cname str

The cname is the traffic scheduler corresponding to rules.

param str
resource_group_id str

The ID of the resource group to which the anti-DDoS pro instance belongs in resource management. By default, no value is specified, indicating that the domains in the default resource group are listed.

rule_name str

The name of the rule.

rule_type float

The rule type. Valid values: 2: tiered protection. 3: globalization acceleration. 6: Cloud product interaction.

rules List[SchedulerRuleRule]

The details of the common filter interaction rule, expressed as a JSON string. The structure is as follows: Type: String type, required, the address format of the linkage resource. Valid values: A: IP address. CNAME: Domain name. Value: String type, required, link address of resource. Priority: the priority of the rule. This parameter is required and of Integer type. Valid values: 0~100 the larger the value, the higher the priority. ValueType: Required. The type of the linked resource. It is an Integer. Valid values: 1: Anti-DDoS Pro. 2: (Tiered protection) cloud resource IP. 3: (sea acceleration) MCA IP address. 6: (Cloud product linkage) cloud resource IP. RegionId: String type, optional (Required when ValueType is 2) the ID of the region.

Supporting Types

SchedulerRuleRule

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Priority int
RegionId string
Status int
Type string
Value string
ValueType int
Priority int
RegionId string
Status int
Type string
Value string
ValueType int
priority number
regionId string
status number
type string
value string
valueType number
priority float
regionId str
status float
type str
value str
valueType float

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.