TaskHubArgs

data class TaskHubArgs(val resourceGroupName: Output<String>? = null, val schedulerName: Output<String>? = null, val taskHubName: Output<String>? = null) : ConvertibleToJava<TaskHubArgs>

A Task Hub resource belonging to the scheduler Uses Azure REST API version 2024-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2024-10-01-preview. Other available API versions: 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native durabletask [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

TaskHubs_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var taskHub = new AzureNative.DurableTask.TaskHub("taskHub", new()
{
ResourceGroupName = "rgopenapi",
SchedulerName = "testscheduler",
TaskHubName = "testtaskhub",
});
});
package main
import (
durabletask "github.com/pulumi/pulumi-azure-native-sdk/durabletask/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := durabletask.NewTaskHub(ctx, "taskHub", &durabletask.TaskHubArgs{
ResourceGroupName: pulumi.String("rgopenapi"),
SchedulerName: pulumi.String("testscheduler"),
TaskHubName: pulumi.String("testtaskhub"),
})
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.TaskHub;
import com.pulumi.azurenative.durabletask.TaskHubArgs;
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 taskHub = new TaskHub("taskHub", TaskHubArgs.builder()
.resourceGroupName("rgopenapi")
.schedulerName("testscheduler")
.taskHubName("testtaskhub")
.build());
}
}

Import

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

$ pulumi import azure-native:durabletask:TaskHub testtaskhub /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/taskHubs/{taskHubName}

Constructors

Link copied to clipboard
constructor(resourceGroupName: Output<String>? = null, schedulerName: Output<String>? = null, taskHubName: Output<String>? = null)

Properties

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 taskHubName: Output<String>? = null

The name of the TaskHub

Functions

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