forked from terraform-google-modules/terraform-google-group
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
80 lines (70 loc) · 2.79 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
/**
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "id" {
type = string
description = "ID of the group. For Google-managed entities, the ID must be the email address the group"
}
variable "display_name" {
type = string
description = "Display name of the group"
default = ""
}
variable "description" {
type = string
description = "Description of the group"
default = ""
}
variable "domain" {
type = string
description = "Domain of the organization to create the group in. One of domain or customer_id must be specified"
default = ""
}
variable "customer_id" {
type = string
description = "Customer ID of the organization to create the group in. One of domain or customer_id must be specified"
default = ""
}
variable "owners" {
type = list(string)
description = "Owners of the group. Each entry is the ID of an entity. For Google-managed entities, the ID must be the email address of an existing group, user or service account"
default = []
}
variable "managers" {
type = list(string)
description = "Managers of the group. Each entry is the ID of an entity. For Google-managed entities, the ID must be the email address of an existing group, user or service account"
default = []
}
variable "members" {
type = list(string)
description = "Members of the group. Each entry is the ID of an entity. For Google-managed entities, the ID must be the email address of an existing group, user or service account"
default = []
}
variable "initial_group_config" {
type = string
description = "The initial configuration options for creating a Group. See the API reference for possible values. Possible values are INITIAL_GROUP_CONFIG_UNSPECIFIED, WITH_INITIAL_OWNER, and EMPTY."
default = "EMPTY"
}
variable "types" {
type = list(string)
description = "The type of the group to be created. More info: https://cloud.google.com/identity/docs/groups#group_properties"
default = ["default"]
validation {
condition = alltrue(
[for t in var.types : contains(["default", "dynamic", "security", "external"], t)]
)
error_message = "Valid values for group types are \"default\", \"dynamic\", \"security\", \"external\"."
}
}