nomad.Job
Explore with Pulumi AI
Create Job Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Job(name: string, args: JobArgs, opts?: CustomResourceOptions);
@overload
def Job(resource_name: str,
args: JobArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Job(resource_name: str,
opts: Optional[ResourceOptions] = None,
jobspec: Optional[str] = None,
consul_token: Optional[str] = None,
deregister_on_destroy: Optional[bool] = None,
deregister_on_id_change: Optional[bool] = None,
detach: Optional[bool] = None,
hcl2: Optional[JobHcl2Args] = None,
json: Optional[bool] = None,
policy_override: Optional[bool] = None,
purge_on_destroy: Optional[bool] = None,
read_allocation_ids: Optional[bool] = None,
rerun_if_dead: Optional[bool] = None,
vault_token: Optional[str] = None)
func NewJob(ctx *Context, name string, args JobArgs, opts ...ResourceOption) (*Job, error)
public Job(string name, JobArgs args, CustomResourceOptions? opts = null)
type: nomad:Job
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var jobResource = new Nomad.Job("jobResource", new()
{
Jobspec = "string",
ConsulToken = "string",
DeregisterOnDestroy = false,
DeregisterOnIdChange = false,
Detach = false,
Hcl2 = new Nomad.Inputs.JobHcl2Args
{
AllowFs = false,
Vars =
{
{ "string", "string" },
},
},
Json = false,
PolicyOverride = false,
PurgeOnDestroy = false,
RerunIfDead = false,
VaultToken = "string",
});
example, err := nomad.NewJob(ctx, "jobResource", &nomad.JobArgs{
Jobspec: pulumi.String("string"),
ConsulToken: pulumi.String("string"),
DeregisterOnDestroy: pulumi.Bool(false),
DeregisterOnIdChange: pulumi.Bool(false),
Detach: pulumi.Bool(false),
Hcl2: &nomad.JobHcl2Args{
AllowFs: pulumi.Bool(false),
Vars: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Json: pulumi.Bool(false),
PolicyOverride: pulumi.Bool(false),
PurgeOnDestroy: pulumi.Bool(false),
RerunIfDead: pulumi.Bool(false),
VaultToken: pulumi.String("string"),
})
var jobResource = new Job("jobResource", JobArgs.builder()
.jobspec("string")
.consulToken("string")
.deregisterOnDestroy(false)
.deregisterOnIdChange(false)
.detach(false)
.hcl2(JobHcl2Args.builder()
.allowFs(false)
.vars(Map.of("string", "string"))
.build())
.json(false)
.policyOverride(false)
.purgeOnDestroy(false)
.rerunIfDead(false)
.vaultToken("string")
.build());
job_resource = nomad.Job("jobResource",
jobspec="string",
consul_token="string",
deregister_on_destroy=False,
deregister_on_id_change=False,
detach=False,
hcl2={
"allow_fs": False,
"vars": {
"string": "string",
},
},
json=False,
policy_override=False,
purge_on_destroy=False,
rerun_if_dead=False,
vault_token="string")
const jobResource = new nomad.Job("jobResource", {
jobspec: "string",
consulToken: "string",
deregisterOnDestroy: false,
deregisterOnIdChange: false,
detach: false,
hcl2: {
allowFs: false,
vars: {
string: "string",
},
},
json: false,
policyOverride: false,
purgeOnDestroy: false,
rerunIfDead: false,
vaultToken: "string",
});
type: nomad:Job
properties:
consulToken: string
deregisterOnDestroy: false
deregisterOnIdChange: false
detach: false
hcl2:
allowFs: false
vars:
string: string
jobspec: string
json: false
policyOverride: false
purgeOnDestroy: false
rerunIfDead: false
vaultToken: string
Job Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Job resource accepts the following input properties:
- Jobspec string
(string: <required>)
- The contents of the jobspec to register.- Consul
Token string (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- Deregister
On boolDestroy - If true, the job will be deregistered on destroy.
- Deregister
On boolId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- Detach bool
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- Hcl2
Job
Hcl2 (block: optional)
- Options for the HCL2 jobspec parser.- Json bool
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- Policy
Override bool (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- Purge
On boolDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- Read
Allocation boolIds - Rerun
If boolDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- Vault
Token string (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- Jobspec string
(string: <required>)
- The contents of the jobspec to register.- Consul
Token string (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- Deregister
On boolDestroy - If true, the job will be deregistered on destroy.
- Deregister
On boolId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- Detach bool
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- Hcl2
Job
Hcl2Args (block: optional)
- Options for the HCL2 jobspec parser.- Json bool
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- Policy
Override bool (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- Purge
On boolDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- Read
Allocation boolIds - Rerun
If boolDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- Vault
Token string (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- jobspec String
(string: <required>)
- The contents of the jobspec to register.- consul
Token String (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- deregister
On BooleanDestroy - If true, the job will be deregistered on destroy.
- deregister
On BooleanId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach Boolean
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2 (block: optional)
- Options for the HCL2 jobspec parser.- json Boolean
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- policy
Override Boolean (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- purge
On BooleanDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation BooleanIds - rerun
If BooleanDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- vault
Token String (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- jobspec string
(string: <required>)
- The contents of the jobspec to register.- consul
Token string (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- deregister
On booleanDestroy - If true, the job will be deregistered on destroy.
- deregister
On booleanId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach boolean
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2 (block: optional)
- Options for the HCL2 jobspec parser.- json boolean
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- policy
Override boolean (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- purge
On booleanDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation booleanIds - rerun
If booleanDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- vault
Token string (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- jobspec str
(string: <required>)
- The contents of the jobspec to register.- consul_
token str (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- deregister_
on_ booldestroy - If true, the job will be deregistered on destroy.
- deregister_
on_ boolid_ change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach bool
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2Args (block: optional)
- Options for the HCL2 jobspec parser.- json bool
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- policy_
override bool (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- purge_
on_ booldestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- read_
allocation_ boolids - rerun_
if_ booldead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- vault_
token str (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- jobspec String
(string: <required>)
- The contents of the jobspec to register.- consul
Token String (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- deregister
On BooleanDestroy - If true, the job will be deregistered on destroy.
- deregister
On BooleanId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach Boolean
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2 Property Map
(block: optional)
- Options for the HCL2 jobspec parser.- json Boolean
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- policy
Override Boolean (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- purge
On BooleanDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation BooleanIds - rerun
If BooleanDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- vault
Token String (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
Outputs
All input properties are implicitly available as output properties. Additionally, the Job resource produces the following output properties:
- Allocation
Ids List<string> - The IDs for allocations associated with this job.
- Datacenters List<string>
- The target datacenters for the job, as derived from the jobspec.
- Deployment
Id string - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- Deployment
Status string - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modify
Index string - Integer that increments for each change. Used to detect any changes between plan and apply.
- Name string
- The name of the job, as derived from the jobspec.
- Namespace string
- The namespace of the job, as derived from the jobspec.
- Region string
- The target region for the job, as derived from the jobspec.
- Status string
- The status of the job.
- Task
Groups List<JobTask Group> - Type string
- The type of the job, as derived from the jobspec.
- Allocation
Ids []string - The IDs for allocations associated with this job.
- Datacenters []string
- The target datacenters for the job, as derived from the jobspec.
- Deployment
Id string - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- Deployment
Status string - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modify
Index string - Integer that increments for each change. Used to detect any changes between plan and apply.
- Name string
- The name of the job, as derived from the jobspec.
- Namespace string
- The namespace of the job, as derived from the jobspec.
- Region string
- The target region for the job, as derived from the jobspec.
- Status string
- The status of the job.
- Task
Groups []JobTask Group - Type string
- The type of the job, as derived from the jobspec.
- allocation
Ids List<String> - The IDs for allocations associated with this job.
- datacenters List<String>
- The target datacenters for the job, as derived from the jobspec.
- deployment
Id String - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- deployment
Status String - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- id String
- The provider-assigned unique ID for this managed resource.
- modify
Index String - Integer that increments for each change. Used to detect any changes between plan and apply.
- name String
- The name of the job, as derived from the jobspec.
- namespace String
- The namespace of the job, as derived from the jobspec.
- region String
- The target region for the job, as derived from the jobspec.
- status String
- The status of the job.
- task
Groups List<JobTask Group> - type String
- The type of the job, as derived from the jobspec.
- allocation
Ids string[] - The IDs for allocations associated with this job.
- datacenters string[]
- The target datacenters for the job, as derived from the jobspec.
- deployment
Id string - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- deployment
Status string - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- id string
- The provider-assigned unique ID for this managed resource.
- modify
Index string - Integer that increments for each change. Used to detect any changes between plan and apply.
- name string
- The name of the job, as derived from the jobspec.
- namespace string
- The namespace of the job, as derived from the jobspec.
- region string
- The target region for the job, as derived from the jobspec.
- status string
- The status of the job.
- task
Groups JobTask Group[] - type string
- The type of the job, as derived from the jobspec.
- allocation_
ids Sequence[str] - The IDs for allocations associated with this job.
- datacenters Sequence[str]
- The target datacenters for the job, as derived from the jobspec.
- deployment_
id str - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- deployment_
status str - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- id str
- The provider-assigned unique ID for this managed resource.
- modify_
index str - Integer that increments for each change. Used to detect any changes between plan and apply.
- name str
- The name of the job, as derived from the jobspec.
- namespace str
- The namespace of the job, as derived from the jobspec.
- region str
- The target region for the job, as derived from the jobspec.
- status str
- The status of the job.
- task_
groups Sequence[JobTask Group] - type str
- The type of the job, as derived from the jobspec.
- allocation
Ids List<String> - The IDs for allocations associated with this job.
- datacenters List<String>
- The target datacenters for the job, as derived from the jobspec.
- deployment
Id String - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- deployment
Status String - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- id String
- The provider-assigned unique ID for this managed resource.
- modify
Index String - Integer that increments for each change. Used to detect any changes between plan and apply.
- name String
- The name of the job, as derived from the jobspec.
- namespace String
- The namespace of the job, as derived from the jobspec.
- region String
- The target region for the job, as derived from the jobspec.
- status String
- The status of the job.
- task
Groups List<Property Map> - type String
- The type of the job, as derived from the jobspec.
Look up Existing Job Resource
Get an existing Job resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: JobState, opts?: CustomResourceOptions): Job
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_ids: Optional[Sequence[str]] = None,
consul_token: Optional[str] = None,
datacenters: Optional[Sequence[str]] = None,
deployment_id: Optional[str] = None,
deployment_status: Optional[str] = None,
deregister_on_destroy: Optional[bool] = None,
deregister_on_id_change: Optional[bool] = None,
detach: Optional[bool] = None,
hcl2: Optional[JobHcl2Args] = None,
jobspec: Optional[str] = None,
json: Optional[bool] = None,
modify_index: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
policy_override: Optional[bool] = None,
purge_on_destroy: Optional[bool] = None,
read_allocation_ids: Optional[bool] = None,
region: Optional[str] = None,
rerun_if_dead: Optional[bool] = None,
status: Optional[str] = None,
task_groups: Optional[Sequence[JobTaskGroupArgs]] = None,
type: Optional[str] = None,
vault_token: Optional[str] = None) -> Job
func GetJob(ctx *Context, name string, id IDInput, state *JobState, opts ...ResourceOption) (*Job, error)
public static Job Get(string name, Input<string> id, JobState? state, CustomResourceOptions? opts = null)
public static Job get(String name, Output<String> id, JobState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allocation
Ids List<string> - The IDs for allocations associated with this job.
- Consul
Token string (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- Datacenters List<string>
- The target datacenters for the job, as derived from the jobspec.
- Deployment
Id string - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- Deployment
Status string - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- Deregister
On boolDestroy - If true, the job will be deregistered on destroy.
- Deregister
On boolId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- Detach bool
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- Hcl2
Job
Hcl2 (block: optional)
- Options for the HCL2 jobspec parser.- Jobspec string
(string: <required>)
- The contents of the jobspec to register.- Json bool
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- Modify
Index string - Integer that increments for each change. Used to detect any changes between plan and apply.
- Name string
- The name of the job, as derived from the jobspec.
- Namespace string
- The namespace of the job, as derived from the jobspec.
- Policy
Override bool (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- Purge
On boolDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- Read
Allocation boolIds - Region string
- The target region for the job, as derived from the jobspec.
- Rerun
If boolDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- Status string
- The status of the job.
- Task
Groups List<JobTask Group> - Type string
- The type of the job, as derived from the jobspec.
- Vault
Token string (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- Allocation
Ids []string - The IDs for allocations associated with this job.
- Consul
Token string (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- Datacenters []string
- The target datacenters for the job, as derived from the jobspec.
- Deployment
Id string - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- Deployment
Status string - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- Deregister
On boolDestroy - If true, the job will be deregistered on destroy.
- Deregister
On boolId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- Detach bool
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- Hcl2
Job
Hcl2Args (block: optional)
- Options for the HCL2 jobspec parser.- Jobspec string
(string: <required>)
- The contents of the jobspec to register.- Json bool
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- Modify
Index string - Integer that increments for each change. Used to detect any changes between plan and apply.
- Name string
- The name of the job, as derived from the jobspec.
- Namespace string
- The namespace of the job, as derived from the jobspec.
- Policy
Override bool (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- Purge
On boolDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- Read
Allocation boolIds - Region string
- The target region for the job, as derived from the jobspec.
- Rerun
If boolDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- Status string
- The status of the job.
- Task
Groups []JobTask Group Args - Type string
- The type of the job, as derived from the jobspec.
- Vault
Token string (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- allocation
Ids List<String> - The IDs for allocations associated with this job.
- consul
Token String (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- datacenters List<String>
- The target datacenters for the job, as derived from the jobspec.
- deployment
Id String - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- deployment
Status String - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- deregister
On BooleanDestroy - If true, the job will be deregistered on destroy.
- deregister
On BooleanId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach Boolean
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2 (block: optional)
- Options for the HCL2 jobspec parser.- jobspec String
(string: <required>)
- The contents of the jobspec to register.- json Boolean
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- modify
Index String - Integer that increments for each change. Used to detect any changes between plan and apply.
- name String
- The name of the job, as derived from the jobspec.
- namespace String
- The namespace of the job, as derived from the jobspec.
- policy
Override Boolean (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- purge
On BooleanDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation BooleanIds - region String
- The target region for the job, as derived from the jobspec.
- rerun
If BooleanDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- status String
- The status of the job.
- task
Groups List<JobTask Group> - type String
- The type of the job, as derived from the jobspec.
- vault
Token String (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- allocation
Ids string[] - The IDs for allocations associated with this job.
- consul
Token string (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- datacenters string[]
- The target datacenters for the job, as derived from the jobspec.
- deployment
Id string - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- deployment
Status string - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- deregister
On booleanDestroy - If true, the job will be deregistered on destroy.
- deregister
On booleanId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach boolean
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2 (block: optional)
- Options for the HCL2 jobspec parser.- jobspec string
(string: <required>)
- The contents of the jobspec to register.- json boolean
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- modify
Index string - Integer that increments for each change. Used to detect any changes between plan and apply.
- name string
- The name of the job, as derived from the jobspec.
- namespace string
- The namespace of the job, as derived from the jobspec.
- policy
Override boolean (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- purge
On booleanDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation booleanIds - region string
- The target region for the job, as derived from the jobspec.
- rerun
If booleanDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- status string
- The status of the job.
- task
Groups JobTask Group[] - type string
- The type of the job, as derived from the jobspec.
- vault
Token string (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- allocation_
ids Sequence[str] - The IDs for allocations associated with this job.
- consul_
token str (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- datacenters Sequence[str]
- The target datacenters for the job, as derived from the jobspec.
- deployment_
id str - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- deployment_
status str - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- deregister_
on_ booldestroy - If true, the job will be deregistered on destroy.
- deregister_
on_ boolid_ change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach bool
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2
Job
Hcl2Args (block: optional)
- Options for the HCL2 jobspec parser.- jobspec str
(string: <required>)
- The contents of the jobspec to register.- json bool
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- modify_
index str - Integer that increments for each change. Used to detect any changes between plan and apply.
- name str
- The name of the job, as derived from the jobspec.
- namespace str
- The namespace of the job, as derived from the jobspec.
- policy_
override bool (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- purge_
on_ booldestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- read_
allocation_ boolids - region str
- The target region for the job, as derived from the jobspec.
- rerun_
if_ booldead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- status str
- The status of the job.
- task_
groups Sequence[JobTask Group Args] - type str
- The type of the job, as derived from the jobspec.
- vault_
token str (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
- allocation
Ids List<String> - The IDs for allocations associated with this job.
- consul
Token String (string: <optional>)
- Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.- datacenters List<String>
- The target datacenters for the job, as derived from the jobspec.
- deployment
Id String - If detach = false, the ID for the deployment associated with the last job create/update, if one exists.
- deployment
Status String - If detach = false, the status for the deployment associated with the last job create/update, if one exists.
- deregister
On BooleanDestroy - If true, the job will be deregistered on destroy.
- deregister
On BooleanId Change (boolean: true)
- Determines if the job will be deregistered if the ID of the job in the jobspec changes.- detach Boolean
(boolean: true)
- If true, the provider will return immediately after creating or updating, instead of monitoring.- hcl2 Property Map
(block: optional)
- Options for the HCL2 jobspec parser.- jobspec String
(string: <required>)
- The contents of the jobspec to register.- json Boolean
(boolean: false)
- Set this totrue
if your jobspec is structured with JSON instead of the default HCL.- modify
Index String - Integer that increments for each change. Used to detect any changes between plan and apply.
- name String
- The name of the job, as derived from the jobspec.
- namespace String
- The namespace of the job, as derived from the jobspec.
- policy
Override Boolean (boolean: false)
- Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.- purge
On BooleanDestroy (boolean: false)
- Set this to true if you want the job to be purged when the resource is destroyed.- read
Allocation BooleanIds - region String
- The target region for the job, as derived from the jobspec.
- rerun
If BooleanDead (boolean: false)
- Set this to true to force the job to run again if its status isdead
.- status String
- The status of the job.
- task
Groups List<Property Map> - type String
- The type of the job, as derived from the jobspec.
- vault
Token String (string: <optional>)
- Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.
Supporting Types
JobHcl2, JobHcl2Args
JobTaskGroup, JobTaskGroupArgs
- Count int
- Meta Dictionary<string, string>
- Name string
- Tasks
List<Job
Task Group Task> - Volumes
List<Job
Task Group Volume>
- Count int
- Meta map[string]string
- Name string
- Tasks
[]Job
Task Group Task - Volumes
[]Job
Task Group Volume
- count Integer
- meta Map<String,String>
- name String
- tasks
List<Job
Task Group Task> - volumes
List<Job
Task Group Volume>
- count number
- meta {[key: string]: string}
- name string
- tasks
Job
Task Group Task[] - volumes
Job
Task Group Volume[]
- count int
- meta Mapping[str, str]
- name str
- tasks
Sequence[Job
Task Group Task] - volumes
Sequence[Job
Task Group Volume]
- count Number
- meta Map<String>
- name String
- tasks List<Property Map>
- volumes List<Property Map>
JobTaskGroupTask, JobTaskGroupTaskArgs
- Driver string
- Meta Dictionary<string, string>
- Name string
- Volume
Mounts List<JobTask Group Task Volume Mount>
- Driver string
- Meta map[string]string
- Name string
- Volume
Mounts []JobTask Group Task Volume Mount
- driver String
- meta Map<String,String>
- name String
- volume
Mounts List<JobTask Group Task Volume Mount>
- driver string
- meta {[key: string]: string}
- name string
- volume
Mounts JobTask Group Task Volume Mount[]
- driver str
- meta Mapping[str, str]
- name str
- volume_
mounts Sequence[JobTask Group Task Volume Mount]
- driver String
- meta Map<String>
- name String
- volume
Mounts List<Property Map>
JobTaskGroupTaskVolumeMount, JobTaskGroupTaskVolumeMountArgs
- Destination string
- Read
Only bool - Volume string
- Destination string
- Read
Only bool - Volume string
- destination String
- read
Only Boolean - volume String
- destination string
- read
Only boolean - volume string
- destination str
- read_
only bool - volume str
- destination String
- read
Only Boolean - volume String
JobTaskGroupVolume, JobTaskGroupVolumeArgs
Package Details
- Repository
- HashiCorp Nomad pulumi/pulumi-nomad
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nomad
Terraform Provider.