Skip to content

Latest commit

 

History

History
121 lines (95 loc) · 2.14 KB

File metadata and controls

121 lines (95 loc) · 2.14 KB

azurerm_synapse_role_assignment

back

Index

Terraform

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

top

Example Usage

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

  # principal_id - (required) is a type of string
  principal_id = null
  # role_name - (required) is a type of string
  role_name = null
  # synapse_workspace_id - (required) is a type of string
  synapse_workspace_id = null

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

top

Variables

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

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

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

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

top

Resource

resource "azurerm_synapse_role_assignment" "this" {
  # principal_id - (required) is a type of string
  principal_id = var.principal_id
  # role_name - (required) is a type of string
  role_name = var.role_name
  # synapse_workspace_id - (required) is a type of string
  synapse_workspace_id = var.synapse_workspace_id

  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"]
    }
  }

}

top

Outputs

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

output "this" {
  value = azurerm_synapse_role_assignment.this
}

top