SchedulerRuleArgs

data class SchedulerRuleArgs(val param: Output<String>? = null, val resourceGroupId: Output<String>? = null, val ruleName: Output<String>? = null, val ruleType: Output<Int>? = null, val rules: Output<List<SchedulerRuleRuleArgs>>? = null) : ConvertibleToJava<SchedulerRuleArgs>

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

NOTE: Available since v1.86.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ddos.SchedulerRule;
import com.pulumi.alicloud.ddos.SchedulerRuleArgs;
import com.pulumi.alicloud.ddos.inputs.SchedulerRuleRuleArgs;
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("tf-example");
var example = new SchedulerRule("example", SchedulerRuleArgs.builder()
.ruleName(name)
.ruleType(3)
.rules(
SchedulerRuleRuleArgs.builder()
.priority(100)
.regionId("cn-hangzhou")
.type("A")
.value("127.0.0.1")
.valueType(3)
.build(),
SchedulerRuleRuleArgs.builder()
.priority(50)
.regionId("cn-hangzhou")
.type("A")
.value("127.0.0.0")
.valueType(1)
.build())
.build());
}
}

Import

DdosCoo Scheduler Rule can be imported using the id or the rule name, e.g.

$ pulumi import alicloud:ddos/schedulerRule:SchedulerRule example fbb20dc77e8fc******

Constructors

Link copied to clipboard
fun SchedulerRuleArgs(param: Output<String>? = null, resourceGroupId: Output<String>? = null, ruleName: Output<String>? = null, ruleType: Output<Int>? = null, rules: Output<List<SchedulerRuleRuleArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SchedulerRuleArgs

Properties

Link copied to clipboard
val param: Output<String>? = null

The scheduling rule for the Global Accelerator instance that interacts with Anti-DDoS Pro or Anti-DDoS Premium.

Link copied to clipboard
val resourceGroupId: Output<String>? = null

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.

Link copied to clipboard
val ruleName: Output<String>? = null

The name of the rule.

Link copied to clipboard
val rules: Output<List<SchedulerRuleRuleArgs>>? = null

The information about the scheduling rules. See rules below.

Link copied to clipboard
val ruleType: Output<Int>? = null

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