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 tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ClusterArgs>

A Stream Analytics Cluster object Uses Azure REST API version 2020-03-01. In version 2.x of the Azure Native provider, it used API version 2020-03-01.

Example Usage

Create a new cluster

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cluster = new AzureNative.StreamAnalytics.Cluster("cluster", new()
{
ClusterName = "An Example Cluster",
Location = "North US",
ResourceGroupName = "sjrg",
Sku = new AzureNative.StreamAnalytics.Inputs.ClusterSkuArgs
{
Capacity = 48,
Name = AzureNative.StreamAnalytics.ClusterSkuName.Default,
},
Tags =
{
{ "key", "value" },
},
});
});
package main
import (
streamanalytics "github.com/pulumi/pulumi-azure-native-sdk/streamanalytics/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := streamanalytics.NewCluster(ctx, "cluster", &streamanalytics.ClusterArgs{
ClusterName: pulumi.String("An Example Cluster"),
Location: pulumi.String("North US"),
ResourceGroupName: pulumi.String("sjrg"),
Sku: &streamanalytics.ClusterSkuArgs{
Capacity: pulumi.Int(48),
Name: pulumi.String(streamanalytics.ClusterSkuNameDefault),
},
Tags: pulumi.StringMap{
"key": pulumi.String("value"),
},
})
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.streamanalytics.Cluster;
import com.pulumi.azurenative.streamanalytics.ClusterArgs;
import com.pulumi.azurenative.streamanalytics.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("An Example Cluster")
.location("North US")
.resourceGroupName("sjrg")
.sku(ClusterSkuArgs.builder()
.capacity(48)
.name("Default")
.build())
.tags(Map.of("key", "value"))
.build());
}
}

Import

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

$ pulumi import azure-native:streamanalytics:Cluster An Example Cluster /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}

Constructors

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

Properties

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

The name of the cluster.

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

The geo-location where the resource lives

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 sku: Output<ClusterSkuArgs>? = null

The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.

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

Resource tags.

Functions

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