Skip to content

Latest commit

 

History

History
185 lines (145 loc) · 3.83 KB

File metadata and controls

185 lines (145 loc) · 3.83 KB

azurerm_eventhub_namespace

back

Index

Terraform

terraform {
  required_providers {
    azurerm = ">= 2.54.0"
  }
}

top

Example Usage

module "azurerm_eventhub_namespace" {
  source = "./modules/azurerm/d/azurerm_eventhub_namespace"

  # name - (required) is a type of string
  name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null

  timeouts = [{
    read = null
  }]
}

top

Variables

variable "name" {
  description = "(required)"
  type        = string
}

variable "resource_group_name" {
  description = "(required)"
  type        = string
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      read = string
    }
  ))
  default = []
}

top

Datasource

data "azurerm_eventhub_namespace" "this" {
  # name - (required) is a type of string
  name = var.name
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # read - (optional) is a type of string
      read = timeouts.value["read"]
    }
  }

}

top

Outputs

output "auto_inflate_enabled" {
  description = "returns a bool"
  value       = data.azurerm_eventhub_namespace.this.auto_inflate_enabled
}

output "capacity" {
  description = "returns a number"
  value       = data.azurerm_eventhub_namespace.this.capacity
}

output "dedicated_cluster_id" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.dedicated_cluster_id
}

output "default_primary_connection_string" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.default_primary_connection_string
  sensitive   = true
}

output "default_primary_connection_string_alias" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.default_primary_connection_string_alias
  sensitive   = true
}

output "default_primary_key" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.default_primary_key
  sensitive   = true
}

output "default_secondary_connection_string" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.default_secondary_connection_string
  sensitive   = true
}

output "default_secondary_connection_string_alias" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.default_secondary_connection_string_alias
  sensitive   = true
}

output "default_secondary_key" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.default_secondary_key
  sensitive   = true
}

output "id" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.id
}

output "kafka_enabled" {
  description = "returns a bool"
  value       = data.azurerm_eventhub_namespace.this.kafka_enabled
}

output "location" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.location
}

output "maximum_throughput_units" {
  description = "returns a number"
  value       = data.azurerm_eventhub_namespace.this.maximum_throughput_units
}

output "sku" {
  description = "returns a string"
  value       = data.azurerm_eventhub_namespace.this.sku
}

output "tags" {
  description = "returns a map of string"
  value       = data.azurerm_eventhub_namespace.this.tags
}

output "zone_redundant" {
  description = "returns a bool"
  value       = data.azurerm_eventhub_namespace.this.zone_redundant
}

output "this" {
  value = azurerm_eventhub_namespace.this
}

top