Scheduler Rule Args
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());
}
}
Content copied to clipboard
Import
DdosCoo Scheduler Rule can be imported using the id or the rule name, e.g.
$ pulumi import alicloud:ddos/schedulerRule:SchedulerRule example fbb20dc77e8fc******
Content copied to clipboard
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)