Skip to content

Latest commit

 

History

History
210 lines (175 loc) · 4.67 KB

File metadata and controls

210 lines (175 loc) · 4.67 KB

azurerm_data_factory_linked_service_sql_server

back

Index

Terraform

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

top

Example Usage

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

  # additional_properties - (optional) is a type of map of string
  additional_properties = {}
  # annotations - (optional) is a type of list of string
  annotations = []
  # connection_string - (required) is a type of string
  connection_string = null
  # data_factory_name - (required) is a type of string
  data_factory_name = null
  # description - (optional) is a type of string
  description = null
  # integration_runtime_name - (optional) is a type of string
  integration_runtime_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

  key_vault_password = [{
    linked_service_name = null
    secret_name         = 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 "connection_string" {
  description = "(required)"
  type        = string
}

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

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

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

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

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

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

variable "key_vault_password" {
  description = "nested block: NestingList, min items: 0, max items: 1"
  type = set(object(
    {
      linked_service_name = string
      secret_name         = 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_linked_service_sql_server" "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
  # connection_string - (required) is a type of string
  connection_string = var.connection_string
  # 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
  # integration_runtime_name - (optional) is a type of string
  integration_runtime_name = var.integration_runtime_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 "key_vault_password" {
    for_each = var.key_vault_password
    content {
      # linked_service_name - (required) is a type of string
      linked_service_name = key_vault_password.value["linked_service_name"]
      # secret_name - (required) is a type of string
      secret_name = key_vault_password.value["secret_name"]
    }
  }

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

output "this" {
  value = azurerm_data_factory_linked_service_sql_server.this
}

top