ClusterArgs

data class ClusterArgs(val clusterName: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<ClusterSkuArgs>? = null, val supportsScaling: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ClusterArgs>

Single Event Hubs Cluster resource in List or Get operations. Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01-preview. Other available API versions: 2018-01-01-preview, 2021-06-01-preview, 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventhub [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ClusterPut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cluster = new AzureNative.EventHub.Cluster("cluster", new()
{
ClusterName = "testCluster",
Location = "South Central US",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.EventHub.Inputs.ClusterSkuArgs
{
Capacity = 1,
Name = AzureNative.EventHub.ClusterSkuName.Dedicated,
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
package main
import (
eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.NewCluster(ctx, "cluster", &eventhub.ClusterArgs{
ClusterName: pulumi.String("testCluster"),
Location: pulumi.String("South Central US"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &eventhub.ClusterSkuArgs{
Capacity: pulumi.Int(1),
Name: pulumi.String(eventhub.ClusterSkuNameDedicated),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
})
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.eventhub.Cluster;
import com.pulumi.azurenative.eventhub.ClusterArgs;
import com.pulumi.azurenative.eventhub.inputs.ClusterSkuArgs;
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 cluster = new Cluster("cluster", ClusterArgs.builder()
.clusterName("testCluster")
.location("South Central US")
.resourceGroupName("myResourceGroup")
.sku(ClusterSkuArgs.builder()
.capacity(1)
.name("Dedicated")
.build())
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}

Import

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

$ pulumi import azure-native:eventhub:Cluster testCluster /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}

Constructors

Link copied to clipboard
constructor(clusterName: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<ClusterSkuArgs>? = null, supportsScaling: Output<Boolean>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The name of the Event Hubs Cluster.

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

Resource location.

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

Name of the resource group within the azure subscription.

Link copied to clipboard
val sku: Output<ClusterSkuArgs>? = null

Properties of the cluster SKU.

Link copied to clipboard
val supportsScaling: Output<Boolean>? = null

A value that indicates whether Scaling is Supported.

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

Resource tags.

Functions

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