Skip to content

Latest commit

 

History

History
199 lines (165 loc) · 4.56 KB

azurerm_stream_analytics_stream_input_eventhub.md

File metadata and controls

199 lines (165 loc) · 4.56 KB

azurerm_stream_analytics_stream_input_eventhub

back

Index

Terraform

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

top

Example Usage

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

  # eventhub_consumer_group_name - (required) is a type of string
  eventhub_consumer_group_name = null
  # eventhub_name - (required) is a type of string
  eventhub_name = null
  # name - (required) is a type of string
  name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
  # servicebus_namespace - (required) is a type of string
  servicebus_namespace = null
  # shared_access_policy_key - (required) is a type of string
  shared_access_policy_key = null
  # shared_access_policy_name - (required) is a type of string
  shared_access_policy_name = null
  # stream_analytics_job_name - (required) is a type of string
  stream_analytics_job_name = null

  serialization = [{
    encoding        = null
    field_delimiter = null
    type            = null
  }]

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

top

Variables

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

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

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

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

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

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

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

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

variable "serialization" {
  description = "nested block: NestingList, min items: 1, max items: 1"
  type = set(object(
    {
      encoding        = string
      field_delimiter = string
      type            = string
    }
  ))
}

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_stream_analytics_stream_input_eventhub" "this" {
  # eventhub_consumer_group_name - (required) is a type of string
  eventhub_consumer_group_name = var.eventhub_consumer_group_name
  # eventhub_name - (required) is a type of string
  eventhub_name = var.eventhub_name
  # 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
  # servicebus_namespace - (required) is a type of string
  servicebus_namespace = var.servicebus_namespace
  # shared_access_policy_key - (required) is a type of string
  shared_access_policy_key = var.shared_access_policy_key
  # shared_access_policy_name - (required) is a type of string
  shared_access_policy_name = var.shared_access_policy_name
  # stream_analytics_job_name - (required) is a type of string
  stream_analytics_job_name = var.stream_analytics_job_name

  dynamic "serialization" {
    for_each = var.serialization
    content {
      # encoding - (optional) is a type of string
      encoding = serialization.value["encoding"]
      # field_delimiter - (optional) is a type of string
      field_delimiter = serialization.value["field_delimiter"]
      # type - (required) is a type of string
      type = serialization.value["type"]
    }
  }

  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_stream_analytics_stream_input_eventhub.this.id
}

output "this" {
  value = azurerm_stream_analytics_stream_input_eventhub.this
}

top