-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
97 lines (86 loc) · 3.58 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
variable "api_type" {
description = "Specifies the type of the Managed API."
type = string
validation {
error_message = "Please choose a supported Managed API!"
condition = contains(["azureblob", "sharepointonline", "office365", "planner"], var.api_type)
}
}
variable "resource_group_name" {
description = "Specifies the name of the Resource Group where the logic should exists. Changing this forces a new resource to be created."
type = string
}
################ Deployment ################
variable "deployment_name" {
description = "The name which should be used for this Resource Group Template Deployment. Changing this forces a new Resource Group Template Deployment to be created."
type = string
default = null
}
variable "deployment_tags" {
description = "A map of tags to assign to deployment."
type = map(string)
default = {}
}
variable "deployment_debug_level" {
description = "The Debug Level which should be used for this Resource Group Template Deployment. Possible values are none, requestContent, responseContent and BOTH."
type = string
default = null
validation {
error_message = "Please use a valid value!"
condition = var.deployment_debug_level == null || can(contains(["none", "requestContent", "responseContent", "BOTH"], var.deployment_debug_level))
}
}
################ Connections ################
variable "connection_name" {
description = "The Name which should be used for this API Connection. Changing this forces a new API Connection to be created."
type = string
default = null
}
variable "connection_display_name" {
description = "A display name for this API Connection. Changing this forces a new API Connection to be created."
type = string
default = null
}
variable "connection_tags" {
description = "A map of tags to assign to Api Connection."
type = map(string)
default = {}
}
################ Azure Blob ################
variable "azureblob_authentication_type" {
description = "Specifies Authentication Type for `azureblob` api connection."
type = string
default = "Logic Apps Managed Identity"
validation {
error_message = "Please choose a supported Authentication Type to azure blob managed api!"
condition = contains(["Logic Apps Managed Identity", "Access Key", "Service Principal", "Microsoft Entra ID"], var.azureblob_authentication_type)
}
}
variable "azureblob_storage_account_name" {
description = "Specifies storage account name for `azureblob` api connection. Required when `azureblob_authentication_type` is `Access Key`"
type = string
default = null
}
variable "azureblob_storage_account_access_key" {
description = "Specifies storage access key for `azureblob` api connection. Required when `azureblob_authentication_type` is `Access Key`"
type = string
sensitive = true
default = null
}
################ Service Principal ################
variable "auth_service_principal_client_id" {
description = "Service Principal Client Id. Required when `*_authentication_type` is `Service Principal`"
type = string
default = null
}
variable "auth_service_principal_client_secret" {
description = "Service Principal Client Secret. Required when `*_authentication_type` is `Service Principal`"
type = string
default = null
sensitive = true
}
variable "auth_service_principal_tenant_id" {
description = "Service Principal Tenant Id. Required when `*_authentication_type` is `Service Principal`"
type = string
default = null
}