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__ = ['AdministrativeUnitMemberArgs', 'AdministrativeUnitMember']
@@ -14,90 +19,99 @@ __all__ = ['AdministrativeUnitMemberArgs', 'AdministrativeUnitMember']
14
19
  @pulumi.input_type
15
20
  class AdministrativeUnitMemberArgs:
16
21
  def __init__(__self__, *,
17
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
18
- member_object_id: Optional[pulumi.Input[str]] = None):
22
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
23
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None):
19
24
  """
20
25
  The set of arguments for constructing a AdministrativeUnitMember resource.
21
- :param pulumi.Input[str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
22
- :param pulumi.Input[str] member_object_id: The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
26
+ :param pulumi.Input[_builtins.str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
27
+ :param pulumi.Input[_builtins.str] member_object_id: The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
28
+
29
+ > **Caution** When using the AdministrativeUnitMember 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.
23
30
  """
24
31
  if administrative_unit_object_id is not None:
25
32
  pulumi.set(__self__, "administrative_unit_object_id", administrative_unit_object_id)
26
33
  if member_object_id is not None:
27
34
  pulumi.set(__self__, "member_object_id", member_object_id)
28
35
 
29
- @property
36
+ @_builtins.property
30
37
  @pulumi.getter(name="administrativeUnitObjectId")
31
- def administrative_unit_object_id(self) -> Optional[pulumi.Input[str]]:
38
+ def administrative_unit_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
32
39
  """
33
40
  The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
34
41
  """
35
42
  return pulumi.get(self, "administrative_unit_object_id")
36
43
 
37
44
  @administrative_unit_object_id.setter
38
- def administrative_unit_object_id(self, value: Optional[pulumi.Input[str]]):
45
+ def administrative_unit_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
39
46
  pulumi.set(self, "administrative_unit_object_id", value)
40
47
 
41
- @property
48
+ @_builtins.property
42
49
  @pulumi.getter(name="memberObjectId")
43
- def member_object_id(self) -> Optional[pulumi.Input[str]]:
50
+ def member_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
44
51
  """
45
52
  The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
53
+
54
+ > **Caution** When using the AdministrativeUnitMember 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.
46
55
  """
47
56
  return pulumi.get(self, "member_object_id")
48
57
 
49
58
  @member_object_id.setter
50
- def member_object_id(self, value: Optional[pulumi.Input[str]]):
59
+ def member_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
51
60
  pulumi.set(self, "member_object_id", value)
52
61
 
53
62
 
54
63
  @pulumi.input_type
55
64
  class _AdministrativeUnitMemberState:
56
65
  def __init__(__self__, *,
57
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
58
- member_object_id: Optional[pulumi.Input[str]] = None):
66
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
67
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None):
59
68
  """
60
69
  Input properties used for looking up and filtering AdministrativeUnitMember resources.
61
- :param pulumi.Input[str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
62
- :param pulumi.Input[str] member_object_id: The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
70
+ :param pulumi.Input[_builtins.str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
71
+ :param pulumi.Input[_builtins.str] member_object_id: The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
72
+
73
+ > **Caution** When using the AdministrativeUnitMember 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.
63
74
  """
64
75
  if administrative_unit_object_id is not None:
65
76
  pulumi.set(__self__, "administrative_unit_object_id", administrative_unit_object_id)
66
77
  if member_object_id is not None:
67
78
  pulumi.set(__self__, "member_object_id", member_object_id)
68
79
 
69
- @property
80
+ @_builtins.property
70
81
  @pulumi.getter(name="administrativeUnitObjectId")
71
- def administrative_unit_object_id(self) -> Optional[pulumi.Input[str]]:
82
+ def administrative_unit_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
72
83
  """
73
84
  The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
74
85
  """
75
86
  return pulumi.get(self, "administrative_unit_object_id")
76
87
 
77
88
  @administrative_unit_object_id.setter
78
- def administrative_unit_object_id(self, value: Optional[pulumi.Input[str]]):
89
+ def administrative_unit_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
79
90
  pulumi.set(self, "administrative_unit_object_id", value)
80
91
 
81
- @property
92
+ @_builtins.property
82
93
  @pulumi.getter(name="memberObjectId")
83
- def member_object_id(self) -> Optional[pulumi.Input[str]]:
94
+ def member_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
84
95
  """
85
96
  The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
97
+
98
+ > **Caution** When using the AdministrativeUnitMember 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.
86
99
  """
87
100
  return pulumi.get(self, "member_object_id")
88
101
 
89
102
  @member_object_id.setter
90
- def member_object_id(self, value: Optional[pulumi.Input[str]]):
103
+ def member_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
91
104
  pulumi.set(self, "member_object_id", value)
92
105
 
93
106
 
107
+ @pulumi.type_token("azuread:index/administrativeUnitMember:AdministrativeUnitMember")
94
108
  class AdministrativeUnitMember(pulumi.CustomResource):
95
109
  @overload
96
110
  def __init__(__self__,
97
111
  resource_name: str,
98
112
  opts: Optional[pulumi.ResourceOptions] = None,
99
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
100
- member_object_id: Optional[pulumi.Input[str]] = None,
113
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
114
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None,
101
115
  __props__=None):
102
116
  """
103
117
  Manages a single administrative unit membership within Azure Active Directory.
@@ -118,11 +132,11 @@ class AdministrativeUnitMember(pulumi.CustomResource):
118
132
  import pulumi
119
133
  import pulumi_azuread as azuread
120
134
 
121
- example_user = azuread.get_user(user_principal_name="jdoe@hashicorp.com")
122
- example_administrative_unit = azuread.AdministrativeUnit("exampleAdministrativeUnit", display_name="Example-AU")
123
- example_administrative_unit_member = azuread.AdministrativeUnitMember("exampleAdministrativeUnitMember",
135
+ example = azuread.get_user(user_principal_name="jdoe@example.com")
136
+ example_administrative_unit = azuread.AdministrativeUnit("example", display_name="Example-AU")
137
+ example_administrative_unit_member = azuread.AdministrativeUnitMember("example",
124
138
  administrative_unit_object_id=example_administrative_unit.id,
125
- member_object_id=example_user.id)
139
+ member_object_id=example.id)
126
140
  ```
127
141
 
128
142
  ## Import
@@ -130,15 +144,15 @@ class AdministrativeUnitMember(pulumi.CustomResource):
130
144
  Administrative unit members can be imported using the object ID of the administrative unit and the object ID of the member, e.g.
131
145
 
132
146
  ```sh
133
- $ pulumi import azuread:index/administrativeUnitMember:AdministrativeUnitMember example 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111
147
+ $ pulumi import azuread:index/administrativeUnitMember:AdministrativeUnitMember example /directory/administrativeUnits/00000000-0000-0000-0000-000000000000/members/11111111-1111-1111-1111-111111111111
134
148
  ```
135
149
 
136
- -> This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the target Member Object ID in the format `{AdministrativeUnitObjectID}/member/{MemberObjectID}`.
137
-
138
150
  :param str resource_name: The name of the resource.
139
151
  :param pulumi.ResourceOptions opts: Options for the resource.
140
- :param pulumi.Input[str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
141
- :param pulumi.Input[str] member_object_id: The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
152
+ :param pulumi.Input[_builtins.str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
153
+ :param pulumi.Input[_builtins.str] member_object_id: The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
154
+
155
+ > **Caution** When using the AdministrativeUnitMember 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.
142
156
  """
143
157
  ...
144
158
  @overload
@@ -165,11 +179,11 @@ class AdministrativeUnitMember(pulumi.CustomResource):
165
179
  import pulumi
166
180
  import pulumi_azuread as azuread
167
181
 
168
- example_user = azuread.get_user(user_principal_name="jdoe@hashicorp.com")
169
- example_administrative_unit = azuread.AdministrativeUnit("exampleAdministrativeUnit", display_name="Example-AU")
170
- example_administrative_unit_member = azuread.AdministrativeUnitMember("exampleAdministrativeUnitMember",
182
+ example = azuread.get_user(user_principal_name="jdoe@example.com")
183
+ example_administrative_unit = azuread.AdministrativeUnit("example", display_name="Example-AU")
184
+ example_administrative_unit_member = azuread.AdministrativeUnitMember("example",
171
185
  administrative_unit_object_id=example_administrative_unit.id,
172
- member_object_id=example_user.id)
186
+ member_object_id=example.id)
173
187
  ```
174
188
 
175
189
  ## Import
@@ -177,11 +191,9 @@ class AdministrativeUnitMember(pulumi.CustomResource):
177
191
  Administrative unit members can be imported using the object ID of the administrative unit and the object ID of the member, e.g.
178
192
 
179
193
  ```sh
180
- $ pulumi import azuread:index/administrativeUnitMember:AdministrativeUnitMember example 00000000-0000-0000-0000-000000000000/member/11111111-1111-1111-1111-111111111111
194
+ $ pulumi import azuread:index/administrativeUnitMember:AdministrativeUnitMember example /directory/administrativeUnits/00000000-0000-0000-0000-000000000000/members/11111111-1111-1111-1111-111111111111
181
195
  ```
182
196
 
183
- -> This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the target Member Object ID in the format `{AdministrativeUnitObjectID}/member/{MemberObjectID}`.
184
-
185
197
  :param str resource_name: The name of the resource.
186
198
  :param AdministrativeUnitMemberArgs args: The arguments to use to populate this resource's properties.
187
199
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -197,8 +209,8 @@ class AdministrativeUnitMember(pulumi.CustomResource):
197
209
  def _internal_init(__self__,
198
210
  resource_name: str,
199
211
  opts: Optional[pulumi.ResourceOptions] = None,
200
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
201
- member_object_id: Optional[pulumi.Input[str]] = None,
212
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
213
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None,
202
214
  __props__=None):
203
215
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
204
216
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -220,8 +232,8 @@ class AdministrativeUnitMember(pulumi.CustomResource):
220
232
  def get(resource_name: str,
221
233
  id: pulumi.Input[str],
222
234
  opts: Optional[pulumi.ResourceOptions] = None,
223
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
224
- member_object_id: Optional[pulumi.Input[str]] = None) -> 'AdministrativeUnitMember':
235
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
236
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'AdministrativeUnitMember':
225
237
  """
226
238
  Get an existing AdministrativeUnitMember resource's state with the given name, id, and optional extra
227
239
  properties used to qualify the lookup.
@@ -229,8 +241,10 @@ class AdministrativeUnitMember(pulumi.CustomResource):
229
241
  :param str resource_name: The unique name of the resulting resource.
230
242
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
231
243
  :param pulumi.ResourceOptions opts: Options for the resource.
232
- :param pulumi.Input[str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
233
- :param pulumi.Input[str] member_object_id: The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
244
+ :param pulumi.Input[_builtins.str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
245
+ :param pulumi.Input[_builtins.str] member_object_id: The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
246
+
247
+ > **Caution** When using the AdministrativeUnitMember 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.
234
248
  """
235
249
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
236
250
 
@@ -240,19 +254,21 @@ class AdministrativeUnitMember(pulumi.CustomResource):
240
254
  __props__.__dict__["member_object_id"] = member_object_id
241
255
  return AdministrativeUnitMember(resource_name, opts=opts, __props__=__props__)
242
256
 
243
- @property
257
+ @_builtins.property
244
258
  @pulumi.getter(name="administrativeUnitObjectId")
245
- def administrative_unit_object_id(self) -> pulumi.Output[Optional[str]]:
259
+ def administrative_unit_object_id(self) -> pulumi.Output[Optional[_builtins.str]]:
246
260
  """
247
261
  The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
248
262
  """
249
263
  return pulumi.get(self, "administrative_unit_object_id")
250
264
 
251
- @property
265
+ @_builtins.property
252
266
  @pulumi.getter(name="memberObjectId")
253
- def member_object_id(self) -> pulumi.Output[Optional[str]]:
267
+ def member_object_id(self) -> pulumi.Output[Optional[_builtins.str]]:
254
268
  """
255
269
  The object ID of the user or group you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
270
+
271
+ > **Caution** When using the AdministrativeUnitMember 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.
256
272
  """
257
273
  return pulumi.get(self, "member_object_id")
258
274
 
@@ -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__ = ['AdministrativeUnitRoleMemberArgs', 'AdministrativeUnitRoleMember']
@@ -14,67 +19,67 @@ __all__ = ['AdministrativeUnitRoleMemberArgs', 'AdministrativeUnitRoleMember']
14
19
  @pulumi.input_type
15
20
  class AdministrativeUnitRoleMemberArgs:
16
21
  def __init__(__self__, *,
17
- administrative_unit_object_id: pulumi.Input[str],
18
- member_object_id: pulumi.Input[str],
19
- role_object_id: pulumi.Input[str]):
22
+ administrative_unit_object_id: pulumi.Input[_builtins.str],
23
+ member_object_id: pulumi.Input[_builtins.str],
24
+ role_object_id: pulumi.Input[_builtins.str]):
20
25
  """
21
26
  The set of arguments for constructing a AdministrativeUnitRoleMember resource.
22
- :param pulumi.Input[str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
23
- :param pulumi.Input[str] member_object_id: The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
24
- :param pulumi.Input[str] role_object_id: The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
27
+ :param pulumi.Input[_builtins.str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
28
+ :param pulumi.Input[_builtins.str] member_object_id: The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
29
+ :param pulumi.Input[_builtins.str] role_object_id: The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
25
30
  """
26
31
  pulumi.set(__self__, "administrative_unit_object_id", administrative_unit_object_id)
27
32
  pulumi.set(__self__, "member_object_id", member_object_id)
28
33
  pulumi.set(__self__, "role_object_id", role_object_id)
29
34
 
30
- @property
35
+ @_builtins.property
31
36
  @pulumi.getter(name="administrativeUnitObjectId")
32
- def administrative_unit_object_id(self) -> pulumi.Input[str]:
37
+ def administrative_unit_object_id(self) -> pulumi.Input[_builtins.str]:
33
38
  """
34
39
  The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
35
40
  """
36
41
  return pulumi.get(self, "administrative_unit_object_id")
37
42
 
38
43
  @administrative_unit_object_id.setter
39
- def administrative_unit_object_id(self, value: pulumi.Input[str]):
44
+ def administrative_unit_object_id(self, value: pulumi.Input[_builtins.str]):
40
45
  pulumi.set(self, "administrative_unit_object_id", value)
41
46
 
42
- @property
47
+ @_builtins.property
43
48
  @pulumi.getter(name="memberObjectId")
44
- def member_object_id(self) -> pulumi.Input[str]:
49
+ def member_object_id(self) -> pulumi.Input[_builtins.str]:
45
50
  """
46
51
  The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
47
52
  """
48
53
  return pulumi.get(self, "member_object_id")
49
54
 
50
55
  @member_object_id.setter
51
- def member_object_id(self, value: pulumi.Input[str]):
56
+ def member_object_id(self, value: pulumi.Input[_builtins.str]):
52
57
  pulumi.set(self, "member_object_id", value)
53
58
 
54
- @property
59
+ @_builtins.property
55
60
  @pulumi.getter(name="roleObjectId")
56
- def role_object_id(self) -> pulumi.Input[str]:
61
+ def role_object_id(self) -> pulumi.Input[_builtins.str]:
57
62
  """
58
63
  The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
59
64
  """
60
65
  return pulumi.get(self, "role_object_id")
61
66
 
62
67
  @role_object_id.setter
63
- def role_object_id(self, value: pulumi.Input[str]):
68
+ def role_object_id(self, value: pulumi.Input[_builtins.str]):
64
69
  pulumi.set(self, "role_object_id", value)
65
70
 
66
71
 
67
72
  @pulumi.input_type
68
73
  class _AdministrativeUnitRoleMemberState:
69
74
  def __init__(__self__, *,
70
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
71
- member_object_id: Optional[pulumi.Input[str]] = None,
72
- role_object_id: Optional[pulumi.Input[str]] = None):
75
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
76
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None,
77
+ role_object_id: Optional[pulumi.Input[_builtins.str]] = None):
73
78
  """
74
79
  Input properties used for looking up and filtering AdministrativeUnitRoleMember resources.
75
- :param pulumi.Input[str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
76
- :param pulumi.Input[str] member_object_id: The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
77
- :param pulumi.Input[str] role_object_id: The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
80
+ :param pulumi.Input[_builtins.str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
81
+ :param pulumi.Input[_builtins.str] member_object_id: The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
82
+ :param pulumi.Input[_builtins.str] role_object_id: The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
78
83
  """
79
84
  if administrative_unit_object_id is not None:
80
85
  pulumi.set(__self__, "administrative_unit_object_id", administrative_unit_object_id)
@@ -83,51 +88,52 @@ class _AdministrativeUnitRoleMemberState:
83
88
  if role_object_id is not None:
84
89
  pulumi.set(__self__, "role_object_id", role_object_id)
85
90
 
86
- @property
91
+ @_builtins.property
87
92
  @pulumi.getter(name="administrativeUnitObjectId")
88
- def administrative_unit_object_id(self) -> Optional[pulumi.Input[str]]:
93
+ def administrative_unit_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
89
94
  """
90
95
  The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
91
96
  """
92
97
  return pulumi.get(self, "administrative_unit_object_id")
93
98
 
94
99
  @administrative_unit_object_id.setter
95
- def administrative_unit_object_id(self, value: Optional[pulumi.Input[str]]):
100
+ def administrative_unit_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
96
101
  pulumi.set(self, "administrative_unit_object_id", value)
97
102
 
98
- @property
103
+ @_builtins.property
99
104
  @pulumi.getter(name="memberObjectId")
100
- def member_object_id(self) -> Optional[pulumi.Input[str]]:
105
+ def member_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
101
106
  """
102
107
  The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
103
108
  """
104
109
  return pulumi.get(self, "member_object_id")
105
110
 
106
111
  @member_object_id.setter
107
- def member_object_id(self, value: Optional[pulumi.Input[str]]):
112
+ def member_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
108
113
  pulumi.set(self, "member_object_id", value)
109
114
 
110
- @property
115
+ @_builtins.property
111
116
  @pulumi.getter(name="roleObjectId")
112
- def role_object_id(self) -> Optional[pulumi.Input[str]]:
117
+ def role_object_id(self) -> Optional[pulumi.Input[_builtins.str]]:
113
118
  """
114
119
  The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
115
120
  """
116
121
  return pulumi.get(self, "role_object_id")
117
122
 
118
123
  @role_object_id.setter
119
- def role_object_id(self, value: Optional[pulumi.Input[str]]):
124
+ def role_object_id(self, value: Optional[pulumi.Input[_builtins.str]]):
120
125
  pulumi.set(self, "role_object_id", value)
121
126
 
122
127
 
128
+ @pulumi.type_token("azuread:index/administrativeUnitRoleMember:AdministrativeUnitRoleMember")
123
129
  class AdministrativeUnitRoleMember(pulumi.CustomResource):
124
130
  @overload
125
131
  def __init__(__self__,
126
132
  resource_name: str,
127
133
  opts: Optional[pulumi.ResourceOptions] = None,
128
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
129
- member_object_id: Optional[pulumi.Input[str]] = None,
130
- role_object_id: Optional[pulumi.Input[str]] = None,
134
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
135
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None,
136
+ role_object_id: Optional[pulumi.Input[_builtins.str]] = None,
131
137
  __props__=None):
132
138
  """
133
139
  Manages a single directory role assignment scoped to an administrative unit within Azure Active Directory.
@@ -146,13 +152,13 @@ class AdministrativeUnitRoleMember(pulumi.CustomResource):
146
152
  import pulumi
147
153
  import pulumi_azuread as azuread
148
154
 
149
- example_user = azuread.get_user(user_principal_name="jdoe@hashicorp.com")
150
- example_administrative_unit = azuread.AdministrativeUnit("exampleAdministrativeUnit", display_name="Example-AU")
151
- example_directory_role = azuread.DirectoryRole("exampleDirectoryRole", display_name="Security administrator")
152
- example_administrative_unit_role_member = azuread.AdministrativeUnitRoleMember("exampleAdministrativeUnitRoleMember",
155
+ example = azuread.get_user(user_principal_name="jdoe@example.com")
156
+ example_administrative_unit = azuread.AdministrativeUnit("example", display_name="Example-AU")
157
+ example_directory_role = azuread.DirectoryRole("example", display_name="Security administrator")
158
+ example_administrative_unit_role_member = azuread.AdministrativeUnitRoleMember("example",
153
159
  role_object_id=example_directory_role.object_id,
154
- administrative_unit_object_id=example_administrative_unit.id,
155
- member_object_id=example_user.id)
160
+ administrative_unit_object_id=example_administrative_unit.object_id,
161
+ member_object_id=example.object_id)
156
162
  ```
157
163
 
158
164
  ## Import
@@ -160,16 +166,16 @@ class AdministrativeUnitRoleMember(pulumi.CustomResource):
160
166
  Administrative unit role members can be imported using the object ID of the administrative unit and the unique ID of the role assignment, e.g.
161
167
 
162
168
  ```sh
163
- $ pulumi import azuread:index/administrativeUnitRoleMember:AdministrativeUnitRoleMember example 00000000-0000-0000-0000-000000000000/roleMember/zX37MRLyF0uvE-xf2WH4B7x-6CPLfudNnxFGj800htpBXqkxW7bITqGb6Rj4kuTuS
169
+ $ pulumi import azuread:index/administrativeUnitRoleMember:AdministrativeUnitRoleMember example
164
170
  ```
165
171
 
166
- -> This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the role assignment ID in the format `{AdministrativeUnitObjectID}/roleMember/{RoleAssignmentID}`.
172
+ /directory/administrativeUnits/00000000-0000-0000-0000-000000000000/scopedRoleMembers/zX37MRLyF0uvE-xf2WH4B7x-6CPLfudNnxFGj800htpBXqkxW7bITqGb6Rj4kuTuS
167
173
 
168
174
  :param str resource_name: The name of the resource.
169
175
  :param pulumi.ResourceOptions opts: Options for the resource.
170
- :param pulumi.Input[str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
171
- :param pulumi.Input[str] member_object_id: The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
172
- :param pulumi.Input[str] role_object_id: The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
176
+ :param pulumi.Input[_builtins.str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
177
+ :param pulumi.Input[_builtins.str] member_object_id: The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
178
+ :param pulumi.Input[_builtins.str] role_object_id: The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
173
179
  """
174
180
  ...
175
181
  @overload
@@ -194,13 +200,13 @@ class AdministrativeUnitRoleMember(pulumi.CustomResource):
194
200
  import pulumi
195
201
  import pulumi_azuread as azuread
196
202
 
197
- example_user = azuread.get_user(user_principal_name="jdoe@hashicorp.com")
198
- example_administrative_unit = azuread.AdministrativeUnit("exampleAdministrativeUnit", display_name="Example-AU")
199
- example_directory_role = azuread.DirectoryRole("exampleDirectoryRole", display_name="Security administrator")
200
- example_administrative_unit_role_member = azuread.AdministrativeUnitRoleMember("exampleAdministrativeUnitRoleMember",
203
+ example = azuread.get_user(user_principal_name="jdoe@example.com")
204
+ example_administrative_unit = azuread.AdministrativeUnit("example", display_name="Example-AU")
205
+ example_directory_role = azuread.DirectoryRole("example", display_name="Security administrator")
206
+ example_administrative_unit_role_member = azuread.AdministrativeUnitRoleMember("example",
201
207
  role_object_id=example_directory_role.object_id,
202
- administrative_unit_object_id=example_administrative_unit.id,
203
- member_object_id=example_user.id)
208
+ administrative_unit_object_id=example_administrative_unit.object_id,
209
+ member_object_id=example.object_id)
204
210
  ```
205
211
 
206
212
  ## Import
@@ -208,10 +214,10 @@ class AdministrativeUnitRoleMember(pulumi.CustomResource):
208
214
  Administrative unit role members can be imported using the object ID of the administrative unit and the unique ID of the role assignment, e.g.
209
215
 
210
216
  ```sh
211
- $ pulumi import azuread:index/administrativeUnitRoleMember:AdministrativeUnitRoleMember example 00000000-0000-0000-0000-000000000000/roleMember/zX37MRLyF0uvE-xf2WH4B7x-6CPLfudNnxFGj800htpBXqkxW7bITqGb6Rj4kuTuS
217
+ $ pulumi import azuread:index/administrativeUnitRoleMember:AdministrativeUnitRoleMember example
212
218
  ```
213
219
 
214
- -> This ID format is unique to Terraform and is composed of the Administrative Unit Object ID and the role assignment ID in the format `{AdministrativeUnitObjectID}/roleMember/{RoleAssignmentID}`.
220
+ /directory/administrativeUnits/00000000-0000-0000-0000-000000000000/scopedRoleMembers/zX37MRLyF0uvE-xf2WH4B7x-6CPLfudNnxFGj800htpBXqkxW7bITqGb6Rj4kuTuS
215
221
 
216
222
  :param str resource_name: The name of the resource.
217
223
  :param AdministrativeUnitRoleMemberArgs args: The arguments to use to populate this resource's properties.
@@ -228,9 +234,9 @@ class AdministrativeUnitRoleMember(pulumi.CustomResource):
228
234
  def _internal_init(__self__,
229
235
  resource_name: str,
230
236
  opts: Optional[pulumi.ResourceOptions] = None,
231
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
232
- member_object_id: Optional[pulumi.Input[str]] = None,
233
- role_object_id: Optional[pulumi.Input[str]] = None,
237
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
238
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None,
239
+ role_object_id: Optional[pulumi.Input[_builtins.str]] = None,
234
240
  __props__=None):
235
241
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
236
242
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -259,9 +265,9 @@ class AdministrativeUnitRoleMember(pulumi.CustomResource):
259
265
  def get(resource_name: str,
260
266
  id: pulumi.Input[str],
261
267
  opts: Optional[pulumi.ResourceOptions] = None,
262
- administrative_unit_object_id: Optional[pulumi.Input[str]] = None,
263
- member_object_id: Optional[pulumi.Input[str]] = None,
264
- role_object_id: Optional[pulumi.Input[str]] = None) -> 'AdministrativeUnitRoleMember':
268
+ administrative_unit_object_id: Optional[pulumi.Input[_builtins.str]] = None,
269
+ member_object_id: Optional[pulumi.Input[_builtins.str]] = None,
270
+ role_object_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'AdministrativeUnitRoleMember':
265
271
  """
266
272
  Get an existing AdministrativeUnitRoleMember resource's state with the given name, id, and optional extra
267
273
  properties used to qualify the lookup.
@@ -269,9 +275,9 @@ class AdministrativeUnitRoleMember(pulumi.CustomResource):
269
275
  :param str resource_name: The unique name of the resulting resource.
270
276
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
271
277
  :param pulumi.ResourceOptions opts: Options for the resource.
272
- :param pulumi.Input[str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
273
- :param pulumi.Input[str] member_object_id: The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
274
- :param pulumi.Input[str] role_object_id: The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
278
+ :param pulumi.Input[_builtins.str] administrative_unit_object_id: The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
279
+ :param pulumi.Input[_builtins.str] member_object_id: The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
280
+ :param pulumi.Input[_builtins.str] role_object_id: The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
275
281
  """
276
282
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
277
283
 
@@ -282,25 +288,25 @@ class AdministrativeUnitRoleMember(pulumi.CustomResource):
282
288
  __props__.__dict__["role_object_id"] = role_object_id
283
289
  return AdministrativeUnitRoleMember(resource_name, opts=opts, __props__=__props__)
284
290
 
285
- @property
291
+ @_builtins.property
286
292
  @pulumi.getter(name="administrativeUnitObjectId")
287
- def administrative_unit_object_id(self) -> pulumi.Output[str]:
293
+ def administrative_unit_object_id(self) -> pulumi.Output[_builtins.str]:
288
294
  """
289
295
  The object ID of the administrative unit you want to add the member to. Changing this forces a new resource to be created.
290
296
  """
291
297
  return pulumi.get(self, "administrative_unit_object_id")
292
298
 
293
- @property
299
+ @_builtins.property
294
300
  @pulumi.getter(name="memberObjectId")
295
- def member_object_id(self) -> pulumi.Output[str]:
301
+ def member_object_id(self) -> pulumi.Output[_builtins.str]:
296
302
  """
297
303
  The object ID of the user, group or service principal you want to add as a member of the administrative unit. Changing this forces a new resource to be created.
298
304
  """
299
305
  return pulumi.get(self, "member_object_id")
300
306
 
301
- @property
307
+ @_builtins.property
302
308
  @pulumi.getter(name="roleObjectId")
303
- def role_object_id(self) -> pulumi.Output[str]:
309
+ def role_object_id(self) -> pulumi.Output[_builtins.str]:
304
310
  """
305
311
  The object ID of the directory role you want to assign. Changing this forces a new resource to be created.
306
312
  """