-
Notifications
You must be signed in to change notification settings - Fork 2
/
module.tf
22 lines (20 loc) · 872 Bytes
/
module.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
resource "azurerm_data_factory_dataset_mysql" "dataset" {
name = var.name
resource_group_name = var.resource_group_name
data_factory_name = var.data_factory_name
linked_service_name = var.linked_service_name
table_name = try(var.table_name, null)
folder = try(var.folder, null)
description = try(var.description, null)
annotations = try(var.annotations, null)
parameters = try(var.parameters, null)
additional_properties = try(var.additional_properties, null)
dynamic "schema_column" {
for_each = try(var.schema_column, null) != null ? [var.schema_column] : []
content {
name = schema_column.value.name
type = lookup(schema_column.value, "type", null)
description = lookup(schema_column.value, "description", null)
}
}
}