pulumi-spotinst 3.83.0a1720524486__py3-none-any.whl → 3.128.0a1767140134__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.
Files changed (77) hide show
  1. pulumi_spotinst/__init__.py +38 -1
  2. pulumi_spotinst/_inputs.py +4082 -846
  3. pulumi_spotinst/_utilities.py +15 -10
  4. pulumi_spotinst/account.py +171 -0
  5. pulumi_spotinst/aws/__init__.py +2 -1
  6. pulumi_spotinst/aws/_inputs.py +7292 -2871
  7. pulumi_spotinst/aws/account.py +25 -19
  8. pulumi_spotinst/aws/beanstalk.py +272 -190
  9. pulumi_spotinst/aws/credentials.py +42 -36
  10. pulumi_spotinst/aws/elastigroup.py +1321 -1176
  11. pulumi_spotinst/aws/managed_instance.py +633 -526
  12. pulumi_spotinst/aws/mr_scalar.py +827 -983
  13. pulumi_spotinst/aws/ocean.py +764 -570
  14. pulumi_spotinst/aws/ocean_extended_resource_definition.py +42 -36
  15. pulumi_spotinst/aws/ocean_launch_spec.py +580 -366
  16. pulumi_spotinst/aws/outputs.py +3421 -2205
  17. pulumi_spotinst/aws/suspension.py +51 -45
  18. pulumi_spotinst/azure/__init__.py +2 -1
  19. pulumi_spotinst/azure/_inputs.py +1492 -434
  20. pulumi_spotinst/azure/ocean_np.py +518 -464
  21. pulumi_spotinst/azure/ocean_np_virtual_node_group.py +479 -408
  22. pulumi_spotinst/azure/outputs.py +840 -345
  23. pulumi_spotinst/config/__init__.py +2 -1
  24. pulumi_spotinst/config/__init__.pyi +7 -2
  25. pulumi_spotinst/config/vars.py +11 -6
  26. pulumi_spotinst/credentials_azure.py +423 -0
  27. pulumi_spotinst/credentials_gcp.py +632 -0
  28. pulumi_spotinst/data_integration.py +58 -52
  29. pulumi_spotinst/ecs/__init__.py +2 -1
  30. pulumi_spotinst/ecs/_inputs.py +1164 -469
  31. pulumi_spotinst/ecs/ocean.py +711 -446
  32. pulumi_spotinst/ecs/ocean_launch_spec.py +367 -341
  33. pulumi_spotinst/ecs/outputs.py +463 -374
  34. pulumi_spotinst/elastigroup_azure_v3.py +985 -197
  35. pulumi_spotinst/gcp/__init__.py +2 -1
  36. pulumi_spotinst/gcp/_inputs.py +1061 -381
  37. pulumi_spotinst/gcp/elastigroup.py +885 -567
  38. pulumi_spotinst/gcp/outputs.py +542 -301
  39. pulumi_spotinst/gke/__init__.py +2 -1
  40. pulumi_spotinst/gke/_inputs.py +2071 -715
  41. pulumi_spotinst/gke/elastigroup.py +558 -382
  42. pulumi_spotinst/gke/ocean_import.py +379 -255
  43. pulumi_spotinst/gke/ocean_launch_spec.py +501 -384
  44. pulumi_spotinst/gke/ocean_launch_spec_import.py +42 -36
  45. pulumi_spotinst/gke/outputs.py +1063 -528
  46. pulumi_spotinst/health_check.py +116 -70
  47. pulumi_spotinst/notification_center.py +344 -0
  48. pulumi_spotinst/ocean_right_sizing_rule.py +515 -95
  49. pulumi_spotinst/oceancd/__init__.py +2 -1
  50. pulumi_spotinst/oceancd/_inputs.py +1709 -651
  51. pulumi_spotinst/oceancd/outputs.py +537 -526
  52. pulumi_spotinst/oceancd/rollout_spec.py +65 -59
  53. pulumi_spotinst/oceancd/strategy.py +37 -31
  54. pulumi_spotinst/oceancd/verification_provider.py +128 -122
  55. pulumi_spotinst/oceancd/verification_template.py +265 -259
  56. pulumi_spotinst/organization/__init__.py +2 -1
  57. pulumi_spotinst/organization/_inputs.py +151 -57
  58. pulumi_spotinst/organization/outputs.py +51 -46
  59. pulumi_spotinst/organization/policy.py +76 -70
  60. pulumi_spotinst/organization/programmatic_user.py +83 -77
  61. pulumi_spotinst/organization/user.py +126 -120
  62. pulumi_spotinst/organization/user_group.py +75 -69
  63. pulumi_spotinst/outputs.py +3005 -832
  64. pulumi_spotinst/provider.py +66 -40
  65. pulumi_spotinst/pulumi-plugin.json +1 -1
  66. pulumi_spotinst/spark/__init__.py +2 -1
  67. pulumi_spotinst/spark/_inputs.py +290 -81
  68. pulumi_spotinst/spark/ocean.py +169 -115
  69. pulumi_spotinst/spark/ocean_virtual_node_group.py +34 -28
  70. pulumi_spotinst/spark/outputs.py +136 -66
  71. pulumi_spotinst/stateful_node_azure.py +820 -784
  72. pulumi_spotinst/subscription.py +93 -87
  73. {pulumi_spotinst-3.83.0a1720524486.dist-info → pulumi_spotinst-3.128.0a1767140134.dist-info}/METADATA +7 -6
  74. pulumi_spotinst-3.128.0a1767140134.dist-info/RECORD +77 -0
  75. {pulumi_spotinst-3.83.0a1720524486.dist-info → pulumi_spotinst-3.128.0a1767140134.dist-info}/WHEEL +1 -1
  76. pulumi_spotinst-3.83.0a1720524486.dist-info/RECORD +0 -73
  77. {pulumi_spotinst-3.83.0a1720524486.dist-info → pulumi_spotinst-3.128.0a1767140134.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,8 @@
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 builtins as _builtins
5
6
  from .. import _utilities
6
7
  import typing
7
8
  # Export this package's modules as members:
@@ -1,23 +1,45 @@
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__ = [
13
18
  'PolicyPolicyContentArgs',
19
+ 'PolicyPolicyContentArgsDict',
14
20
  'PolicyPolicyContentStatementArgs',
21
+ 'PolicyPolicyContentStatementArgsDict',
15
22
  'ProgrammaticUserAccountArgs',
23
+ 'ProgrammaticUserAccountArgsDict',
16
24
  'ProgrammaticUserPolicyArgs',
25
+ 'ProgrammaticUserPolicyArgsDict',
17
26
  'UserGroupPolicyArgs',
27
+ 'UserGroupPolicyArgsDict',
18
28
  'UserPolicyArgs',
29
+ 'UserPolicyArgsDict',
19
30
  ]
20
31
 
32
+ MYPY = False
33
+
34
+ if not MYPY:
35
+ class PolicyPolicyContentArgsDict(TypedDict):
36
+ statements: pulumi.Input[Sequence[pulumi.Input['PolicyPolicyContentStatementArgsDict']]]
37
+ """
38
+ List of permissions statements.
39
+ """
40
+ elif False:
41
+ PolicyPolicyContentArgsDict: TypeAlias = Mapping[str, Any]
42
+
21
43
  @pulumi.input_type
22
44
  class PolicyPolicyContentArgs:
23
45
  def __init__(__self__, *,
@@ -27,7 +49,7 @@ class PolicyPolicyContentArgs:
27
49
  """
28
50
  pulumi.set(__self__, "statements", statements)
29
51
 
30
- @property
52
+ @_builtins.property
31
53
  @pulumi.getter
32
54
  def statements(self) -> pulumi.Input[Sequence[pulumi.Input['PolicyPolicyContentStatementArgs']]]:
33
55
  """
@@ -40,25 +62,43 @@ class PolicyPolicyContentArgs:
40
62
  pulumi.set(self, "statements", value)
41
63
 
42
64
 
65
+ if not MYPY:
66
+ class PolicyPolicyContentStatementArgsDict(TypedDict):
67
+ actions: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]
68
+ """
69
+ Set a list of required actions for this permissions statement.
70
+ Full list of actions can be found in [https://docs.spot.io/account-user-management/user-management/access-policies-actions/](https://docs.spot.io/account-user-management/user-management/access-policies-actions/).
71
+ """
72
+ effect: pulumi.Input[_builtins.str]
73
+ """
74
+ Valid values "ALLOW", "DENY".
75
+ """
76
+ resources: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]
77
+ """
78
+ Set a list of resources IDs. In order to include all resources in this statement - use "*".
79
+ """
80
+ elif False:
81
+ PolicyPolicyContentStatementArgsDict: TypeAlias = Mapping[str, Any]
82
+
43
83
  @pulumi.input_type
44
84
  class PolicyPolicyContentStatementArgs:
45
85
  def __init__(__self__, *,
46
- actions: pulumi.Input[Sequence[pulumi.Input[str]]],
47
- effect: pulumi.Input[str],
48
- resources: pulumi.Input[Sequence[pulumi.Input[str]]]):
86
+ actions: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
87
+ effect: pulumi.Input[_builtins.str],
88
+ resources: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
49
89
  """
50
- :param pulumi.Input[Sequence[pulumi.Input[str]]] actions: Set a list of required actions for this permissions statement.
90
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] actions: Set a list of required actions for this permissions statement.
51
91
  Full list of actions can be found in [https://docs.spot.io/account-user-management/user-management/access-policies-actions/](https://docs.spot.io/account-user-management/user-management/access-policies-actions/).
52
- :param pulumi.Input[str] effect: Valid values "ALLOW", "DENY".
53
- :param pulumi.Input[Sequence[pulumi.Input[str]]] resources: Set a list of resources IDs. In order to include all resources in this statement - use "*".
92
+ :param pulumi.Input[_builtins.str] effect: Valid values "ALLOW", "DENY".
93
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] resources: Set a list of resources IDs. In order to include all resources in this statement - use "*".
54
94
  """
55
95
  pulumi.set(__self__, "actions", actions)
56
96
  pulumi.set(__self__, "effect", effect)
57
97
  pulumi.set(__self__, "resources", resources)
58
98
 
59
- @property
99
+ @_builtins.property
60
100
  @pulumi.getter
61
- def actions(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
101
+ def actions(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
62
102
  """
63
103
  Set a list of required actions for this permissions statement.
64
104
  Full list of actions can be found in [https://docs.spot.io/account-user-management/user-management/access-policies-actions/](https://docs.spot.io/account-user-management/user-management/access-policies-actions/).
@@ -66,62 +106,76 @@ class PolicyPolicyContentStatementArgs:
66
106
  return pulumi.get(self, "actions")
67
107
 
68
108
  @actions.setter
69
- def actions(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
109
+ def actions(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
70
110
  pulumi.set(self, "actions", value)
71
111
 
72
- @property
112
+ @_builtins.property
73
113
  @pulumi.getter
74
- def effect(self) -> pulumi.Input[str]:
114
+ def effect(self) -> pulumi.Input[_builtins.str]:
75
115
  """
76
116
  Valid values "ALLOW", "DENY".
77
117
  """
78
118
  return pulumi.get(self, "effect")
79
119
 
80
120
  @effect.setter
81
- def effect(self, value: pulumi.Input[str]):
121
+ def effect(self, value: pulumi.Input[_builtins.str]):
82
122
  pulumi.set(self, "effect", value)
83
123
 
84
- @property
124
+ @_builtins.property
85
125
  @pulumi.getter
86
- def resources(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
126
+ def resources(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
87
127
  """
88
128
  Set a list of resources IDs. In order to include all resources in this statement - use "*".
89
129
  """
90
130
  return pulumi.get(self, "resources")
91
131
 
92
132
  @resources.setter
93
- def resources(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
133
+ def resources(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
94
134
  pulumi.set(self, "resources", value)
95
135
 
96
136
 
137
+ if not MYPY:
138
+ class ProgrammaticUserAccountArgsDict(TypedDict):
139
+ account_id: pulumi.Input[_builtins.str]
140
+ """
141
+ Account ID the programmatic user will have access to.
142
+ """
143
+ account_role: pulumi.Input[_builtins.str]
144
+ """
145
+ (Enum: `"viewer", "editor") Role to be associated with the
146
+ programmatic user for this account.
147
+ """
148
+ elif False:
149
+ ProgrammaticUserAccountArgsDict: TypeAlias = Mapping[str, Any]
150
+
97
151
  @pulumi.input_type
98
152
  class ProgrammaticUserAccountArgs:
99
153
  def __init__(__self__, *,
100
- account_id: pulumi.Input[str],
101
- account_role: pulumi.Input[str]):
154
+ account_id: pulumi.Input[_builtins.str],
155
+ account_role: pulumi.Input[_builtins.str]):
102
156
  """
103
- :param pulumi.Input[str] account_id: Account ID the programmatic user will have access to.
104
- :param pulumi.Input[str] account_role: (Enum: `"viewer", "editor") Role to be associated with the
157
+ :param pulumi.Input[_builtins.str] account_id: Account ID the programmatic user will have access to.
158
+ :param pulumi.Input[_builtins.str] account_role: (Enum: `"viewer", "editor") Role to be associated with the
105
159
  programmatic user for this account.
106
160
  """
107
161
  pulumi.set(__self__, "account_id", account_id)
108
162
  pulumi.set(__self__, "account_role", account_role)
109
163
 
110
- @property
164
+ @_builtins.property
111
165
  @pulumi.getter(name="accountId")
112
- def account_id(self) -> pulumi.Input[str]:
166
+ def account_id(self) -> pulumi.Input[_builtins.str]:
113
167
  """
114
168
  Account ID the programmatic user will have access to.
115
169
  """
116
170
  return pulumi.get(self, "account_id")
117
171
 
118
172
  @account_id.setter
119
- def account_id(self, value: pulumi.Input[str]):
173
+ def account_id(self, value: pulumi.Input[_builtins.str]):
120
174
  pulumi.set(self, "account_id", value)
121
175
 
122
- @property
176
+ @_builtins.property
123
177
  @pulumi.getter(name="accountRole")
124
- def account_role(self) -> pulumi.Input[str]:
178
+ def account_role(self) -> pulumi.Input[_builtins.str]:
125
179
  """
126
180
  (Enum: `"viewer", "editor") Role to be associated with the
127
181
  programmatic user for this account.
@@ -129,39 +183,53 @@ class ProgrammaticUserAccountArgs:
129
183
  return pulumi.get(self, "account_role")
130
184
 
131
185
  @account_role.setter
132
- def account_role(self, value: pulumi.Input[str]):
186
+ def account_role(self, value: pulumi.Input[_builtins.str]):
133
187
  pulumi.set(self, "account_role", value)
134
188
 
135
189
 
190
+ if not MYPY:
191
+ class ProgrammaticUserPolicyArgsDict(TypedDict):
192
+ policy_id: pulumi.Input[_builtins.str]
193
+ """
194
+ Policy ID the programmatic user will have access to.
195
+ """
196
+ policy_account_ids: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]
197
+ """
198
+ A list of the accounts that the policy should be
199
+ enforced for the user.
200
+ """
201
+ elif False:
202
+ ProgrammaticUserPolicyArgsDict: TypeAlias = Mapping[str, Any]
203
+
136
204
  @pulumi.input_type
137
205
  class ProgrammaticUserPolicyArgs:
138
206
  def __init__(__self__, *,
139
- policy_id: pulumi.Input[str],
140
- policy_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
207
+ policy_id: pulumi.Input[_builtins.str],
208
+ policy_account_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
141
209
  """
142
- :param pulumi.Input[str] policy_id: Policy ID the programmatic user will have access to.
143
- :param pulumi.Input[Sequence[pulumi.Input[str]]] policy_account_ids: A list of the accounts that the policy should be
210
+ :param pulumi.Input[_builtins.str] policy_id: Policy ID the programmatic user will have access to.
211
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] policy_account_ids: A list of the accounts that the policy should be
144
212
  enforced for the user.
145
213
  """
146
214
  pulumi.set(__self__, "policy_id", policy_id)
147
215
  if policy_account_ids is not None:
148
216
  pulumi.set(__self__, "policy_account_ids", policy_account_ids)
149
217
 
150
- @property
218
+ @_builtins.property
151
219
  @pulumi.getter(name="policyId")
152
- def policy_id(self) -> pulumi.Input[str]:
220
+ def policy_id(self) -> pulumi.Input[_builtins.str]:
153
221
  """
154
222
  Policy ID the programmatic user will have access to.
155
223
  """
156
224
  return pulumi.get(self, "policy_id")
157
225
 
158
226
  @policy_id.setter
159
- def policy_id(self, value: pulumi.Input[str]):
227
+ def policy_id(self, value: pulumi.Input[_builtins.str]):
160
228
  pulumi.set(self, "policy_id", value)
161
229
 
162
- @property
230
+ @_builtins.property
163
231
  @pulumi.getter(name="policyAccountIds")
164
- def policy_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
232
+ def policy_account_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
165
233
  """
166
234
  A list of the accounts that the policy should be
167
235
  enforced for the user.
@@ -169,27 +237,42 @@ class ProgrammaticUserPolicyArgs:
169
237
  return pulumi.get(self, "policy_account_ids")
170
238
 
171
239
  @policy_account_ids.setter
172
- def policy_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
240
+ def policy_account_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
173
241
  pulumi.set(self, "policy_account_ids", value)
174
242
 
175
243
 
244
+ if not MYPY:
245
+ class UserGroupPolicyArgsDict(TypedDict):
246
+ account_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]
247
+ """
248
+ A list of accounts to register with the assigned under the
249
+ given group (should be existing accounts only).
250
+ """
251
+ policy_id: pulumi.Input[_builtins.str]
252
+ """
253
+ A policy to register under the given group
254
+ (should be existing policy only).
255
+ """
256
+ elif False:
257
+ UserGroupPolicyArgsDict: TypeAlias = Mapping[str, Any]
258
+
176
259
  @pulumi.input_type
177
260
  class UserGroupPolicyArgs:
178
261
  def __init__(__self__, *,
179
- account_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
180
- policy_id: pulumi.Input[str]):
262
+ account_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
263
+ policy_id: pulumi.Input[_builtins.str]):
181
264
  """
182
- :param pulumi.Input[Sequence[pulumi.Input[str]]] account_ids: A list of accounts to register with the assigned under the
265
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] account_ids: A list of accounts to register with the assigned under the
183
266
  given group (should be existing accounts only).
184
- :param pulumi.Input[str] policy_id: A policy to register under the given group
267
+ :param pulumi.Input[_builtins.str] policy_id: A policy to register under the given group
185
268
  (should be existing policy only).
186
269
  """
187
270
  pulumi.set(__self__, "account_ids", account_ids)
188
271
  pulumi.set(__self__, "policy_id", policy_id)
189
272
 
190
- @property
273
+ @_builtins.property
191
274
  @pulumi.getter(name="accountIds")
192
- def account_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
275
+ def account_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
193
276
  """
194
277
  A list of accounts to register with the assigned under the
195
278
  given group (should be existing accounts only).
@@ -197,12 +280,12 @@ class UserGroupPolicyArgs:
197
280
  return pulumi.get(self, "account_ids")
198
281
 
199
282
  @account_ids.setter
200
- def account_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
283
+ def account_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
201
284
  pulumi.set(self, "account_ids", value)
202
285
 
203
- @property
286
+ @_builtins.property
204
287
  @pulumi.getter(name="policyId")
205
- def policy_id(self) -> pulumi.Input[str]:
288
+ def policy_id(self) -> pulumi.Input[_builtins.str]:
206
289
  """
207
290
  A policy to register under the given group
208
291
  (should be existing policy only).
@@ -210,34 +293,45 @@ class UserGroupPolicyArgs:
210
293
  return pulumi.get(self, "policy_id")
211
294
 
212
295
  @policy_id.setter
213
- def policy_id(self, value: pulumi.Input[str]):
296
+ def policy_id(self, value: pulumi.Input[_builtins.str]):
214
297
  pulumi.set(self, "policy_id", value)
215
298
 
216
299
 
300
+ if not MYPY:
301
+ class UserPolicyArgsDict(TypedDict):
302
+ policy_account_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]
303
+ policy_id: pulumi.Input[_builtins.str]
304
+ """
305
+ A policy to register under the given group
306
+ (should be existing policy only).
307
+ """
308
+ elif False:
309
+ UserPolicyArgsDict: TypeAlias = Mapping[str, Any]
310
+
217
311
  @pulumi.input_type
218
312
  class UserPolicyArgs:
219
313
  def __init__(__self__, *,
220
- policy_account_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
221
- policy_id: pulumi.Input[str]):
314
+ policy_account_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
315
+ policy_id: pulumi.Input[_builtins.str]):
222
316
  """
223
- :param pulumi.Input[str] policy_id: A policy to register under the given group
317
+ :param pulumi.Input[_builtins.str] policy_id: A policy to register under the given group
224
318
  (should be existing policy only).
225
319
  """
226
320
  pulumi.set(__self__, "policy_account_ids", policy_account_ids)
227
321
  pulumi.set(__self__, "policy_id", policy_id)
228
322
 
229
- @property
323
+ @_builtins.property
230
324
  @pulumi.getter(name="policyAccountIds")
231
- def policy_account_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
325
+ def policy_account_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
232
326
  return pulumi.get(self, "policy_account_ids")
233
327
 
234
328
  @policy_account_ids.setter
235
- def policy_account_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
329
+ def policy_account_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
236
330
  pulumi.set(self, "policy_account_ids", value)
237
331
 
238
- @property
332
+ @_builtins.property
239
333
  @pulumi.getter(name="policyId")
240
- def policy_id(self) -> pulumi.Input[str]:
334
+ def policy_id(self) -> pulumi.Input[_builtins.str]:
241
335
  """
242
336
  A policy to register under the given group
243
337
  (should be existing policy only).
@@ -245,7 +339,7 @@ class UserPolicyArgs:
245
339
  return pulumi.get(self, "policy_id")
246
340
 
247
341
  @policy_id.setter
248
- def policy_id(self, value: pulumi.Input[str]):
342
+ def policy_id(self, value: pulumi.Input[_builtins.str]):
249
343
  pulumi.set(self, "policy_id", value)
250
344
 
251
345
 
@@ -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
 
@@ -28,7 +33,7 @@ class PolicyPolicyContent(dict):
28
33
  """
29
34
  pulumi.set(__self__, "statements", statements)
30
35
 
31
- @property
36
+ @_builtins.property
32
37
  @pulumi.getter
33
38
  def statements(self) -> Sequence['outputs.PolicyPolicyContentStatement']:
34
39
  """
@@ -40,39 +45,39 @@ class PolicyPolicyContent(dict):
40
45
  @pulumi.output_type
41
46
  class PolicyPolicyContentStatement(dict):
42
47
  def __init__(__self__, *,
43
- actions: Sequence[str],
44
- effect: str,
45
- resources: Sequence[str]):
48
+ actions: Sequence[_builtins.str],
49
+ effect: _builtins.str,
50
+ resources: Sequence[_builtins.str]):
46
51
  """
47
- :param Sequence[str] actions: Set a list of required actions for this permissions statement.
52
+ :param Sequence[_builtins.str] actions: Set a list of required actions for this permissions statement.
48
53
  Full list of actions can be found in [https://docs.spot.io/account-user-management/user-management/access-policies-actions/](https://docs.spot.io/account-user-management/user-management/access-policies-actions/).
49
- :param str effect: Valid values "ALLOW", "DENY".
50
- :param Sequence[str] resources: Set a list of resources IDs. In order to include all resources in this statement - use "*".
54
+ :param _builtins.str effect: Valid values "ALLOW", "DENY".
55
+ :param Sequence[_builtins.str] resources: Set a list of resources IDs. In order to include all resources in this statement - use "*".
51
56
  """
52
57
  pulumi.set(__self__, "actions", actions)
53
58
  pulumi.set(__self__, "effect", effect)
54
59
  pulumi.set(__self__, "resources", resources)
55
60
 
56
- @property
61
+ @_builtins.property
57
62
  @pulumi.getter
58
- def actions(self) -> Sequence[str]:
63
+ def actions(self) -> Sequence[_builtins.str]:
59
64
  """
60
65
  Set a list of required actions for this permissions statement.
61
66
  Full list of actions can be found in [https://docs.spot.io/account-user-management/user-management/access-policies-actions/](https://docs.spot.io/account-user-management/user-management/access-policies-actions/).
62
67
  """
63
68
  return pulumi.get(self, "actions")
64
69
 
65
- @property
70
+ @_builtins.property
66
71
  @pulumi.getter
67
- def effect(self) -> str:
72
+ def effect(self) -> _builtins.str:
68
73
  """
69
74
  Valid values "ALLOW", "DENY".
70
75
  """
71
76
  return pulumi.get(self, "effect")
72
77
 
73
- @property
78
+ @_builtins.property
74
79
  @pulumi.getter
75
- def resources(self) -> Sequence[str]:
80
+ def resources(self) -> Sequence[_builtins.str]:
76
81
  """
77
82
  Set a list of resources IDs. In order to include all resources in this statement - use "*".
78
83
  """
@@ -101,27 +106,27 @@ class ProgrammaticUserAccount(dict):
101
106
  return super().get(key, default)
102
107
 
103
108
  def __init__(__self__, *,
104
- account_id: str,
105
- account_role: str):
109
+ account_id: _builtins.str,
110
+ account_role: _builtins.str):
106
111
  """
107
- :param str account_id: Account ID the programmatic user will have access to.
108
- :param str account_role: (Enum: `"viewer", "editor") Role to be associated with the
112
+ :param _builtins.str account_id: Account ID the programmatic user will have access to.
113
+ :param _builtins.str account_role: (Enum: `"viewer", "editor") Role to be associated with the
109
114
  programmatic user for this account.
110
115
  """
111
116
  pulumi.set(__self__, "account_id", account_id)
112
117
  pulumi.set(__self__, "account_role", account_role)
113
118
 
114
- @property
119
+ @_builtins.property
115
120
  @pulumi.getter(name="accountId")
116
- def account_id(self) -> str:
121
+ def account_id(self) -> _builtins.str:
117
122
  """
118
123
  Account ID the programmatic user will have access to.
119
124
  """
120
125
  return pulumi.get(self, "account_id")
121
126
 
122
- @property
127
+ @_builtins.property
123
128
  @pulumi.getter(name="accountRole")
124
- def account_role(self) -> str:
129
+ def account_role(self) -> _builtins.str:
125
130
  """
126
131
  (Enum: `"viewer", "editor") Role to be associated with the
127
132
  programmatic user for this account.
@@ -151,28 +156,28 @@ class ProgrammaticUserPolicy(dict):
151
156
  return super().get(key, default)
152
157
 
153
158
  def __init__(__self__, *,
154
- policy_id: str,
155
- policy_account_ids: Optional[Sequence[str]] = None):
159
+ policy_id: _builtins.str,
160
+ policy_account_ids: Optional[Sequence[_builtins.str]] = None):
156
161
  """
157
- :param str policy_id: Policy ID the programmatic user will have access to.
158
- :param Sequence[str] policy_account_ids: A list of the accounts that the policy should be
162
+ :param _builtins.str policy_id: Policy ID the programmatic user will have access to.
163
+ :param Sequence[_builtins.str] policy_account_ids: A list of the accounts that the policy should be
159
164
  enforced for the user.
160
165
  """
161
166
  pulumi.set(__self__, "policy_id", policy_id)
162
167
  if policy_account_ids is not None:
163
168
  pulumi.set(__self__, "policy_account_ids", policy_account_ids)
164
169
 
165
- @property
170
+ @_builtins.property
166
171
  @pulumi.getter(name="policyId")
167
- def policy_id(self) -> str:
172
+ def policy_id(self) -> _builtins.str:
168
173
  """
169
174
  Policy ID the programmatic user will have access to.
170
175
  """
171
176
  return pulumi.get(self, "policy_id")
172
177
 
173
- @property
178
+ @_builtins.property
174
179
  @pulumi.getter(name="policyAccountIds")
175
- def policy_account_ids(self) -> Optional[Sequence[str]]:
180
+ def policy_account_ids(self) -> Optional[Sequence[_builtins.str]]:
176
181
  """
177
182
  A list of the accounts that the policy should be
178
183
  enforced for the user.
@@ -202,29 +207,29 @@ class UserGroupPolicy(dict):
202
207
  return super().get(key, default)
203
208
 
204
209
  def __init__(__self__, *,
205
- account_ids: Sequence[str],
206
- policy_id: str):
210
+ account_ids: Sequence[_builtins.str],
211
+ policy_id: _builtins.str):
207
212
  """
208
- :param Sequence[str] account_ids: A list of accounts to register with the assigned under the
213
+ :param Sequence[_builtins.str] account_ids: A list of accounts to register with the assigned under the
209
214
  given group (should be existing accounts only).
210
- :param str policy_id: A policy to register under the given group
215
+ :param _builtins.str policy_id: A policy to register under the given group
211
216
  (should be existing policy only).
212
217
  """
213
218
  pulumi.set(__self__, "account_ids", account_ids)
214
219
  pulumi.set(__self__, "policy_id", policy_id)
215
220
 
216
- @property
221
+ @_builtins.property
217
222
  @pulumi.getter(name="accountIds")
218
- def account_ids(self) -> Sequence[str]:
223
+ def account_ids(self) -> Sequence[_builtins.str]:
219
224
  """
220
225
  A list of accounts to register with the assigned under the
221
226
  given group (should be existing accounts only).
222
227
  """
223
228
  return pulumi.get(self, "account_ids")
224
229
 
225
- @property
230
+ @_builtins.property
226
231
  @pulumi.getter(name="policyId")
227
- def policy_id(self) -> str:
232
+ def policy_id(self) -> _builtins.str:
228
233
  """
229
234
  A policy to register under the given group
230
235
  (should be existing policy only).
@@ -254,23 +259,23 @@ class UserPolicy(dict):
254
259
  return super().get(key, default)
255
260
 
256
261
  def __init__(__self__, *,
257
- policy_account_ids: Sequence[str],
258
- policy_id: str):
262
+ policy_account_ids: Sequence[_builtins.str],
263
+ policy_id: _builtins.str):
259
264
  """
260
- :param str policy_id: A policy to register under the given group
265
+ :param _builtins.str policy_id: A policy to register under the given group
261
266
  (should be existing policy only).
262
267
  """
263
268
  pulumi.set(__self__, "policy_account_ids", policy_account_ids)
264
269
  pulumi.set(__self__, "policy_id", policy_id)
265
270
 
266
- @property
271
+ @_builtins.property
267
272
  @pulumi.getter(name="policyAccountIds")
268
- def policy_account_ids(self) -> Sequence[str]:
273
+ def policy_account_ids(self) -> Sequence[_builtins.str]:
269
274
  return pulumi.get(self, "policy_account_ids")
270
275
 
271
- @property
276
+ @_builtins.property
272
277
  @pulumi.getter(name="policyId")
273
- def policy_id(self) -> str:
278
+ def policy_id(self) -> _builtins.str:
274
279
  """
275
280
  A policy to register under the given group
276
281
  (should be existing policy only).