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