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
  from . import outputs
12
17
 
@@ -22,7 +27,7 @@ class GetApplicationResult:
22
27
  """
23
28
  A collection of values returned by getApplication.
24
29
  """
25
- def __init__(__self__, apis=None, app_role_ids=None, app_roles=None, application_id=None, client_id=None, description=None, device_only_auth_enabled=None, disabled_by_microsoft=None, display_name=None, fallback_public_client_enabled=None, feature_tags=None, group_membership_claims=None, id=None, identifier_uris=None, logo_url=None, marketing_url=None, notes=None, oauth2_permission_scope_ids=None, oauth2_post_response_required=None, object_id=None, optional_claims=None, owners=None, privacy_statement_url=None, public_clients=None, publisher_domain=None, required_resource_accesses=None, service_management_reference=None, sign_in_audience=None, single_page_applications=None, support_url=None, tags=None, terms_of_service_url=None, webs=None):
30
+ def __init__(__self__, apis=None, app_role_ids=None, app_roles=None, client_id=None, description=None, device_only_auth_enabled=None, disabled_by_microsoft=None, display_name=None, fallback_public_client_enabled=None, feature_tags=None, group_membership_claims=None, id=None, identifier_uri=None, identifier_uris=None, logo_url=None, marketing_url=None, notes=None, oauth2_permission_scope_ids=None, oauth2_post_response_required=None, object_id=None, optional_claims=None, owners=None, privacy_statement_url=None, public_clients=None, publisher_domain=None, required_resource_accesses=None, service_management_reference=None, sign_in_audience=None, single_page_applications=None, support_url=None, tags=None, terms_of_service_url=None, webs=None):
26
31
  if apis and not isinstance(apis, list):
27
32
  raise TypeError("Expected argument 'apis' to be a list")
28
33
  pulumi.set(__self__, "apis", apis)
@@ -32,9 +37,6 @@ class GetApplicationResult:
32
37
  if app_roles and not isinstance(app_roles, list):
33
38
  raise TypeError("Expected argument 'app_roles' to be a list")
34
39
  pulumi.set(__self__, "app_roles", app_roles)
35
- if application_id and not isinstance(application_id, str):
36
- raise TypeError("Expected argument 'application_id' to be a str")
37
- pulumi.set(__self__, "application_id", application_id)
38
40
  if client_id and not isinstance(client_id, str):
39
41
  raise TypeError("Expected argument 'client_id' to be a str")
40
42
  pulumi.set(__self__, "client_id", client_id)
@@ -62,6 +64,9 @@ class GetApplicationResult:
62
64
  if id and not isinstance(id, str):
63
65
  raise TypeError("Expected argument 'id' to be a str")
64
66
  pulumi.set(__self__, "id", id)
67
+ if identifier_uri and not isinstance(identifier_uri, str):
68
+ raise TypeError("Expected argument 'identifier_uri' to be a str")
69
+ pulumi.set(__self__, "identifier_uri", identifier_uri)
65
70
  if identifier_uris and not isinstance(identifier_uris, list):
66
71
  raise TypeError("Expected argument 'identifier_uris' to be a list")
67
72
  pulumi.set(__self__, "identifier_uris", identifier_uris)
@@ -123,7 +128,7 @@ class GetApplicationResult:
123
128
  raise TypeError("Expected argument 'webs' to be a list")
124
129
  pulumi.set(__self__, "webs", webs)
125
130
 
126
- @property
131
+ @_builtins.property
127
132
  @pulumi.getter
128
133
  def apis(self) -> Sequence['outputs.GetApplicationApiResult']:
129
134
  """
@@ -131,15 +136,15 @@ class GetApplicationResult:
131
136
  """
132
137
  return pulumi.get(self, "apis")
133
138
 
134
- @property
139
+ @_builtins.property
135
140
  @pulumi.getter(name="appRoleIds")
136
- def app_role_ids(self) -> Mapping[str, str]:
141
+ def app_role_ids(self) -> Mapping[str, _builtins.str]:
137
142
  """
138
143
  A mapping of app role values to app role IDs, intended to be useful when referencing app roles in other resources in your configuration.
139
144
  """
140
145
  return pulumi.get(self, "app_role_ids")
141
146
 
142
- @property
147
+ @_builtins.property
143
148
  @pulumi.getter(name="appRoles")
144
149
  def app_roles(self) -> Sequence['outputs.GetApplicationAppRoleResult']:
145
150
  """
@@ -147,63 +152,55 @@ class GetApplicationResult:
147
152
  """
148
153
  return pulumi.get(self, "app_roles")
149
154
 
150
- @property
151
- @pulumi.getter(name="applicationId")
152
- def application_id(self) -> str:
153
- warnings.warn("""The `application_id` property has been replaced with the `client_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
154
- pulumi.log.warn("""application_id is deprecated: The `application_id` property has been replaced with the `client_id` property and will be removed in version 3.0 of the AzureAD provider""")
155
-
156
- return pulumi.get(self, "application_id")
157
-
158
- @property
155
+ @_builtins.property
159
156
  @pulumi.getter(name="clientId")
160
- def client_id(self) -> str:
157
+ def client_id(self) -> _builtins.str:
161
158
  """
162
159
  The Client ID for the application.
163
160
  """
164
161
  return pulumi.get(self, "client_id")
165
162
 
166
- @property
163
+ @_builtins.property
167
164
  @pulumi.getter
168
- def description(self) -> str:
165
+ def description(self) -> _builtins.str:
169
166
  """
170
167
  Description of the app role that appears when the role is being assigned and, if the role functions as an application permissions, during the consent experiences.
171
168
  """
172
169
  return pulumi.get(self, "description")
173
170
 
174
- @property
171
+ @_builtins.property
175
172
  @pulumi.getter(name="deviceOnlyAuthEnabled")
176
- def device_only_auth_enabled(self) -> bool:
173
+ def device_only_auth_enabled(self) -> _builtins.bool:
177
174
  """
178
175
  Specifies whether this application supports device authentication without a user.
179
176
  """
180
177
  return pulumi.get(self, "device_only_auth_enabled")
181
178
 
182
- @property
179
+ @_builtins.property
183
180
  @pulumi.getter(name="disabledByMicrosoft")
184
- def disabled_by_microsoft(self) -> str:
181
+ def disabled_by_microsoft(self) -> _builtins.str:
185
182
  """
186
183
  Whether Microsoft has disabled the registered application. If the application is disabled, this will be a string indicating the status/reason, e.g. `DisabledDueToViolationOfServicesAgreement`
187
184
  """
188
185
  return pulumi.get(self, "disabled_by_microsoft")
189
186
 
190
- @property
187
+ @_builtins.property
191
188
  @pulumi.getter(name="displayName")
192
- def display_name(self) -> str:
189
+ def display_name(self) -> _builtins.str:
193
190
  """
194
191
  Display name for the app role that appears during app role assignment and in consent experiences.
195
192
  """
196
193
  return pulumi.get(self, "display_name")
197
194
 
198
- @property
195
+ @_builtins.property
199
196
  @pulumi.getter(name="fallbackPublicClientEnabled")
200
- def fallback_public_client_enabled(self) -> bool:
197
+ def fallback_public_client_enabled(self) -> _builtins.bool:
201
198
  """
202
199
  The fallback application type as public client, such as an installed application running on a mobile device.
203
200
  """
204
201
  return pulumi.get(self, "fallback_public_client_enabled")
205
202
 
206
- @property
203
+ @_builtins.property
207
204
  @pulumi.getter(name="featureTags")
208
205
  def feature_tags(self) -> Sequence['outputs.GetApplicationFeatureTagResult']:
209
206
  """
@@ -211,79 +208,84 @@ class GetApplicationResult:
211
208
  """
212
209
  return pulumi.get(self, "feature_tags")
213
210
 
214
- @property
211
+ @_builtins.property
215
212
  @pulumi.getter(name="groupMembershipClaims")
216
- def group_membership_claims(self) -> Sequence[str]:
213
+ def group_membership_claims(self) -> Sequence[_builtins.str]:
217
214
  """
218
215
  The `groups` claim issued in a user or OAuth 2.0 access token that the app expects.
219
216
  """
220
217
  return pulumi.get(self, "group_membership_claims")
221
218
 
222
- @property
219
+ @_builtins.property
223
220
  @pulumi.getter
224
- def id(self) -> str:
221
+ def id(self) -> _builtins.str:
225
222
  """
226
223
  The provider-assigned unique ID for this managed resource.
227
224
  """
228
225
  return pulumi.get(self, "id")
229
226
 
230
- @property
227
+ @_builtins.property
228
+ @pulumi.getter(name="identifierUri")
229
+ def identifier_uri(self) -> _builtins.str:
230
+ return pulumi.get(self, "identifier_uri")
231
+
232
+ @_builtins.property
231
233
  @pulumi.getter(name="identifierUris")
232
- def identifier_uris(self) -> Sequence[str]:
234
+ def identifier_uris(self) -> Sequence[_builtins.str]:
233
235
  """
234
236
  A list of user-defined URI(s) that uniquely identify a Web application within it's Azure AD tenant, or within a verified custom domain if the application is multi-tenant.
235
237
  """
236
238
  return pulumi.get(self, "identifier_uris")
237
239
 
238
- @property
240
+ @_builtins.property
239
241
  @pulumi.getter(name="logoUrl")
240
- def logo_url(self) -> str:
242
+ def logo_url(self) -> _builtins.str:
241
243
  """
242
244
  CDN URL to the application's logo.
243
245
  """
244
246
  return pulumi.get(self, "logo_url")
245
247
 
246
- @property
248
+ @_builtins.property
247
249
  @pulumi.getter(name="marketingUrl")
248
- def marketing_url(self) -> str:
250
+ def marketing_url(self) -> _builtins.str:
249
251
  """
250
252
  URL of the application's marketing page.
251
253
  """
252
254
  return pulumi.get(self, "marketing_url")
253
255
 
254
- @property
256
+ @_builtins.property
255
257
  @pulumi.getter
256
- def notes(self) -> str:
258
+ def notes(self) -> _builtins.str:
257
259
  """
258
260
  User-specified notes relevant for the management of the application.
259
261
  """
260
262
  return pulumi.get(self, "notes")
261
263
 
262
- @property
264
+ @_builtins.property
263
265
  @pulumi.getter(name="oauth2PermissionScopeIds")
264
- def oauth2_permission_scope_ids(self) -> Mapping[str, str]:
266
+ def oauth2_permission_scope_ids(self) -> Mapping[str, _builtins.str]:
265
267
  """
266
268
  A mapping of OAuth2.0 permission scope values to scope IDs, intended to be useful when referencing permission scopes in other resources in your configuration.
267
269
  """
268
270
  return pulumi.get(self, "oauth2_permission_scope_ids")
269
271
 
270
- @property
272
+ @_builtins.property
271
273
  @pulumi.getter(name="oauth2PostResponseRequired")
272
- def oauth2_post_response_required(self) -> bool:
274
+ def oauth2_post_response_required(self) -> _builtins.bool:
273
275
  """
274
276
  Specifies whether, as part of OAuth 2.0 token requests, Azure AD allows POST requests, as opposed to GET requests. When `false`, only GET requests are allowed.
275
277
  """
276
278
  return pulumi.get(self, "oauth2_post_response_required")
277
279
 
278
- @property
280
+ @_builtins.property
279
281
  @pulumi.getter(name="objectId")
280
- def object_id(self) -> str:
282
+ def object_id(self) -> _builtins.str:
281
283
  """
282
284
  The application's object ID.
283
285
  """
284
286
  return pulumi.get(self, "object_id")
285
287
 
286
- @property
288
+ @_builtins.property
287
289
  @pulumi.getter(name="optionalClaims")
288
290
  def optional_claims(self) -> Sequence['outputs.GetApplicationOptionalClaimResult']:
289
291
  """
@@ -291,23 +293,23 @@ class GetApplicationResult:
291
293
  """
292
294
  return pulumi.get(self, "optional_claims")
293
295
 
294
- @property
296
+ @_builtins.property
295
297
  @pulumi.getter
296
- def owners(self) -> Sequence[str]:
298
+ def owners(self) -> Sequence[_builtins.str]:
297
299
  """
298
300
  A list of object IDs of principals that are assigned ownership of the application.
299
301
  """
300
302
  return pulumi.get(self, "owners")
301
303
 
302
- @property
304
+ @_builtins.property
303
305
  @pulumi.getter(name="privacyStatementUrl")
304
- def privacy_statement_url(self) -> str:
306
+ def privacy_statement_url(self) -> _builtins.str:
305
307
  """
306
308
  URL of the application's privacy statement.
307
309
  """
308
310
  return pulumi.get(self, "privacy_statement_url")
309
311
 
310
- @property
312
+ @_builtins.property
311
313
  @pulumi.getter(name="publicClients")
312
314
  def public_clients(self) -> Sequence['outputs.GetApplicationPublicClientResult']:
313
315
  """
@@ -315,15 +317,15 @@ class GetApplicationResult:
315
317
  """
316
318
  return pulumi.get(self, "public_clients")
317
319
 
318
- @property
320
+ @_builtins.property
319
321
  @pulumi.getter(name="publisherDomain")
320
- def publisher_domain(self) -> str:
322
+ def publisher_domain(self) -> _builtins.str:
321
323
  """
322
324
  The verified publisher domain for the application.
323
325
  """
324
326
  return pulumi.get(self, "publisher_domain")
325
327
 
326
- @property
328
+ @_builtins.property
327
329
  @pulumi.getter(name="requiredResourceAccesses")
328
330
  def required_resource_accesses(self) -> Sequence['outputs.GetApplicationRequiredResourceAccessResult']:
329
331
  """
@@ -331,23 +333,23 @@ class GetApplicationResult:
331
333
  """
332
334
  return pulumi.get(self, "required_resource_accesses")
333
335
 
334
- @property
336
+ @_builtins.property
335
337
  @pulumi.getter(name="serviceManagementReference")
336
- def service_management_reference(self) -> str:
338
+ def service_management_reference(self) -> _builtins.str:
337
339
  """
338
340
  References application context information from a Service or Asset Management database.
339
341
  """
340
342
  return pulumi.get(self, "service_management_reference")
341
343
 
342
- @property
344
+ @_builtins.property
343
345
  @pulumi.getter(name="signInAudience")
344
- def sign_in_audience(self) -> str:
346
+ def sign_in_audience(self) -> _builtins.str:
345
347
  """
346
348
  The Microsoft account types that are supported for the current application. One of `AzureADMyOrg`, `AzureADMultipleOrgs`, `AzureADandPersonalMicrosoftAccount` or `PersonalMicrosoftAccount`.
347
349
  """
348
350
  return pulumi.get(self, "sign_in_audience")
349
351
 
350
- @property
352
+ @_builtins.property
351
353
  @pulumi.getter(name="singlePageApplications")
352
354
  def single_page_applications(self) -> Sequence['outputs.GetApplicationSinglePageApplicationResult']:
353
355
  """
@@ -355,31 +357,31 @@ class GetApplicationResult:
355
357
  """
356
358
  return pulumi.get(self, "single_page_applications")
357
359
 
358
- @property
360
+ @_builtins.property
359
361
  @pulumi.getter(name="supportUrl")
360
- def support_url(self) -> str:
362
+ def support_url(self) -> _builtins.str:
361
363
  """
362
364
  URL of the application's support page.
363
365
  """
364
366
  return pulumi.get(self, "support_url")
365
367
 
366
- @property
368
+ @_builtins.property
367
369
  @pulumi.getter
368
- def tags(self) -> Sequence[str]:
370
+ def tags(self) -> Sequence[_builtins.str]:
369
371
  """
370
372
  A list of tags applied to the application.
371
373
  """
372
374
  return pulumi.get(self, "tags")
373
375
 
374
- @property
376
+ @_builtins.property
375
377
  @pulumi.getter(name="termsOfServiceUrl")
376
- def terms_of_service_url(self) -> str:
378
+ def terms_of_service_url(self) -> _builtins.str:
377
379
  """
378
380
  URL of the application's terms of service statement.
379
381
  """
380
382
  return pulumi.get(self, "terms_of_service_url")
381
383
 
382
- @property
384
+ @_builtins.property
383
385
  @pulumi.getter
384
386
  def webs(self) -> Sequence['outputs.GetApplicationWebResult']:
385
387
  """
@@ -397,7 +399,6 @@ class AwaitableGetApplicationResult(GetApplicationResult):
397
399
  apis=self.apis,
398
400
  app_role_ids=self.app_role_ids,
399
401
  app_roles=self.app_roles,
400
- application_id=self.application_id,
401
402
  client_id=self.client_id,
402
403
  description=self.description,
403
404
  device_only_auth_enabled=self.device_only_auth_enabled,
@@ -407,6 +408,7 @@ class AwaitableGetApplicationResult(GetApplicationResult):
407
408
  feature_tags=self.feature_tags,
408
409
  group_membership_claims=self.group_membership_claims,
409
410
  id=self.id,
411
+ identifier_uri=self.identifier_uri,
410
412
  identifier_uris=self.identifier_uris,
411
413
  logo_url=self.logo_url,
412
414
  marketing_url=self.marketing_url,
@@ -429,10 +431,10 @@ class AwaitableGetApplicationResult(GetApplicationResult):
429
431
  webs=self.webs)
430
432
 
431
433
 
432
- def get_application(application_id: Optional[str] = None,
433
- client_id: Optional[str] = None,
434
- display_name: Optional[str] = None,
435
- object_id: Optional[str] = None,
434
+ def get_application(client_id: Optional[_builtins.str] = None,
435
+ display_name: Optional[_builtins.str] = None,
436
+ identifier_uri: Optional[_builtins.str] = None,
437
+ object_id: Optional[_builtins.str] = None,
436
438
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApplicationResult:
437
439
  """
438
440
  Use this data source to access information about an existing Application within Azure Active Directory.
@@ -456,16 +458,17 @@ def get_application(application_id: Optional[str] = None,
456
458
  ```
457
459
 
458
460
 
459
- :param str client_id: Specifies the Client ID of the application.
460
- :param str display_name: Specifies the display name of the application.
461
- :param str object_id: Specifies the Object ID of the application.
461
+ :param _builtins.str client_id: Specifies the Client ID of the application.
462
+ :param _builtins.str display_name: Specifies the display name of the application.
463
+ :param _builtins.str identifier_uri: Specifies any identifier URI of the application. See also the `identifier_uris` attribute which contains a list of all identifier URIs for the application.
462
464
 
463
- > One of `client_id`, `display_name`, or `object_id` must be specified.
465
+ > One of `client_id`, `display_name`, `object_id`, or `identifier_uri` must be specified.
466
+ :param _builtins.str object_id: Specifies the Object ID of the application.
464
467
  """
465
468
  __args__ = dict()
466
- __args__['applicationId'] = application_id
467
469
  __args__['clientId'] = client_id
468
470
  __args__['displayName'] = display_name
471
+ __args__['identifierUri'] = identifier_uri
469
472
  __args__['objectId'] = object_id
470
473
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
471
474
  __ret__ = pulumi.runtime.invoke('azuread:index/getApplication:getApplication', __args__, opts=opts, typ=GetApplicationResult).value
@@ -474,7 +477,6 @@ def get_application(application_id: Optional[str] = None,
474
477
  apis=pulumi.get(__ret__, 'apis'),
475
478
  app_role_ids=pulumi.get(__ret__, 'app_role_ids'),
476
479
  app_roles=pulumi.get(__ret__, 'app_roles'),
477
- application_id=pulumi.get(__ret__, 'application_id'),
478
480
  client_id=pulumi.get(__ret__, 'client_id'),
479
481
  description=pulumi.get(__ret__, 'description'),
480
482
  device_only_auth_enabled=pulumi.get(__ret__, 'device_only_auth_enabled'),
@@ -484,6 +486,7 @@ def get_application(application_id: Optional[str] = None,
484
486
  feature_tags=pulumi.get(__ret__, 'feature_tags'),
485
487
  group_membership_claims=pulumi.get(__ret__, 'group_membership_claims'),
486
488
  id=pulumi.get(__ret__, 'id'),
489
+ identifier_uri=pulumi.get(__ret__, 'identifier_uri'),
487
490
  identifier_uris=pulumi.get(__ret__, 'identifier_uris'),
488
491
  logo_url=pulumi.get(__ret__, 'logo_url'),
489
492
  marketing_url=pulumi.get(__ret__, 'marketing_url'),
@@ -504,14 +507,11 @@ def get_application(application_id: Optional[str] = None,
504
507
  tags=pulumi.get(__ret__, 'tags'),
505
508
  terms_of_service_url=pulumi.get(__ret__, 'terms_of_service_url'),
506
509
  webs=pulumi.get(__ret__, 'webs'))
507
-
508
-
509
- @_utilities.lift_output_func(get_application)
510
- def get_application_output(application_id: Optional[pulumi.Input[Optional[str]]] = None,
511
- client_id: Optional[pulumi.Input[Optional[str]]] = None,
512
- display_name: Optional[pulumi.Input[Optional[str]]] = None,
513
- object_id: Optional[pulumi.Input[Optional[str]]] = None,
514
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetApplicationResult]:
510
+ def get_application_output(client_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
511
+ display_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
512
+ identifier_uri: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
513
+ object_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
514
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetApplicationResult]:
515
515
  """
516
516
  Use this data source to access information about an existing Application within Azure Active Directory.
517
517
 
@@ -534,10 +534,51 @@ def get_application_output(application_id: Optional[pulumi.Input[Optional[str]]]
534
534
  ```
535
535
 
536
536
 
537
- :param str client_id: Specifies the Client ID of the application.
538
- :param str display_name: Specifies the display name of the application.
539
- :param str object_id: Specifies the Object ID of the application.
537
+ :param _builtins.str client_id: Specifies the Client ID of the application.
538
+ :param _builtins.str display_name: Specifies the display name of the application.
539
+ :param _builtins.str identifier_uri: Specifies any identifier URI of the application. See also the `identifier_uris` attribute which contains a list of all identifier URIs for the application.
540
540
 
541
- > One of `client_id`, `display_name`, or `object_id` must be specified.
541
+ > One of `client_id`, `display_name`, `object_id`, or `identifier_uri` must be specified.
542
+ :param _builtins.str object_id: Specifies the Object ID of the application.
542
543
  """
543
- ...
544
+ __args__ = dict()
545
+ __args__['clientId'] = client_id
546
+ __args__['displayName'] = display_name
547
+ __args__['identifierUri'] = identifier_uri
548
+ __args__['objectId'] = object_id
549
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
550
+ __ret__ = pulumi.runtime.invoke_output('azuread:index/getApplication:getApplication', __args__, opts=opts, typ=GetApplicationResult)
551
+ return __ret__.apply(lambda __response__: GetApplicationResult(
552
+ apis=pulumi.get(__response__, 'apis'),
553
+ app_role_ids=pulumi.get(__response__, 'app_role_ids'),
554
+ app_roles=pulumi.get(__response__, 'app_roles'),
555
+ client_id=pulumi.get(__response__, 'client_id'),
556
+ description=pulumi.get(__response__, 'description'),
557
+ device_only_auth_enabled=pulumi.get(__response__, 'device_only_auth_enabled'),
558
+ disabled_by_microsoft=pulumi.get(__response__, 'disabled_by_microsoft'),
559
+ display_name=pulumi.get(__response__, 'display_name'),
560
+ fallback_public_client_enabled=pulumi.get(__response__, 'fallback_public_client_enabled'),
561
+ feature_tags=pulumi.get(__response__, 'feature_tags'),
562
+ group_membership_claims=pulumi.get(__response__, 'group_membership_claims'),
563
+ id=pulumi.get(__response__, 'id'),
564
+ identifier_uri=pulumi.get(__response__, 'identifier_uri'),
565
+ identifier_uris=pulumi.get(__response__, 'identifier_uris'),
566
+ logo_url=pulumi.get(__response__, 'logo_url'),
567
+ marketing_url=pulumi.get(__response__, 'marketing_url'),
568
+ notes=pulumi.get(__response__, 'notes'),
569
+ oauth2_permission_scope_ids=pulumi.get(__response__, 'oauth2_permission_scope_ids'),
570
+ oauth2_post_response_required=pulumi.get(__response__, 'oauth2_post_response_required'),
571
+ object_id=pulumi.get(__response__, 'object_id'),
572
+ optional_claims=pulumi.get(__response__, 'optional_claims'),
573
+ owners=pulumi.get(__response__, 'owners'),
574
+ privacy_statement_url=pulumi.get(__response__, 'privacy_statement_url'),
575
+ public_clients=pulumi.get(__response__, 'public_clients'),
576
+ publisher_domain=pulumi.get(__response__, 'publisher_domain'),
577
+ required_resource_accesses=pulumi.get(__response__, 'required_resource_accesses'),
578
+ service_management_reference=pulumi.get(__response__, 'service_management_reference'),
579
+ sign_in_audience=pulumi.get(__response__, 'sign_in_audience'),
580
+ single_page_applications=pulumi.get(__response__, 'single_page_applications'),
581
+ support_url=pulumi.get(__response__, 'support_url'),
582
+ tags=pulumi.get(__response__, 'tags'),
583
+ terms_of_service_url=pulumi.get(__response__, 'terms_of_service_url'),
584
+ webs=pulumi.get(__response__, 'webs')))
@@ -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__ = [
@@ -29,17 +34,17 @@ class GetApplicationPublishedAppIdsResult:
29
34
  raise TypeError("Expected argument 'result' to be a dict")
30
35
  pulumi.set(__self__, "result", result)
31
36
 
32
- @property
37
+ @_builtins.property
33
38
  @pulumi.getter
34
- def id(self) -> str:
39
+ def id(self) -> _builtins.str:
35
40
  """
36
41
  The provider-assigned unique ID for this managed resource.
37
42
  """
38
43
  return pulumi.get(self, "id")
39
44
 
40
- @property
45
+ @_builtins.property
41
46
  @pulumi.getter
42
- def result(self) -> Mapping[str, str]:
47
+ def result(self) -> Mapping[str, _builtins.str]:
43
48
  """
44
49
  A map of application names to application IDs.
45
50
  """
@@ -58,12 +63,6 @@ class AwaitableGetApplicationPublishedAppIdsResult(GetApplicationPublishedAppIds
58
63
 
59
64
  def get_application_published_app_ids(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApplicationPublishedAppIdsResult:
60
65
  """
61
- Use this data source to discover application IDs for APIs published by Microsoft.
62
-
63
- This data source uses an [unofficial source of application IDs](https://github.com/hashicorp/go-azure-sdk/blob/main/sdk/environments/application_ids.go), as there is currently no available official indexed source for applications or APIs published by Microsoft.
64
-
65
- The app IDs returned by this data source are sourced from the Azure Global (Public) Cloud, however some of them are known to work in government and national clouds.
66
-
67
66
  ## Example Usage
68
67
 
69
68
  *Listing well-known application IDs*
@@ -88,19 +87,19 @@ def get_application_published_app_ids(opts: Optional[pulumi.InvokeOptions] = Non
88
87
  use_existing=True)
89
88
  example = azuread.Application("example",
90
89
  display_name="example",
91
- required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs(
92
- resource_app_id=well_known.result["MicrosoftGraph"],
93
- resource_accesses=[
94
- azuread.ApplicationRequiredResourceAccessResourceAccessArgs(
95
- id=msgraph.app_role_ids["User.Read.All"],
96
- type="Role",
97
- ),
98
- azuread.ApplicationRequiredResourceAccessResourceAccessArgs(
99
- id=msgraph.oauth2_permission_scope_ids["User.ReadWrite"],
100
- type="Scope",
101
- ),
90
+ required_resource_accesses=[{
91
+ "resource_app_id": well_known.result["MicrosoftGraph"],
92
+ "resource_accesses": [
93
+ {
94
+ "id": msgraph.app_role_ids["User.Read.All"],
95
+ "type": "Role",
96
+ },
97
+ {
98
+ "id": msgraph.oauth2_permission_scope_ids["User.ReadWrite"],
99
+ "type": "Scope",
100
+ },
102
101
  ],
103
- )])
102
+ }])
104
103
  ```
105
104
  """
106
105
  __args__ = dict()
@@ -110,17 +109,8 @@ def get_application_published_app_ids(opts: Optional[pulumi.InvokeOptions] = Non
110
109
  return AwaitableGetApplicationPublishedAppIdsResult(
111
110
  id=pulumi.get(__ret__, 'id'),
112
111
  result=pulumi.get(__ret__, 'result'))
113
-
114
-
115
- @_utilities.lift_output_func(get_application_published_app_ids)
116
- def get_application_published_app_ids_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetApplicationPublishedAppIdsResult]:
112
+ def get_application_published_app_ids_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetApplicationPublishedAppIdsResult]:
117
113
  """
118
- Use this data source to discover application IDs for APIs published by Microsoft.
119
-
120
- This data source uses an [unofficial source of application IDs](https://github.com/hashicorp/go-azure-sdk/blob/main/sdk/environments/application_ids.go), as there is currently no available official indexed source for applications or APIs published by Microsoft.
121
-
122
- The app IDs returned by this data source are sourced from the Azure Global (Public) Cloud, however some of them are known to work in government and national clouds.
123
-
124
114
  ## Example Usage
125
115
 
126
116
  *Listing well-known application IDs*
@@ -145,19 +135,24 @@ def get_application_published_app_ids_output(opts: Optional[pulumi.InvokeOptions
145
135
  use_existing=True)
146
136
  example = azuread.Application("example",
147
137
  display_name="example",
148
- required_resource_accesses=[azuread.ApplicationRequiredResourceAccessArgs(
149
- resource_app_id=well_known.result["MicrosoftGraph"],
150
- resource_accesses=[
151
- azuread.ApplicationRequiredResourceAccessResourceAccessArgs(
152
- id=msgraph.app_role_ids["User.Read.All"],
153
- type="Role",
154
- ),
155
- azuread.ApplicationRequiredResourceAccessResourceAccessArgs(
156
- id=msgraph.oauth2_permission_scope_ids["User.ReadWrite"],
157
- type="Scope",
158
- ),
138
+ required_resource_accesses=[{
139
+ "resource_app_id": well_known.result["MicrosoftGraph"],
140
+ "resource_accesses": [
141
+ {
142
+ "id": msgraph.app_role_ids["User.Read.All"],
143
+ "type": "Role",
144
+ },
145
+ {
146
+ "id": msgraph.oauth2_permission_scope_ids["User.ReadWrite"],
147
+ "type": "Scope",
148
+ },
159
149
  ],
160
- )])
150
+ }])
161
151
  ```
162
152
  """
163
- ...
153
+ __args__ = dict()
154
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
155
+ __ret__ = pulumi.runtime.invoke_output('azuread:index/getApplicationPublishedAppIds:getApplicationPublishedAppIds', __args__, opts=opts, typ=GetApplicationPublishedAppIdsResult)
156
+ return __ret__.apply(lambda __response__: GetApplicationPublishedAppIdsResult(
157
+ id=pulumi.get(__response__, 'id'),
158
+ result=pulumi.get(__response__, 'result')))