azure-native.eventhub.Cluster
Explore with Pulumi AI
Single Event Hubs Cluster resource in List or Get operations. Azure REST API version: 2022-10-01-preview. Prior API version in Azure Native 1.x: 2018-01-01-preview.
Other available API versions: 2023-01-01-preview, 2024-01-01, 2024-05-01-preview.
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 pulumi
import pulumi_azure_native as azure_native
cluster = azure_native.eventhub.Cluster("cluster",
cluster_name="testCluster",
location="South Central US",
resource_group_name="myResourceGroup",
sku={
"capacity": 1,
"name": azure_native.eventhub.ClusterSkuName.DEDICATED,
},
tags={
"tag1": "value1",
"tag2": "value2",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const cluster = new azure_native.eventhub.Cluster("cluster", {
clusterName: "testCluster",
location: "South Central US",
resourceGroupName: "myResourceGroup",
sku: {
capacity: 1,
name: azure_native.eventhub.ClusterSkuName.Dedicated,
},
tags: {
tag1: "value1",
tag2: "value2",
},
});
resources:
cluster:
type: azure-native:eventhub:Cluster
properties:
clusterName: testCluster
location: South Central US
resourceGroupName: myResourceGroup
sku:
capacity: 1
name: Dedicated
tags:
tag1: value1
tag2: value2
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,
supports_scaling: Optional[bool] = 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:eventhub: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 exampleclusterResourceResourceFromEventhub = new AzureNative.EventHub.Cluster("exampleclusterResourceResourceFromEventhub", new()
{
ResourceGroupName = "string",
ClusterName = "string",
Location = "string",
Sku = new AzureNative.EventHub.Inputs.ClusterSkuArgs
{
Name = "string",
Capacity = 0,
},
SupportsScaling = false,
Tags =
{
{ "string", "string" },
},
});
example, err := eventhub.NewCluster(ctx, "exampleclusterResourceResourceFromEventhub", &eventhub.ClusterArgs{
ResourceGroupName: pulumi.String("string"),
ClusterName: pulumi.String("string"),
Location: pulumi.String("string"),
Sku: &eventhub.ClusterSkuArgs{
Name: pulumi.String("string"),
Capacity: pulumi.Int(0),
},
SupportsScaling: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleclusterResourceResourceFromEventhub = new Cluster("exampleclusterResourceResourceFromEventhub", ClusterArgs.builder()
.resourceGroupName("string")
.clusterName("string")
.location("string")
.sku(ClusterSkuArgs.builder()
.name("string")
.capacity(0)
.build())
.supportsScaling(false)
.tags(Map.of("string", "string"))
.build());
examplecluster_resource_resource_from_eventhub = azure_native.eventhub.Cluster("exampleclusterResourceResourceFromEventhub",
resource_group_name="string",
cluster_name="string",
location="string",
sku={
"name": "string",
"capacity": 0,
},
supports_scaling=False,
tags={
"string": "string",
})
const exampleclusterResourceResourceFromEventhub = new azure_native.eventhub.Cluster("exampleclusterResourceResourceFromEventhub", {
resourceGroupName: "string",
clusterName: "string",
location: "string",
sku: {
name: "string",
capacity: 0,
},
supportsScaling: false,
tags: {
string: "string",
},
});
type: azure-native:eventhub:Cluster
properties:
clusterName: string
location: string
resourceGroupName: string
sku:
capacity: 0
name: string
supportsScaling: false
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Cluster resource accepts the following input properties:
- Resource
Group stringName - Name of the resource group within the azure subscription.
- Cluster
Name string - The name of the Event Hubs Cluster.
- Location string
- Resource location.
- Sku
Pulumi.
Azure Native. Event Hub. Inputs. Cluster Sku - Properties of the cluster SKU.
- Supports
Scaling bool - A value that indicates whether Scaling is Supported.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - Name of the resource group within the azure subscription.
- Cluster
Name string - The name of the Event Hubs Cluster.
- Location string
- Resource location.
- Sku
Cluster
Sku Args - Properties of the cluster SKU.
- Supports
Scaling bool - A value that indicates whether Scaling is Supported.
- map[string]string
- Resource tags.
- resource
Group StringName - Name of the resource group within the azure subscription.
- cluster
Name String - The name of the Event Hubs Cluster.
- location String
- Resource location.
- sku
Cluster
Sku - Properties of the cluster SKU.
- supports
Scaling Boolean - A value that indicates whether Scaling is Supported.
- Map<String,String>
- Resource tags.
- resource
Group stringName - Name of the resource group within the azure subscription.
- cluster
Name string - The name of the Event Hubs Cluster.
- location string
- Resource location.
- sku
Cluster
Sku - Properties of the cluster SKU.
- supports
Scaling boolean - A value that indicates whether Scaling is Supported.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - Name of the resource group within the azure subscription.
- cluster_
name str - The name of the Event Hubs Cluster.
- location str
- Resource location.
- sku
Cluster
Sku Args - Properties of the cluster SKU.
- supports_
scaling bool - A value that indicates whether Scaling is Supported.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - Name of the resource group within the azure subscription.
- cluster
Name String - The name of the Event Hubs Cluster.
- location String
- Resource location.
- sku Property Map
- Properties of the cluster SKU.
- supports
Scaling Boolean - A value that indicates whether Scaling is Supported.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Created
At string - The UTC time when the Event Hubs Cluster was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metric
Id string - The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
- Name string
- The name of the resource
- Status string
- Status of the Cluster resource
- System
Data Pulumi.Azure Native. Event Hub. Outputs. System Data Response - The system meta data relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Updated
At string - The UTC time when the Event Hubs Cluster was last updated.
- Created
At string - The UTC time when the Event Hubs Cluster was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metric
Id string - The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
- Name string
- The name of the resource
- Status string
- Status of the Cluster resource
- System
Data SystemData Response - The system meta data relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Updated
At string - The UTC time when the Event Hubs Cluster was last updated.
- created
At String - The UTC time when the Event Hubs Cluster was created.
- id String
- The provider-assigned unique ID for this managed resource.
- metric
Id String - The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
- name String
- The name of the resource
- status String
- Status of the Cluster resource
- system
Data SystemData Response - The system meta data relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
At String - The UTC time when the Event Hubs Cluster was last updated.
- created
At string - The UTC time when the Event Hubs Cluster was created.
- id string
- The provider-assigned unique ID for this managed resource.
- metric
Id string - The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
- name string
- The name of the resource
- status string
- Status of the Cluster resource
- system
Data SystemData Response - The system meta data relating to this resource.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
At string - The UTC time when the Event Hubs Cluster was last updated.
- created_
at str - The UTC time when the Event Hubs Cluster was created.
- id str
- The provider-assigned unique ID for this managed resource.
- metric_
id str - The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
- name str
- The name of the resource
- status str
- Status of the Cluster resource
- system_
data SystemData Response - The system meta data relating to this resource.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated_
at str - The UTC time when the Event Hubs Cluster was last updated.
- created
At String - The UTC time when the Event Hubs Cluster was created.
- id String
- The provider-assigned unique ID for this managed resource.
- metric
Id String - The metric ID of the cluster resource. Provided by the service and not modifiable by the user.
- name String
- The name of the resource
- status String
- Status of the Cluster resource
- system
Data Property Map - The system meta data relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- updated
At String - The UTC time when the Event Hubs Cluster was last updated.
Supporting Types
ClusterSku, ClusterSkuArgs
- Name
string | Pulumi.
Azure Native. Event Hub. Cluster Sku Name - Name of this SKU.
- Capacity int
- The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
- Name
string | Cluster
Sku Name - Name of this SKU.
- Capacity int
- The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
- name
String | Cluster
Sku Name - Name of this SKU.
- capacity Integer
- The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
- name
string | Cluster
Sku Name - Name of this SKU.
- capacity number
- The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
- name
str | Cluster
Sku Name - Name of this SKU.
- capacity int
- The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
- name String | "Dedicated"
- Name of this SKU.
- capacity Number
- The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
ClusterSkuName, ClusterSkuNameArgs
- Dedicated
- Dedicated
- Cluster
Sku Name Dedicated - Dedicated
- Dedicated
- Dedicated
- Dedicated
- Dedicated
- DEDICATED
- Dedicated
- "Dedicated"
- Dedicated
ClusterSkuResponse, ClusterSkuResponseArgs
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The type of identity that last modified the resource.
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0