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__ = ['ServicePrincipalPasswordArgs', 'ServicePrincipalPassword']
@@ -14,26 +19,29 @@ __all__ = ['ServicePrincipalPasswordArgs', 'ServicePrincipalPassword']
14
19
  @pulumi.input_type
15
20
  class ServicePrincipalPasswordArgs:
16
21
  def __init__(__self__, *,
17
- service_principal_id: pulumi.Input[str],
18
- display_name: Optional[pulumi.Input[str]] = None,
19
- end_date: Optional[pulumi.Input[str]] = None,
20
- end_date_relative: Optional[pulumi.Input[str]] = None,
21
- rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
22
- start_date: Optional[pulumi.Input[str]] = None):
22
+ service_principal_id: pulumi.Input[_builtins.str],
23
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
24
+ end_date: Optional[pulumi.Input[_builtins.str]] = None,
25
+ end_date_relative: Optional[pulumi.Input[_builtins.str]] = None,
26
+ rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
27
+ start_date: Optional[pulumi.Input[_builtins.str]] = None):
23
28
  """
24
29
  The set of arguments for constructing a ServicePrincipalPassword resource.
25
- :param pulumi.Input[str] service_principal_id: The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
26
- :param pulumi.Input[str] display_name: A display name for the password.
27
- :param pulumi.Input[str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
28
- :param pulumi.Input[str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
29
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
30
- :param pulumi.Input[str] start_date: The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
30
+ :param pulumi.Input[_builtins.str] service_principal_id: The ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
31
+ :param pulumi.Input[_builtins.str] display_name: A display name for the password.
32
+ :param pulumi.Input[_builtins.str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
33
+ :param pulumi.Input[_builtins.str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
34
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
35
+ :param pulumi.Input[_builtins.str] start_date: The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
31
36
  """
32
37
  pulumi.set(__self__, "service_principal_id", service_principal_id)
33
38
  if display_name is not None:
34
39
  pulumi.set(__self__, "display_name", display_name)
35
40
  if end_date is not None:
36
41
  pulumi.set(__self__, "end_date", end_date)
42
+ if end_date_relative is not None:
43
+ warnings.warn("""The `end_date_relative` property is deprecated and will be removed in a future version of the AzureAD provider. Please instead use the Terraform `timeadd()` function to calculate a value for the `end_date` property.""", DeprecationWarning)
44
+ pulumi.log.warn("""end_date_relative is deprecated: The `end_date_relative` property is deprecated and will be removed in a future version of the AzureAD provider. Please instead use the Terraform `timeadd()` function to calculate a value for the `end_date` property.""")
37
45
  if end_date_relative is not None:
38
46
  pulumi.set(__self__, "end_date_relative", end_date_relative)
39
47
  if rotate_when_changed is not None:
@@ -41,105 +49,109 @@ class ServicePrincipalPasswordArgs:
41
49
  if start_date is not None:
42
50
  pulumi.set(__self__, "start_date", start_date)
43
51
 
44
- @property
52
+ @_builtins.property
45
53
  @pulumi.getter(name="servicePrincipalId")
46
- def service_principal_id(self) -> pulumi.Input[str]:
54
+ def service_principal_id(self) -> pulumi.Input[_builtins.str]:
47
55
  """
48
- The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
56
+ The ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
49
57
  """
50
58
  return pulumi.get(self, "service_principal_id")
51
59
 
52
60
  @service_principal_id.setter
53
- def service_principal_id(self, value: pulumi.Input[str]):
61
+ def service_principal_id(self, value: pulumi.Input[_builtins.str]):
54
62
  pulumi.set(self, "service_principal_id", value)
55
63
 
56
- @property
64
+ @_builtins.property
57
65
  @pulumi.getter(name="displayName")
58
- def display_name(self) -> Optional[pulumi.Input[str]]:
66
+ def display_name(self) -> Optional[pulumi.Input[_builtins.str]]:
59
67
  """
60
68
  A display name for the password.
61
69
  """
62
70
  return pulumi.get(self, "display_name")
63
71
 
64
72
  @display_name.setter
65
- def display_name(self, value: Optional[pulumi.Input[str]]):
73
+ def display_name(self, value: Optional[pulumi.Input[_builtins.str]]):
66
74
  pulumi.set(self, "display_name", value)
67
75
 
68
- @property
76
+ @_builtins.property
69
77
  @pulumi.getter(name="endDate")
70
- def end_date(self) -> Optional[pulumi.Input[str]]:
78
+ def end_date(self) -> Optional[pulumi.Input[_builtins.str]]:
71
79
  """
72
80
  The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
73
81
  """
74
82
  return pulumi.get(self, "end_date")
75
83
 
76
84
  @end_date.setter
77
- def end_date(self, value: Optional[pulumi.Input[str]]):
85
+ def end_date(self, value: Optional[pulumi.Input[_builtins.str]]):
78
86
  pulumi.set(self, "end_date", value)
79
87
 
80
- @property
88
+ @_builtins.property
81
89
  @pulumi.getter(name="endDateRelative")
82
- def end_date_relative(self) -> Optional[pulumi.Input[str]]:
90
+ @_utilities.deprecated("""The `end_date_relative` property is deprecated and will be removed in a future version of the AzureAD provider. Please instead use the Terraform `timeadd()` function to calculate a value for the `end_date` property.""")
91
+ def end_date_relative(self) -> Optional[pulumi.Input[_builtins.str]]:
83
92
  """
84
93
  A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
85
94
  """
86
95
  return pulumi.get(self, "end_date_relative")
87
96
 
88
97
  @end_date_relative.setter
89
- def end_date_relative(self, value: Optional[pulumi.Input[str]]):
98
+ def end_date_relative(self, value: Optional[pulumi.Input[_builtins.str]]):
90
99
  pulumi.set(self, "end_date_relative", value)
91
100
 
92
- @property
101
+ @_builtins.property
93
102
  @pulumi.getter(name="rotateWhenChanged")
94
- def rotate_when_changed(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
103
+ def rotate_when_changed(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
95
104
  """
96
105
  A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
97
106
  """
98
107
  return pulumi.get(self, "rotate_when_changed")
99
108
 
100
109
  @rotate_when_changed.setter
101
- def rotate_when_changed(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
110
+ def rotate_when_changed(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
102
111
  pulumi.set(self, "rotate_when_changed", value)
103
112
 
104
- @property
113
+ @_builtins.property
105
114
  @pulumi.getter(name="startDate")
106
- def start_date(self) -> Optional[pulumi.Input[str]]:
115
+ def start_date(self) -> Optional[pulumi.Input[_builtins.str]]:
107
116
  """
108
117
  The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
109
118
  """
110
119
  return pulumi.get(self, "start_date")
111
120
 
112
121
  @start_date.setter
113
- def start_date(self, value: Optional[pulumi.Input[str]]):
122
+ def start_date(self, value: Optional[pulumi.Input[_builtins.str]]):
114
123
  pulumi.set(self, "start_date", value)
115
124
 
116
125
 
117
126
  @pulumi.input_type
118
127
  class _ServicePrincipalPasswordState:
119
128
  def __init__(__self__, *,
120
- display_name: Optional[pulumi.Input[str]] = None,
121
- end_date: Optional[pulumi.Input[str]] = None,
122
- end_date_relative: Optional[pulumi.Input[str]] = None,
123
- key_id: Optional[pulumi.Input[str]] = None,
124
- rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
125
- service_principal_id: Optional[pulumi.Input[str]] = None,
126
- start_date: Optional[pulumi.Input[str]] = None,
127
- value: Optional[pulumi.Input[str]] = None):
129
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
130
+ end_date: Optional[pulumi.Input[_builtins.str]] = None,
131
+ end_date_relative: Optional[pulumi.Input[_builtins.str]] = None,
132
+ key_id: Optional[pulumi.Input[_builtins.str]] = None,
133
+ rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
134
+ service_principal_id: Optional[pulumi.Input[_builtins.str]] = None,
135
+ start_date: Optional[pulumi.Input[_builtins.str]] = None,
136
+ value: Optional[pulumi.Input[_builtins.str]] = None):
128
137
  """
129
138
  Input properties used for looking up and filtering ServicePrincipalPassword resources.
130
- :param pulumi.Input[str] display_name: A display name for the password.
131
- :param pulumi.Input[str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
132
- :param pulumi.Input[str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
133
- :param pulumi.Input[str] key_id: A UUID used to uniquely identify this password credential.
134
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
135
- :param pulumi.Input[str] service_principal_id: The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
136
- :param pulumi.Input[str] start_date: The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
137
- :param pulumi.Input[str] value: The password for this service principal, which is generated by Azure Active Directory.
139
+ :param pulumi.Input[_builtins.str] display_name: A display name for the password.
140
+ :param pulumi.Input[_builtins.str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
141
+ :param pulumi.Input[_builtins.str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
142
+ :param pulumi.Input[_builtins.str] key_id: A UUID used to uniquely identify this password credential.
143
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
144
+ :param pulumi.Input[_builtins.str] service_principal_id: The ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
145
+ :param pulumi.Input[_builtins.str] start_date: The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
146
+ :param pulumi.Input[_builtins.str] value: The password for this service principal, which is generated by Azure Active Directory.
138
147
  """
139
148
  if display_name is not None:
140
149
  pulumi.set(__self__, "display_name", display_name)
141
150
  if end_date is not None:
142
151
  pulumi.set(__self__, "end_date", end_date)
152
+ if end_date_relative is not None:
153
+ warnings.warn("""The `end_date_relative` property is deprecated and will be removed in a future version of the AzureAD provider. Please instead use the Terraform `timeadd()` function to calculate a value for the `end_date` property.""", DeprecationWarning)
154
+ pulumi.log.warn("""end_date_relative is deprecated: The `end_date_relative` property is deprecated and will be removed in a future version of the AzureAD provider. Please instead use the Terraform `timeadd()` function to calculate a value for the `end_date` property.""")
143
155
  if end_date_relative is not None:
144
156
  pulumi.set(__self__, "end_date_relative", end_date_relative)
145
157
  if key_id is not None:
@@ -153,114 +165,116 @@ class _ServicePrincipalPasswordState:
153
165
  if value is not None:
154
166
  pulumi.set(__self__, "value", value)
155
167
 
156
- @property
168
+ @_builtins.property
157
169
  @pulumi.getter(name="displayName")
158
- def display_name(self) -> Optional[pulumi.Input[str]]:
170
+ def display_name(self) -> Optional[pulumi.Input[_builtins.str]]:
159
171
  """
160
172
  A display name for the password.
161
173
  """
162
174
  return pulumi.get(self, "display_name")
163
175
 
164
176
  @display_name.setter
165
- def display_name(self, value: Optional[pulumi.Input[str]]):
177
+ def display_name(self, value: Optional[pulumi.Input[_builtins.str]]):
166
178
  pulumi.set(self, "display_name", value)
167
179
 
168
- @property
180
+ @_builtins.property
169
181
  @pulumi.getter(name="endDate")
170
- def end_date(self) -> Optional[pulumi.Input[str]]:
182
+ def end_date(self) -> Optional[pulumi.Input[_builtins.str]]:
171
183
  """
172
184
  The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
173
185
  """
174
186
  return pulumi.get(self, "end_date")
175
187
 
176
188
  @end_date.setter
177
- def end_date(self, value: Optional[pulumi.Input[str]]):
189
+ def end_date(self, value: Optional[pulumi.Input[_builtins.str]]):
178
190
  pulumi.set(self, "end_date", value)
179
191
 
180
- @property
192
+ @_builtins.property
181
193
  @pulumi.getter(name="endDateRelative")
182
- def end_date_relative(self) -> Optional[pulumi.Input[str]]:
194
+ @_utilities.deprecated("""The `end_date_relative` property is deprecated and will be removed in a future version of the AzureAD provider. Please instead use the Terraform `timeadd()` function to calculate a value for the `end_date` property.""")
195
+ def end_date_relative(self) -> Optional[pulumi.Input[_builtins.str]]:
183
196
  """
184
197
  A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
185
198
  """
186
199
  return pulumi.get(self, "end_date_relative")
187
200
 
188
201
  @end_date_relative.setter
189
- def end_date_relative(self, value: Optional[pulumi.Input[str]]):
202
+ def end_date_relative(self, value: Optional[pulumi.Input[_builtins.str]]):
190
203
  pulumi.set(self, "end_date_relative", value)
191
204
 
192
- @property
205
+ @_builtins.property
193
206
  @pulumi.getter(name="keyId")
194
- def key_id(self) -> Optional[pulumi.Input[str]]:
207
+ def key_id(self) -> Optional[pulumi.Input[_builtins.str]]:
195
208
  """
196
209
  A UUID used to uniquely identify this password credential.
197
210
  """
198
211
  return pulumi.get(self, "key_id")
199
212
 
200
213
  @key_id.setter
201
- def key_id(self, value: Optional[pulumi.Input[str]]):
214
+ def key_id(self, value: Optional[pulumi.Input[_builtins.str]]):
202
215
  pulumi.set(self, "key_id", value)
203
216
 
204
- @property
217
+ @_builtins.property
205
218
  @pulumi.getter(name="rotateWhenChanged")
206
- def rotate_when_changed(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
219
+ def rotate_when_changed(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
207
220
  """
208
221
  A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
209
222
  """
210
223
  return pulumi.get(self, "rotate_when_changed")
211
224
 
212
225
  @rotate_when_changed.setter
213
- def rotate_when_changed(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
226
+ def rotate_when_changed(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
214
227
  pulumi.set(self, "rotate_when_changed", value)
215
228
 
216
- @property
229
+ @_builtins.property
217
230
  @pulumi.getter(name="servicePrincipalId")
218
- def service_principal_id(self) -> Optional[pulumi.Input[str]]:
231
+ def service_principal_id(self) -> Optional[pulumi.Input[_builtins.str]]:
219
232
  """
220
- The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
233
+ The ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
221
234
  """
222
235
  return pulumi.get(self, "service_principal_id")
223
236
 
224
237
  @service_principal_id.setter
225
- def service_principal_id(self, value: Optional[pulumi.Input[str]]):
238
+ def service_principal_id(self, value: Optional[pulumi.Input[_builtins.str]]):
226
239
  pulumi.set(self, "service_principal_id", value)
227
240
 
228
- @property
241
+ @_builtins.property
229
242
  @pulumi.getter(name="startDate")
230
- def start_date(self) -> Optional[pulumi.Input[str]]:
243
+ def start_date(self) -> Optional[pulumi.Input[_builtins.str]]:
231
244
  """
232
245
  The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
233
246
  """
234
247
  return pulumi.get(self, "start_date")
235
248
 
236
249
  @start_date.setter
237
- def start_date(self, value: Optional[pulumi.Input[str]]):
250
+ def start_date(self, value: Optional[pulumi.Input[_builtins.str]]):
238
251
  pulumi.set(self, "start_date", value)
239
252
 
240
- @property
253
+ @_builtins.property
241
254
  @pulumi.getter
242
- def value(self) -> Optional[pulumi.Input[str]]:
255
+ def value(self) -> Optional[pulumi.Input[_builtins.str]]:
243
256
  """
244
257
  The password for this service principal, which is generated by Azure Active Directory.
245
258
  """
246
259
  return pulumi.get(self, "value")
247
260
 
248
261
  @value.setter
249
- def value(self, value: Optional[pulumi.Input[str]]):
262
+ def value(self, value: Optional[pulumi.Input[_builtins.str]]):
250
263
  pulumi.set(self, "value", value)
251
264
 
252
265
 
266
+ @pulumi.type_token("azuread:index/servicePrincipalPassword:ServicePrincipalPassword")
253
267
  class ServicePrincipalPassword(pulumi.CustomResource):
254
268
  @overload
255
269
  def __init__(__self__,
256
270
  resource_name: str,
257
271
  opts: Optional[pulumi.ResourceOptions] = None,
258
- display_name: Optional[pulumi.Input[str]] = None,
259
- end_date: Optional[pulumi.Input[str]] = None,
260
- end_date_relative: Optional[pulumi.Input[str]] = None,
261
- rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
262
- service_principal_id: Optional[pulumi.Input[str]] = None,
263
- start_date: Optional[pulumi.Input[str]] = None,
272
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
273
+ end_date: Optional[pulumi.Input[_builtins.str]] = None,
274
+ end_date_relative: Optional[pulumi.Input[_builtins.str]] = None,
275
+ rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
276
+ service_principal_id: Optional[pulumi.Input[_builtins.str]] = None,
277
+ start_date: Optional[pulumi.Input[_builtins.str]] = None,
264
278
  __props__=None):
265
279
  """
266
280
  ## Example Usage
@@ -271,9 +285,9 @@ class ServicePrincipalPassword(pulumi.CustomResource):
271
285
  import pulumi
272
286
  import pulumi_azuread as azuread
273
287
 
274
- example_application = azuread.Application("exampleApplication", display_name="example")
275
- example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id)
276
- example_service_principal_password = azuread.ServicePrincipalPassword("exampleServicePrincipalPassword", service_principal_id=example_service_principal.object_id)
288
+ example = azuread.Application("example", display_name="example")
289
+ example_service_principal = azuread.ServicePrincipal("example", client_id=example.client_id)
290
+ example_service_principal_password = azuread.ServicePrincipalPassword("example", service_principal_id=example_service_principal.id)
277
291
  ```
278
292
 
279
293
  *Time-based rotation*
@@ -283,11 +297,11 @@ class ServicePrincipalPassword(pulumi.CustomResource):
283
297
  import pulumi_azuread as azuread
284
298
  import pulumiverse_time as time
285
299
 
286
- example_application = azuread.Application("exampleApplication", display_name="example")
287
- example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id)
288
- example_rotating = time.Rotating("exampleRotating", rotation_days=7)
289
- example_service_principal_password = azuread.ServicePrincipalPassword("exampleServicePrincipalPassword",
290
- service_principal_id=example_service_principal.object_id,
300
+ example = azuread.Application("example", display_name="example")
301
+ example_service_principal = azuread.ServicePrincipal("example", client_id=example.client_id)
302
+ example_rotating = time.Rotating("example", rotation_days=7)
303
+ example_service_principal_password = azuread.ServicePrincipalPassword("example",
304
+ service_principal_id=example_service_principal.id,
291
305
  rotate_when_changed={
292
306
  "rotation": example_rotating.id,
293
307
  })
@@ -299,12 +313,12 @@ class ServicePrincipalPassword(pulumi.CustomResource):
299
313
 
300
314
  :param str resource_name: The name of the resource.
301
315
  :param pulumi.ResourceOptions opts: Options for the resource.
302
- :param pulumi.Input[str] display_name: A display name for the password.
303
- :param pulumi.Input[str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
304
- :param pulumi.Input[str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
305
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
306
- :param pulumi.Input[str] service_principal_id: The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
307
- :param pulumi.Input[str] start_date: The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
316
+ :param pulumi.Input[_builtins.str] display_name: A display name for the password.
317
+ :param pulumi.Input[_builtins.str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
318
+ :param pulumi.Input[_builtins.str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
319
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
320
+ :param pulumi.Input[_builtins.str] service_principal_id: The ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
321
+ :param pulumi.Input[_builtins.str] start_date: The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
308
322
  """
309
323
  ...
310
324
  @overload
@@ -321,9 +335,9 @@ class ServicePrincipalPassword(pulumi.CustomResource):
321
335
  import pulumi
322
336
  import pulumi_azuread as azuread
323
337
 
324
- example_application = azuread.Application("exampleApplication", display_name="example")
325
- example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id)
326
- example_service_principal_password = azuread.ServicePrincipalPassword("exampleServicePrincipalPassword", service_principal_id=example_service_principal.object_id)
338
+ example = azuread.Application("example", display_name="example")
339
+ example_service_principal = azuread.ServicePrincipal("example", client_id=example.client_id)
340
+ example_service_principal_password = azuread.ServicePrincipalPassword("example", service_principal_id=example_service_principal.id)
327
341
  ```
328
342
 
329
343
  *Time-based rotation*
@@ -333,11 +347,11 @@ class ServicePrincipalPassword(pulumi.CustomResource):
333
347
  import pulumi_azuread as azuread
334
348
  import pulumiverse_time as time
335
349
 
336
- example_application = azuread.Application("exampleApplication", display_name="example")
337
- example_service_principal = azuread.ServicePrincipal("exampleServicePrincipal", application_id=example_application.application_id)
338
- example_rotating = time.Rotating("exampleRotating", rotation_days=7)
339
- example_service_principal_password = azuread.ServicePrincipalPassword("exampleServicePrincipalPassword",
340
- service_principal_id=example_service_principal.object_id,
350
+ example = azuread.Application("example", display_name="example")
351
+ example_service_principal = azuread.ServicePrincipal("example", client_id=example.client_id)
352
+ example_rotating = time.Rotating("example", rotation_days=7)
353
+ example_service_principal_password = azuread.ServicePrincipalPassword("example",
354
+ service_principal_id=example_service_principal.id,
341
355
  rotate_when_changed={
342
356
  "rotation": example_rotating.id,
343
357
  })
@@ -362,12 +376,12 @@ class ServicePrincipalPassword(pulumi.CustomResource):
362
376
  def _internal_init(__self__,
363
377
  resource_name: str,
364
378
  opts: Optional[pulumi.ResourceOptions] = None,
365
- display_name: Optional[pulumi.Input[str]] = None,
366
- end_date: Optional[pulumi.Input[str]] = None,
367
- end_date_relative: Optional[pulumi.Input[str]] = None,
368
- rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
369
- service_principal_id: Optional[pulumi.Input[str]] = None,
370
- start_date: Optional[pulumi.Input[str]] = None,
379
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
380
+ end_date: Optional[pulumi.Input[_builtins.str]] = None,
381
+ end_date_relative: Optional[pulumi.Input[_builtins.str]] = None,
382
+ rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
383
+ service_principal_id: Optional[pulumi.Input[_builtins.str]] = None,
384
+ start_date: Optional[pulumi.Input[_builtins.str]] = None,
371
385
  __props__=None):
372
386
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
373
387
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -399,14 +413,14 @@ class ServicePrincipalPassword(pulumi.CustomResource):
399
413
  def get(resource_name: str,
400
414
  id: pulumi.Input[str],
401
415
  opts: Optional[pulumi.ResourceOptions] = None,
402
- display_name: Optional[pulumi.Input[str]] = None,
403
- end_date: Optional[pulumi.Input[str]] = None,
404
- end_date_relative: Optional[pulumi.Input[str]] = None,
405
- key_id: Optional[pulumi.Input[str]] = None,
406
- rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
407
- service_principal_id: Optional[pulumi.Input[str]] = None,
408
- start_date: Optional[pulumi.Input[str]] = None,
409
- value: Optional[pulumi.Input[str]] = None) -> 'ServicePrincipalPassword':
416
+ display_name: Optional[pulumi.Input[_builtins.str]] = None,
417
+ end_date: Optional[pulumi.Input[_builtins.str]] = None,
418
+ end_date_relative: Optional[pulumi.Input[_builtins.str]] = None,
419
+ key_id: Optional[pulumi.Input[_builtins.str]] = None,
420
+ rotate_when_changed: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
421
+ service_principal_id: Optional[pulumi.Input[_builtins.str]] = None,
422
+ start_date: Optional[pulumi.Input[_builtins.str]] = None,
423
+ value: Optional[pulumi.Input[_builtins.str]] = None) -> 'ServicePrincipalPassword':
410
424
  """
411
425
  Get an existing ServicePrincipalPassword resource's state with the given name, id, and optional extra
412
426
  properties used to qualify the lookup.
@@ -414,14 +428,14 @@ class ServicePrincipalPassword(pulumi.CustomResource):
414
428
  :param str resource_name: The unique name of the resulting resource.
415
429
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
416
430
  :param pulumi.ResourceOptions opts: Options for the resource.
417
- :param pulumi.Input[str] display_name: A display name for the password.
418
- :param pulumi.Input[str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
419
- :param pulumi.Input[str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
420
- :param pulumi.Input[str] key_id: A UUID used to uniquely identify this password credential.
421
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
422
- :param pulumi.Input[str] service_principal_id: The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
423
- :param pulumi.Input[str] start_date: The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
424
- :param pulumi.Input[str] value: The password for this service principal, which is generated by Azure Active Directory.
431
+ :param pulumi.Input[_builtins.str] display_name: A display name for the password.
432
+ :param pulumi.Input[_builtins.str] end_date: The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
433
+ :param pulumi.Input[_builtins.str] end_date_relative: A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
434
+ :param pulumi.Input[_builtins.str] key_id: A UUID used to uniquely identify this password credential.
435
+ :param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] rotate_when_changed: A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
436
+ :param pulumi.Input[_builtins.str] service_principal_id: The ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
437
+ :param pulumi.Input[_builtins.str] start_date: The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
438
+ :param pulumi.Input[_builtins.str] value: The password for this service principal, which is generated by Azure Active Directory.
425
439
  """
426
440
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
427
441
 
@@ -437,65 +451,66 @@ class ServicePrincipalPassword(pulumi.CustomResource):
437
451
  __props__.__dict__["value"] = value
438
452
  return ServicePrincipalPassword(resource_name, opts=opts, __props__=__props__)
439
453
 
440
- @property
454
+ @_builtins.property
441
455
  @pulumi.getter(name="displayName")
442
- def display_name(self) -> pulumi.Output[str]:
456
+ def display_name(self) -> pulumi.Output[_builtins.str]:
443
457
  """
444
458
  A display name for the password.
445
459
  """
446
460
  return pulumi.get(self, "display_name")
447
461
 
448
- @property
462
+ @_builtins.property
449
463
  @pulumi.getter(name="endDate")
450
- def end_date(self) -> pulumi.Output[str]:
464
+ def end_date(self) -> pulumi.Output[_builtins.str]:
451
465
  """
452
466
  The end date until which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). Changing this field forces a new resource to be created.
453
467
  """
454
468
  return pulumi.get(self, "end_date")
455
469
 
456
- @property
470
+ @_builtins.property
457
471
  @pulumi.getter(name="endDateRelative")
458
- def end_date_relative(self) -> pulumi.Output[Optional[str]]:
472
+ @_utilities.deprecated("""The `end_date_relative` property is deprecated and will be removed in a future version of the AzureAD provider. Please instead use the Terraform `timeadd()` function to calculate a value for the `end_date` property.""")
473
+ def end_date_relative(self) -> pulumi.Output[Optional[_builtins.str]]:
459
474
  """
460
475
  A relative duration for which the password is valid until, for example `240h` (10 days) or `2400h30m`. Changing this field forces a new resource to be created.
461
476
  """
462
477
  return pulumi.get(self, "end_date_relative")
463
478
 
464
- @property
479
+ @_builtins.property
465
480
  @pulumi.getter(name="keyId")
466
- def key_id(self) -> pulumi.Output[str]:
481
+ def key_id(self) -> pulumi.Output[_builtins.str]:
467
482
  """
468
483
  A UUID used to uniquely identify this password credential.
469
484
  """
470
485
  return pulumi.get(self, "key_id")
471
486
 
472
- @property
487
+ @_builtins.property
473
488
  @pulumi.getter(name="rotateWhenChanged")
474
- def rotate_when_changed(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
489
+ def rotate_when_changed(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
475
490
  """
476
491
  A map of arbitrary key/value pairs that will force recreation of the password when they change, enabling password rotation based on external conditions such as a rotating timestamp. Changing this forces a new resource to be created.
477
492
  """
478
493
  return pulumi.get(self, "rotate_when_changed")
479
494
 
480
- @property
495
+ @_builtins.property
481
496
  @pulumi.getter(name="servicePrincipalId")
482
- def service_principal_id(self) -> pulumi.Output[str]:
497
+ def service_principal_id(self) -> pulumi.Output[_builtins.str]:
483
498
  """
484
- The object ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
499
+ The ID of the service principal for which this password should be created. Changing this field forces a new resource to be created.
485
500
  """
486
501
  return pulumi.get(self, "service_principal_id")
487
502
 
488
- @property
503
+ @_builtins.property
489
504
  @pulumi.getter(name="startDate")
490
- def start_date(self) -> pulumi.Output[str]:
505
+ def start_date(self) -> pulumi.Output[_builtins.str]:
491
506
  """
492
507
  The start date from which the password is valid, formatted as an RFC3339 date string (e.g. `2018-01-01T01:02:03Z`). If this isn't specified, the current date is used. Changing this field forces a new resource to be created.
493
508
  """
494
509
  return pulumi.get(self, "start_date")
495
510
 
496
- @property
511
+ @_builtins.property
497
512
  @pulumi.getter
498
- def value(self) -> pulumi.Output[str]:
513
+ def value(self) -> pulumi.Output[_builtins.str]:
499
514
  """
500
515
  The password for this service principal, which is generated by Azure Active Directory.
501
516
  """