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
new SchedulerRule(name: string, args: SchedulerRuleArgs, opts?: CustomResourceOptions);def SchedulerRule(resource_name, opts=None, param=None, resource_group_id=None, rule_name=None, rule_type=None, rules=None, __props__=None);func NewSchedulerRule(ctx *Context, name string, args SchedulerRuleArgs, opts ...ResourceOption) (*SchedulerRule, error)public SchedulerRule(string name, SchedulerRuleArgs args, CustomResourceOptions? opts = null)- 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:
- Rule
Name string The name of the rule.
- Rule
Type int The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.- Rules
List<Pulumi.
Ali Cloud. Ddos. Inputs. Scheduler Rule Rule Args> 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
- Resource
Group stringId 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 string The name of the rule.
- Rule
Type int The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.- Rules
[]Scheduler
Rule Rule 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
- Resource
Group stringId 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 string The name of the rule.
- rule
Type number The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.- rules
Scheduler
Rule Rule[] 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
- resource
Group stringId 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[Scheduler
Rule Rule] 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_ strid 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:
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): SchedulerRulestatic 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
- Resource
Group stringId 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 string The name of the rule.
- Rule
Type int The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.- Rules
List<Pulumi.
Ali Cloud. Ddos. Inputs. Scheduler Rule Rule Args> 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
- Resource
Group stringId 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 string The name of the rule.
- Rule
Type int The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.- Rules
[]Scheduler
Rule Rule 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
- resource
Group stringId 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 string The name of the rule.
- rule
Type number The rule type. Valid values:
2: tiered protection.3: globalization acceleration.6: Cloud product interaction.- rules
Scheduler
Rule Rule[] 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_ strid 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[Scheduler
Rule Rule] 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
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.