You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/iam_group.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The following arguments are supported:
53
53
54
54
*`name` - (Required) The name of the group
55
55
*`description` - (Required) The description of the group
56
-
*`roles` - (Required) The list of role IDS to assign to this group
56
+
*`roles` - (Optional) The list of role IDS to assign to this group
57
57
*`managing_organization` - (Required) The managing organization ID
58
58
*`users` - (Optional) The list of user IDs to include in this group. The provider only manages this list of users. Existing users added by others means to the group by the provider. It is not practical to manage hundreds or thousands of users this way of course.
59
59
*`services` - (Optional) The list of service identity IDs to include in this group. See `hsdp_iam_service`
Description: "When enabled, the provider will perform additional API calls to determine if any changes were made outside of Terraform to user and service assignments of this group.",
102
107
},
103
-
"iam_device_bug_workaround": {
104
-
Type: schema.TypeBool,
105
-
Optional: true,
106
-
Default: false,
107
-
Deprecated: "This workaround is no longer required and will be removed in the near future.",
108
-
Description: "Deprecated, do not use.",
109
-
},
110
108
},
111
109
}
112
110
}
@@ -138,28 +136,30 @@ func resourceIAMGroupCreate(ctx context.Context, d *schema.ResourceData, m inter
Description: "The list of role IDS to assign to this group.",
46
+
},
47
+
"users": {
48
+
Type: schema.TypeSet,
49
+
MaxItems: 2000,
50
+
Optional: true,
51
+
Elem: tools.StringSchema(),
52
+
Description: "The list of user IDs to include in this group. The provider only manages this list of users. Existing users added by others means to the group by the provider. It is not practical to manage hundreds or thousands of users this way of course.",
53
+
},
54
+
"services": {
55
+
Type: schema.TypeSet,
56
+
MaxItems: 2000,
57
+
Optional: true,
58
+
Elem: tools.StringSchema(),
59
+
Description: "The list of service identity IDs to include in this group.",
60
+
},
61
+
"devices": {
62
+
Type: schema.TypeSet,
63
+
MaxItems: 2000,
64
+
Optional: true,
65
+
Elem: tools.StringSchema(),
66
+
Description: "The list of IAM device identity IDs to include in this group.",
67
+
},
68
+
"drift_detection": {
69
+
Type: schema.TypeBool,
70
+
Optional: true,
71
+
Default: true,
72
+
Description: "When enabled, the provider will perform additional API calls to determine if any changes were made outside of Terraform to user and service assignments of this group.",
73
+
},
74
+
"iam_device_bug_workaround": {
75
+
Type: schema.TypeBool,
76
+
Optional: true,
77
+
Default: false,
78
+
Deprecated: "This workaround is no longer required and will be removed in the near future.",
0 commit comments