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