pulumi-nomad 2.6.0a1753337858__py3-none-any.whl → 2.6.0a1753510487__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 (57) hide show
  1. pulumi_nomad/__init__.py +1 -1
  2. pulumi_nomad/_inputs.py +608 -609
  3. pulumi_nomad/acl_auth_method.py +106 -107
  4. pulumi_nomad/acl_binding_rule.py +86 -87
  5. pulumi_nomad/acl_policy.py +55 -56
  6. pulumi_nomad/acl_role.py +38 -39
  7. pulumi_nomad/acl_token.py +125 -126
  8. pulumi_nomad/config/__init__.py +1 -1
  9. pulumi_nomad/config/__init__.pyi +1 -2
  10. pulumi_nomad/config/outputs.py +9 -10
  11. pulumi_nomad/config/vars.py +14 -15
  12. pulumi_nomad/csi_volume.py +277 -278
  13. pulumi_nomad/csi_volume_registration.py +276 -277
  14. pulumi_nomad/dynamic_host_volume.py +191 -192
  15. pulumi_nomad/dynamic_host_volume_registration.py +156 -157
  16. pulumi_nomad/external_volume.py +255 -256
  17. pulumi_nomad/get_acl_policies.py +10 -11
  18. pulumi_nomad/get_acl_policy.py +13 -14
  19. pulumi_nomad/get_acl_role.py +12 -13
  20. pulumi_nomad/get_acl_roles.py +10 -11
  21. pulumi_nomad/get_acl_token.py +26 -27
  22. pulumi_nomad/get_acl_tokens.py +10 -11
  23. pulumi_nomad/get_allocations.py +22 -23
  24. pulumi_nomad/get_datacenters.py +17 -18
  25. pulumi_nomad/get_deployments.py +5 -6
  26. pulumi_nomad/get_dynamic_host_volume.py +41 -42
  27. pulumi_nomad/get_job.py +50 -51
  28. pulumi_nomad/get_job_parser.py +17 -18
  29. pulumi_nomad/get_jwks.py +6 -7
  30. pulumi_nomad/get_namespace.py +17 -18
  31. pulumi_nomad/get_namespaces.py +5 -6
  32. pulumi_nomad/get_node_pool.py +14 -15
  33. pulumi_nomad/get_node_pools.py +16 -17
  34. pulumi_nomad/get_plugin.py +36 -37
  35. pulumi_nomad/get_plugins.py +9 -10
  36. pulumi_nomad/get_regions.py +5 -6
  37. pulumi_nomad/get_scaling_policies.py +16 -17
  38. pulumi_nomad/get_scaling_policy.py +19 -20
  39. pulumi_nomad/get_scheduler_policy.py +9 -10
  40. pulumi_nomad/get_variable.py +17 -18
  41. pulumi_nomad/get_volumes.py +29 -30
  42. pulumi_nomad/job.py +245 -246
  43. pulumi_nomad/namespace.py +75 -76
  44. pulumi_nomad/node_pool.py +55 -56
  45. pulumi_nomad/outputs.py +743 -744
  46. pulumi_nomad/provider.py +119 -120
  47. pulumi_nomad/pulumi-plugin.json +1 -1
  48. pulumi_nomad/quote_specification.py +38 -39
  49. pulumi_nomad/scheduler_config.py +52 -53
  50. pulumi_nomad/sentinel_policy.py +86 -87
  51. pulumi_nomad/variable.py +52 -53
  52. pulumi_nomad/volume.py +272 -273
  53. {pulumi_nomad-2.6.0a1753337858.dist-info → pulumi_nomad-2.6.0a1753510487.dist-info}/METADATA +1 -1
  54. pulumi_nomad-2.6.0a1753510487.dist-info/RECORD +58 -0
  55. pulumi_nomad-2.6.0a1753337858.dist-info/RECORD +0 -58
  56. {pulumi_nomad-2.6.0a1753337858.dist-info → pulumi_nomad-2.6.0a1753510487.dist-info}/WHEEL +0 -0
  57. {pulumi_nomad-2.6.0a1753337858.dist-info → pulumi_nomad-2.6.0a1753510487.dist-info}/top_level.txt +0 -0
pulumi_nomad/job.py CHANGED
@@ -2,8 +2,7 @@
2
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
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -22,32 +21,32 @@ __all__ = ['JobArgs', 'Job']
22
21
  @pulumi.input_type
23
22
  class JobArgs:
24
23
  def __init__(__self__, *,
25
- jobspec: pulumi.Input[builtins.str],
26
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
27
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
28
- detach: Optional[pulumi.Input[builtins.bool]] = None,
24
+ jobspec: pulumi.Input[_builtins.str],
25
+ deregister_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
26
+ deregister_on_id_change: Optional[pulumi.Input[_builtins.bool]] = None,
27
+ detach: Optional[pulumi.Input[_builtins.bool]] = None,
29
28
  hcl2: Optional[pulumi.Input['JobHcl2Args']] = None,
30
- json: Optional[pulumi.Input[builtins.bool]] = None,
31
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
32
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
33
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
34
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None):
29
+ json: Optional[pulumi.Input[_builtins.bool]] = None,
30
+ policy_override: Optional[pulumi.Input[_builtins.bool]] = None,
31
+ purge_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
32
+ read_allocation_ids: Optional[pulumi.Input[_builtins.bool]] = None,
33
+ rerun_if_dead: Optional[pulumi.Input[_builtins.bool]] = None):
35
34
  """
36
35
  The set of arguments for constructing a Job resource.
37
- :param pulumi.Input[builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
38
- :param pulumi.Input[builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
39
- :param pulumi.Input[builtins.bool] deregister_on_id_change: `(boolean: true)` - Determines if the job will be
36
+ :param pulumi.Input[_builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
37
+ :param pulumi.Input[_builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
38
+ :param pulumi.Input[_builtins.bool] deregister_on_id_change: `(boolean: true)` - Determines if the job will be
40
39
  deregistered if the ID of the job in the jobspec changes.
41
- :param pulumi.Input[builtins.bool] detach: `(boolean: true)` - If true, the provider will return immediately
40
+ :param pulumi.Input[_builtins.bool] detach: `(boolean: true)` - If true, the provider will return immediately
42
41
  after creating or updating, instead of monitoring.
43
42
  :param pulumi.Input['JobHcl2Args'] hcl2: `(block: optional)` - Options for the HCL2 jobspec parser.
44
- :param pulumi.Input[builtins.bool] json: `(boolean: false)` - Set this to `true` if your jobspec is structured with
43
+ :param pulumi.Input[_builtins.bool] json: `(boolean: false)` - Set this to `true` if your jobspec is structured with
45
44
  JSON instead of the default HCL.
46
- :param pulumi.Input[builtins.bool] policy_override: `(boolean: false)` - Determines if the job will override any
45
+ :param pulumi.Input[_builtins.bool] policy_override: `(boolean: false)` - Determines if the job will override any
47
46
  soft-mandatory Sentinel policies and register even if they fail.
48
- :param pulumi.Input[builtins.bool] purge_on_destroy: `(boolean: false)` - Set this to true if you want the job to
47
+ :param pulumi.Input[_builtins.bool] purge_on_destroy: `(boolean: false)` - Set this to true if you want the job to
49
48
  be purged when the resource is destroyed.
50
- :param pulumi.Input[builtins.bool] rerun_if_dead: `(boolean: false)` - Set this to true to force the job to run
49
+ :param pulumi.Input[_builtins.bool] rerun_if_dead: `(boolean: false)` - Set this to true to force the job to run
51
50
  again if its status is `dead`.
52
51
  """
53
52
  pulumi.set(__self__, "jobspec", jobspec)
@@ -73,33 +72,33 @@ class JobArgs:
73
72
  if rerun_if_dead is not None:
74
73
  pulumi.set(__self__, "rerun_if_dead", rerun_if_dead)
75
74
 
76
- @property
75
+ @_builtins.property
77
76
  @pulumi.getter
78
- def jobspec(self) -> pulumi.Input[builtins.str]:
77
+ def jobspec(self) -> pulumi.Input[_builtins.str]:
79
78
  """
80
79
  `(string: <required>)` - The contents of the jobspec to register.
81
80
  """
82
81
  return pulumi.get(self, "jobspec")
83
82
 
84
83
  @jobspec.setter
85
- def jobspec(self, value: pulumi.Input[builtins.str]):
84
+ def jobspec(self, value: pulumi.Input[_builtins.str]):
86
85
  pulumi.set(self, "jobspec", value)
87
86
 
88
- @property
87
+ @_builtins.property
89
88
  @pulumi.getter(name="deregisterOnDestroy")
90
- def deregister_on_destroy(self) -> Optional[pulumi.Input[builtins.bool]]:
89
+ def deregister_on_destroy(self) -> Optional[pulumi.Input[_builtins.bool]]:
91
90
  """
92
91
  If true, the job will be deregistered on destroy.
93
92
  """
94
93
  return pulumi.get(self, "deregister_on_destroy")
95
94
 
96
95
  @deregister_on_destroy.setter
97
- def deregister_on_destroy(self, value: Optional[pulumi.Input[builtins.bool]]):
96
+ def deregister_on_destroy(self, value: Optional[pulumi.Input[_builtins.bool]]):
98
97
  pulumi.set(self, "deregister_on_destroy", value)
99
98
 
100
- @property
99
+ @_builtins.property
101
100
  @pulumi.getter(name="deregisterOnIdChange")
102
- def deregister_on_id_change(self) -> Optional[pulumi.Input[builtins.bool]]:
101
+ def deregister_on_id_change(self) -> Optional[pulumi.Input[_builtins.bool]]:
103
102
  """
104
103
  `(boolean: true)` - Determines if the job will be
105
104
  deregistered if the ID of the job in the jobspec changes.
@@ -107,12 +106,12 @@ class JobArgs:
107
106
  return pulumi.get(self, "deregister_on_id_change")
108
107
 
109
108
  @deregister_on_id_change.setter
110
- def deregister_on_id_change(self, value: Optional[pulumi.Input[builtins.bool]]):
109
+ def deregister_on_id_change(self, value: Optional[pulumi.Input[_builtins.bool]]):
111
110
  pulumi.set(self, "deregister_on_id_change", value)
112
111
 
113
- @property
112
+ @_builtins.property
114
113
  @pulumi.getter
115
- def detach(self) -> Optional[pulumi.Input[builtins.bool]]:
114
+ def detach(self) -> Optional[pulumi.Input[_builtins.bool]]:
116
115
  """
117
116
  `(boolean: true)` - If true, the provider will return immediately
118
117
  after creating or updating, instead of monitoring.
@@ -120,10 +119,10 @@ class JobArgs:
120
119
  return pulumi.get(self, "detach")
121
120
 
122
121
  @detach.setter
123
- def detach(self, value: Optional[pulumi.Input[builtins.bool]]):
122
+ def detach(self, value: Optional[pulumi.Input[_builtins.bool]]):
124
123
  pulumi.set(self, "detach", value)
125
124
 
126
- @property
125
+ @_builtins.property
127
126
  @pulumi.getter
128
127
  def hcl2(self) -> Optional[pulumi.Input['JobHcl2Args']]:
129
128
  """
@@ -135,9 +134,9 @@ class JobArgs:
135
134
  def hcl2(self, value: Optional[pulumi.Input['JobHcl2Args']]):
136
135
  pulumi.set(self, "hcl2", value)
137
136
 
138
- @property
137
+ @_builtins.property
139
138
  @pulumi.getter
140
- def json(self) -> Optional[pulumi.Input[builtins.bool]]:
139
+ def json(self) -> Optional[pulumi.Input[_builtins.bool]]:
141
140
  """
142
141
  `(boolean: false)` - Set this to `true` if your jobspec is structured with
143
142
  JSON instead of the default HCL.
@@ -145,12 +144,12 @@ class JobArgs:
145
144
  return pulumi.get(self, "json")
146
145
 
147
146
  @json.setter
148
- def json(self, value: Optional[pulumi.Input[builtins.bool]]):
147
+ def json(self, value: Optional[pulumi.Input[_builtins.bool]]):
149
148
  pulumi.set(self, "json", value)
150
149
 
151
- @property
150
+ @_builtins.property
152
151
  @pulumi.getter(name="policyOverride")
153
- def policy_override(self) -> Optional[pulumi.Input[builtins.bool]]:
152
+ def policy_override(self) -> Optional[pulumi.Input[_builtins.bool]]:
154
153
  """
155
154
  `(boolean: false)` - Determines if the job will override any
156
155
  soft-mandatory Sentinel policies and register even if they fail.
@@ -158,12 +157,12 @@ class JobArgs:
158
157
  return pulumi.get(self, "policy_override")
159
158
 
160
159
  @policy_override.setter
161
- def policy_override(self, value: Optional[pulumi.Input[builtins.bool]]):
160
+ def policy_override(self, value: Optional[pulumi.Input[_builtins.bool]]):
162
161
  pulumi.set(self, "policy_override", value)
163
162
 
164
- @property
163
+ @_builtins.property
165
164
  @pulumi.getter(name="purgeOnDestroy")
166
- def purge_on_destroy(self) -> Optional[pulumi.Input[builtins.bool]]:
165
+ def purge_on_destroy(self) -> Optional[pulumi.Input[_builtins.bool]]:
167
166
  """
168
167
  `(boolean: false)` - Set this to true if you want the job to
169
168
  be purged when the resource is destroyed.
@@ -171,22 +170,22 @@ class JobArgs:
171
170
  return pulumi.get(self, "purge_on_destroy")
172
171
 
173
172
  @purge_on_destroy.setter
174
- def purge_on_destroy(self, value: Optional[pulumi.Input[builtins.bool]]):
173
+ def purge_on_destroy(self, value: Optional[pulumi.Input[_builtins.bool]]):
175
174
  pulumi.set(self, "purge_on_destroy", value)
176
175
 
177
- @property
176
+ @_builtins.property
178
177
  @pulumi.getter(name="readAllocationIds")
179
178
  @_utilities.deprecated("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the get_allocations data source instead.""")
180
- def read_allocation_ids(self) -> Optional[pulumi.Input[builtins.bool]]:
179
+ def read_allocation_ids(self) -> Optional[pulumi.Input[_builtins.bool]]:
181
180
  return pulumi.get(self, "read_allocation_ids")
182
181
 
183
182
  @read_allocation_ids.setter
184
- def read_allocation_ids(self, value: Optional[pulumi.Input[builtins.bool]]):
183
+ def read_allocation_ids(self, value: Optional[pulumi.Input[_builtins.bool]]):
185
184
  pulumi.set(self, "read_allocation_ids", value)
186
185
 
187
- @property
186
+ @_builtins.property
188
187
  @pulumi.getter(name="rerunIfDead")
189
- def rerun_if_dead(self) -> Optional[pulumi.Input[builtins.bool]]:
188
+ def rerun_if_dead(self) -> Optional[pulumi.Input[_builtins.bool]]:
190
189
  """
191
190
  `(boolean: false)` - Set this to true to force the job to run
192
191
  again if its status is `dead`.
@@ -194,61 +193,61 @@ class JobArgs:
194
193
  return pulumi.get(self, "rerun_if_dead")
195
194
 
196
195
  @rerun_if_dead.setter
197
- def rerun_if_dead(self, value: Optional[pulumi.Input[builtins.bool]]):
196
+ def rerun_if_dead(self, value: Optional[pulumi.Input[_builtins.bool]]):
198
197
  pulumi.set(self, "rerun_if_dead", value)
199
198
 
200
199
 
201
200
  @pulumi.input_type
202
201
  class _JobState:
203
202
  def __init__(__self__, *,
204
- allocation_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
205
- datacenters: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
206
- deployment_id: Optional[pulumi.Input[builtins.str]] = None,
207
- deployment_status: Optional[pulumi.Input[builtins.str]] = None,
208
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
209
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
210
- detach: Optional[pulumi.Input[builtins.bool]] = None,
203
+ allocation_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
204
+ datacenters: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
205
+ deployment_id: Optional[pulumi.Input[_builtins.str]] = None,
206
+ deployment_status: Optional[pulumi.Input[_builtins.str]] = None,
207
+ deregister_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
208
+ deregister_on_id_change: Optional[pulumi.Input[_builtins.bool]] = None,
209
+ detach: Optional[pulumi.Input[_builtins.bool]] = None,
211
210
  hcl2: Optional[pulumi.Input['JobHcl2Args']] = None,
212
- jobspec: Optional[pulumi.Input[builtins.str]] = None,
213
- json: Optional[pulumi.Input[builtins.bool]] = None,
214
- modify_index: Optional[pulumi.Input[builtins.str]] = None,
215
- name: Optional[pulumi.Input[builtins.str]] = None,
216
- namespace: Optional[pulumi.Input[builtins.str]] = None,
217
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
218
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
219
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
220
- region: Optional[pulumi.Input[builtins.str]] = None,
221
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
222
- status: Optional[pulumi.Input[builtins.str]] = None,
211
+ jobspec: Optional[pulumi.Input[_builtins.str]] = None,
212
+ json: Optional[pulumi.Input[_builtins.bool]] = None,
213
+ modify_index: Optional[pulumi.Input[_builtins.str]] = None,
214
+ name: Optional[pulumi.Input[_builtins.str]] = None,
215
+ namespace: Optional[pulumi.Input[_builtins.str]] = None,
216
+ policy_override: Optional[pulumi.Input[_builtins.bool]] = None,
217
+ purge_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
218
+ read_allocation_ids: Optional[pulumi.Input[_builtins.bool]] = None,
219
+ region: Optional[pulumi.Input[_builtins.str]] = None,
220
+ rerun_if_dead: Optional[pulumi.Input[_builtins.bool]] = None,
221
+ status: Optional[pulumi.Input[_builtins.str]] = None,
223
222
  task_groups: Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupArgs']]]] = None,
224
- type: Optional[pulumi.Input[builtins.str]] = None):
223
+ type: Optional[pulumi.Input[_builtins.str]] = None):
225
224
  """
226
225
  Input properties used for looking up and filtering Job resources.
227
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] allocation_ids: The IDs for allocations associated with this job.
228
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] datacenters: The target datacenters for the job, as derived from the jobspec.
229
- :param pulumi.Input[builtins.str] deployment_id: If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
230
- :param pulumi.Input[builtins.str] deployment_status: If detach = false, the status for the deployment associated with the last job create/update, if one exists.
231
- :param pulumi.Input[builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
232
- :param pulumi.Input[builtins.bool] deregister_on_id_change: `(boolean: true)` - Determines if the job will be
226
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] allocation_ids: The IDs for allocations associated with this job.
227
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] datacenters: The target datacenters for the job, as derived from the jobspec.
228
+ :param pulumi.Input[_builtins.str] deployment_id: If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
229
+ :param pulumi.Input[_builtins.str] deployment_status: If detach = false, the status for the deployment associated with the last job create/update, if one exists.
230
+ :param pulumi.Input[_builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
231
+ :param pulumi.Input[_builtins.bool] deregister_on_id_change: `(boolean: true)` - Determines if the job will be
233
232
  deregistered if the ID of the job in the jobspec changes.
234
- :param pulumi.Input[builtins.bool] detach: `(boolean: true)` - If true, the provider will return immediately
233
+ :param pulumi.Input[_builtins.bool] detach: `(boolean: true)` - If true, the provider will return immediately
235
234
  after creating or updating, instead of monitoring.
236
235
  :param pulumi.Input['JobHcl2Args'] hcl2: `(block: optional)` - Options for the HCL2 jobspec parser.
237
- :param pulumi.Input[builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
238
- :param pulumi.Input[builtins.bool] json: `(boolean: false)` - Set this to `true` if your jobspec is structured with
236
+ :param pulumi.Input[_builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
237
+ :param pulumi.Input[_builtins.bool] json: `(boolean: false)` - Set this to `true` if your jobspec is structured with
239
238
  JSON instead of the default HCL.
240
- :param pulumi.Input[builtins.str] modify_index: Integer that increments for each change. Used to detect any changes between plan and apply.
241
- :param pulumi.Input[builtins.str] name: The name of the job, as derived from the jobspec.
242
- :param pulumi.Input[builtins.str] namespace: The namespace of the job, as derived from the jobspec.
243
- :param pulumi.Input[builtins.bool] policy_override: `(boolean: false)` - Determines if the job will override any
239
+ :param pulumi.Input[_builtins.str] modify_index: Integer that increments for each change. Used to detect any changes between plan and apply.
240
+ :param pulumi.Input[_builtins.str] name: The name of the job, as derived from the jobspec.
241
+ :param pulumi.Input[_builtins.str] namespace: The namespace of the job, as derived from the jobspec.
242
+ :param pulumi.Input[_builtins.bool] policy_override: `(boolean: false)` - Determines if the job will override any
244
243
  soft-mandatory Sentinel policies and register even if they fail.
245
- :param pulumi.Input[builtins.bool] purge_on_destroy: `(boolean: false)` - Set this to true if you want the job to
244
+ :param pulumi.Input[_builtins.bool] purge_on_destroy: `(boolean: false)` - Set this to true if you want the job to
246
245
  be purged when the resource is destroyed.
247
- :param pulumi.Input[builtins.str] region: The target region for the job, as derived from the jobspec.
248
- :param pulumi.Input[builtins.bool] rerun_if_dead: `(boolean: false)` - Set this to true to force the job to run
246
+ :param pulumi.Input[_builtins.str] region: The target region for the job, as derived from the jobspec.
247
+ :param pulumi.Input[_builtins.bool] rerun_if_dead: `(boolean: false)` - Set this to true to force the job to run
249
248
  again if its status is `dead`.
250
- :param pulumi.Input[builtins.str] status: The status of the job.
251
- :param pulumi.Input[builtins.str] type: The type of the job, as derived from the jobspec.
249
+ :param pulumi.Input[_builtins.str] status: The status of the job.
250
+ :param pulumi.Input[_builtins.str] type: The type of the job, as derived from the jobspec.
252
251
  """
253
252
  if allocation_ids is not None:
254
253
  warnings.warn("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the get_allocations data source instead.""", DeprecationWarning)
@@ -299,70 +298,70 @@ class _JobState:
299
298
  if type is not None:
300
299
  pulumi.set(__self__, "type", type)
301
300
 
302
- @property
301
+ @_builtins.property
303
302
  @pulumi.getter(name="allocationIds")
304
303
  @_utilities.deprecated("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the get_allocations data source instead.""")
305
- def allocation_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
304
+ def allocation_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
306
305
  """
307
306
  The IDs for allocations associated with this job.
308
307
  """
309
308
  return pulumi.get(self, "allocation_ids")
310
309
 
311
310
  @allocation_ids.setter
312
- def allocation_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
311
+ def allocation_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
313
312
  pulumi.set(self, "allocation_ids", value)
314
313
 
315
- @property
314
+ @_builtins.property
316
315
  @pulumi.getter
317
- def datacenters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
316
+ def datacenters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
318
317
  """
319
318
  The target datacenters for the job, as derived from the jobspec.
320
319
  """
321
320
  return pulumi.get(self, "datacenters")
322
321
 
323
322
  @datacenters.setter
324
- def datacenters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
323
+ def datacenters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
325
324
  pulumi.set(self, "datacenters", value)
326
325
 
327
- @property
326
+ @_builtins.property
328
327
  @pulumi.getter(name="deploymentId")
329
- def deployment_id(self) -> Optional[pulumi.Input[builtins.str]]:
328
+ def deployment_id(self) -> Optional[pulumi.Input[_builtins.str]]:
330
329
  """
331
330
  If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
332
331
  """
333
332
  return pulumi.get(self, "deployment_id")
334
333
 
335
334
  @deployment_id.setter
336
- def deployment_id(self, value: Optional[pulumi.Input[builtins.str]]):
335
+ def deployment_id(self, value: Optional[pulumi.Input[_builtins.str]]):
337
336
  pulumi.set(self, "deployment_id", value)
338
337
 
339
- @property
338
+ @_builtins.property
340
339
  @pulumi.getter(name="deploymentStatus")
341
- def deployment_status(self) -> Optional[pulumi.Input[builtins.str]]:
340
+ def deployment_status(self) -> Optional[pulumi.Input[_builtins.str]]:
342
341
  """
343
342
  If detach = false, the status for the deployment associated with the last job create/update, if one exists.
344
343
  """
345
344
  return pulumi.get(self, "deployment_status")
346
345
 
347
346
  @deployment_status.setter
348
- def deployment_status(self, value: Optional[pulumi.Input[builtins.str]]):
347
+ def deployment_status(self, value: Optional[pulumi.Input[_builtins.str]]):
349
348
  pulumi.set(self, "deployment_status", value)
350
349
 
351
- @property
350
+ @_builtins.property
352
351
  @pulumi.getter(name="deregisterOnDestroy")
353
- def deregister_on_destroy(self) -> Optional[pulumi.Input[builtins.bool]]:
352
+ def deregister_on_destroy(self) -> Optional[pulumi.Input[_builtins.bool]]:
354
353
  """
355
354
  If true, the job will be deregistered on destroy.
356
355
  """
357
356
  return pulumi.get(self, "deregister_on_destroy")
358
357
 
359
358
  @deregister_on_destroy.setter
360
- def deregister_on_destroy(self, value: Optional[pulumi.Input[builtins.bool]]):
359
+ def deregister_on_destroy(self, value: Optional[pulumi.Input[_builtins.bool]]):
361
360
  pulumi.set(self, "deregister_on_destroy", value)
362
361
 
363
- @property
362
+ @_builtins.property
364
363
  @pulumi.getter(name="deregisterOnIdChange")
365
- def deregister_on_id_change(self) -> Optional[pulumi.Input[builtins.bool]]:
364
+ def deregister_on_id_change(self) -> Optional[pulumi.Input[_builtins.bool]]:
366
365
  """
367
366
  `(boolean: true)` - Determines if the job will be
368
367
  deregistered if the ID of the job in the jobspec changes.
@@ -370,12 +369,12 @@ class _JobState:
370
369
  return pulumi.get(self, "deregister_on_id_change")
371
370
 
372
371
  @deregister_on_id_change.setter
373
- def deregister_on_id_change(self, value: Optional[pulumi.Input[builtins.bool]]):
372
+ def deregister_on_id_change(self, value: Optional[pulumi.Input[_builtins.bool]]):
374
373
  pulumi.set(self, "deregister_on_id_change", value)
375
374
 
376
- @property
375
+ @_builtins.property
377
376
  @pulumi.getter
378
- def detach(self) -> Optional[pulumi.Input[builtins.bool]]:
377
+ def detach(self) -> Optional[pulumi.Input[_builtins.bool]]:
379
378
  """
380
379
  `(boolean: true)` - If true, the provider will return immediately
381
380
  after creating or updating, instead of monitoring.
@@ -383,10 +382,10 @@ class _JobState:
383
382
  return pulumi.get(self, "detach")
384
383
 
385
384
  @detach.setter
386
- def detach(self, value: Optional[pulumi.Input[builtins.bool]]):
385
+ def detach(self, value: Optional[pulumi.Input[_builtins.bool]]):
387
386
  pulumi.set(self, "detach", value)
388
387
 
389
- @property
388
+ @_builtins.property
390
389
  @pulumi.getter
391
390
  def hcl2(self) -> Optional[pulumi.Input['JobHcl2Args']]:
392
391
  """
@@ -398,21 +397,21 @@ class _JobState:
398
397
  def hcl2(self, value: Optional[pulumi.Input['JobHcl2Args']]):
399
398
  pulumi.set(self, "hcl2", value)
400
399
 
401
- @property
400
+ @_builtins.property
402
401
  @pulumi.getter
403
- def jobspec(self) -> Optional[pulumi.Input[builtins.str]]:
402
+ def jobspec(self) -> Optional[pulumi.Input[_builtins.str]]:
404
403
  """
405
404
  `(string: <required>)` - The contents of the jobspec to register.
406
405
  """
407
406
  return pulumi.get(self, "jobspec")
408
407
 
409
408
  @jobspec.setter
410
- def jobspec(self, value: Optional[pulumi.Input[builtins.str]]):
409
+ def jobspec(self, value: Optional[pulumi.Input[_builtins.str]]):
411
410
  pulumi.set(self, "jobspec", value)
412
411
 
413
- @property
412
+ @_builtins.property
414
413
  @pulumi.getter
415
- def json(self) -> Optional[pulumi.Input[builtins.bool]]:
414
+ def json(self) -> Optional[pulumi.Input[_builtins.bool]]:
416
415
  """
417
416
  `(boolean: false)` - Set this to `true` if your jobspec is structured with
418
417
  JSON instead of the default HCL.
@@ -420,48 +419,48 @@ class _JobState:
420
419
  return pulumi.get(self, "json")
421
420
 
422
421
  @json.setter
423
- def json(self, value: Optional[pulumi.Input[builtins.bool]]):
422
+ def json(self, value: Optional[pulumi.Input[_builtins.bool]]):
424
423
  pulumi.set(self, "json", value)
425
424
 
426
- @property
425
+ @_builtins.property
427
426
  @pulumi.getter(name="modifyIndex")
428
- def modify_index(self) -> Optional[pulumi.Input[builtins.str]]:
427
+ def modify_index(self) -> Optional[pulumi.Input[_builtins.str]]:
429
428
  """
430
429
  Integer that increments for each change. Used to detect any changes between plan and apply.
431
430
  """
432
431
  return pulumi.get(self, "modify_index")
433
432
 
434
433
  @modify_index.setter
435
- def modify_index(self, value: Optional[pulumi.Input[builtins.str]]):
434
+ def modify_index(self, value: Optional[pulumi.Input[_builtins.str]]):
436
435
  pulumi.set(self, "modify_index", value)
437
436
 
438
- @property
437
+ @_builtins.property
439
438
  @pulumi.getter
440
- def name(self) -> Optional[pulumi.Input[builtins.str]]:
439
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
441
440
  """
442
441
  The name of the job, as derived from the jobspec.
443
442
  """
444
443
  return pulumi.get(self, "name")
445
444
 
446
445
  @name.setter
447
- def name(self, value: Optional[pulumi.Input[builtins.str]]):
446
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
448
447
  pulumi.set(self, "name", value)
449
448
 
450
- @property
449
+ @_builtins.property
451
450
  @pulumi.getter
452
- def namespace(self) -> Optional[pulumi.Input[builtins.str]]:
451
+ def namespace(self) -> Optional[pulumi.Input[_builtins.str]]:
453
452
  """
454
453
  The namespace of the job, as derived from the jobspec.
455
454
  """
456
455
  return pulumi.get(self, "namespace")
457
456
 
458
457
  @namespace.setter
459
- def namespace(self, value: Optional[pulumi.Input[builtins.str]]):
458
+ def namespace(self, value: Optional[pulumi.Input[_builtins.str]]):
460
459
  pulumi.set(self, "namespace", value)
461
460
 
462
- @property
461
+ @_builtins.property
463
462
  @pulumi.getter(name="policyOverride")
464
- def policy_override(self) -> Optional[pulumi.Input[builtins.bool]]:
463
+ def policy_override(self) -> Optional[pulumi.Input[_builtins.bool]]:
465
464
  """
466
465
  `(boolean: false)` - Determines if the job will override any
467
466
  soft-mandatory Sentinel policies and register even if they fail.
@@ -469,12 +468,12 @@ class _JobState:
469
468
  return pulumi.get(self, "policy_override")
470
469
 
471
470
  @policy_override.setter
472
- def policy_override(self, value: Optional[pulumi.Input[builtins.bool]]):
471
+ def policy_override(self, value: Optional[pulumi.Input[_builtins.bool]]):
473
472
  pulumi.set(self, "policy_override", value)
474
473
 
475
- @property
474
+ @_builtins.property
476
475
  @pulumi.getter(name="purgeOnDestroy")
477
- def purge_on_destroy(self) -> Optional[pulumi.Input[builtins.bool]]:
476
+ def purge_on_destroy(self) -> Optional[pulumi.Input[_builtins.bool]]:
478
477
  """
479
478
  `(boolean: false)` - Set this to true if you want the job to
480
479
  be purged when the resource is destroyed.
@@ -482,34 +481,34 @@ class _JobState:
482
481
  return pulumi.get(self, "purge_on_destroy")
483
482
 
484
483
  @purge_on_destroy.setter
485
- def purge_on_destroy(self, value: Optional[pulumi.Input[builtins.bool]]):
484
+ def purge_on_destroy(self, value: Optional[pulumi.Input[_builtins.bool]]):
486
485
  pulumi.set(self, "purge_on_destroy", value)
487
486
 
488
- @property
487
+ @_builtins.property
489
488
  @pulumi.getter(name="readAllocationIds")
490
489
  @_utilities.deprecated("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the get_allocations data source instead.""")
491
- def read_allocation_ids(self) -> Optional[pulumi.Input[builtins.bool]]:
490
+ def read_allocation_ids(self) -> Optional[pulumi.Input[_builtins.bool]]:
492
491
  return pulumi.get(self, "read_allocation_ids")
493
492
 
494
493
  @read_allocation_ids.setter
495
- def read_allocation_ids(self, value: Optional[pulumi.Input[builtins.bool]]):
494
+ def read_allocation_ids(self, value: Optional[pulumi.Input[_builtins.bool]]):
496
495
  pulumi.set(self, "read_allocation_ids", value)
497
496
 
498
- @property
497
+ @_builtins.property
499
498
  @pulumi.getter
500
- def region(self) -> Optional[pulumi.Input[builtins.str]]:
499
+ def region(self) -> Optional[pulumi.Input[_builtins.str]]:
501
500
  """
502
501
  The target region for the job, as derived from the jobspec.
503
502
  """
504
503
  return pulumi.get(self, "region")
505
504
 
506
505
  @region.setter
507
- def region(self, value: Optional[pulumi.Input[builtins.str]]):
506
+ def region(self, value: Optional[pulumi.Input[_builtins.str]]):
508
507
  pulumi.set(self, "region", value)
509
508
 
510
- @property
509
+ @_builtins.property
511
510
  @pulumi.getter(name="rerunIfDead")
512
- def rerun_if_dead(self) -> Optional[pulumi.Input[builtins.bool]]:
511
+ def rerun_if_dead(self) -> Optional[pulumi.Input[_builtins.bool]]:
513
512
  """
514
513
  `(boolean: false)` - Set this to true to force the job to run
515
514
  again if its status is `dead`.
@@ -517,22 +516,22 @@ class _JobState:
517
516
  return pulumi.get(self, "rerun_if_dead")
518
517
 
519
518
  @rerun_if_dead.setter
520
- def rerun_if_dead(self, value: Optional[pulumi.Input[builtins.bool]]):
519
+ def rerun_if_dead(self, value: Optional[pulumi.Input[_builtins.bool]]):
521
520
  pulumi.set(self, "rerun_if_dead", value)
522
521
 
523
- @property
522
+ @_builtins.property
524
523
  @pulumi.getter
525
- def status(self) -> Optional[pulumi.Input[builtins.str]]:
524
+ def status(self) -> Optional[pulumi.Input[_builtins.str]]:
526
525
  """
527
526
  The status of the job.
528
527
  """
529
528
  return pulumi.get(self, "status")
530
529
 
531
530
  @status.setter
532
- def status(self, value: Optional[pulumi.Input[builtins.str]]):
531
+ def status(self, value: Optional[pulumi.Input[_builtins.str]]):
533
532
  pulumi.set(self, "status", value)
534
533
 
535
- @property
534
+ @_builtins.property
536
535
  @pulumi.getter(name="taskGroups")
537
536
  def task_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupArgs']]]]:
538
537
  return pulumi.get(self, "task_groups")
@@ -541,16 +540,16 @@ class _JobState:
541
540
  def task_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupArgs']]]]):
542
541
  pulumi.set(self, "task_groups", value)
543
542
 
544
- @property
543
+ @_builtins.property
545
544
  @pulumi.getter
546
- def type(self) -> Optional[pulumi.Input[builtins.str]]:
545
+ def type(self) -> Optional[pulumi.Input[_builtins.str]]:
547
546
  """
548
547
  The type of the job, as derived from the jobspec.
549
548
  """
550
549
  return pulumi.get(self, "type")
551
550
 
552
551
  @type.setter
553
- def type(self, value: Optional[pulumi.Input[builtins.str]]):
552
+ def type(self, value: Optional[pulumi.Input[_builtins.str]]):
554
553
  pulumi.set(self, "type", value)
555
554
 
556
555
 
@@ -560,35 +559,35 @@ class Job(pulumi.CustomResource):
560
559
  def __init__(__self__,
561
560
  resource_name: str,
562
561
  opts: Optional[pulumi.ResourceOptions] = None,
563
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
564
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
565
- detach: Optional[pulumi.Input[builtins.bool]] = None,
562
+ deregister_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
563
+ deregister_on_id_change: Optional[pulumi.Input[_builtins.bool]] = None,
564
+ detach: Optional[pulumi.Input[_builtins.bool]] = None,
566
565
  hcl2: Optional[pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']]] = None,
567
- jobspec: Optional[pulumi.Input[builtins.str]] = None,
568
- json: Optional[pulumi.Input[builtins.bool]] = None,
569
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
570
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
571
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
572
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
566
+ jobspec: Optional[pulumi.Input[_builtins.str]] = None,
567
+ json: Optional[pulumi.Input[_builtins.bool]] = None,
568
+ policy_override: Optional[pulumi.Input[_builtins.bool]] = None,
569
+ purge_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
570
+ read_allocation_ids: Optional[pulumi.Input[_builtins.bool]] = None,
571
+ rerun_if_dead: Optional[pulumi.Input[_builtins.bool]] = None,
573
572
  __props__=None):
574
573
  """
575
574
  Create a Job resource with the given unique name, props, and options.
576
575
  :param str resource_name: The name of the resource.
577
576
  :param pulumi.ResourceOptions opts: Options for the resource.
578
- :param pulumi.Input[builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
579
- :param pulumi.Input[builtins.bool] deregister_on_id_change: `(boolean: true)` - Determines if the job will be
577
+ :param pulumi.Input[_builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
578
+ :param pulumi.Input[_builtins.bool] deregister_on_id_change: `(boolean: true)` - Determines if the job will be
580
579
  deregistered if the ID of the job in the jobspec changes.
581
- :param pulumi.Input[builtins.bool] detach: `(boolean: true)` - If true, the provider will return immediately
580
+ :param pulumi.Input[_builtins.bool] detach: `(boolean: true)` - If true, the provider will return immediately
582
581
  after creating or updating, instead of monitoring.
583
582
  :param pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']] hcl2: `(block: optional)` - Options for the HCL2 jobspec parser.
584
- :param pulumi.Input[builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
585
- :param pulumi.Input[builtins.bool] json: `(boolean: false)` - Set this to `true` if your jobspec is structured with
583
+ :param pulumi.Input[_builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
584
+ :param pulumi.Input[_builtins.bool] json: `(boolean: false)` - Set this to `true` if your jobspec is structured with
586
585
  JSON instead of the default HCL.
587
- :param pulumi.Input[builtins.bool] policy_override: `(boolean: false)` - Determines if the job will override any
586
+ :param pulumi.Input[_builtins.bool] policy_override: `(boolean: false)` - Determines if the job will override any
588
587
  soft-mandatory Sentinel policies and register even if they fail.
589
- :param pulumi.Input[builtins.bool] purge_on_destroy: `(boolean: false)` - Set this to true if you want the job to
588
+ :param pulumi.Input[_builtins.bool] purge_on_destroy: `(boolean: false)` - Set this to true if you want the job to
590
589
  be purged when the resource is destroyed.
591
- :param pulumi.Input[builtins.bool] rerun_if_dead: `(boolean: false)` - Set this to true to force the job to run
590
+ :param pulumi.Input[_builtins.bool] rerun_if_dead: `(boolean: false)` - Set this to true to force the job to run
592
591
  again if its status is `dead`.
593
592
  """
594
593
  ...
@@ -614,16 +613,16 @@ class Job(pulumi.CustomResource):
614
613
  def _internal_init(__self__,
615
614
  resource_name: str,
616
615
  opts: Optional[pulumi.ResourceOptions] = None,
617
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
618
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
619
- detach: Optional[pulumi.Input[builtins.bool]] = None,
616
+ deregister_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
617
+ deregister_on_id_change: Optional[pulumi.Input[_builtins.bool]] = None,
618
+ detach: Optional[pulumi.Input[_builtins.bool]] = None,
620
619
  hcl2: Optional[pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']]] = None,
621
- jobspec: Optional[pulumi.Input[builtins.str]] = None,
622
- json: Optional[pulumi.Input[builtins.bool]] = None,
623
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
624
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
625
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
626
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
620
+ jobspec: Optional[pulumi.Input[_builtins.str]] = None,
621
+ json: Optional[pulumi.Input[_builtins.bool]] = None,
622
+ policy_override: Optional[pulumi.Input[_builtins.bool]] = None,
623
+ purge_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
624
+ read_allocation_ids: Optional[pulumi.Input[_builtins.bool]] = None,
625
+ rerun_if_dead: Optional[pulumi.Input[_builtins.bool]] = None,
627
626
  __props__=None):
628
627
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
629
628
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -666,27 +665,27 @@ class Job(pulumi.CustomResource):
666
665
  def get(resource_name: str,
667
666
  id: pulumi.Input[str],
668
667
  opts: Optional[pulumi.ResourceOptions] = None,
669
- allocation_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
670
- datacenters: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
671
- deployment_id: Optional[pulumi.Input[builtins.str]] = None,
672
- deployment_status: Optional[pulumi.Input[builtins.str]] = None,
673
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
674
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
675
- detach: Optional[pulumi.Input[builtins.bool]] = None,
668
+ allocation_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
669
+ datacenters: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
670
+ deployment_id: Optional[pulumi.Input[_builtins.str]] = None,
671
+ deployment_status: Optional[pulumi.Input[_builtins.str]] = None,
672
+ deregister_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
673
+ deregister_on_id_change: Optional[pulumi.Input[_builtins.bool]] = None,
674
+ detach: Optional[pulumi.Input[_builtins.bool]] = None,
676
675
  hcl2: Optional[pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']]] = None,
677
- jobspec: Optional[pulumi.Input[builtins.str]] = None,
678
- json: Optional[pulumi.Input[builtins.bool]] = None,
679
- modify_index: Optional[pulumi.Input[builtins.str]] = None,
680
- name: Optional[pulumi.Input[builtins.str]] = None,
681
- namespace: Optional[pulumi.Input[builtins.str]] = None,
682
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
683
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
684
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
685
- region: Optional[pulumi.Input[builtins.str]] = None,
686
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
687
- status: Optional[pulumi.Input[builtins.str]] = None,
676
+ jobspec: Optional[pulumi.Input[_builtins.str]] = None,
677
+ json: Optional[pulumi.Input[_builtins.bool]] = None,
678
+ modify_index: Optional[pulumi.Input[_builtins.str]] = None,
679
+ name: Optional[pulumi.Input[_builtins.str]] = None,
680
+ namespace: Optional[pulumi.Input[_builtins.str]] = None,
681
+ policy_override: Optional[pulumi.Input[_builtins.bool]] = None,
682
+ purge_on_destroy: Optional[pulumi.Input[_builtins.bool]] = None,
683
+ read_allocation_ids: Optional[pulumi.Input[_builtins.bool]] = None,
684
+ region: Optional[pulumi.Input[_builtins.str]] = None,
685
+ rerun_if_dead: Optional[pulumi.Input[_builtins.bool]] = None,
686
+ status: Optional[pulumi.Input[_builtins.str]] = None,
688
687
  task_groups: Optional[pulumi.Input[Sequence[pulumi.Input[Union['JobTaskGroupArgs', 'JobTaskGroupArgsDict']]]]] = None,
689
- type: Optional[pulumi.Input[builtins.str]] = None) -> 'Job':
688
+ type: Optional[pulumi.Input[_builtins.str]] = None) -> 'Job':
690
689
  """
691
690
  Get an existing Job resource's state with the given name, id, and optional extra
692
691
  properties used to qualify the lookup.
@@ -694,31 +693,31 @@ class Job(pulumi.CustomResource):
694
693
  :param str resource_name: The unique name of the resulting resource.
695
694
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
696
695
  :param pulumi.ResourceOptions opts: Options for the resource.
697
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] allocation_ids: The IDs for allocations associated with this job.
698
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] datacenters: The target datacenters for the job, as derived from the jobspec.
699
- :param pulumi.Input[builtins.str] deployment_id: If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
700
- :param pulumi.Input[builtins.str] deployment_status: If detach = false, the status for the deployment associated with the last job create/update, if one exists.
701
- :param pulumi.Input[builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
702
- :param pulumi.Input[builtins.bool] deregister_on_id_change: `(boolean: true)` - Determines if the job will be
696
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] allocation_ids: The IDs for allocations associated with this job.
697
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] datacenters: The target datacenters for the job, as derived from the jobspec.
698
+ :param pulumi.Input[_builtins.str] deployment_id: If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
699
+ :param pulumi.Input[_builtins.str] deployment_status: If detach = false, the status for the deployment associated with the last job create/update, if one exists.
700
+ :param pulumi.Input[_builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
701
+ :param pulumi.Input[_builtins.bool] deregister_on_id_change: `(boolean: true)` - Determines if the job will be
703
702
  deregistered if the ID of the job in the jobspec changes.
704
- :param pulumi.Input[builtins.bool] detach: `(boolean: true)` - If true, the provider will return immediately
703
+ :param pulumi.Input[_builtins.bool] detach: `(boolean: true)` - If true, the provider will return immediately
705
704
  after creating or updating, instead of monitoring.
706
705
  :param pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']] hcl2: `(block: optional)` - Options for the HCL2 jobspec parser.
707
- :param pulumi.Input[builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
708
- :param pulumi.Input[builtins.bool] json: `(boolean: false)` - Set this to `true` if your jobspec is structured with
706
+ :param pulumi.Input[_builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
707
+ :param pulumi.Input[_builtins.bool] json: `(boolean: false)` - Set this to `true` if your jobspec is structured with
709
708
  JSON instead of the default HCL.
710
- :param pulumi.Input[builtins.str] modify_index: Integer that increments for each change. Used to detect any changes between plan and apply.
711
- :param pulumi.Input[builtins.str] name: The name of the job, as derived from the jobspec.
712
- :param pulumi.Input[builtins.str] namespace: The namespace of the job, as derived from the jobspec.
713
- :param pulumi.Input[builtins.bool] policy_override: `(boolean: false)` - Determines if the job will override any
709
+ :param pulumi.Input[_builtins.str] modify_index: Integer that increments for each change. Used to detect any changes between plan and apply.
710
+ :param pulumi.Input[_builtins.str] name: The name of the job, as derived from the jobspec.
711
+ :param pulumi.Input[_builtins.str] namespace: The namespace of the job, as derived from the jobspec.
712
+ :param pulumi.Input[_builtins.bool] policy_override: `(boolean: false)` - Determines if the job will override any
714
713
  soft-mandatory Sentinel policies and register even if they fail.
715
- :param pulumi.Input[builtins.bool] purge_on_destroy: `(boolean: false)` - Set this to true if you want the job to
714
+ :param pulumi.Input[_builtins.bool] purge_on_destroy: `(boolean: false)` - Set this to true if you want the job to
716
715
  be purged when the resource is destroyed.
717
- :param pulumi.Input[builtins.str] region: The target region for the job, as derived from the jobspec.
718
- :param pulumi.Input[builtins.bool] rerun_if_dead: `(boolean: false)` - Set this to true to force the job to run
716
+ :param pulumi.Input[_builtins.str] region: The target region for the job, as derived from the jobspec.
717
+ :param pulumi.Input[_builtins.bool] rerun_if_dead: `(boolean: false)` - Set this to true to force the job to run
719
718
  again if its status is `dead`.
720
- :param pulumi.Input[builtins.str] status: The status of the job.
721
- :param pulumi.Input[builtins.str] type: The type of the job, as derived from the jobspec.
719
+ :param pulumi.Input[_builtins.str] status: The status of the job.
720
+ :param pulumi.Input[_builtins.str] type: The type of the job, as derived from the jobspec.
722
721
  """
723
722
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
724
723
 
@@ -747,66 +746,66 @@ class Job(pulumi.CustomResource):
747
746
  __props__.__dict__["type"] = type
748
747
  return Job(resource_name, opts=opts, __props__=__props__)
749
748
 
750
- @property
749
+ @_builtins.property
751
750
  @pulumi.getter(name="allocationIds")
752
751
  @_utilities.deprecated("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the get_allocations data source instead.""")
753
- def allocation_ids(self) -> pulumi.Output[Sequence[builtins.str]]:
752
+ def allocation_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
754
753
  """
755
754
  The IDs for allocations associated with this job.
756
755
  """
757
756
  return pulumi.get(self, "allocation_ids")
758
757
 
759
- @property
758
+ @_builtins.property
760
759
  @pulumi.getter
761
- def datacenters(self) -> pulumi.Output[Sequence[builtins.str]]:
760
+ def datacenters(self) -> pulumi.Output[Sequence[_builtins.str]]:
762
761
  """
763
762
  The target datacenters for the job, as derived from the jobspec.
764
763
  """
765
764
  return pulumi.get(self, "datacenters")
766
765
 
767
- @property
766
+ @_builtins.property
768
767
  @pulumi.getter(name="deploymentId")
769
- def deployment_id(self) -> pulumi.Output[builtins.str]:
768
+ def deployment_id(self) -> pulumi.Output[_builtins.str]:
770
769
  """
771
770
  If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
772
771
  """
773
772
  return pulumi.get(self, "deployment_id")
774
773
 
775
- @property
774
+ @_builtins.property
776
775
  @pulumi.getter(name="deploymentStatus")
777
- def deployment_status(self) -> pulumi.Output[builtins.str]:
776
+ def deployment_status(self) -> pulumi.Output[_builtins.str]:
778
777
  """
779
778
  If detach = false, the status for the deployment associated with the last job create/update, if one exists.
780
779
  """
781
780
  return pulumi.get(self, "deployment_status")
782
781
 
783
- @property
782
+ @_builtins.property
784
783
  @pulumi.getter(name="deregisterOnDestroy")
785
- def deregister_on_destroy(self) -> pulumi.Output[Optional[builtins.bool]]:
784
+ def deregister_on_destroy(self) -> pulumi.Output[Optional[_builtins.bool]]:
786
785
  """
787
786
  If true, the job will be deregistered on destroy.
788
787
  """
789
788
  return pulumi.get(self, "deregister_on_destroy")
790
789
 
791
- @property
790
+ @_builtins.property
792
791
  @pulumi.getter(name="deregisterOnIdChange")
793
- def deregister_on_id_change(self) -> pulumi.Output[Optional[builtins.bool]]:
792
+ def deregister_on_id_change(self) -> pulumi.Output[Optional[_builtins.bool]]:
794
793
  """
795
794
  `(boolean: true)` - Determines if the job will be
796
795
  deregistered if the ID of the job in the jobspec changes.
797
796
  """
798
797
  return pulumi.get(self, "deregister_on_id_change")
799
798
 
800
- @property
799
+ @_builtins.property
801
800
  @pulumi.getter
802
- def detach(self) -> pulumi.Output[Optional[builtins.bool]]:
801
+ def detach(self) -> pulumi.Output[Optional[_builtins.bool]]:
803
802
  """
804
803
  `(boolean: true)` - If true, the provider will return immediately
805
804
  after creating or updating, instead of monitoring.
806
805
  """
807
806
  return pulumi.get(self, "detach")
808
807
 
809
- @property
808
+ @_builtins.property
810
809
  @pulumi.getter
811
810
  def hcl2(self) -> pulumi.Output[Optional['outputs.JobHcl2']]:
812
811
  """
@@ -814,104 +813,104 @@ class Job(pulumi.CustomResource):
814
813
  """
815
814
  return pulumi.get(self, "hcl2")
816
815
 
817
- @property
816
+ @_builtins.property
818
817
  @pulumi.getter
819
- def jobspec(self) -> pulumi.Output[builtins.str]:
818
+ def jobspec(self) -> pulumi.Output[_builtins.str]:
820
819
  """
821
820
  `(string: <required>)` - The contents of the jobspec to register.
822
821
  """
823
822
  return pulumi.get(self, "jobspec")
824
823
 
825
- @property
824
+ @_builtins.property
826
825
  @pulumi.getter
827
- def json(self) -> pulumi.Output[Optional[builtins.bool]]:
826
+ def json(self) -> pulumi.Output[Optional[_builtins.bool]]:
828
827
  """
829
828
  `(boolean: false)` - Set this to `true` if your jobspec is structured with
830
829
  JSON instead of the default HCL.
831
830
  """
832
831
  return pulumi.get(self, "json")
833
832
 
834
- @property
833
+ @_builtins.property
835
834
  @pulumi.getter(name="modifyIndex")
836
- def modify_index(self) -> pulumi.Output[builtins.str]:
835
+ def modify_index(self) -> pulumi.Output[_builtins.str]:
837
836
  """
838
837
  Integer that increments for each change. Used to detect any changes between plan and apply.
839
838
  """
840
839
  return pulumi.get(self, "modify_index")
841
840
 
842
- @property
841
+ @_builtins.property
843
842
  @pulumi.getter
844
- def name(self) -> pulumi.Output[builtins.str]:
843
+ def name(self) -> pulumi.Output[_builtins.str]:
845
844
  """
846
845
  The name of the job, as derived from the jobspec.
847
846
  """
848
847
  return pulumi.get(self, "name")
849
848
 
850
- @property
849
+ @_builtins.property
851
850
  @pulumi.getter
852
- def namespace(self) -> pulumi.Output[builtins.str]:
851
+ def namespace(self) -> pulumi.Output[_builtins.str]:
853
852
  """
854
853
  The namespace of the job, as derived from the jobspec.
855
854
  """
856
855
  return pulumi.get(self, "namespace")
857
856
 
858
- @property
857
+ @_builtins.property
859
858
  @pulumi.getter(name="policyOverride")
860
- def policy_override(self) -> pulumi.Output[Optional[builtins.bool]]:
859
+ def policy_override(self) -> pulumi.Output[Optional[_builtins.bool]]:
861
860
  """
862
861
  `(boolean: false)` - Determines if the job will override any
863
862
  soft-mandatory Sentinel policies and register even if they fail.
864
863
  """
865
864
  return pulumi.get(self, "policy_override")
866
865
 
867
- @property
866
+ @_builtins.property
868
867
  @pulumi.getter(name="purgeOnDestroy")
869
- def purge_on_destroy(self) -> pulumi.Output[Optional[builtins.bool]]:
868
+ def purge_on_destroy(self) -> pulumi.Output[Optional[_builtins.bool]]:
870
869
  """
871
870
  `(boolean: false)` - Set this to true if you want the job to
872
871
  be purged when the resource is destroyed.
873
872
  """
874
873
  return pulumi.get(self, "purge_on_destroy")
875
874
 
876
- @property
875
+ @_builtins.property
877
876
  @pulumi.getter(name="readAllocationIds")
878
877
  @_utilities.deprecated("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the get_allocations data source instead.""")
879
- def read_allocation_ids(self) -> pulumi.Output[Optional[builtins.bool]]:
878
+ def read_allocation_ids(self) -> pulumi.Output[Optional[_builtins.bool]]:
880
879
  return pulumi.get(self, "read_allocation_ids")
881
880
 
882
- @property
881
+ @_builtins.property
883
882
  @pulumi.getter
884
- def region(self) -> pulumi.Output[builtins.str]:
883
+ def region(self) -> pulumi.Output[_builtins.str]:
885
884
  """
886
885
  The target region for the job, as derived from the jobspec.
887
886
  """
888
887
  return pulumi.get(self, "region")
889
888
 
890
- @property
889
+ @_builtins.property
891
890
  @pulumi.getter(name="rerunIfDead")
892
- def rerun_if_dead(self) -> pulumi.Output[Optional[builtins.bool]]:
891
+ def rerun_if_dead(self) -> pulumi.Output[Optional[_builtins.bool]]:
893
892
  """
894
893
  `(boolean: false)` - Set this to true to force the job to run
895
894
  again if its status is `dead`.
896
895
  """
897
896
  return pulumi.get(self, "rerun_if_dead")
898
897
 
899
- @property
898
+ @_builtins.property
900
899
  @pulumi.getter
901
- def status(self) -> pulumi.Output[builtins.str]:
900
+ def status(self) -> pulumi.Output[_builtins.str]:
902
901
  """
903
902
  The status of the job.
904
903
  """
905
904
  return pulumi.get(self, "status")
906
905
 
907
- @property
906
+ @_builtins.property
908
907
  @pulumi.getter(name="taskGroups")
909
908
  def task_groups(self) -> pulumi.Output[Sequence['outputs.JobTaskGroup']]:
910
909
  return pulumi.get(self, "task_groups")
911
910
 
912
- @property
911
+ @_builtins.property
913
912
  @pulumi.getter
914
- def type(self) -> pulumi.Output[builtins.str]:
913
+ def type(self) -> pulumi.Output[_builtins.str]:
915
914
  """
916
915
  The type of the job, as derived from the jobspec.
917
916
  """