All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.nomad.kotlin.outputs.JobHcl2.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.nomad.kotlin.outputs

import kotlin.Any
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property allowFs `(boolean: false)` - Set this to `true` to be able to use
 * HCL2 filesystem functions
 * @property enabled `(boolean: false)` - **Deprecated** All HCL jobs are parsed as
 * HCL2 by default.
 * @property vars Additional variables to use when templating the job with HCL2
 */
public data class JobHcl2(
    public val allowFs: Boolean? = null,
    @Deprecated(
        message = """
  Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this
      field is no longer used and may be safely removed from your configuration files. Set 'hcl1 =
      true' if you must use HCL1 job parsing.
  """,
    )
    public val enabled: Boolean? = null,
    public val vars: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.nomad.outputs.JobHcl2): JobHcl2 = JobHcl2(
            allowFs = javaType.allowFs().map({ args0 -> args0 }).orElse(null),
            enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
            vars = javaType.vars().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy