pulumi-azuread 5.48.0a1706744699__py3-none-any.whl → 6.8.0a1766208344__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-azuread might be problematic. Click here for more details.

Files changed (87) hide show
  1. pulumi_azuread/__init__.py +48 -1
  2. pulumi_azuread/_inputs.py +3803 -919
  3. pulumi_azuread/_utilities.py +52 -12
  4. pulumi_azuread/access_package.py +84 -78
  5. pulumi_azuread/access_package_assignment_policy.py +202 -196
  6. pulumi_azuread/access_package_catalog.py +82 -76
  7. pulumi_azuread/access_package_catalog_role_assignment.py +73 -67
  8. pulumi_azuread/access_package_resource_catalog_association.py +73 -67
  9. pulumi_azuread/access_package_resource_package_association.py +79 -73
  10. pulumi_azuread/administrative_unit.py +120 -100
  11. pulumi_azuread/administrative_unit_member.py +66 -50
  12. pulumi_azuread/administrative_unit_role_member.py +75 -69
  13. pulumi_azuread/app_role_assignment.py +164 -264
  14. pulumi_azuread/application.py +766 -692
  15. pulumi_azuread/application_api_access.py +84 -80
  16. pulumi_azuread/application_app_role.py +120 -116
  17. pulumi_azuread/application_certificate.py +349 -211
  18. pulumi_azuread/application_fallback_public_client.py +50 -44
  19. pulumi_azuread/application_federated_identity_credential.py +142 -197
  20. pulumi_azuread/application_from_template.py +90 -84
  21. pulumi_azuread/application_identifier_uri.py +56 -52
  22. pulumi_azuread/application_known_clients.py +50 -44
  23. pulumi_azuread/application_optional_claims.py +87 -81
  24. pulumi_azuread/application_owner.py +76 -42
  25. pulumi_azuread/application_password.py +159 -205
  26. pulumi_azuread/application_permission_scope.py +160 -156
  27. pulumi_azuread/application_pre_authorized.py +120 -236
  28. pulumi_azuread/application_redirect_uris.py +75 -69
  29. pulumi_azuread/application_registration.py +315 -309
  30. pulumi_azuread/authentication_strength_policy.py +73 -67
  31. pulumi_azuread/claims_mapping_policy.py +48 -42
  32. pulumi_azuread/conditional_access_policy.py +248 -232
  33. pulumi_azuread/config/__init__.py +2 -1
  34. pulumi_azuread/config/__init__.pyi +23 -17
  35. pulumi_azuread/config/vars.py +47 -37
  36. pulumi_azuread/custom_directory_role.py +128 -122
  37. pulumi_azuread/directory_role.py +60 -54
  38. pulumi_azuread/directory_role_assignment.py +194 -181
  39. pulumi_azuread/directory_role_eligibility_schedule_request.py +86 -80
  40. pulumi_azuread/directory_role_member.py +54 -48
  41. pulumi_azuread/get_access_package.py +45 -31
  42. pulumi_azuread/get_access_package_catalog.py +40 -27
  43. pulumi_azuread/get_access_package_catalog_role.py +39 -25
  44. pulumi_azuread/get_administrative_unit.py +42 -27
  45. pulumi_azuread/get_application.py +135 -94
  46. pulumi_azuread/get_application_published_app_ids.py +42 -47
  47. pulumi_azuread/get_application_template.py +49 -33
  48. pulumi_azuread/get_client_config.py +24 -15
  49. pulumi_azuread/get_directory_object.py +32 -21
  50. pulumi_azuread/get_directory_role_templates.py +20 -12
  51. pulumi_azuread/get_directory_roles.py +23 -14
  52. pulumi_azuread/get_domains.py +65 -46
  53. pulumi_azuread/get_group.py +147 -88
  54. pulumi_azuread/get_group_role_management_policy.py +178 -0
  55. pulumi_azuread/get_groups.py +71 -51
  56. pulumi_azuread/get_named_location.py +47 -22
  57. pulumi_azuread/get_service_principal.py +108 -90
  58. pulumi_azuread/get_service_principals.py +60 -64
  59. pulumi_azuread/get_user.py +186 -118
  60. pulumi_azuread/get_users.py +96 -53
  61. pulumi_azuread/group.py +622 -464
  62. pulumi_azuread/group_member.py +56 -50
  63. pulumi_azuread/group_role_management_policy.py +544 -0
  64. pulumi_azuread/group_without_members.py +1610 -0
  65. pulumi_azuread/invitation.py +126 -120
  66. pulumi_azuread/named_location.py +90 -76
  67. pulumi_azuread/outputs.py +2844 -1308
  68. pulumi_azuread/privileged_access_group_assignment_schedule.py +695 -0
  69. pulumi_azuread/privileged_access_group_eligibility_schedule.py +695 -0
  70. pulumi_azuread/provider.py +292 -246
  71. pulumi_azuread/pulumi-plugin.json +2 -1
  72. pulumi_azuread/service_principal.py +400 -461
  73. pulumi_azuread/service_principal_certificate.py +230 -145
  74. pulumi_azuread/service_principal_claims_mapping_policy_assignment.py +53 -47
  75. pulumi_azuread/service_principal_delegated_permission_grant.py +146 -140
  76. pulumi_azuread/service_principal_password.py +156 -141
  77. pulumi_azuread/service_principal_token_signing_certificate.py +119 -124
  78. pulumi_azuread/synchronization_job.py +105 -111
  79. pulumi_azuread/synchronization_job_provision_on_demand.py +396 -0
  80. pulumi_azuread/synchronization_secret.py +64 -70
  81. pulumi_azuread/user.py +776 -730
  82. pulumi_azuread/user_flow_attribute.py +76 -70
  83. {pulumi_azuread-5.48.0a1706744699.dist-info → pulumi_azuread-6.8.0a1766208344.dist-info}/METADATA +21 -20
  84. pulumi_azuread-6.8.0a1766208344.dist-info/RECORD +87 -0
  85. {pulumi_azuread-5.48.0a1706744699.dist-info → pulumi_azuread-6.8.0a1766208344.dist-info}/WHEEL +1 -1
  86. pulumi_azuread-5.48.0a1706744699.dist-info/RECORD +0 -81
  87. {pulumi_azuread-5.48.0a1706744699.dist-info → pulumi_azuread-6.8.0a1766208344.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['AdministrativeUnitArgs', 'AdministrativeUnit']
@@ -14,20 +19,22 @@ __all__ = ['AdministrativeUnitArgs', 'AdministrativeUnit']
14
19
  @pulumi.input_type
15
20
  class AdministrativeUnitArgs:
16
21
  def __init__(__self__, *,
17
- display_name: pulumi.Input[str],
18
- description: Optional[pulumi.Input[str]] = None,
19
- hidden_membership_enabled: Optional[pulumi.Input[bool]] = None,
20
- members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
21
- prevent_duplicate_names: Optional[pulumi.Input[bool]] = None):
22
+ display_name: pulumi.Input[_builtins.str],
23
+ description: Optional[pulumi.Input[_builtins.str]] = None,
24
+ hidden_membership_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
25
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
26
+ prevent_duplicate_names: Optional[pulumi.Input[_builtins.bool]] = None):
22
27
  """
23
28
  The set of arguments for constructing a AdministrativeUnit resource.
24
- :param pulumi.Input[str] display_name: The display name of the administrative unit.
25
- :param pulumi.Input[str] description: The description of the administrative unit.
26
- :param pulumi.Input[bool] hidden_membership_enabled: Whether the administrative unit and its members are hidden or publicly viewable in the directory.
27
- :param pulumi.Input[Sequence[pulumi.Input[str]]] members: A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
29
+ :param pulumi.Input[_builtins.str] display_name: The display name of the administrative unit.
30
+ :param pulumi.Input[_builtins.str] description: The description of the administrative unit.
31
+ :param pulumi.Input[_builtins.bool] hidden_membership_enabled: Whether the administrative unit and its members are hidden or publicly viewable in the directory.
32
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] members: A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
33
+
34
+ > **Caution** When using the `members` property of the AdministrativeUnit resource, to manage Administrative Unit membership for a group, you will need to use an `ignore_changes = [administrative_unit_ids]` lifecycle meta argument for the `Group` resource, in order to avoid a persistent diff.
28
35
 
29
36
  !> **Warning** Do not use the `members` property at the same time as the AdministrativeUnitMember resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.
30
- :param pulumi.Input[bool] prevent_duplicate_names: If `true`, will return an error if an existing administrative unit is found with the same name
37
+ :param pulumi.Input[_builtins.bool] prevent_duplicate_names: If `true`, will return an error if an existing administrative unit is found with the same name
31
38
  """
32
39
  pulumi.set(__self__, "display_name", display_name)
33
40
  if description is not None:
@@ -39,88 +46,92 @@ class AdministrativeUnitArgs:
39
46
  if prevent_duplicate_names is not None:
40
47
  pulumi.set(__self__, "prevent_duplicate_names", prevent_duplicate_names)
41
48
 
42
- @property
49
+ @_builtins.property
43
50
  @pulumi.getter(name="displayName")
44
- def display_name(self) -> pulumi.Input[str]:
51
+ def display_name(self) -> pulumi.Input[_builtins.str]:
45
52
  """
46
53
  The display name of the administrative unit.
47
54
  """
48
55
  return pulumi.get(self, "display_name")
49
56
 
50
57
  @display_name.setter
51
- def display_name(self, value: pulumi.Input[str]):
58
+ def display_name(self, value: pulumi.Input[_builtins.str]):
52
59
  pulumi.set(self, "display_name", value)
53
60
 
54
- @property
61
+ @_builtins.property
55
62
  @pulumi.getter
56
- def description(self) -> Optional[pulumi.Input[str]]:
63
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
57
64
  """
58
65
  The description of the administrative unit.
59
66
  """
60
67
  return pulumi.get(self, "description")
61
68
 
62
69
  @description.setter
63
- def description(self, value: Optional[pulumi.Input[str]]):
70
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
64
71
  pulumi.set(self, "description", value)
65
72
 
66
- @property
73
+ @_builtins.property
67
74
  @pulumi.getter(name="hiddenMembershipEnabled")
68
- def hidden_membership_enabled(self) -> Optional[pulumi.Input[bool]]:
75
+ def hidden_membership_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
69
76
  """
70
77
  Whether the administrative unit and its members are hidden or publicly viewable in the directory.
71
78
  """
72
79
  return pulumi.get(self, "hidden_membership_enabled")
73
80
 
74
81
  @hidden_membership_enabled.setter
75
- def hidden_membership_enabled(self, value: Optional[pulumi.Input[bool]]):
82
+ def hidden_membership_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
76
83
  pulumi.set(self, "hidden_membership_enabled", value)
77
84
 
78
- @property
85
+ @_builtins.property
79
86
  @pulumi.getter
80
- def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
87
+ def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
81
88
  """
82
89
  A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
83
90
 
91
+ > **Caution** When using the `members` property of the AdministrativeUnit resource, to manage Administrative Unit membership for a group, you will need to use an `ignore_changes = [administrative_unit_ids]` lifecycle meta argument for the `Group` resource, in order to avoid a persistent diff.
92
+
84
93
  !> **Warning** Do not use the `members` property at the same time as the AdministrativeUnitMember resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.
85
94
  """
86
95
  return pulumi.get(self, "members")
87
96
 
88
97
  @members.setter
89
- def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
98
+ def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
90
99
  pulumi.set(self, "members", value)
91
100
 
92
- @property
101
+ @_builtins.property
93
102
  @pulumi.getter(name="preventDuplicateNames")
94
- def prevent_duplicate_names(self) -> Optional[pulumi.Input[bool]]:
103
+ def prevent_duplicate_names(self) -> Optional[pulumi.Input[_builtins.bool]]:
95
104
  """
96
105
  If `true`, will return an error if an existing administrative unit is found with the same name
97
106
  """
98
107
  return pulumi.get(self, "prevent_duplicate_names")
99
108
 
100
109
  @prevent_duplicate_names.setter
101
- def prevent_duplicate_names(self, value: Optional[pulumi.Input[bool]]):
110
+ def prevent_duplicate_names(self, value: Optional[pulumi.Input[_builtins.bool]]):
102
111
  pulumi.set(self, "prevent_duplicate_names", value)
103
112
 
104
113
 
105
114
  @pulumi.input_type
106
115
  class _AdministrativeUnitState:
107
116
  def __init__(__self__, *,
108
- description: Optional[pulumi.Input[str]] = None,
109
- display_name: Optional[pulumi.Input[str]] = None,
110
- hidden_membership_enabled: Optional[pulumi.Input[bool]] = None,
111
- members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
112
- object_id: Optional[pulumi.Input[str]] = None,
113
- prevent_duplicate_names: Optional[pulumi.Input[bool]] = None):
117
+ description: Optional[pulumi.Input[_builtins.str]] = None,
118
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
119
+ hidden_membership_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
120
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
121
+ object_id: Optional[pulumi.Input[_builtins.str]] = None,
122
+ prevent_duplicate_names: Optional[pulumi.Input[_builtins.bool]] = None):
114
123
  """
115
124
  Input properties used for looking up and filtering AdministrativeUnit resources.
116
- :param pulumi.Input[str] description: The description of the administrative unit.
117
- :param pulumi.Input[str] display_name: The display name of the administrative unit.
118
- :param pulumi.Input[bool] hidden_membership_enabled: Whether the administrative unit and its members are hidden or publicly viewable in the directory.
119
- :param pulumi.Input[Sequence[pulumi.Input[str]]] members: A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
125
+ :param pulumi.Input[_builtins.str] description: The description of the administrative unit.
126
+ :param pulumi.Input[_builtins.str] display_name: The display name of the administrative unit.
127
+ :param pulumi.Input[_builtins.bool] hidden_membership_enabled: Whether the administrative unit and its members are hidden or publicly viewable in the directory.
128
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] members: A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
129
+
130
+ > **Caution** When using the `members` property of the AdministrativeUnit resource, to manage Administrative Unit membership for a group, you will need to use an `ignore_changes = [administrative_unit_ids]` lifecycle meta argument for the `Group` resource, in order to avoid a persistent diff.
120
131
 
121
132
  !> **Warning** Do not use the `members` property at the same time as the AdministrativeUnitMember resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.
122
- :param pulumi.Input[str] object_id: The object ID of the administrative unit.
123
- :param pulumi.Input[bool] prevent_duplicate_names: If `true`, will return an error if an existing administrative unit is found with the same name
133
+ :param pulumi.Input[_builtins.str] object_id: The object ID of the administrative unit.
134
+ :param pulumi.Input[_builtins.bool] prevent_duplicate_names: If `true`, will return an error if an existing administrative unit is found with the same name
124
135
  """
125
136
  if description is not None:
126
137
  pulumi.set(__self__, "description", description)
@@ -135,91 +146,94 @@ class _AdministrativeUnitState:
135
146
  if prevent_duplicate_names is not None:
136
147
  pulumi.set(__self__, "prevent_duplicate_names", prevent_duplicate_names)
137
148
 
138
- @property
149
+ @_builtins.property
139
150
  @pulumi.getter
140
- def description(self) -> Optional[pulumi.Input[str]]:
151
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
141
152
  """
142
153
  The description of the administrative unit.
143
154
  """
144
155
  return pulumi.get(self, "description")
145
156
 
146
157
  @description.setter
147
- def description(self, value: Optional[pulumi.Input[str]]):
158
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
148
159
  pulumi.set(self, "description", value)
149
160
 
150
- @property
161
+ @_builtins.property
151
162
  @pulumi.getter(name="displayName")
152
- def display_name(self) -> Optional[pulumi.Input[str]]:
163
+ def display_name(self) -> Optional[pulumi.Input[_builtins.str]]:
153
164
  """
154
165
  The display name of the administrative unit.
155
166
  """
156
167
  return pulumi.get(self, "display_name")
157
168
 
158
169
  @display_name.setter
159
- def display_name(self, value: Optional[pulumi.Input[str]]):
170
+ def display_name(self, value: Optional[pulumi.Input[_builtins.str]]):
160
171
  pulumi.set(self, "display_name", value)
161
172
 
162
- @property
173
+ @_builtins.property
163
174
  @pulumi.getter(name="hiddenMembershipEnabled")
164
- def hidden_membership_enabled(self) -> Optional[pulumi.Input[bool]]:
175
+ def hidden_membership_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
165
176
  """
166
177
  Whether the administrative unit and its members are hidden or publicly viewable in the directory.
167
178
  """
168
179
  return pulumi.get(self, "hidden_membership_enabled")
169
180
 
170
181
  @hidden_membership_enabled.setter
171
- def hidden_membership_enabled(self, value: Optional[pulumi.Input[bool]]):
182
+ def hidden_membership_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
172
183
  pulumi.set(self, "hidden_membership_enabled", value)
173
184
 
174
- @property
185
+ @_builtins.property
175
186
  @pulumi.getter
176
- def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
187
+ def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
177
188
  """
178
189
  A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
179
190
 
191
+ > **Caution** When using the `members` property of the AdministrativeUnit resource, to manage Administrative Unit membership for a group, you will need to use an `ignore_changes = [administrative_unit_ids]` lifecycle meta argument for the `Group` resource, in order to avoid a persistent diff.
192
+
180
193
  !> **Warning** Do not use the `members` property at the same time as the AdministrativeUnitMember resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.
181
194
  """
182
195
  return pulumi.get(self, "members")
183
196
 
184
197
  @members.setter
185
- def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
198
+ def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
186
199
  pulumi.set(self, "members", value)
187
200
 
188
- @property
201
+ @_builtins.property
189
202
  @pulumi.getter(name="objectId")
190
- def object_id(self) -> Optional[pulumi.Input[str]]:
203
+ def object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
191
204
  """
192
205
  The object ID of the administrative unit.
193
206
  """
194
207
  return pulumi.get(self, "object_id")
195
208
 
196
209
  @object_id.setter
197
- def object_id(self, value: Optional[pulumi.Input[str]]):
210
+ def object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
198
211
  pulumi.set(self, "object_id", value)
199
212
 
200
- @property
213
+ @_builtins.property
201
214
  @pulumi.getter(name="preventDuplicateNames")
202
- def prevent_duplicate_names(self) -> Optional[pulumi.Input[bool]]:
215
+ def prevent_duplicate_names(self) -> Optional[pulumi.Input[_builtins.bool]]:
203
216
  """
204
217
  If `true`, will return an error if an existing administrative unit is found with the same name
205
218
  """
206
219
  return pulumi.get(self, "prevent_duplicate_names")
207
220
 
208
221
  @prevent_duplicate_names.setter
209
- def prevent_duplicate_names(self, value: Optional[pulumi.Input[bool]]):
222
+ def prevent_duplicate_names(self, value: Optional[pulumi.Input[_builtins.bool]]):
210
223
  pulumi.set(self, "prevent_duplicate_names", value)
211
224
 
212
225
 
226
+ @pulumi.type_token("azuread:index/administrativeUnit:AdministrativeUnit")
213
227
  class AdministrativeUnit(pulumi.CustomResource):
214
228
  @overload
215
229
  def __init__(__self__,
216
230
  resource_name: str,
217
231
  opts: Optional[pulumi.ResourceOptions] = None,
218
- description: Optional[pulumi.Input[str]] = None,
219
- display_name: Optional[pulumi.Input[str]] = None,
220
- hidden_membership_enabled: Optional[pulumi.Input[bool]] = None,
221
- members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
222
- prevent_duplicate_names: Optional[pulumi.Input[bool]] = None,
232
+ description: Optional[pulumi.Input[_builtins.str]] = None,
233
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
234
+ hidden_membership_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
235
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
236
+ prevent_duplicate_names: Optional[pulumi.Input[_builtins.bool]] = None,
223
237
  __props__=None):
224
238
  """
225
239
  Manages an Administrative Unit within Azure Active Directory.
@@ -239,8 +253,8 @@ class AdministrativeUnit(pulumi.CustomResource):
239
253
  import pulumi_azuread as azuread
240
254
 
241
255
  example = azuread.AdministrativeUnit("example",
242
- description="Just an example",
243
256
  display_name="Example-AU",
257
+ description="Just an example",
244
258
  hidden_membership_enabled=False)
245
259
  ```
246
260
 
@@ -249,18 +263,20 @@ class AdministrativeUnit(pulumi.CustomResource):
249
263
  Administrative units can be imported using their object ID, e.g.
250
264
 
251
265
  ```sh
252
- $ pulumi import azuread:index/administrativeUnit:AdministrativeUnit example 00000000-0000-0000-0000-000000000000
266
+ $ pulumi import azuread:index/administrativeUnit:AdministrativeUnit example /directory/administrativeUnits/00000000-0000-0000-0000-000000000000
253
267
  ```
254
268
 
255
269
  :param str resource_name: The name of the resource.
256
270
  :param pulumi.ResourceOptions opts: Options for the resource.
257
- :param pulumi.Input[str] description: The description of the administrative unit.
258
- :param pulumi.Input[str] display_name: The display name of the administrative unit.
259
- :param pulumi.Input[bool] hidden_membership_enabled: Whether the administrative unit and its members are hidden or publicly viewable in the directory.
260
- :param pulumi.Input[Sequence[pulumi.Input[str]]] members: A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
271
+ :param pulumi.Input[_builtins.str] description: The description of the administrative unit.
272
+ :param pulumi.Input[_builtins.str] display_name: The display name of the administrative unit.
273
+ :param pulumi.Input[_builtins.bool] hidden_membership_enabled: Whether the administrative unit and its members are hidden or publicly viewable in the directory.
274
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] members: A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
275
+
276
+ > **Caution** When using the `members` property of the AdministrativeUnit resource, to manage Administrative Unit membership for a group, you will need to use an `ignore_changes = [administrative_unit_ids]` lifecycle meta argument for the `Group` resource, in order to avoid a persistent diff.
261
277
 
262
278
  !> **Warning** Do not use the `members` property at the same time as the AdministrativeUnitMember resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.
263
- :param pulumi.Input[bool] prevent_duplicate_names: If `true`, will return an error if an existing administrative unit is found with the same name
279
+ :param pulumi.Input[_builtins.bool] prevent_duplicate_names: If `true`, will return an error if an existing administrative unit is found with the same name
264
280
  """
265
281
  ...
266
282
  @overload
@@ -286,8 +302,8 @@ class AdministrativeUnit(pulumi.CustomResource):
286
302
  import pulumi_azuread as azuread
287
303
 
288
304
  example = azuread.AdministrativeUnit("example",
289
- description="Just an example",
290
305
  display_name="Example-AU",
306
+ description="Just an example",
291
307
  hidden_membership_enabled=False)
292
308
  ```
293
309
 
@@ -296,7 +312,7 @@ class AdministrativeUnit(pulumi.CustomResource):
296
312
  Administrative units can be imported using their object ID, e.g.
297
313
 
298
314
  ```sh
299
- $ pulumi import azuread:index/administrativeUnit:AdministrativeUnit example 00000000-0000-0000-0000-000000000000
315
+ $ pulumi import azuread:index/administrativeUnit:AdministrativeUnit example /directory/administrativeUnits/00000000-0000-0000-0000-000000000000
300
316
  ```
301
317
 
302
318
  :param str resource_name: The name of the resource.
@@ -314,11 +330,11 @@ class AdministrativeUnit(pulumi.CustomResource):
314
330
  def _internal_init(__self__,
315
331
  resource_name: str,
316
332
  opts: Optional[pulumi.ResourceOptions] = None,
317
- description: Optional[pulumi.Input[str]] = None,
318
- display_name: Optional[pulumi.Input[str]] = None,
319
- hidden_membership_enabled: Optional[pulumi.Input[bool]] = None,
320
- members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
321
- prevent_duplicate_names: Optional[pulumi.Input[bool]] = None,
333
+ description: Optional[pulumi.Input[_builtins.str]] = None,
334
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
335
+ hidden_membership_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
336
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
337
+ prevent_duplicate_names: Optional[pulumi.Input[_builtins.bool]] = None,
322
338
  __props__=None):
323
339
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
324
340
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -346,12 +362,12 @@ class AdministrativeUnit(pulumi.CustomResource):
346
362
  def get(resource_name: str,
347
363
  id: pulumi.Input[str],
348
364
  opts: Optional[pulumi.ResourceOptions] = None,
349
- description: Optional[pulumi.Input[str]] = None,
350
- display_name: Optional[pulumi.Input[str]] = None,
351
- hidden_membership_enabled: Optional[pulumi.Input[bool]] = None,
352
- members: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
353
- object_id: Optional[pulumi.Input[str]] = None,
354
- prevent_duplicate_names: Optional[pulumi.Input[bool]] = None) -> 'AdministrativeUnit':
365
+ description: Optional[pulumi.Input[_builtins.str]] = None,
366
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
367
+ hidden_membership_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
368
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
369
+ object_id: Optional[pulumi.Input[_builtins.str]] = None,
370
+ prevent_duplicate_names: Optional[pulumi.Input[_builtins.bool]] = None) -> 'AdministrativeUnit':
355
371
  """
356
372
  Get an existing AdministrativeUnit resource's state with the given name, id, and optional extra
357
373
  properties used to qualify the lookup.
@@ -359,14 +375,16 @@ class AdministrativeUnit(pulumi.CustomResource):
359
375
  :param str resource_name: The unique name of the resulting resource.
360
376
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
361
377
  :param pulumi.ResourceOptions opts: Options for the resource.
362
- :param pulumi.Input[str] description: The description of the administrative unit.
363
- :param pulumi.Input[str] display_name: The display name of the administrative unit.
364
- :param pulumi.Input[bool] hidden_membership_enabled: Whether the administrative unit and its members are hidden or publicly viewable in the directory.
365
- :param pulumi.Input[Sequence[pulumi.Input[str]]] members: A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
378
+ :param pulumi.Input[_builtins.str] description: The description of the administrative unit.
379
+ :param pulumi.Input[_builtins.str] display_name: The display name of the administrative unit.
380
+ :param pulumi.Input[_builtins.bool] hidden_membership_enabled: Whether the administrative unit and its members are hidden or publicly viewable in the directory.
381
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] members: A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
382
+
383
+ > **Caution** When using the `members` property of the AdministrativeUnit resource, to manage Administrative Unit membership for a group, you will need to use an `ignore_changes = [administrative_unit_ids]` lifecycle meta argument for the `Group` resource, in order to avoid a persistent diff.
366
384
 
367
385
  !> **Warning** Do not use the `members` property at the same time as the AdministrativeUnitMember resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.
368
- :param pulumi.Input[str] object_id: The object ID of the administrative unit.
369
- :param pulumi.Input[bool] prevent_duplicate_names: If `true`, will return an error if an existing administrative unit is found with the same name
386
+ :param pulumi.Input[_builtins.str] object_id: The object ID of the administrative unit.
387
+ :param pulumi.Input[_builtins.bool] prevent_duplicate_names: If `true`, will return an error if an existing administrative unit is found with the same name
370
388
  """
371
389
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
372
390
 
@@ -380,51 +398,53 @@ class AdministrativeUnit(pulumi.CustomResource):
380
398
  __props__.__dict__["prevent_duplicate_names"] = prevent_duplicate_names
381
399
  return AdministrativeUnit(resource_name, opts=opts, __props__=__props__)
382
400
 
383
- @property
401
+ @_builtins.property
384
402
  @pulumi.getter
385
- def description(self) -> pulumi.Output[Optional[str]]:
403
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
386
404
  """
387
405
  The description of the administrative unit.
388
406
  """
389
407
  return pulumi.get(self, "description")
390
408
 
391
- @property
409
+ @_builtins.property
392
410
  @pulumi.getter(name="displayName")
393
- def display_name(self) -> pulumi.Output[str]:
411
+ def display_name(self) -> pulumi.Output[_builtins.str]:
394
412
  """
395
413
  The display name of the administrative unit.
396
414
  """
397
415
  return pulumi.get(self, "display_name")
398
416
 
399
- @property
417
+ @_builtins.property
400
418
  @pulumi.getter(name="hiddenMembershipEnabled")
401
- def hidden_membership_enabled(self) -> pulumi.Output[Optional[bool]]:
419
+ def hidden_membership_enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
402
420
  """
403
421
  Whether the administrative unit and its members are hidden or publicly viewable in the directory.
404
422
  """
405
423
  return pulumi.get(self, "hidden_membership_enabled")
406
424
 
407
- @property
425
+ @_builtins.property
408
426
  @pulumi.getter
409
- def members(self) -> pulumi.Output[Sequence[str]]:
427
+ def members(self) -> pulumi.Output[Sequence[_builtins.str]]:
410
428
  """
411
429
  A set of object IDs of members who should be present in this administrative unit. Supported object types are Users or Groups.
412
430
 
431
+ > **Caution** When using the `members` property of the AdministrativeUnit resource, to manage Administrative Unit membership for a group, you will need to use an `ignore_changes = [administrative_unit_ids]` lifecycle meta argument for the `Group` resource, in order to avoid a persistent diff.
432
+
413
433
  !> **Warning** Do not use the `members` property at the same time as the AdministrativeUnitMember resource for the same administrative unit. Doing so will cause a conflict and administrative unit members will be removed.
414
434
  """
415
435
  return pulumi.get(self, "members")
416
436
 
417
- @property
437
+ @_builtins.property
418
438
  @pulumi.getter(name="objectId")
419
- def object_id(self) -> pulumi.Output[str]:
439
+ def object_id(self) -> pulumi.Output[_builtins.str]:
420
440
  """
421
441
  The object ID of the administrative unit.
422
442
  """
423
443
  return pulumi.get(self, "object_id")
424
444
 
425
- @property
445
+ @_builtins.property
426
446
  @pulumi.getter(name="preventDuplicateNames")
427
- def prevent_duplicate_names(self) -> pulumi.Output[Optional[bool]]:
447
+ def prevent_duplicate_names(self) -> pulumi.Output[Optional[_builtins.bool]]:
428
448
  """
429
449
  If `true`, will return an error if an existing administrative unit is found with the same name
430
450
  """