pulumi-nomad 2.5.0a1744783739__py3-none-any.whl → 2.5.1__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 (58) hide show
  1. pulumi_nomad/__init__.py +21 -2
  2. pulumi_nomad/_inputs.py +1151 -475
  3. pulumi_nomad/_utilities.py +1 -1
  4. pulumi_nomad/acl_auth_method.py +108 -108
  5. pulumi_nomad/acl_binding_rule.py +88 -88
  6. pulumi_nomad/acl_policy.py +71 -64
  7. pulumi_nomad/acl_role.py +40 -40
  8. pulumi_nomad/acl_token.py +127 -127
  9. pulumi_nomad/config/__init__.py +2 -2
  10. pulumi_nomad/config/__init__.pyi +2 -13
  11. pulumi_nomad/config/outputs.py +10 -11
  12. pulumi_nomad/config/vars.py +15 -30
  13. pulumi_nomad/csi_volume.py +298 -270
  14. pulumi_nomad/csi_volume_registration.py +278 -278
  15. pulumi_nomad/dynamic_host_volume.py +1005 -0
  16. pulumi_nomad/dynamic_host_volume_registration.py +740 -0
  17. pulumi_nomad/external_volume.py +257 -257
  18. pulumi_nomad/get_acl_policies.py +11 -12
  19. pulumi_nomad/get_acl_policy.py +14 -15
  20. pulumi_nomad/get_acl_role.py +13 -14
  21. pulumi_nomad/get_acl_roles.py +11 -12
  22. pulumi_nomad/get_acl_token.py +27 -28
  23. pulumi_nomad/get_acl_tokens.py +11 -12
  24. pulumi_nomad/get_allocations.py +23 -24
  25. pulumi_nomad/get_datacenters.py +18 -19
  26. pulumi_nomad/get_deployments.py +6 -7
  27. pulumi_nomad/get_dynamic_host_volume.py +352 -0
  28. pulumi_nomad/get_job.py +51 -52
  29. pulumi_nomad/get_job_parser.py +18 -19
  30. pulumi_nomad/get_jwks.py +7 -8
  31. pulumi_nomad/get_namespace.py +18 -19
  32. pulumi_nomad/get_namespaces.py +22 -17
  33. pulumi_nomad/get_node_pool.py +15 -16
  34. pulumi_nomad/get_node_pools.py +17 -18
  35. pulumi_nomad/get_plugin.py +37 -38
  36. pulumi_nomad/get_plugins.py +10 -11
  37. pulumi_nomad/get_regions.py +16 -11
  38. pulumi_nomad/get_scaling_policies.py +17 -18
  39. pulumi_nomad/get_scaling_policy.py +20 -21
  40. pulumi_nomad/get_scheduler_policy.py +10 -11
  41. pulumi_nomad/get_variable.py +18 -19
  42. pulumi_nomad/get_volumes.py +30 -31
  43. pulumi_nomad/job.py +247 -357
  44. pulumi_nomad/namespace.py +77 -77
  45. pulumi_nomad/node_pool.py +57 -57
  46. pulumi_nomad/outputs.py +1212 -635
  47. pulumi_nomad/provider.py +141 -180
  48. pulumi_nomad/pulumi-plugin.json +1 -1
  49. pulumi_nomad/quote_specification.py +40 -40
  50. pulumi_nomad/scheduler_config.py +54 -54
  51. pulumi_nomad/sentinel_policy.py +88 -88
  52. pulumi_nomad/variable.py +54 -54
  53. pulumi_nomad/volume.py +274 -274
  54. {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.5.1.dist-info}/METADATA +3 -3
  55. pulumi_nomad-2.5.1.dist-info/RECORD +58 -0
  56. {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.5.1.dist-info}/WHEEL +1 -1
  57. pulumi_nomad-2.5.0a1744783739.dist-info/RECORD +0 -55
  58. {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.5.1.dist-info}/top_level.txt +0 -0
pulumi_nomad/job.py CHANGED
@@ -1,9 +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
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -22,43 +21,35 @@ __all__ = ['JobArgs', 'Job']
22
21
  @pulumi.input_type
23
22
  class JobArgs:
24
23
  def __init__(__self__, *,
25
- jobspec: pulumi.Input[builtins.str],
26
- consul_token: Optional[pulumi.Input[builtins.str]] = None,
27
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
28
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
29
- 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,
30
28
  hcl2: Optional[pulumi.Input['JobHcl2Args']] = None,
31
- json: Optional[pulumi.Input[builtins.bool]] = None,
32
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
33
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
34
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
35
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
36
- vault_token: Optional[pulumi.Input[builtins.str]] = 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):
37
34
  """
38
35
  The set of arguments for constructing a Job resource.
39
- :param pulumi.Input[builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
40
- :param pulumi.Input[builtins.str] consul_token: `(string: <optional>)` - Consul token used when registering this job.
41
- Will fallback to the value declared in Nomad provider configuration, if any.
42
- :param pulumi.Input[builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
43
- :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
44
39
  deregistered if the ID of the job in the jobspec changes.
45
- :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
46
41
  after creating or updating, instead of monitoring.
47
42
  :param pulumi.Input['JobHcl2Args'] hcl2: `(block: optional)` - Options for the HCL2 jobspec parser.
48
- :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
49
44
  JSON instead of the default HCL.
50
- :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
51
46
  soft-mandatory Sentinel policies and register even if they fail.
52
- :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
53
48
  be purged when the resource is destroyed.
54
- :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
55
50
  again if its status is `dead`.
56
- :param pulumi.Input[builtins.str] vault_token: `(string: <optional>)` - Vault token used when registering this job.
57
- Will fallback to the value declared in Nomad provider configuration, if any.
58
51
  """
59
52
  pulumi.set(__self__, "jobspec", jobspec)
60
- if consul_token is not None:
61
- pulumi.set(__self__, "consul_token", consul_token)
62
53
  if deregister_on_destroy is not None:
63
54
  pulumi.set(__self__, "deregister_on_destroy", deregister_on_destroy)
64
55
  if deregister_on_id_change is not None:
@@ -80,49 +71,34 @@ class JobArgs:
80
71
  pulumi.set(__self__, "read_allocation_ids", read_allocation_ids)
81
72
  if rerun_if_dead is not None:
82
73
  pulumi.set(__self__, "rerun_if_dead", rerun_if_dead)
83
- if vault_token is not None:
84
- pulumi.set(__self__, "vault_token", vault_token)
85
74
 
86
- @property
75
+ @_builtins.property
87
76
  @pulumi.getter
88
- def jobspec(self) -> pulumi.Input[builtins.str]:
77
+ def jobspec(self) -> pulumi.Input[_builtins.str]:
89
78
  """
90
79
  `(string: <required>)` - The contents of the jobspec to register.
91
80
  """
92
81
  return pulumi.get(self, "jobspec")
93
82
 
94
83
  @jobspec.setter
95
- def jobspec(self, value: pulumi.Input[builtins.str]):
84
+ def jobspec(self, value: pulumi.Input[_builtins.str]):
96
85
  pulumi.set(self, "jobspec", value)
97
86
 
98
- @property
99
- @pulumi.getter(name="consulToken")
100
- def consul_token(self) -> Optional[pulumi.Input[builtins.str]]:
101
- """
102
- `(string: <optional>)` - Consul token used when registering this job.
103
- Will fallback to the value declared in Nomad provider configuration, if any.
104
- """
105
- return pulumi.get(self, "consul_token")
106
-
107
- @consul_token.setter
108
- def consul_token(self, value: Optional[pulumi.Input[builtins.str]]):
109
- pulumi.set(self, "consul_token", value)
110
-
111
- @property
87
+ @_builtins.property
112
88
  @pulumi.getter(name="deregisterOnDestroy")
113
- def deregister_on_destroy(self) -> Optional[pulumi.Input[builtins.bool]]:
89
+ def deregister_on_destroy(self) -> Optional[pulumi.Input[_builtins.bool]]:
114
90
  """
115
91
  If true, the job will be deregistered on destroy.
116
92
  """
117
93
  return pulumi.get(self, "deregister_on_destroy")
118
94
 
119
95
  @deregister_on_destroy.setter
120
- def deregister_on_destroy(self, value: Optional[pulumi.Input[builtins.bool]]):
96
+ def deregister_on_destroy(self, value: Optional[pulumi.Input[_builtins.bool]]):
121
97
  pulumi.set(self, "deregister_on_destroy", value)
122
98
 
123
- @property
99
+ @_builtins.property
124
100
  @pulumi.getter(name="deregisterOnIdChange")
125
- def deregister_on_id_change(self) -> Optional[pulumi.Input[builtins.bool]]:
101
+ def deregister_on_id_change(self) -> Optional[pulumi.Input[_builtins.bool]]:
126
102
  """
127
103
  `(boolean: true)` - Determines if the job will be
128
104
  deregistered if the ID of the job in the jobspec changes.
@@ -130,12 +106,12 @@ class JobArgs:
130
106
  return pulumi.get(self, "deregister_on_id_change")
131
107
 
132
108
  @deregister_on_id_change.setter
133
- 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]]):
134
110
  pulumi.set(self, "deregister_on_id_change", value)
135
111
 
136
- @property
112
+ @_builtins.property
137
113
  @pulumi.getter
138
- def detach(self) -> Optional[pulumi.Input[builtins.bool]]:
114
+ def detach(self) -> Optional[pulumi.Input[_builtins.bool]]:
139
115
  """
140
116
  `(boolean: true)` - If true, the provider will return immediately
141
117
  after creating or updating, instead of monitoring.
@@ -143,10 +119,10 @@ class JobArgs:
143
119
  return pulumi.get(self, "detach")
144
120
 
145
121
  @detach.setter
146
- def detach(self, value: Optional[pulumi.Input[builtins.bool]]):
122
+ def detach(self, value: Optional[pulumi.Input[_builtins.bool]]):
147
123
  pulumi.set(self, "detach", value)
148
124
 
149
- @property
125
+ @_builtins.property
150
126
  @pulumi.getter
151
127
  def hcl2(self) -> Optional[pulumi.Input['JobHcl2Args']]:
152
128
  """
@@ -158,9 +134,9 @@ class JobArgs:
158
134
  def hcl2(self, value: Optional[pulumi.Input['JobHcl2Args']]):
159
135
  pulumi.set(self, "hcl2", value)
160
136
 
161
- @property
137
+ @_builtins.property
162
138
  @pulumi.getter
163
- def json(self) -> Optional[pulumi.Input[builtins.bool]]:
139
+ def json(self) -> Optional[pulumi.Input[_builtins.bool]]:
164
140
  """
165
141
  `(boolean: false)` - Set this to `true` if your jobspec is structured with
166
142
  JSON instead of the default HCL.
@@ -168,12 +144,12 @@ class JobArgs:
168
144
  return pulumi.get(self, "json")
169
145
 
170
146
  @json.setter
171
- def json(self, value: Optional[pulumi.Input[builtins.bool]]):
147
+ def json(self, value: Optional[pulumi.Input[_builtins.bool]]):
172
148
  pulumi.set(self, "json", value)
173
149
 
174
- @property
150
+ @_builtins.property
175
151
  @pulumi.getter(name="policyOverride")
176
- def policy_override(self) -> Optional[pulumi.Input[builtins.bool]]:
152
+ def policy_override(self) -> Optional[pulumi.Input[_builtins.bool]]:
177
153
  """
178
154
  `(boolean: false)` - Determines if the job will override any
179
155
  soft-mandatory Sentinel policies and register even if they fail.
@@ -181,12 +157,12 @@ class JobArgs:
181
157
  return pulumi.get(self, "policy_override")
182
158
 
183
159
  @policy_override.setter
184
- def policy_override(self, value: Optional[pulumi.Input[builtins.bool]]):
160
+ def policy_override(self, value: Optional[pulumi.Input[_builtins.bool]]):
185
161
  pulumi.set(self, "policy_override", value)
186
162
 
187
- @property
163
+ @_builtins.property
188
164
  @pulumi.getter(name="purgeOnDestroy")
189
- def purge_on_destroy(self) -> Optional[pulumi.Input[builtins.bool]]:
165
+ def purge_on_destroy(self) -> Optional[pulumi.Input[_builtins.bool]]:
190
166
  """
191
167
  `(boolean: false)` - Set this to true if you want the job to
192
168
  be purged when the resource is destroyed.
@@ -194,22 +170,22 @@ class JobArgs:
194
170
  return pulumi.get(self, "purge_on_destroy")
195
171
 
196
172
  @purge_on_destroy.setter
197
- def purge_on_destroy(self, value: Optional[pulumi.Input[builtins.bool]]):
173
+ def purge_on_destroy(self, value: Optional[pulumi.Input[_builtins.bool]]):
198
174
  pulumi.set(self, "purge_on_destroy", value)
199
175
 
200
- @property
176
+ @_builtins.property
201
177
  @pulumi.getter(name="readAllocationIds")
202
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.""")
203
- def read_allocation_ids(self) -> Optional[pulumi.Input[builtins.bool]]:
179
+ def read_allocation_ids(self) -> Optional[pulumi.Input[_builtins.bool]]:
204
180
  return pulumi.get(self, "read_allocation_ids")
205
181
 
206
182
  @read_allocation_ids.setter
207
- def read_allocation_ids(self, value: Optional[pulumi.Input[builtins.bool]]):
183
+ def read_allocation_ids(self, value: Optional[pulumi.Input[_builtins.bool]]):
208
184
  pulumi.set(self, "read_allocation_ids", value)
209
185
 
210
- @property
186
+ @_builtins.property
211
187
  @pulumi.getter(name="rerunIfDead")
212
- def rerun_if_dead(self) -> Optional[pulumi.Input[builtins.bool]]:
188
+ def rerun_if_dead(self) -> Optional[pulumi.Input[_builtins.bool]]:
213
189
  """
214
190
  `(boolean: false)` - Set this to true to force the job to run
215
191
  again if its status is `dead`.
@@ -217,88 +193,67 @@ class JobArgs:
217
193
  return pulumi.get(self, "rerun_if_dead")
218
194
 
219
195
  @rerun_if_dead.setter
220
- def rerun_if_dead(self, value: Optional[pulumi.Input[builtins.bool]]):
196
+ def rerun_if_dead(self, value: Optional[pulumi.Input[_builtins.bool]]):
221
197
  pulumi.set(self, "rerun_if_dead", value)
222
198
 
223
- @property
224
- @pulumi.getter(name="vaultToken")
225
- def vault_token(self) -> Optional[pulumi.Input[builtins.str]]:
226
- """
227
- `(string: <optional>)` - Vault token used when registering this job.
228
- Will fallback to the value declared in Nomad provider configuration, if any.
229
- """
230
- return pulumi.get(self, "vault_token")
231
-
232
- @vault_token.setter
233
- def vault_token(self, value: Optional[pulumi.Input[builtins.str]]):
234
- pulumi.set(self, "vault_token", value)
235
-
236
199
 
237
200
  @pulumi.input_type
238
201
  class _JobState:
239
202
  def __init__(__self__, *,
240
- allocation_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
241
- consul_token: Optional[pulumi.Input[builtins.str]] = None,
242
- datacenters: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
243
- deployment_id: Optional[pulumi.Input[builtins.str]] = None,
244
- deployment_status: Optional[pulumi.Input[builtins.str]] = None,
245
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
246
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
247
- 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,
248
210
  hcl2: Optional[pulumi.Input['JobHcl2Args']] = None,
249
- jobspec: Optional[pulumi.Input[builtins.str]] = None,
250
- json: Optional[pulumi.Input[builtins.bool]] = None,
251
- modify_index: Optional[pulumi.Input[builtins.str]] = None,
252
- name: Optional[pulumi.Input[builtins.str]] = None,
253
- namespace: Optional[pulumi.Input[builtins.str]] = None,
254
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
255
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
256
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
257
- region: Optional[pulumi.Input[builtins.str]] = None,
258
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
259
- 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,
260
222
  task_groups: Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupArgs']]]] = None,
261
- type: Optional[pulumi.Input[builtins.str]] = None,
262
- vault_token: Optional[pulumi.Input[builtins.str]] = None):
223
+ type: Optional[pulumi.Input[_builtins.str]] = None):
263
224
  """
264
225
  Input properties used for looking up and filtering Job resources.
265
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] allocation_ids: The IDs for allocations associated with this job.
266
- :param pulumi.Input[builtins.str] consul_token: `(string: <optional>)` - Consul token used when registering this job.
267
- Will fallback to the value declared in Nomad provider configuration, if any.
268
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] datacenters: The target datacenters for the job, as derived from the jobspec.
269
- :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.
270
- :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.
271
- :param pulumi.Input[builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
272
- :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
273
232
  deregistered if the ID of the job in the jobspec changes.
274
- :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
275
234
  after creating or updating, instead of monitoring.
276
235
  :param pulumi.Input['JobHcl2Args'] hcl2: `(block: optional)` - Options for the HCL2 jobspec parser.
277
- :param pulumi.Input[builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
278
- :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
279
238
  JSON instead of the default HCL.
280
- :param pulumi.Input[builtins.str] modify_index: Integer that increments for each change. Used to detect any changes between plan and apply.
281
- :param pulumi.Input[builtins.str] name: The name of the job, as derived from the jobspec.
282
- :param pulumi.Input[builtins.str] namespace: The namespace of the job, as derived from the jobspec.
283
- :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
284
243
  soft-mandatory Sentinel policies and register even if they fail.
285
- :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
286
245
  be purged when the resource is destroyed.
287
- :param pulumi.Input[builtins.str] region: The target region for the job, as derived from the jobspec.
288
- :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
289
248
  again if its status is `dead`.
290
- :param pulumi.Input[builtins.str] status: The status of the job.
291
- :param pulumi.Input[builtins.str] type: The type of the job, as derived from the jobspec.
292
- :param pulumi.Input[builtins.str] vault_token: `(string: <optional>)` - Vault token used when registering this job.
293
- Will fallback to the value declared in Nomad provider configuration, if any.
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.
294
251
  """
295
252
  if allocation_ids is not None:
296
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)
297
254
  pulumi.log.warn("""allocation_ids is 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.""")
298
255
  if allocation_ids is not None:
299
256
  pulumi.set(__self__, "allocation_ids", allocation_ids)
300
- if consul_token is not None:
301
- pulumi.set(__self__, "consul_token", consul_token)
302
257
  if datacenters is not None:
303
258
  pulumi.set(__self__, "datacenters", datacenters)
304
259
  if deployment_id is not None:
@@ -342,86 +297,71 @@ class _JobState:
342
297
  pulumi.set(__self__, "task_groups", task_groups)
343
298
  if type is not None:
344
299
  pulumi.set(__self__, "type", type)
345
- if vault_token is not None:
346
- pulumi.set(__self__, "vault_token", vault_token)
347
300
 
348
- @property
301
+ @_builtins.property
349
302
  @pulumi.getter(name="allocationIds")
350
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.""")
351
- 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]]]]:
352
305
  """
353
306
  The IDs for allocations associated with this job.
354
307
  """
355
308
  return pulumi.get(self, "allocation_ids")
356
309
 
357
310
  @allocation_ids.setter
358
- 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]]]]):
359
312
  pulumi.set(self, "allocation_ids", value)
360
313
 
361
- @property
362
- @pulumi.getter(name="consulToken")
363
- def consul_token(self) -> Optional[pulumi.Input[builtins.str]]:
364
- """
365
- `(string: <optional>)` - Consul token used when registering this job.
366
- Will fallback to the value declared in Nomad provider configuration, if any.
367
- """
368
- return pulumi.get(self, "consul_token")
369
-
370
- @consul_token.setter
371
- def consul_token(self, value: Optional[pulumi.Input[builtins.str]]):
372
- pulumi.set(self, "consul_token", value)
373
-
374
- @property
314
+ @_builtins.property
375
315
  @pulumi.getter
376
- def datacenters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
316
+ def datacenters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
377
317
  """
378
318
  The target datacenters for the job, as derived from the jobspec.
379
319
  """
380
320
  return pulumi.get(self, "datacenters")
381
321
 
382
322
  @datacenters.setter
383
- 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]]]]):
384
324
  pulumi.set(self, "datacenters", value)
385
325
 
386
- @property
326
+ @_builtins.property
387
327
  @pulumi.getter(name="deploymentId")
388
- def deployment_id(self) -> Optional[pulumi.Input[builtins.str]]:
328
+ def deployment_id(self) -> Optional[pulumi.Input[_builtins.str]]:
389
329
  """
390
330
  If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
391
331
  """
392
332
  return pulumi.get(self, "deployment_id")
393
333
 
394
334
  @deployment_id.setter
395
- def deployment_id(self, value: Optional[pulumi.Input[builtins.str]]):
335
+ def deployment_id(self, value: Optional[pulumi.Input[_builtins.str]]):
396
336
  pulumi.set(self, "deployment_id", value)
397
337
 
398
- @property
338
+ @_builtins.property
399
339
  @pulumi.getter(name="deploymentStatus")
400
- def deployment_status(self) -> Optional[pulumi.Input[builtins.str]]:
340
+ def deployment_status(self) -> Optional[pulumi.Input[_builtins.str]]:
401
341
  """
402
342
  If detach = false, the status for the deployment associated with the last job create/update, if one exists.
403
343
  """
404
344
  return pulumi.get(self, "deployment_status")
405
345
 
406
346
  @deployment_status.setter
407
- def deployment_status(self, value: Optional[pulumi.Input[builtins.str]]):
347
+ def deployment_status(self, value: Optional[pulumi.Input[_builtins.str]]):
408
348
  pulumi.set(self, "deployment_status", value)
409
349
 
410
- @property
350
+ @_builtins.property
411
351
  @pulumi.getter(name="deregisterOnDestroy")
412
- def deregister_on_destroy(self) -> Optional[pulumi.Input[builtins.bool]]:
352
+ def deregister_on_destroy(self) -> Optional[pulumi.Input[_builtins.bool]]:
413
353
  """
414
354
  If true, the job will be deregistered on destroy.
415
355
  """
416
356
  return pulumi.get(self, "deregister_on_destroy")
417
357
 
418
358
  @deregister_on_destroy.setter
419
- def deregister_on_destroy(self, value: Optional[pulumi.Input[builtins.bool]]):
359
+ def deregister_on_destroy(self, value: Optional[pulumi.Input[_builtins.bool]]):
420
360
  pulumi.set(self, "deregister_on_destroy", value)
421
361
 
422
- @property
362
+ @_builtins.property
423
363
  @pulumi.getter(name="deregisterOnIdChange")
424
- def deregister_on_id_change(self) -> Optional[pulumi.Input[builtins.bool]]:
364
+ def deregister_on_id_change(self) -> Optional[pulumi.Input[_builtins.bool]]:
425
365
  """
426
366
  `(boolean: true)` - Determines if the job will be
427
367
  deregistered if the ID of the job in the jobspec changes.
@@ -429,12 +369,12 @@ class _JobState:
429
369
  return pulumi.get(self, "deregister_on_id_change")
430
370
 
431
371
  @deregister_on_id_change.setter
432
- 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]]):
433
373
  pulumi.set(self, "deregister_on_id_change", value)
434
374
 
435
- @property
375
+ @_builtins.property
436
376
  @pulumi.getter
437
- def detach(self) -> Optional[pulumi.Input[builtins.bool]]:
377
+ def detach(self) -> Optional[pulumi.Input[_builtins.bool]]:
438
378
  """
439
379
  `(boolean: true)` - If true, the provider will return immediately
440
380
  after creating or updating, instead of monitoring.
@@ -442,10 +382,10 @@ class _JobState:
442
382
  return pulumi.get(self, "detach")
443
383
 
444
384
  @detach.setter
445
- def detach(self, value: Optional[pulumi.Input[builtins.bool]]):
385
+ def detach(self, value: Optional[pulumi.Input[_builtins.bool]]):
446
386
  pulumi.set(self, "detach", value)
447
387
 
448
- @property
388
+ @_builtins.property
449
389
  @pulumi.getter
450
390
  def hcl2(self) -> Optional[pulumi.Input['JobHcl2Args']]:
451
391
  """
@@ -457,21 +397,21 @@ class _JobState:
457
397
  def hcl2(self, value: Optional[pulumi.Input['JobHcl2Args']]):
458
398
  pulumi.set(self, "hcl2", value)
459
399
 
460
- @property
400
+ @_builtins.property
461
401
  @pulumi.getter
462
- def jobspec(self) -> Optional[pulumi.Input[builtins.str]]:
402
+ def jobspec(self) -> Optional[pulumi.Input[_builtins.str]]:
463
403
  """
464
404
  `(string: <required>)` - The contents of the jobspec to register.
465
405
  """
466
406
  return pulumi.get(self, "jobspec")
467
407
 
468
408
  @jobspec.setter
469
- def jobspec(self, value: Optional[pulumi.Input[builtins.str]]):
409
+ def jobspec(self, value: Optional[pulumi.Input[_builtins.str]]):
470
410
  pulumi.set(self, "jobspec", value)
471
411
 
472
- @property
412
+ @_builtins.property
473
413
  @pulumi.getter
474
- def json(self) -> Optional[pulumi.Input[builtins.bool]]:
414
+ def json(self) -> Optional[pulumi.Input[_builtins.bool]]:
475
415
  """
476
416
  `(boolean: false)` - Set this to `true` if your jobspec is structured with
477
417
  JSON instead of the default HCL.
@@ -479,48 +419,48 @@ class _JobState:
479
419
  return pulumi.get(self, "json")
480
420
 
481
421
  @json.setter
482
- def json(self, value: Optional[pulumi.Input[builtins.bool]]):
422
+ def json(self, value: Optional[pulumi.Input[_builtins.bool]]):
483
423
  pulumi.set(self, "json", value)
484
424
 
485
- @property
425
+ @_builtins.property
486
426
  @pulumi.getter(name="modifyIndex")
487
- def modify_index(self) -> Optional[pulumi.Input[builtins.str]]:
427
+ def modify_index(self) -> Optional[pulumi.Input[_builtins.str]]:
488
428
  """
489
429
  Integer that increments for each change. Used to detect any changes between plan and apply.
490
430
  """
491
431
  return pulumi.get(self, "modify_index")
492
432
 
493
433
  @modify_index.setter
494
- def modify_index(self, value: Optional[pulumi.Input[builtins.str]]):
434
+ def modify_index(self, value: Optional[pulumi.Input[_builtins.str]]):
495
435
  pulumi.set(self, "modify_index", value)
496
436
 
497
- @property
437
+ @_builtins.property
498
438
  @pulumi.getter
499
- def name(self) -> Optional[pulumi.Input[builtins.str]]:
439
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
500
440
  """
501
441
  The name of the job, as derived from the jobspec.
502
442
  """
503
443
  return pulumi.get(self, "name")
504
444
 
505
445
  @name.setter
506
- def name(self, value: Optional[pulumi.Input[builtins.str]]):
446
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
507
447
  pulumi.set(self, "name", value)
508
448
 
509
- @property
449
+ @_builtins.property
510
450
  @pulumi.getter
511
- def namespace(self) -> Optional[pulumi.Input[builtins.str]]:
451
+ def namespace(self) -> Optional[pulumi.Input[_builtins.str]]:
512
452
  """
513
453
  The namespace of the job, as derived from the jobspec.
514
454
  """
515
455
  return pulumi.get(self, "namespace")
516
456
 
517
457
  @namespace.setter
518
- def namespace(self, value: Optional[pulumi.Input[builtins.str]]):
458
+ def namespace(self, value: Optional[pulumi.Input[_builtins.str]]):
519
459
  pulumi.set(self, "namespace", value)
520
460
 
521
- @property
461
+ @_builtins.property
522
462
  @pulumi.getter(name="policyOverride")
523
- def policy_override(self) -> Optional[pulumi.Input[builtins.bool]]:
463
+ def policy_override(self) -> Optional[pulumi.Input[_builtins.bool]]:
524
464
  """
525
465
  `(boolean: false)` - Determines if the job will override any
526
466
  soft-mandatory Sentinel policies and register even if they fail.
@@ -528,12 +468,12 @@ class _JobState:
528
468
  return pulumi.get(self, "policy_override")
529
469
 
530
470
  @policy_override.setter
531
- def policy_override(self, value: Optional[pulumi.Input[builtins.bool]]):
471
+ def policy_override(self, value: Optional[pulumi.Input[_builtins.bool]]):
532
472
  pulumi.set(self, "policy_override", value)
533
473
 
534
- @property
474
+ @_builtins.property
535
475
  @pulumi.getter(name="purgeOnDestroy")
536
- def purge_on_destroy(self) -> Optional[pulumi.Input[builtins.bool]]:
476
+ def purge_on_destroy(self) -> Optional[pulumi.Input[_builtins.bool]]:
537
477
  """
538
478
  `(boolean: false)` - Set this to true if you want the job to
539
479
  be purged when the resource is destroyed.
@@ -541,34 +481,34 @@ class _JobState:
541
481
  return pulumi.get(self, "purge_on_destroy")
542
482
 
543
483
  @purge_on_destroy.setter
544
- def purge_on_destroy(self, value: Optional[pulumi.Input[builtins.bool]]):
484
+ def purge_on_destroy(self, value: Optional[pulumi.Input[_builtins.bool]]):
545
485
  pulumi.set(self, "purge_on_destroy", value)
546
486
 
547
- @property
487
+ @_builtins.property
548
488
  @pulumi.getter(name="readAllocationIds")
549
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.""")
550
- def read_allocation_ids(self) -> Optional[pulumi.Input[builtins.bool]]:
490
+ def read_allocation_ids(self) -> Optional[pulumi.Input[_builtins.bool]]:
551
491
  return pulumi.get(self, "read_allocation_ids")
552
492
 
553
493
  @read_allocation_ids.setter
554
- def read_allocation_ids(self, value: Optional[pulumi.Input[builtins.bool]]):
494
+ def read_allocation_ids(self, value: Optional[pulumi.Input[_builtins.bool]]):
555
495
  pulumi.set(self, "read_allocation_ids", value)
556
496
 
557
- @property
497
+ @_builtins.property
558
498
  @pulumi.getter
559
- def region(self) -> Optional[pulumi.Input[builtins.str]]:
499
+ def region(self) -> Optional[pulumi.Input[_builtins.str]]:
560
500
  """
561
501
  The target region for the job, as derived from the jobspec.
562
502
  """
563
503
  return pulumi.get(self, "region")
564
504
 
565
505
  @region.setter
566
- def region(self, value: Optional[pulumi.Input[builtins.str]]):
506
+ def region(self, value: Optional[pulumi.Input[_builtins.str]]):
567
507
  pulumi.set(self, "region", value)
568
508
 
569
- @property
509
+ @_builtins.property
570
510
  @pulumi.getter(name="rerunIfDead")
571
- def rerun_if_dead(self) -> Optional[pulumi.Input[builtins.bool]]:
511
+ def rerun_if_dead(self) -> Optional[pulumi.Input[_builtins.bool]]:
572
512
  """
573
513
  `(boolean: false)` - Set this to true to force the job to run
574
514
  again if its status is `dead`.
@@ -576,22 +516,22 @@ class _JobState:
576
516
  return pulumi.get(self, "rerun_if_dead")
577
517
 
578
518
  @rerun_if_dead.setter
579
- def rerun_if_dead(self, value: Optional[pulumi.Input[builtins.bool]]):
519
+ def rerun_if_dead(self, value: Optional[pulumi.Input[_builtins.bool]]):
580
520
  pulumi.set(self, "rerun_if_dead", value)
581
521
 
582
- @property
522
+ @_builtins.property
583
523
  @pulumi.getter
584
- def status(self) -> Optional[pulumi.Input[builtins.str]]:
524
+ def status(self) -> Optional[pulumi.Input[_builtins.str]]:
585
525
  """
586
526
  The status of the job.
587
527
  """
588
528
  return pulumi.get(self, "status")
589
529
 
590
530
  @status.setter
591
- def status(self, value: Optional[pulumi.Input[builtins.str]]):
531
+ def status(self, value: Optional[pulumi.Input[_builtins.str]]):
592
532
  pulumi.set(self, "status", value)
593
533
 
594
- @property
534
+ @_builtins.property
595
535
  @pulumi.getter(name="taskGroups")
596
536
  def task_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupArgs']]]]:
597
537
  return pulumi.get(self, "task_groups")
@@ -600,73 +540,55 @@ class _JobState:
600
540
  def task_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupArgs']]]]):
601
541
  pulumi.set(self, "task_groups", value)
602
542
 
603
- @property
543
+ @_builtins.property
604
544
  @pulumi.getter
605
- def type(self) -> Optional[pulumi.Input[builtins.str]]:
545
+ def type(self) -> Optional[pulumi.Input[_builtins.str]]:
606
546
  """
607
547
  The type of the job, as derived from the jobspec.
608
548
  """
609
549
  return pulumi.get(self, "type")
610
550
 
611
551
  @type.setter
612
- def type(self, value: Optional[pulumi.Input[builtins.str]]):
552
+ def type(self, value: Optional[pulumi.Input[_builtins.str]]):
613
553
  pulumi.set(self, "type", value)
614
554
 
615
- @property
616
- @pulumi.getter(name="vaultToken")
617
- def vault_token(self) -> Optional[pulumi.Input[builtins.str]]:
618
- """
619
- `(string: <optional>)` - Vault token used when registering this job.
620
- Will fallback to the value declared in Nomad provider configuration, if any.
621
- """
622
- return pulumi.get(self, "vault_token")
623
-
624
- @vault_token.setter
625
- def vault_token(self, value: Optional[pulumi.Input[builtins.str]]):
626
- pulumi.set(self, "vault_token", value)
627
-
628
555
 
556
+ @pulumi.type_token("nomad:index/job:Job")
629
557
  class Job(pulumi.CustomResource):
630
558
  @overload
631
559
  def __init__(__self__,
632
560
  resource_name: str,
633
561
  opts: Optional[pulumi.ResourceOptions] = None,
634
- consul_token: Optional[pulumi.Input[builtins.str]] = None,
635
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
636
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
637
- 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,
638
565
  hcl2: Optional[pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']]] = None,
639
- jobspec: Optional[pulumi.Input[builtins.str]] = None,
640
- json: Optional[pulumi.Input[builtins.bool]] = None,
641
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
642
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
643
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
644
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
645
- vault_token: Optional[pulumi.Input[builtins.str]] = 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,
646
572
  __props__=None):
647
573
  """
648
574
  Create a Job resource with the given unique name, props, and options.
649
575
  :param str resource_name: The name of the resource.
650
576
  :param pulumi.ResourceOptions opts: Options for the resource.
651
- :param pulumi.Input[builtins.str] consul_token: `(string: <optional>)` - Consul token used when registering this job.
652
- Will fallback to the value declared in Nomad provider configuration, if any.
653
- :param pulumi.Input[builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
654
- :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
655
579
  deregistered if the ID of the job in the jobspec changes.
656
- :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
657
581
  after creating or updating, instead of monitoring.
658
582
  :param pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']] hcl2: `(block: optional)` - Options for the HCL2 jobspec parser.
659
- :param pulumi.Input[builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
660
- :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
661
585
  JSON instead of the default HCL.
662
- :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
663
587
  soft-mandatory Sentinel policies and register even if they fail.
664
- :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
665
589
  be purged when the resource is destroyed.
666
- :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
667
591
  again if its status is `dead`.
668
- :param pulumi.Input[builtins.str] vault_token: `(string: <optional>)` - Vault token used when registering this job.
669
- Will fallback to the value declared in Nomad provider configuration, if any.
670
592
  """
671
593
  ...
672
594
  @overload
@@ -691,18 +613,16 @@ class Job(pulumi.CustomResource):
691
613
  def _internal_init(__self__,
692
614
  resource_name: str,
693
615
  opts: Optional[pulumi.ResourceOptions] = None,
694
- consul_token: Optional[pulumi.Input[builtins.str]] = None,
695
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
696
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
697
- 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,
698
619
  hcl2: Optional[pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']]] = None,
699
- jobspec: Optional[pulumi.Input[builtins.str]] = None,
700
- json: Optional[pulumi.Input[builtins.bool]] = None,
701
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
702
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
703
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
704
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
705
- vault_token: Optional[pulumi.Input[builtins.str]] = 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,
706
626
  __props__=None):
707
627
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
708
628
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -712,7 +632,6 @@ class Job(pulumi.CustomResource):
712
632
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
713
633
  __props__ = JobArgs.__new__(JobArgs)
714
634
 
715
- __props__.__dict__["consul_token"] = None if consul_token is None else pulumi.Output.secret(consul_token)
716
635
  __props__.__dict__["deregister_on_destroy"] = deregister_on_destroy
717
636
  __props__.__dict__["deregister_on_id_change"] = deregister_on_id_change
718
637
  __props__.__dict__["detach"] = detach
@@ -725,7 +644,6 @@ class Job(pulumi.CustomResource):
725
644
  __props__.__dict__["purge_on_destroy"] = purge_on_destroy
726
645
  __props__.__dict__["read_allocation_ids"] = read_allocation_ids
727
646
  __props__.__dict__["rerun_if_dead"] = rerun_if_dead
728
- __props__.__dict__["vault_token"] = None if vault_token is None else pulumi.Output.secret(vault_token)
729
647
  __props__.__dict__["allocation_ids"] = None
730
648
  __props__.__dict__["datacenters"] = None
731
649
  __props__.__dict__["deployment_id"] = None
@@ -737,8 +655,6 @@ class Job(pulumi.CustomResource):
737
655
  __props__.__dict__["status"] = None
738
656
  __props__.__dict__["task_groups"] = None
739
657
  __props__.__dict__["type"] = None
740
- secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["consulToken", "vaultToken"])
741
- opts = pulumi.ResourceOptions.merge(opts, secret_opts)
742
658
  super(Job, __self__).__init__(
743
659
  'nomad:index/job:Job',
744
660
  resource_name,
@@ -749,29 +665,27 @@ class Job(pulumi.CustomResource):
749
665
  def get(resource_name: str,
750
666
  id: pulumi.Input[str],
751
667
  opts: Optional[pulumi.ResourceOptions] = None,
752
- allocation_ids: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
753
- consul_token: Optional[pulumi.Input[builtins.str]] = None,
754
- datacenters: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
755
- deployment_id: Optional[pulumi.Input[builtins.str]] = None,
756
- deployment_status: Optional[pulumi.Input[builtins.str]] = None,
757
- deregister_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
758
- deregister_on_id_change: Optional[pulumi.Input[builtins.bool]] = None,
759
- 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,
760
675
  hcl2: Optional[pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']]] = None,
761
- jobspec: Optional[pulumi.Input[builtins.str]] = None,
762
- json: Optional[pulumi.Input[builtins.bool]] = None,
763
- modify_index: Optional[pulumi.Input[builtins.str]] = None,
764
- name: Optional[pulumi.Input[builtins.str]] = None,
765
- namespace: Optional[pulumi.Input[builtins.str]] = None,
766
- policy_override: Optional[pulumi.Input[builtins.bool]] = None,
767
- purge_on_destroy: Optional[pulumi.Input[builtins.bool]] = None,
768
- read_allocation_ids: Optional[pulumi.Input[builtins.bool]] = None,
769
- region: Optional[pulumi.Input[builtins.str]] = None,
770
- rerun_if_dead: Optional[pulumi.Input[builtins.bool]] = None,
771
- 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,
772
687
  task_groups: Optional[pulumi.Input[Sequence[pulumi.Input[Union['JobTaskGroupArgs', 'JobTaskGroupArgsDict']]]]] = None,
773
- type: Optional[pulumi.Input[builtins.str]] = None,
774
- vault_token: Optional[pulumi.Input[builtins.str]] = None) -> 'Job':
688
+ type: Optional[pulumi.Input[_builtins.str]] = None) -> 'Job':
775
689
  """
776
690
  Get an existing Job resource's state with the given name, id, and optional extra
777
691
  properties used to qualify the lookup.
@@ -779,42 +693,37 @@ class Job(pulumi.CustomResource):
779
693
  :param str resource_name: The unique name of the resulting resource.
780
694
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
781
695
  :param pulumi.ResourceOptions opts: Options for the resource.
782
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] allocation_ids: The IDs for allocations associated with this job.
783
- :param pulumi.Input[builtins.str] consul_token: `(string: <optional>)` - Consul token used when registering this job.
784
- Will fallback to the value declared in Nomad provider configuration, if any.
785
- :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] datacenters: The target datacenters for the job, as derived from the jobspec.
786
- :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.
787
- :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.
788
- :param pulumi.Input[builtins.bool] deregister_on_destroy: If true, the job will be deregistered on destroy.
789
- :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
790
702
  deregistered if the ID of the job in the jobspec changes.
791
- :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
792
704
  after creating or updating, instead of monitoring.
793
705
  :param pulumi.Input[Union['JobHcl2Args', 'JobHcl2ArgsDict']] hcl2: `(block: optional)` - Options for the HCL2 jobspec parser.
794
- :param pulumi.Input[builtins.str] jobspec: `(string: <required>)` - The contents of the jobspec to register.
795
- :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
796
708
  JSON instead of the default HCL.
797
- :param pulumi.Input[builtins.str] modify_index: Integer that increments for each change. Used to detect any changes between plan and apply.
798
- :param pulumi.Input[builtins.str] name: The name of the job, as derived from the jobspec.
799
- :param pulumi.Input[builtins.str] namespace: The namespace of the job, as derived from the jobspec.
800
- :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
801
713
  soft-mandatory Sentinel policies and register even if they fail.
802
- :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
803
715
  be purged when the resource is destroyed.
804
- :param pulumi.Input[builtins.str] region: The target region for the job, as derived from the jobspec.
805
- :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
806
718
  again if its status is `dead`.
807
- :param pulumi.Input[builtins.str] status: The status of the job.
808
- :param pulumi.Input[builtins.str] type: The type of the job, as derived from the jobspec.
809
- :param pulumi.Input[builtins.str] vault_token: `(string: <optional>)` - Vault token used when registering this job.
810
- Will fallback to the value declared in Nomad provider configuration, if any.
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.
811
721
  """
812
722
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
813
723
 
814
724
  __props__ = _JobState.__new__(_JobState)
815
725
 
816
726
  __props__.__dict__["allocation_ids"] = allocation_ids
817
- __props__.__dict__["consul_token"] = consul_token
818
727
  __props__.__dict__["datacenters"] = datacenters
819
728
  __props__.__dict__["deployment_id"] = deployment_id
820
729
  __props__.__dict__["deployment_status"] = deployment_status
@@ -835,78 +744,68 @@ class Job(pulumi.CustomResource):
835
744
  __props__.__dict__["status"] = status
836
745
  __props__.__dict__["task_groups"] = task_groups
837
746
  __props__.__dict__["type"] = type
838
- __props__.__dict__["vault_token"] = vault_token
839
747
  return Job(resource_name, opts=opts, __props__=__props__)
840
748
 
841
- @property
749
+ @_builtins.property
842
750
  @pulumi.getter(name="allocationIds")
843
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.""")
844
- def allocation_ids(self) -> pulumi.Output[Sequence[builtins.str]]:
752
+ def allocation_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
845
753
  """
846
754
  The IDs for allocations associated with this job.
847
755
  """
848
756
  return pulumi.get(self, "allocation_ids")
849
757
 
850
- @property
851
- @pulumi.getter(name="consulToken")
852
- def consul_token(self) -> pulumi.Output[Optional[builtins.str]]:
853
- """
854
- `(string: <optional>)` - Consul token used when registering this job.
855
- Will fallback to the value declared in Nomad provider configuration, if any.
856
- """
857
- return pulumi.get(self, "consul_token")
858
-
859
- @property
758
+ @_builtins.property
860
759
  @pulumi.getter
861
- def datacenters(self) -> pulumi.Output[Sequence[builtins.str]]:
760
+ def datacenters(self) -> pulumi.Output[Sequence[_builtins.str]]:
862
761
  """
863
762
  The target datacenters for the job, as derived from the jobspec.
864
763
  """
865
764
  return pulumi.get(self, "datacenters")
866
765
 
867
- @property
766
+ @_builtins.property
868
767
  @pulumi.getter(name="deploymentId")
869
- def deployment_id(self) -> pulumi.Output[builtins.str]:
768
+ def deployment_id(self) -> pulumi.Output[_builtins.str]:
870
769
  """
871
770
  If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
872
771
  """
873
772
  return pulumi.get(self, "deployment_id")
874
773
 
875
- @property
774
+ @_builtins.property
876
775
  @pulumi.getter(name="deploymentStatus")
877
- def deployment_status(self) -> pulumi.Output[builtins.str]:
776
+ def deployment_status(self) -> pulumi.Output[_builtins.str]:
878
777
  """
879
778
  If detach = false, the status for the deployment associated with the last job create/update, if one exists.
880
779
  """
881
780
  return pulumi.get(self, "deployment_status")
882
781
 
883
- @property
782
+ @_builtins.property
884
783
  @pulumi.getter(name="deregisterOnDestroy")
885
- def deregister_on_destroy(self) -> pulumi.Output[Optional[builtins.bool]]:
784
+ def deregister_on_destroy(self) -> pulumi.Output[Optional[_builtins.bool]]:
886
785
  """
887
786
  If true, the job will be deregistered on destroy.
888
787
  """
889
788
  return pulumi.get(self, "deregister_on_destroy")
890
789
 
891
- @property
790
+ @_builtins.property
892
791
  @pulumi.getter(name="deregisterOnIdChange")
893
- def deregister_on_id_change(self) -> pulumi.Output[Optional[builtins.bool]]:
792
+ def deregister_on_id_change(self) -> pulumi.Output[Optional[_builtins.bool]]:
894
793
  """
895
794
  `(boolean: true)` - Determines if the job will be
896
795
  deregistered if the ID of the job in the jobspec changes.
897
796
  """
898
797
  return pulumi.get(self, "deregister_on_id_change")
899
798
 
900
- @property
799
+ @_builtins.property
901
800
  @pulumi.getter
902
- def detach(self) -> pulumi.Output[Optional[builtins.bool]]:
801
+ def detach(self) -> pulumi.Output[Optional[_builtins.bool]]:
903
802
  """
904
803
  `(boolean: true)` - If true, the provider will return immediately
905
804
  after creating or updating, instead of monitoring.
906
805
  """
907
806
  return pulumi.get(self, "detach")
908
807
 
909
- @property
808
+ @_builtins.property
910
809
  @pulumi.getter
911
810
  def hcl2(self) -> pulumi.Output[Optional['outputs.JobHcl2']]:
912
811
  """
@@ -914,115 +813,106 @@ class Job(pulumi.CustomResource):
914
813
  """
915
814
  return pulumi.get(self, "hcl2")
916
815
 
917
- @property
816
+ @_builtins.property
918
817
  @pulumi.getter
919
- def jobspec(self) -> pulumi.Output[builtins.str]:
818
+ def jobspec(self) -> pulumi.Output[_builtins.str]:
920
819
  """
921
820
  `(string: <required>)` - The contents of the jobspec to register.
922
821
  """
923
822
  return pulumi.get(self, "jobspec")
924
823
 
925
- @property
824
+ @_builtins.property
926
825
  @pulumi.getter
927
- def json(self) -> pulumi.Output[Optional[builtins.bool]]:
826
+ def json(self) -> pulumi.Output[Optional[_builtins.bool]]:
928
827
  """
929
828
  `(boolean: false)` - Set this to `true` if your jobspec is structured with
930
829
  JSON instead of the default HCL.
931
830
  """
932
831
  return pulumi.get(self, "json")
933
832
 
934
- @property
833
+ @_builtins.property
935
834
  @pulumi.getter(name="modifyIndex")
936
- def modify_index(self) -> pulumi.Output[builtins.str]:
835
+ def modify_index(self) -> pulumi.Output[_builtins.str]:
937
836
  """
938
837
  Integer that increments for each change. Used to detect any changes between plan and apply.
939
838
  """
940
839
  return pulumi.get(self, "modify_index")
941
840
 
942
- @property
841
+ @_builtins.property
943
842
  @pulumi.getter
944
- def name(self) -> pulumi.Output[builtins.str]:
843
+ def name(self) -> pulumi.Output[_builtins.str]:
945
844
  """
946
845
  The name of the job, as derived from the jobspec.
947
846
  """
948
847
  return pulumi.get(self, "name")
949
848
 
950
- @property
849
+ @_builtins.property
951
850
  @pulumi.getter
952
- def namespace(self) -> pulumi.Output[builtins.str]:
851
+ def namespace(self) -> pulumi.Output[_builtins.str]:
953
852
  """
954
853
  The namespace of the job, as derived from the jobspec.
955
854
  """
956
855
  return pulumi.get(self, "namespace")
957
856
 
958
- @property
857
+ @_builtins.property
959
858
  @pulumi.getter(name="policyOverride")
960
- def policy_override(self) -> pulumi.Output[Optional[builtins.bool]]:
859
+ def policy_override(self) -> pulumi.Output[Optional[_builtins.bool]]:
961
860
  """
962
861
  `(boolean: false)` - Determines if the job will override any
963
862
  soft-mandatory Sentinel policies and register even if they fail.
964
863
  """
965
864
  return pulumi.get(self, "policy_override")
966
865
 
967
- @property
866
+ @_builtins.property
968
867
  @pulumi.getter(name="purgeOnDestroy")
969
- def purge_on_destroy(self) -> pulumi.Output[Optional[builtins.bool]]:
868
+ def purge_on_destroy(self) -> pulumi.Output[Optional[_builtins.bool]]:
970
869
  """
971
870
  `(boolean: false)` - Set this to true if you want the job to
972
871
  be purged when the resource is destroyed.
973
872
  """
974
873
  return pulumi.get(self, "purge_on_destroy")
975
874
 
976
- @property
875
+ @_builtins.property
977
876
  @pulumi.getter(name="readAllocationIds")
978
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.""")
979
- def read_allocation_ids(self) -> pulumi.Output[Optional[builtins.bool]]:
878
+ def read_allocation_ids(self) -> pulumi.Output[Optional[_builtins.bool]]:
980
879
  return pulumi.get(self, "read_allocation_ids")
981
880
 
982
- @property
881
+ @_builtins.property
983
882
  @pulumi.getter
984
- def region(self) -> pulumi.Output[builtins.str]:
883
+ def region(self) -> pulumi.Output[_builtins.str]:
985
884
  """
986
885
  The target region for the job, as derived from the jobspec.
987
886
  """
988
887
  return pulumi.get(self, "region")
989
888
 
990
- @property
889
+ @_builtins.property
991
890
  @pulumi.getter(name="rerunIfDead")
992
- def rerun_if_dead(self) -> pulumi.Output[Optional[builtins.bool]]:
891
+ def rerun_if_dead(self) -> pulumi.Output[Optional[_builtins.bool]]:
993
892
  """
994
893
  `(boolean: false)` - Set this to true to force the job to run
995
894
  again if its status is `dead`.
996
895
  """
997
896
  return pulumi.get(self, "rerun_if_dead")
998
897
 
999
- @property
898
+ @_builtins.property
1000
899
  @pulumi.getter
1001
- def status(self) -> pulumi.Output[builtins.str]:
900
+ def status(self) -> pulumi.Output[_builtins.str]:
1002
901
  """
1003
902
  The status of the job.
1004
903
  """
1005
904
  return pulumi.get(self, "status")
1006
905
 
1007
- @property
906
+ @_builtins.property
1008
907
  @pulumi.getter(name="taskGroups")
1009
908
  def task_groups(self) -> pulumi.Output[Sequence['outputs.JobTaskGroup']]:
1010
909
  return pulumi.get(self, "task_groups")
1011
910
 
1012
- @property
911
+ @_builtins.property
1013
912
  @pulumi.getter
1014
- def type(self) -> pulumi.Output[builtins.str]:
913
+ def type(self) -> pulumi.Output[_builtins.str]:
1015
914
  """
1016
915
  The type of the job, as derived from the jobspec.
1017
916
  """
1018
917
  return pulumi.get(self, "type")
1019
918
 
1020
- @property
1021
- @pulumi.getter(name="vaultToken")
1022
- def vault_token(self) -> pulumi.Output[Optional[builtins.str]]:
1023
- """
1024
- `(string: <optional>)` - Vault token used when registering this job.
1025
- Will fallback to the value declared in Nomad provider configuration, if any.
1026
- """
1027
- return pulumi.get(self, "vault_token")
1028
-