Skip to content

Latest commit

 

History

History
191 lines (156 loc) · 4.03 KB

azurerm_eventhub_namespace_authorization_rule.md

File metadata and controls

191 lines (156 loc) · 4.03 KB

azurerm_eventhub_namespace_authorization_rule

back

Index

Terraform

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

top

Example Usage

module "azurerm_eventhub_namespace_authorization_rule" {
  source = "./modules/azurerm/r/azurerm_eventhub_namespace_authorization_rule"

  # listen - (optional) is a type of bool
  listen = null
  # manage - (optional) is a type of bool
  manage = null
  # name - (required) is a type of string
  name = null
  # namespace_name - (required) is a type of string
  namespace_name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
  # send - (optional) is a type of bool
  send = null

  timeouts = [{
    create = null
    delete = null
    read   = null
    update = null
  }]
}

top

Variables

variable "listen" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "manage" {
  description = "(optional)"
  type        = bool
  default     = null
}

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

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

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

variable "send" {
  description = "(optional)"
  type        = bool
  default     = null
}

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

top

Resource

resource "azurerm_eventhub_namespace_authorization_rule" "this" {
  # listen - (optional) is a type of bool
  listen = var.listen
  # manage - (optional) is a type of bool
  manage = var.manage
  # name - (required) is a type of string
  name = var.name
  # namespace_name - (required) is a type of string
  namespace_name = var.namespace_name
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name
  # send - (optional) is a type of bool
  send = var.send

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

}

top

Outputs

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

output "primary_connection_string" {
  description = "returns a string"
  value       = azurerm_eventhub_namespace_authorization_rule.this.primary_connection_string
  sensitive   = true
}

output "primary_connection_string_alias" {
  description = "returns a string"
  value       = azurerm_eventhub_namespace_authorization_rule.this.primary_connection_string_alias
  sensitive   = true
}

output "primary_key" {
  description = "returns a string"
  value       = azurerm_eventhub_namespace_authorization_rule.this.primary_key
  sensitive   = true
}

output "secondary_connection_string" {
  description = "returns a string"
  value       = azurerm_eventhub_namespace_authorization_rule.this.secondary_connection_string
  sensitive   = true
}

output "secondary_connection_string_alias" {
  description = "returns a string"
  value       = azurerm_eventhub_namespace_authorization_rule.this.secondary_connection_string_alias
  sensitive   = true
}

output "secondary_key" {
  description = "returns a string"
  value       = azurerm_eventhub_namespace_authorization_rule.this.secondary_key
  sensitive   = true
}

output "this" {
  value = azurerm_eventhub_namespace_authorization_rule.this
}

top