Skip to content

Latest commit

 

History

History
224 lines (188 loc) · 4.87 KB

File metadata and controls

224 lines (188 loc) · 4.87 KB

azurerm_data_factory_dataset_cosmosdb_sqlapi

back

Index

Terraform

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

top

Example Usage

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

  # additional_properties - (optional) is a type of map of string
  additional_properties = {}
  # annotations - (optional) is a type of list of string
  annotations = []
  # collection_name - (optional) is a type of string
  collection_name = null
  # data_factory_name - (required) is a type of string
  data_factory_name = null
  # description - (optional) is a type of string
  description = null
  # folder - (optional) is a type of string
  folder = null
  # linked_service_name - (required) is a type of string
  linked_service_name = null
  # name - (required) is a type of string
  name = null
  # parameters - (optional) is a type of map of string
  parameters = {}
  # resource_group_name - (required) is a type of string
  resource_group_name = null

  schema_column = [{
    description = null
    name        = null
    type        = null
  }]

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

top

Variables

variable "additional_properties" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

variable "annotations" {
  description = "(optional)"
  type        = list(string)
  default     = null
}

variable "collection_name" {
  description = "(optional)"
  type        = string
  default     = null
}

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

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

variable "folder" {
  description = "(optional)"
  type        = string
  default     = null
}

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

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

variable "parameters" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

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

variable "schema_column" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      description = string
      name        = string
      type        = string
    }
  ))
  default = []
}

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_data_factory_dataset_cosmosdb_sqlapi" "this" {
  # additional_properties - (optional) is a type of map of string
  additional_properties = var.additional_properties
  # annotations - (optional) is a type of list of string
  annotations = var.annotations
  # collection_name - (optional) is a type of string
  collection_name = var.collection_name
  # data_factory_name - (required) is a type of string
  data_factory_name = var.data_factory_name
  # description - (optional) is a type of string
  description = var.description
  # folder - (optional) is a type of string
  folder = var.folder
  # linked_service_name - (required) is a type of string
  linked_service_name = var.linked_service_name
  # name - (required) is a type of string
  name = var.name
  # parameters - (optional) is a type of map of string
  parameters = var.parameters
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name

  dynamic "schema_column" {
    for_each = var.schema_column
    content {
      # description - (optional) is a type of string
      description = schema_column.value["description"]
      # name - (required) is a type of string
      name = schema_column.value["name"]
      # type - (optional) is a type of string
      type = schema_column.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_data_factory_dataset_cosmosdb_sqlapi.this.id
}

output "this" {
  value = azurerm_data_factory_dataset_cosmosdb_sqlapi.this
}

top