azure-native.streamanalytics.Cluster
Explore with Pulumi AI
A Stream Analytics Cluster object Azure REST API version: 2020-03-01. Prior API version in Azure Native 1.x: 2020-03-01-preview.
Other available API versions: 2020-03-01-preview.
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/v2"
"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 pulumi
import pulumi_azure_native as azure_native
cluster = azure_native.streamanalytics.Cluster("cluster",
cluster_name="An Example Cluster",
location="North US",
resource_group_name="sjrg",
sku=azure_native.streamanalytics.ClusterSkuArgs(
capacity=48,
name=azure_native.streamanalytics.ClusterSkuName.DEFAULT,
),
tags={
"key": "value",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const cluster = new azure_native.streamanalytics.Cluster("cluster", {
clusterName: "An Example Cluster",
location: "North US",
resourceGroupName: "sjrg",
sku: {
capacity: 48,
name: azure_native.streamanalytics.ClusterSkuName.Default,
},
tags: {
key: "value",
},
});
resources:
cluster:
type: azure-native:streamanalytics:Cluster
properties:
clusterName: An Example Cluster
location: North US
resourceGroupName: sjrg
sku:
capacity: 48
name: Default
tags:
key: value
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);
@overload
def Cluster(resource_name: str,
args: ClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
cluster_name: Optional[str] = None,
location: Optional[str] = None,
sku: Optional[ClusterSkuArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)
public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: azure-native:streamanalytics:Cluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleclusterResourceResourceFromStreamanalytics = new AzureNative.StreamAnalytics.Cluster("exampleclusterResourceResourceFromStreamanalytics", new()
{
ResourceGroupName = "string",
ClusterName = "string",
Location = "string",
Sku = new AzureNative.StreamAnalytics.Inputs.ClusterSkuArgs
{
Capacity = 0,
Name = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := streamanalytics.NewCluster(ctx, "exampleclusterResourceResourceFromStreamanalytics", &streamanalytics.ClusterArgs{
ResourceGroupName: pulumi.String("string"),
ClusterName: pulumi.String("string"),
Location: pulumi.String("string"),
Sku: &streamanalytics.ClusterSkuArgs{
Capacity: pulumi.Int(0),
Name: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleclusterResourceResourceFromStreamanalytics = new Cluster("exampleclusterResourceResourceFromStreamanalytics", ClusterArgs.builder()
.resourceGroupName("string")
.clusterName("string")
.location("string")
.sku(ClusterSkuArgs.builder()
.capacity(0)
.name("string")
.build())
.tags(Map.of("string", "string"))
.build());
examplecluster_resource_resource_from_streamanalytics = azure_native.streamanalytics.Cluster("exampleclusterResourceResourceFromStreamanalytics",
resource_group_name="string",
cluster_name="string",
location="string",
sku=azure_native.streamanalytics.ClusterSkuArgs(
capacity=0,
name="string",
),
tags={
"string": "string",
})
const exampleclusterResourceResourceFromStreamanalytics = new azure_native.streamanalytics.Cluster("exampleclusterResourceResourceFromStreamanalytics", {
resourceGroupName: "string",
clusterName: "string",
location: "string",
sku: {
capacity: 0,
name: "string",
},
tags: {
string: "string",
},
});
type: azure-native:streamanalytics:Cluster
properties:
clusterName: string
location: string
resourceGroupName: string
sku:
capacity: 0
name: string
tags:
string: string
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Cluster resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Cluster
Name string - The name of the cluster.
- Location string
- The geo-location where the resource lives
- Sku
Pulumi.
Azure Native. Stream Analytics. Inputs. Cluster Sku - The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Cluster
Name string - The name of the cluster.
- Location string
- The geo-location where the resource lives
- Sku
Cluster
Sku Args - The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- cluster
Name String - The name of the cluster.
- location String
- The geo-location where the resource lives
- sku
Cluster
Sku - The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- cluster
Name string - The name of the cluster.
- location string
- The geo-location where the resource lives
- sku
Cluster
Sku - The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- cluster_
name str - The name of the cluster.
- location str
- The geo-location where the resource lives
- sku
Cluster
Sku Args - The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- cluster
Name String - The name of the cluster.
- location String
- The geo-location where the resource lives
- sku Property Map
- The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Capacity
Allocated int - Represents the number of streaming units currently being used on the cluster.
- Capacity
Assigned int - Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.
- Cluster
Id string - Unique identifier for the cluster.
- Created
Date string - The date this cluster was created.
- Etag string
- The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- Capacity
Allocated int - Represents the number of streaming units currently being used on the cluster.
- Capacity
Assigned int - Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.
- Cluster
Id string - Unique identifier for the cluster.
- Created
Date string - The date this cluster was created.
- Etag string
- The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
- Type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- capacity
Allocated Integer - Represents the number of streaming units currently being used on the cluster.
- capacity
Assigned Integer - Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.
- cluster
Id String - Unique identifier for the cluster.
- created
Date String - The date this cluster was created.
- etag String
- The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- capacity
Allocated number - Represents the number of streaming units currently being used on the cluster.
- capacity
Assigned number - Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.
- cluster
Id string - Unique identifier for the cluster.
- created
Date string - The date this cluster was created.
- etag string
- The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
- type string
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- capacity_
allocated int - Represents the number of streaming units currently being used on the cluster.
- capacity_
assigned int - Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.
- cluster_
id str - Unique identifier for the cluster.
- created_
date str - The date this cluster was created.
- etag str
- The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
- type str
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- capacity
Allocated Number - Represents the number of streaming units currently being used on the cluster.
- capacity
Assigned Number - Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated.
- cluster
Id String - Unique identifier for the cluster.
- created
Date String - The date this cluster was created.
- etag String
- The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
- type String
- The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Supporting Types
ClusterSku, ClusterSkuArgs
- Capacity int
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- Name
string | Pulumi.
Azure Native. Stream Analytics. Cluster Sku Name - Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- Capacity int
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- Name
string | Cluster
Sku Name - Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- capacity Integer
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- name
String | Cluster
Sku Name - Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- capacity number
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- name
string | Cluster
Sku Name - Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- capacity int
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- name
str | Cluster
Sku Name - Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- capacity Number
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- name String | "Default"
- Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
ClusterSkuName, ClusterSkuNameArgs
- Default
- DefaultThe default SKU.
- Cluster
Sku Name Default - DefaultThe default SKU.
- Default
- DefaultThe default SKU.
- Default
- DefaultThe default SKU.
- DEFAULT
- DefaultThe default SKU.
- "Default"
- DefaultThe default SKU.
ClusterSkuResponse, ClusterSkuResponseArgs
- Capacity int
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- Name string
- Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- Capacity int
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- Name string
- Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- capacity Integer
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- name String
- Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- capacity number
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- name string
- Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- capacity int
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- name str
- Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
- capacity Number
- Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate) requests.
- name String
- Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0