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__ = ['ApplicationPreAuthorizedArgs', 'ApplicationPreAuthorized']
@@ -14,212 +19,121 @@ __all__ = ['ApplicationPreAuthorizedArgs', 'ApplicationPreAuthorized']
14
19
  @pulumi.input_type
15
20
  class ApplicationPreAuthorizedArgs:
16
21
  def __init__(__self__, *,
17
- permission_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
18
- application_id: Optional[pulumi.Input[str]] = None,
19
- application_object_id: Optional[pulumi.Input[str]] = None,
20
- authorized_app_id: Optional[pulumi.Input[str]] = None,
21
- authorized_client_id: Optional[pulumi.Input[str]] = None):
22
+ application_id: pulumi.Input[_builtins.str],
23
+ authorized_client_id: pulumi.Input[_builtins.str],
24
+ permission_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
22
25
  """
23
26
  The set of arguments for constructing a ApplicationPreAuthorized resource.
24
- :param pulumi.Input[Sequence[pulumi.Input[str]]] permission_ids: A set of permission scope IDs required by the authorized application.
25
- :param pulumi.Input[str] application_id: The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
26
- :param pulumi.Input[str] application_object_id: The object ID of the application to which this pre-authorized application should be added
27
- :param pulumi.Input[str] authorized_app_id: The application ID of the pre-authorized application
28
- :param pulumi.Input[str] authorized_client_id: The client ID of the application being authorized. Changing this field forces a new resource to be created.
27
+ :param pulumi.Input[_builtins.str] application_id: The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
28
+ :param pulumi.Input[_builtins.str] authorized_client_id: The client ID of the application being authorized. Changing this field forces a new resource to be created.
29
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permission_ids: A set of permission scope IDs required by the authorized application.
29
30
  """
31
+ pulumi.set(__self__, "application_id", application_id)
32
+ pulumi.set(__self__, "authorized_client_id", authorized_client_id)
30
33
  pulumi.set(__self__, "permission_ids", permission_ids)
31
- if application_id is not None:
32
- pulumi.set(__self__, "application_id", application_id)
33
- if application_object_id is not None:
34
- warnings.warn("""The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
35
- pulumi.log.warn("""application_object_id is deprecated: The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""")
36
- if application_object_id is not None:
37
- pulumi.set(__self__, "application_object_id", application_object_id)
38
- if authorized_app_id is not None:
39
- warnings.warn("""The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
40
- pulumi.log.warn("""authorized_app_id is deprecated: The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""")
41
- if authorized_app_id is not None:
42
- pulumi.set(__self__, "authorized_app_id", authorized_app_id)
43
- if authorized_client_id is not None:
44
- pulumi.set(__self__, "authorized_client_id", authorized_client_id)
45
-
46
- @property
47
- @pulumi.getter(name="permissionIds")
48
- def permission_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
49
- """
50
- A set of permission scope IDs required by the authorized application.
51
- """
52
- return pulumi.get(self, "permission_ids")
53
-
54
- @permission_ids.setter
55
- def permission_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
56
- pulumi.set(self, "permission_ids", value)
57
34
 
58
- @property
35
+ @_builtins.property
59
36
  @pulumi.getter(name="applicationId")
60
- def application_id(self) -> Optional[pulumi.Input[str]]:
37
+ def application_id(self) -> pulumi.Input[_builtins.str]:
61
38
  """
62
39
  The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
63
40
  """
64
41
  return pulumi.get(self, "application_id")
65
42
 
66
43
  @application_id.setter
67
- def application_id(self, value: Optional[pulumi.Input[str]]):
44
+ def application_id(self, value: pulumi.Input[_builtins.str]):
68
45
  pulumi.set(self, "application_id", value)
69
46
 
70
- @property
71
- @pulumi.getter(name="applicationObjectId")
72
- def application_object_id(self) -> Optional[pulumi.Input[str]]:
73
- """
74
- The object ID of the application to which this pre-authorized application should be added
75
- """
76
- warnings.warn("""The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
77
- pulumi.log.warn("""application_object_id is deprecated: The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""")
78
-
79
- return pulumi.get(self, "application_object_id")
80
-
81
- @application_object_id.setter
82
- def application_object_id(self, value: Optional[pulumi.Input[str]]):
83
- pulumi.set(self, "application_object_id", value)
84
-
85
- @property
86
- @pulumi.getter(name="authorizedAppId")
87
- def authorized_app_id(self) -> Optional[pulumi.Input[str]]:
88
- """
89
- The application ID of the pre-authorized application
90
- """
91
- warnings.warn("""The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
92
- pulumi.log.warn("""authorized_app_id is deprecated: The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""")
93
-
94
- return pulumi.get(self, "authorized_app_id")
95
-
96
- @authorized_app_id.setter
97
- def authorized_app_id(self, value: Optional[pulumi.Input[str]]):
98
- pulumi.set(self, "authorized_app_id", value)
99
-
100
- @property
47
+ @_builtins.property
101
48
  @pulumi.getter(name="authorizedClientId")
102
- def authorized_client_id(self) -> Optional[pulumi.Input[str]]:
49
+ def authorized_client_id(self) -> pulumi.Input[_builtins.str]:
103
50
  """
104
51
  The client ID of the application being authorized. Changing this field forces a new resource to be created.
105
52
  """
106
53
  return pulumi.get(self, "authorized_client_id")
107
54
 
108
55
  @authorized_client_id.setter
109
- def authorized_client_id(self, value: Optional[pulumi.Input[str]]):
56
+ def authorized_client_id(self, value: pulumi.Input[_builtins.str]):
110
57
  pulumi.set(self, "authorized_client_id", value)
111
58
 
59
+ @_builtins.property
60
+ @pulumi.getter(name="permissionIds")
61
+ def permission_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
62
+ """
63
+ A set of permission scope IDs required by the authorized application.
64
+ """
65
+ return pulumi.get(self, "permission_ids")
66
+
67
+ @permission_ids.setter
68
+ def permission_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
69
+ pulumi.set(self, "permission_ids", value)
70
+
112
71
 
113
72
  @pulumi.input_type
114
73
  class _ApplicationPreAuthorizedState:
115
74
  def __init__(__self__, *,
116
- application_id: Optional[pulumi.Input[str]] = None,
117
- application_object_id: Optional[pulumi.Input[str]] = None,
118
- authorized_app_id: Optional[pulumi.Input[str]] = None,
119
- authorized_client_id: Optional[pulumi.Input[str]] = None,
120
- permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
75
+ application_id: Optional[pulumi.Input[_builtins.str]] = None,
76
+ authorized_client_id: Optional[pulumi.Input[_builtins.str]] = None,
77
+ permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
121
78
  """
122
79
  Input properties used for looking up and filtering ApplicationPreAuthorized resources.
123
- :param pulumi.Input[str] application_id: The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
124
- :param pulumi.Input[str] application_object_id: The object ID of the application to which this pre-authorized application should be added
125
- :param pulumi.Input[str] authorized_app_id: The application ID of the pre-authorized application
126
- :param pulumi.Input[str] authorized_client_id: The client ID of the application being authorized. Changing this field forces a new resource to be created.
127
- :param pulumi.Input[Sequence[pulumi.Input[str]]] permission_ids: A set of permission scope IDs required by the authorized application.
80
+ :param pulumi.Input[_builtins.str] application_id: The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
81
+ :param pulumi.Input[_builtins.str] authorized_client_id: The client ID of the application being authorized. Changing this field forces a new resource to be created.
82
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permission_ids: A set of permission scope IDs required by the authorized application.
128
83
  """
129
84
  if application_id is not None:
130
85
  pulumi.set(__self__, "application_id", application_id)
131
- if application_object_id is not None:
132
- warnings.warn("""The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
133
- pulumi.log.warn("""application_object_id is deprecated: The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""")
134
- if application_object_id is not None:
135
- pulumi.set(__self__, "application_object_id", application_object_id)
136
- if authorized_app_id is not None:
137
- warnings.warn("""The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
138
- pulumi.log.warn("""authorized_app_id is deprecated: The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""")
139
- if authorized_app_id is not None:
140
- pulumi.set(__self__, "authorized_app_id", authorized_app_id)
141
86
  if authorized_client_id is not None:
142
87
  pulumi.set(__self__, "authorized_client_id", authorized_client_id)
143
88
  if permission_ids is not None:
144
89
  pulumi.set(__self__, "permission_ids", permission_ids)
145
90
 
146
- @property
91
+ @_builtins.property
147
92
  @pulumi.getter(name="applicationId")
148
- def application_id(self) -> Optional[pulumi.Input[str]]:
93
+ def application_id(self) -> Optional[pulumi.Input[_builtins.str]]:
149
94
  """
150
95
  The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
151
96
  """
152
97
  return pulumi.get(self, "application_id")
153
98
 
154
99
  @application_id.setter
155
- def application_id(self, value: Optional[pulumi.Input[str]]):
100
+ def application_id(self, value: Optional[pulumi.Input[_builtins.str]]):
156
101
  pulumi.set(self, "application_id", value)
157
102
 
158
- @property
159
- @pulumi.getter(name="applicationObjectId")
160
- def application_object_id(self) -> Optional[pulumi.Input[str]]:
161
- """
162
- The object ID of the application to which this pre-authorized application should be added
163
- """
164
- warnings.warn("""The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
165
- pulumi.log.warn("""application_object_id is deprecated: The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""")
166
-
167
- return pulumi.get(self, "application_object_id")
168
-
169
- @application_object_id.setter
170
- def application_object_id(self, value: Optional[pulumi.Input[str]]):
171
- pulumi.set(self, "application_object_id", value)
172
-
173
- @property
174
- @pulumi.getter(name="authorizedAppId")
175
- def authorized_app_id(self) -> Optional[pulumi.Input[str]]:
176
- """
177
- The application ID of the pre-authorized application
178
- """
179
- warnings.warn("""The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
180
- pulumi.log.warn("""authorized_app_id is deprecated: The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""")
181
-
182
- return pulumi.get(self, "authorized_app_id")
183
-
184
- @authorized_app_id.setter
185
- def authorized_app_id(self, value: Optional[pulumi.Input[str]]):
186
- pulumi.set(self, "authorized_app_id", value)
187
-
188
- @property
103
+ @_builtins.property
189
104
  @pulumi.getter(name="authorizedClientId")
190
- def authorized_client_id(self) -> Optional[pulumi.Input[str]]:
105
+ def authorized_client_id(self) -> Optional[pulumi.Input[_builtins.str]]:
191
106
  """
192
107
  The client ID of the application being authorized. Changing this field forces a new resource to be created.
193
108
  """
194
109
  return pulumi.get(self, "authorized_client_id")
195
110
 
196
111
  @authorized_client_id.setter
197
- def authorized_client_id(self, value: Optional[pulumi.Input[str]]):
112
+ def authorized_client_id(self, value: Optional[pulumi.Input[_builtins.str]]):
198
113
  pulumi.set(self, "authorized_client_id", value)
199
114
 
200
- @property
115
+ @_builtins.property
201
116
  @pulumi.getter(name="permissionIds")
202
- def permission_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
117
+ def permission_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
203
118
  """
204
119
  A set of permission scope IDs required by the authorized application.
205
120
  """
206
121
  return pulumi.get(self, "permission_ids")
207
122
 
208
123
  @permission_ids.setter
209
- def permission_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
124
+ def permission_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
210
125
  pulumi.set(self, "permission_ids", value)
211
126
 
212
127
 
128
+ @pulumi.type_token("azuread:index/applicationPreAuthorized:ApplicationPreAuthorized")
213
129
  class ApplicationPreAuthorized(pulumi.CustomResource):
214
130
  @overload
215
131
  def __init__(__self__,
216
132
  resource_name: str,
217
133
  opts: Optional[pulumi.ResourceOptions] = None,
218
- application_id: Optional[pulumi.Input[str]] = None,
219
- application_object_id: Optional[pulumi.Input[str]] = None,
220
- authorized_app_id: Optional[pulumi.Input[str]] = None,
221
- authorized_client_id: Optional[pulumi.Input[str]] = None,
222
- permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
134
+ application_id: Optional[pulumi.Input[_builtins.str]] = None,
135
+ authorized_client_id: Optional[pulumi.Input[_builtins.str]] = None,
136
+ permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
223
137
  __props__=None):
224
138
  """
225
139
  ## Example Usage
@@ -231,28 +145,28 @@ class ApplicationPreAuthorized(pulumi.CustomResource):
231
145
  authorized = azuread.ApplicationRegistration("authorized", display_name="example-authorized-app")
232
146
  authorizer = azuread.Application("authorizer",
233
147
  display_name="example-authorizing-app",
234
- api=azuread.ApplicationApiArgs(
235
- oauth2_permission_scopes=[
236
- azuread.ApplicationApiOauth2PermissionScopeArgs(
237
- admin_consent_description="Administer the application",
238
- admin_consent_display_name="Administer",
239
- enabled=True,
240
- id="00000000-0000-0000-0000-000000000000",
241
- type="Admin",
242
- value="administer",
243
- ),
244
- azuread.ApplicationApiOauth2PermissionScopeArgs(
245
- admin_consent_description="Access the application",
246
- admin_consent_display_name="Access",
247
- enabled=True,
248
- id="11111111-1111-1111-1111-111111111111",
249
- type="User",
250
- user_consent_description="Access the application",
251
- user_consent_display_name="Access",
252
- value="user_impersonation",
253
- ),
148
+ api={
149
+ "oauth2_permission_scopes": [
150
+ {
151
+ "admin_consent_description": "Administer the application",
152
+ "admin_consent_display_name": "Administer",
153
+ "enabled": True,
154
+ "id": "00000000-0000-0000-0000-000000000000",
155
+ "type": "Admin",
156
+ "value": "administer",
157
+ },
158
+ {
159
+ "admin_consent_description": "Access the application",
160
+ "admin_consent_display_name": "Access",
161
+ "enabled": True,
162
+ "id": "11111111-1111-1111-1111-111111111111",
163
+ "type": "User",
164
+ "user_consent_description": "Access the application",
165
+ "user_consent_display_name": "Access",
166
+ "value": "user_impersonation",
167
+ },
254
168
  ],
255
- ))
169
+ })
256
170
  example = azuread.ApplicationPreAuthorized("example",
257
171
  application_id=authorizer.id,
258
172
  authorized_client_id=authorized.client_id,
@@ -267,18 +181,16 @@ class ApplicationPreAuthorized(pulumi.CustomResource):
267
181
  Pre-authorized applications can be imported using the object ID of the authorizing application and the application ID of the application being authorized, e.g.
268
182
 
269
183
  ```sh
270
- $ pulumi import azuread:index/applicationPreAuthorized:ApplicationPreAuthorized example 00000000-0000-0000-0000-000000000000/preAuthorizedApplication/11111111-1111-1111-1111-111111111111
184
+ $ pulumi import azuread:index/applicationPreAuthorized:ApplicationPreAuthorized example 00000000-0000-0000-0000-000000000000/preAuthorizedApplication/11111111-1111-1111-1111-111111111111
271
185
  ```
272
186
 
273
- -> This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string "preAuthorizedApplication" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`.
187
+ -> This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string "preAuthorizedApplication" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`.
274
188
 
275
189
  :param str resource_name: The name of the resource.
276
190
  :param pulumi.ResourceOptions opts: Options for the resource.
277
- :param pulumi.Input[str] application_id: The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
278
- :param pulumi.Input[str] application_object_id: The object ID of the application to which this pre-authorized application should be added
279
- :param pulumi.Input[str] authorized_app_id: The application ID of the pre-authorized application
280
- :param pulumi.Input[str] authorized_client_id: The client ID of the application being authorized. Changing this field forces a new resource to be created.
281
- :param pulumi.Input[Sequence[pulumi.Input[str]]] permission_ids: A set of permission scope IDs required by the authorized application.
191
+ :param pulumi.Input[_builtins.str] application_id: The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
192
+ :param pulumi.Input[_builtins.str] authorized_client_id: The client ID of the application being authorized. Changing this field forces a new resource to be created.
193
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permission_ids: A set of permission scope IDs required by the authorized application.
282
194
  """
283
195
  ...
284
196
  @overload
@@ -296,28 +208,28 @@ class ApplicationPreAuthorized(pulumi.CustomResource):
296
208
  authorized = azuread.ApplicationRegistration("authorized", display_name="example-authorized-app")
297
209
  authorizer = azuread.Application("authorizer",
298
210
  display_name="example-authorizing-app",
299
- api=azuread.ApplicationApiArgs(
300
- oauth2_permission_scopes=[
301
- azuread.ApplicationApiOauth2PermissionScopeArgs(
302
- admin_consent_description="Administer the application",
303
- admin_consent_display_name="Administer",
304
- enabled=True,
305
- id="00000000-0000-0000-0000-000000000000",
306
- type="Admin",
307
- value="administer",
308
- ),
309
- azuread.ApplicationApiOauth2PermissionScopeArgs(
310
- admin_consent_description="Access the application",
311
- admin_consent_display_name="Access",
312
- enabled=True,
313
- id="11111111-1111-1111-1111-111111111111",
314
- type="User",
315
- user_consent_description="Access the application",
316
- user_consent_display_name="Access",
317
- value="user_impersonation",
318
- ),
211
+ api={
212
+ "oauth2_permission_scopes": [
213
+ {
214
+ "admin_consent_description": "Administer the application",
215
+ "admin_consent_display_name": "Administer",
216
+ "enabled": True,
217
+ "id": "00000000-0000-0000-0000-000000000000",
218
+ "type": "Admin",
219
+ "value": "administer",
220
+ },
221
+ {
222
+ "admin_consent_description": "Access the application",
223
+ "admin_consent_display_name": "Access",
224
+ "enabled": True,
225
+ "id": "11111111-1111-1111-1111-111111111111",
226
+ "type": "User",
227
+ "user_consent_description": "Access the application",
228
+ "user_consent_display_name": "Access",
229
+ "value": "user_impersonation",
230
+ },
319
231
  ],
320
- ))
232
+ })
321
233
  example = azuread.ApplicationPreAuthorized("example",
322
234
  application_id=authorizer.id,
323
235
  authorized_client_id=authorized.client_id,
@@ -332,10 +244,10 @@ class ApplicationPreAuthorized(pulumi.CustomResource):
332
244
  Pre-authorized applications can be imported using the object ID of the authorizing application and the application ID of the application being authorized, e.g.
333
245
 
334
246
  ```sh
335
- $ pulumi import azuread:index/applicationPreAuthorized:ApplicationPreAuthorized example 00000000-0000-0000-0000-000000000000/preAuthorizedApplication/11111111-1111-1111-1111-111111111111
247
+ $ pulumi import azuread:index/applicationPreAuthorized:ApplicationPreAuthorized example 00000000-0000-0000-0000-000000000000/preAuthorizedApplication/11111111-1111-1111-1111-111111111111
336
248
  ```
337
249
 
338
- -> This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string "preAuthorizedApplication" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`.
250
+ -> This ID format is unique to Terraform and is composed of the authorizing application's object ID, the string "preAuthorizedApplication" and the authorized application's application ID (client ID) in the format `{ObjectId}/preAuthorizedApplication/{ApplicationId}`.
339
251
 
340
252
  :param str resource_name: The name of the resource.
341
253
  :param ApplicationPreAuthorizedArgs args: The arguments to use to populate this resource's properties.
@@ -352,11 +264,9 @@ class ApplicationPreAuthorized(pulumi.CustomResource):
352
264
  def _internal_init(__self__,
353
265
  resource_name: str,
354
266
  opts: Optional[pulumi.ResourceOptions] = None,
355
- application_id: Optional[pulumi.Input[str]] = None,
356
- application_object_id: Optional[pulumi.Input[str]] = None,
357
- authorized_app_id: Optional[pulumi.Input[str]] = None,
358
- authorized_client_id: Optional[pulumi.Input[str]] = None,
359
- permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
267
+ application_id: Optional[pulumi.Input[_builtins.str]] = None,
268
+ authorized_client_id: Optional[pulumi.Input[_builtins.str]] = None,
269
+ permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
360
270
  __props__=None):
361
271
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
362
272
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -366,9 +276,11 @@ class ApplicationPreAuthorized(pulumi.CustomResource):
366
276
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
367
277
  __props__ = ApplicationPreAuthorizedArgs.__new__(ApplicationPreAuthorizedArgs)
368
278
 
279
+ if application_id is None and not opts.urn:
280
+ raise TypeError("Missing required property 'application_id'")
369
281
  __props__.__dict__["application_id"] = application_id
370
- __props__.__dict__["application_object_id"] = application_object_id
371
- __props__.__dict__["authorized_app_id"] = authorized_app_id
282
+ if authorized_client_id is None and not opts.urn:
283
+ raise TypeError("Missing required property 'authorized_client_id'")
372
284
  __props__.__dict__["authorized_client_id"] = authorized_client_id
373
285
  if permission_ids is None and not opts.urn:
374
286
  raise TypeError("Missing required property 'permission_ids'")
@@ -383,11 +295,9 @@ class ApplicationPreAuthorized(pulumi.CustomResource):
383
295
  def get(resource_name: str,
384
296
  id: pulumi.Input[str],
385
297
  opts: Optional[pulumi.ResourceOptions] = None,
386
- application_id: Optional[pulumi.Input[str]] = None,
387
- application_object_id: Optional[pulumi.Input[str]] = None,
388
- authorized_app_id: Optional[pulumi.Input[str]] = None,
389
- authorized_client_id: Optional[pulumi.Input[str]] = None,
390
- permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ApplicationPreAuthorized':
298
+ application_id: Optional[pulumi.Input[_builtins.str]] = None,
299
+ authorized_client_id: Optional[pulumi.Input[_builtins.str]] = None,
300
+ permission_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'ApplicationPreAuthorized':
391
301
  """
392
302
  Get an existing ApplicationPreAuthorized resource's state with the given name, id, and optional extra
393
303
  properties used to qualify the lookup.
@@ -395,64 +305,38 @@ class ApplicationPreAuthorized(pulumi.CustomResource):
395
305
  :param str resource_name: The unique name of the resulting resource.
396
306
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
397
307
  :param pulumi.ResourceOptions opts: Options for the resource.
398
- :param pulumi.Input[str] application_id: The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
399
- :param pulumi.Input[str] application_object_id: The object ID of the application to which this pre-authorized application should be added
400
- :param pulumi.Input[str] authorized_app_id: The application ID of the pre-authorized application
401
- :param pulumi.Input[str] authorized_client_id: The client ID of the application being authorized. Changing this field forces a new resource to be created.
402
- :param pulumi.Input[Sequence[pulumi.Input[str]]] permission_ids: A set of permission scope IDs required by the authorized application.
308
+ :param pulumi.Input[_builtins.str] application_id: The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
309
+ :param pulumi.Input[_builtins.str] authorized_client_id: The client ID of the application being authorized. Changing this field forces a new resource to be created.
310
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] permission_ids: A set of permission scope IDs required by the authorized application.
403
311
  """
404
312
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
405
313
 
406
314
  __props__ = _ApplicationPreAuthorizedState.__new__(_ApplicationPreAuthorizedState)
407
315
 
408
316
  __props__.__dict__["application_id"] = application_id
409
- __props__.__dict__["application_object_id"] = application_object_id
410
- __props__.__dict__["authorized_app_id"] = authorized_app_id
411
317
  __props__.__dict__["authorized_client_id"] = authorized_client_id
412
318
  __props__.__dict__["permission_ids"] = permission_ids
413
319
  return ApplicationPreAuthorized(resource_name, opts=opts, __props__=__props__)
414
320
 
415
- @property
321
+ @_builtins.property
416
322
  @pulumi.getter(name="applicationId")
417
- def application_id(self) -> pulumi.Output[str]:
323
+ def application_id(self) -> pulumi.Output[_builtins.str]:
418
324
  """
419
325
  The resource ID of the application for which permissions are being authorized. Changing this field forces a new resource to be created.
420
326
  """
421
327
  return pulumi.get(self, "application_id")
422
328
 
423
- @property
424
- @pulumi.getter(name="applicationObjectId")
425
- def application_object_id(self) -> pulumi.Output[str]:
426
- """
427
- The object ID of the application to which this pre-authorized application should be added
428
- """
429
- warnings.warn("""The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
430
- pulumi.log.warn("""application_object_id is deprecated: The `application_object_id` property has been replaced with the `application_id` property and will be removed in version 3.0 of the AzureAD provider""")
431
-
432
- return pulumi.get(self, "application_object_id")
433
-
434
- @property
435
- @pulumi.getter(name="authorizedAppId")
436
- def authorized_app_id(self) -> pulumi.Output[str]:
437
- """
438
- The application ID of the pre-authorized application
439
- """
440
- warnings.warn("""The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""", DeprecationWarning)
441
- pulumi.log.warn("""authorized_app_id is deprecated: The `authorized_app_id` property has been replaced with the `authorized_client_id` property and will be removed in version 3.0 of the AzureAD provider""")
442
-
443
- return pulumi.get(self, "authorized_app_id")
444
-
445
- @property
329
+ @_builtins.property
446
330
  @pulumi.getter(name="authorizedClientId")
447
- def authorized_client_id(self) -> pulumi.Output[str]:
331
+ def authorized_client_id(self) -> pulumi.Output[_builtins.str]:
448
332
  """
449
333
  The client ID of the application being authorized. Changing this field forces a new resource to be created.
450
334
  """
451
335
  return pulumi.get(self, "authorized_client_id")
452
336
 
453
- @property
337
+ @_builtins.property
454
338
  @pulumi.getter(name="permissionIds")
455
- def permission_ids(self) -> pulumi.Output[Sequence[str]]:
339
+ def permission_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
456
340
  """
457
341
  A set of permission scope IDs required by the authorized application.
458
342
  """