JobArgs

data class JobArgs(val consulToken: Output<String>? = null, val deregisterOnDestroy: Output<Boolean>? = null, val deregisterOnIdChange: Output<Boolean>? = null, val detach: Output<Boolean>? = null, val hcl1: Output<Boolean>? = null, val hcl2: Output<JobHcl2Args>? = null, val jobspec: Output<String>? = null, val json: Output<Boolean>? = null, val policyOverride: Output<Boolean>? = null, val purgeOnDestroy: Output<Boolean>? = null, val readAllocationIds: Output<Boolean>? = null, val rerunIfDead: Output<Boolean>? = null, val vaultToken: Output<String>? = null) : ConvertibleToJava<JobArgs>

Constructors

Link copied to clipboard
constructor(consulToken: Output<String>? = null, deregisterOnDestroy: Output<Boolean>? = null, deregisterOnIdChange: Output<Boolean>? = null, detach: Output<Boolean>? = null, hcl1: Output<Boolean>? = null, hcl2: Output<JobHcl2Args>? = null, jobspec: Output<String>? = null, json: Output<Boolean>? = null, policyOverride: Output<Boolean>? = null, purgeOnDestroy: Output<Boolean>? = null, readAllocationIds: Output<Boolean>? = null, rerunIfDead: Output<Boolean>? = null, vaultToken: Output<String>? = null)

Properties

Link copied to clipboard
val consulToken: Output<String>? = null

(string: <optional>) - Consul token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.

Link copied to clipboard
val deregisterOnDestroy: Output<Boolean>? = null

If true, the job will be deregistered on destroy.

Link copied to clipboard
val deregisterOnIdChange: Output<Boolean>? = null

(boolean: true) - Determines if the job will be deregistered if the ID of the job in the jobspec changes.

Link copied to clipboard
val detach: Output<Boolean>? = null

(boolean: true) - If true, the provider will return immediately after creating or updating, instead of monitoring.

Link copied to clipboard
val hcl1: Output<Boolean>? = null

(boolean: false) - Set this to true to use the previous HCL1 parser. This option is provided for backwards compatibility only and should not be used unless absolutely necessary.

Link copied to clipboard
val hcl2: Output<JobHcl2Args>? = null

(block: optional) - Options for the HCL2 jobspec parser.

Link copied to clipboard
val jobspec: Output<String>? = null

(string: <required>) - The contents of the jobspec to register.

Link copied to clipboard
val json: Output<Boolean>? = null

(boolean: false) - Set this to true if your jobspec is structured with JSON instead of the default HCL.

Link copied to clipboard
val policyOverride: Output<Boolean>? = null

(boolean: false) - Determines if the job will override any soft-mandatory Sentinel policies and register even if they fail.

Link copied to clipboard
val purgeOnDestroy: Output<Boolean>? = null

(boolean: false) - Set this to true if you want the job to be purged when the resource is destroyed.

Link copied to clipboard
val readAllocationIds: Output<Boolean>? = null
Link copied to clipboard
val rerunIfDead: Output<Boolean>? = null

(boolean: false) - Set this to true to force the job to run again if its status is dead.

Link copied to clipboard
val vaultToken: Output<String>? = null

(string: <optional>) - Vault token used when registering this job. Will fallback to the value declared in Nomad provider configuration, if any.

Functions

Link copied to clipboard
open override fun toJava(): JobArgs