JobArgs

data class JobArgs(val deregisterOnDestroy: Output<Boolean>? = null, val deregisterOnIdChange: Output<Boolean>? = null, val detach: 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) : ConvertibleToJava<JobArgs>

Constructors

Link copied to clipboard
constructor(deregisterOnDestroy: Output<Boolean>? = null, deregisterOnIdChange: Output<Boolean>? = null, detach: 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)

Properties

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 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.

Functions

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