Skip to content

azurermEventhubCluster

Manages an EventHub Cluster

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "example-resources",
  }
);
new azurerm.eventhubCluster.EventhubCluster(this, "test", {
  location: azurermResourceGroupExample.location,
  name: "example",
  resource_group_name: azurermResourceGroupExample.name,
  sku_name: "Dedicated_1",
});

Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the EventHub Cluster resource. Changing this forces a new resource to be created.

  • resourceGroupName - (Required) The name of the resource group in which the EventHub Cluster exists. Changing this forces a new resource to be created.

  • location - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • skuName - (Required) The SKU name of the EventHub Cluster. The only supported value at this time is dedicated1. Changing this forces a new resource to be created.

  • tags - (Optional) A mapping of tags to assign to the resource.


Attributes Reference

The following attributes are exported:

  • id - The EventHub Cluster ID.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the EventHub Cluster.
  • update - (Defaults to 30 minutes) Used when updating the EventHub Cluster.
  • read - (Defaults to 5 minutes) Used when retrieving the EventHub Cluster.
  • delete - (Defaults to 300 minutes) Used when deleting the EventHub Cluster.

Import

EventHub Cluster's can be imported using the resourceId, e.g.

terraform import azurerm_eventhub_cluster.cluster1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.EventHub/clusters/cluster1