Job

class Job : KotlinCustomResource

Properties

Link copied to clipboard
val allocationIds: Output<List<String>>

The IDs for allocations associated with this job.

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

(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 datacenters: Output<List<String>>

The target datacenters for the job, as derived from the jobspec.

Link copied to clipboard
val deploymentId: Output<String>

If detach = false, the ID for the deployment associated with the last job create/update, if one exists.

Link copied to clipboard

If detach = false, the status for the deployment associated with the last job create/update, if one exists.

Link copied to clipboard

If true, the job will be deregistered on destroy.

Link copied to clipboard

(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>?

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

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

(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<JobHcl2>?

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val jobspec: Output<String>

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

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

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

Link copied to clipboard
val modifyIndex: Output<String>

Integer that increments for each change. Used to detect any changes between plan and apply.

Link copied to clipboard
val name: Output<String>

The name of the job, as derived from the jobspec.

Link copied to clipboard
val namespace: Output<String>

The namespace of the job, as derived from the jobspec.

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val purgeOnDestroy: Output<Boolean>?

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

Link copied to clipboard
Link copied to clipboard
val region: Output<String>

The target region for the job, as derived from the jobspec.

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

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

Link copied to clipboard
val status: Output<String>

The status of the job.

Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The type of the job, as derived from the jobspec.

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

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