1. Packages
  2. Nomad Provider
  3. API Docs
  4. getJobParser
Nomad v2.4.3 published on Saturday, Mar 15, 2025 by Pulumi

nomad.getJobParser

Explore with Pulumi AI

Nomad v2.4.3 published on Saturday, Mar 15, 2025 by Pulumi

Parse a HCL jobspec and produce the equivalent JSON encoded job.

Using getJobParser

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getJobParser(args: GetJobParserArgs, opts?: InvokeOptions): Promise<GetJobParserResult>
function getJobParserOutput(args: GetJobParserOutputArgs, opts?: InvokeOptions): Output<GetJobParserResult>
Copy
def get_job_parser(canonicalize: Optional[bool] = None,
                   hcl: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetJobParserResult
def get_job_parser_output(canonicalize: Optional[pulumi.Input[bool]] = None,
                   hcl: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetJobParserResult]
Copy
func GetJobParser(ctx *Context, args *GetJobParserArgs, opts ...InvokeOption) (*GetJobParserResult, error)
func GetJobParserOutput(ctx *Context, args *GetJobParserOutputArgs, opts ...InvokeOption) GetJobParserResultOutput
Copy

> Note: This function is named GetJobParser in the Go SDK.

public static class GetJobParser 
{
    public static Task<GetJobParserResult> InvokeAsync(GetJobParserArgs args, InvokeOptions? opts = null)
    public static Output<GetJobParserResult> Invoke(GetJobParserInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetJobParserResult> getJobParser(GetJobParserArgs args, InvokeOptions options)
public static Output<GetJobParserResult> getJobParser(GetJobParserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: nomad:index/getJobParser:getJobParser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Hcl This property is required. string
(string) - the HCL definition of the job.
Canonicalize bool
(boolean: true) - flag to enable setting any unset fields to their default values.
Hcl This property is required. string
(string) - the HCL definition of the job.
Canonicalize bool
(boolean: true) - flag to enable setting any unset fields to their default values.
hcl This property is required. String
(string) - the HCL definition of the job.
canonicalize Boolean
(boolean: true) - flag to enable setting any unset fields to their default values.
hcl This property is required. string
(string) - the HCL definition of the job.
canonicalize boolean
(boolean: true) - flag to enable setting any unset fields to their default values.
hcl This property is required. str
(string) - the HCL definition of the job.
canonicalize bool
(boolean: true) - flag to enable setting any unset fields to their default values.
hcl This property is required. String
(string) - the HCL definition of the job.
canonicalize Boolean
(boolean: true) - flag to enable setting any unset fields to their default values.

getJobParser Result

The following output properties are available:

Hcl string
(string) - the HCL definition of the job.
Id string
The provider-assigned unique ID for this managed resource.
Json string
(string) - the parsed job as JSON string.
Canonicalize bool
(boolean: true) - flag to enable setting any unset fields to their default values.
Hcl string
(string) - the HCL definition of the job.
Id string
The provider-assigned unique ID for this managed resource.
Json string
(string) - the parsed job as JSON string.
Canonicalize bool
(boolean: true) - flag to enable setting any unset fields to their default values.
hcl String
(string) - the HCL definition of the job.
id String
The provider-assigned unique ID for this managed resource.
json String
(string) - the parsed job as JSON string.
canonicalize Boolean
(boolean: true) - flag to enable setting any unset fields to their default values.
hcl string
(string) - the HCL definition of the job.
id string
The provider-assigned unique ID for this managed resource.
json string
(string) - the parsed job as JSON string.
canonicalize boolean
(boolean: true) - flag to enable setting any unset fields to their default values.
hcl str
(string) - the HCL definition of the job.
id str
The provider-assigned unique ID for this managed resource.
json str
(string) - the parsed job as JSON string.
canonicalize bool
(boolean: true) - flag to enable setting any unset fields to their default values.
hcl String
(string) - the HCL definition of the job.
id String
The provider-assigned unique ID for this managed resource.
json String
(string) - the parsed job as JSON string.
canonicalize Boolean
(boolean: true) - flag to enable setting any unset fields to their default values.

Package Details

Repository
HashiCorp Nomad pulumi/pulumi-nomad
License
Apache-2.0
Notes
This Pulumi package is based on the nomad Terraform Provider.
Nomad v2.4.3 published on Saturday, Mar 15, 2025 by Pulumi