back
terraform {
required_providers {
azurerm = ">= 2.54.0"
}
}
top
module "azurerm_data_share" {
source = "./modules/azurerm/d/azurerm_data_share"
# account_id - (required) is a type of string
account_id = null
# name - (required) is a type of string
name = null
timeouts = [{
read = null
}]
}
top
variable "account_id" {
description = "(required)"
type = string
}
variable "name" {
description = "(required)"
type = string
}
variable "timeouts" {
description = "nested block: NestingSingle, min items: 0, max items: 0"
type = set(object(
{
read = string
}
))
default = []
}
top
data "azurerm_data_share" "this" {
# account_id - (required) is a type of string
account_id = var.account_id
# name - (required) is a type of string
name = var.name
dynamic "timeouts" {
for_each = var.timeouts
content {
# read - (optional) is a type of string
read = timeouts.value["read"]
}
}
}
top
output "description" {
description = "returns a string"
value = data.azurerm_data_share.this.description
}
output "id" {
description = "returns a string"
value = data.azurerm_data_share.this.id
}
output "kind" {
description = "returns a string"
value = data.azurerm_data_share.this.kind
}
output "snapshot_schedule" {
description = "returns a list of object"
value = data.azurerm_data_share.this.snapshot_schedule
}
output "terms" {
description = "returns a string"
value = data.azurerm_data_share.this.terms
}
output "this" {
value = azurerm_data_share.this
}
top