SchedulerArgs

data class SchedulerArgs(val location: Output<String>? = null, val properties: Output<SchedulerPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val schedulerName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SchedulerArgs>

A Durable Task Scheduler resource Uses Azure REST API version 2024-10-01-preview.

Example Usage

Schedulers_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scheduler = new AzureNative.DurableTask.Scheduler("scheduler", new()
{
Location = "northcentralus",
Properties = new AzureNative.DurableTask.Inputs.SchedulerPropertiesArgs
{
IpAllowlist = new[]
{
"10.0.0.0/8",
},
Sku = new AzureNative.DurableTask.Inputs.SchedulerSkuArgs
{
Name = "Dedicated",
},
},
ResourceGroupName = "rgopenapi",
SchedulerName = "testscheduler",
Tags =
{
{ "key2138", "fjaeecgnvqd" },
{ "key7131", "ryohwcoiccwsnewjigfmijz" },
},
});
});
package main
import (
durabletask "github.com/pulumi/pulumi-azure-native-sdk/durabletask/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := durabletask.NewScheduler(ctx, "scheduler", &durabletask.SchedulerArgs{
Location: pulumi.String("northcentralus"),
Properties: &durabletask.SchedulerPropertiesArgs{
IpAllowlist: pulumi.StringArray{
pulumi.String("10.0.0.0/8"),
},
Sku: &durabletask.SchedulerSkuArgs{
Name: pulumi.String("Dedicated"),
},
},
ResourceGroupName: pulumi.String("rgopenapi"),
SchedulerName: pulumi.String("testscheduler"),
Tags: pulumi.StringMap{
"key2138": pulumi.String("fjaeecgnvqd"),
"key7131": pulumi.String("ryohwcoiccwsnewjigfmijz"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.durabletask.Scheduler;
import com.pulumi.azurenative.durabletask.SchedulerArgs;
import com.pulumi.azurenative.durabletask.inputs.SchedulerPropertiesArgs;
import com.pulumi.azurenative.durabletask.inputs.SchedulerSkuArgs;
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) {
var scheduler = new Scheduler("scheduler", SchedulerArgs.builder()
.location("northcentralus")
.properties(SchedulerPropertiesArgs.builder()
.ipAllowlist("10.0.0.0/8")
.sku(SchedulerSkuArgs.builder()
.name("Dedicated")
.build())
.build())
.resourceGroupName("rgopenapi")
.schedulerName("testscheduler")
.tags(Map.ofEntries(
Map.entry("key2138", "fjaeecgnvqd"),
Map.entry("key7131", "ryohwcoiccwsnewjigfmijz")
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:durabletask:Scheduler fwxpolhofploqzwdooyg /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, properties: Output<SchedulerPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, schedulerName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The geo-location where the resource lives

Link copied to clipboard
val properties: Output<SchedulerPropertiesArgs>? = null

The resource-specific properties for this resource.

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

The name of the resource group. The name is case insensitive.

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

The name of the Scheduler

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

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