Nomad v2.3.2 published on Wednesday, Aug 14, 2024 by Pulumi
nomad.getJobParser
Explore with Pulumi AI
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>
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]
func GetJobParser(ctx *Context, args *GetJobParserArgs, opts ...InvokeOption) (*GetJobParserResult, error)
func GetJobParserOutput(ctx *Context, args *GetJobParserOutputArgs, opts ...InvokeOption) GetJobParserResultOutput
> 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)
}
public static CompletableFuture<GetJobParserResult> getJobParser(GetJobParserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nomad:index/getJobParser:getJobParser
arguments:
# arguments dictionary
The following arguments are supported:
- Hcl string
(string)
- the HCL definition of the job.- Canonicalize bool
(boolean: true)
- flag to enable setting any unset fields to their default values.
- Hcl string
(string)
- the HCL definition of the job.- Canonicalize bool
(boolean: true)
- flag to enable setting any unset fields to their default values.
- hcl String
(string)
- the HCL definition of the job.- canonicalize Boolean
(boolean: true)
- flag to enable setting any unset fields to their default values.
- hcl string
(string)
- the HCL definition of the job.- canonicalize boolean
(boolean: true)
- flag to enable setting any unset fields to their default values.
- hcl str
(string)
- the HCL definition of the job.- canonicalize bool
(boolean: true)
- flag to enable setting any unset fields to their default values.
- hcl 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.