nomad_jobNivis Nix constructor for the nomad_job resource (provider nomad). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
jobspec,
deregister_on_destroy ? null,
deregister_on_id_change ? null,
detach ? null,
id ? null,
json ? null,
policy_override ? null,
preserve_counts ? null,
purge_on_destroy ? null,
read_allocation_ids ? null,
rerun_if_dead ? null,
hcl2 ? null,
timeouts ? null,
overrides ? {}
}Required arguments
jobspec
Optional arguments
deregister_on_destroy(defaults tonull)deregister_on_id_change(defaults tonull)detach(defaults tonull)id(defaults tonull)json(defaults tonull)policy_override(defaults tonull)preserve_counts(defaults tonull)purge_on_destroy(defaults tonull)read_allocation_ids(defaults tonull)rerun_if_dead(defaults tonull)hcl2(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
all_at_onceallocation_idsconstraintscreate_indexdatacentersdeployment_iddeployment_statusmodify_indexnamenamespaceparent_idperiodic_configpriorityregionstablestatusstatus_descriptionstopsubmit_timetask_groupstypeupdate_strategyversion
Example
nomad_job {
name = "job";
jobspec = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.