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

com.pulumi.awsnative.batch.kotlin.inputs.JobDefinitionTmpfsArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.batch.kotlin.inputs

import com.pulumi.awsnative.batch.inputs.JobDefinitionTmpfsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property containerPath The absolute file path in the container where the `tmpfs` volume is mounted.
 * @property mountOptions The list of `tmpfs` volume mount options.
 * Valid values: " `defaults` " | " `ro` " | " `rw` " | " `suid` " | " `nosuid` " | " `dev` " | " `nodev` " | " `exec` " | " `noexec` " | " `sync` " | " `async` " | " `dirsync` " | " `remount` " | " `mand` " | " `nomand` " | " `atime` " | " `noatime` " | " `diratime` " | " `nodiratime` " | " `bind` " | " `rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime` " | " `norelatime` " | " `strictatime` " | " `nostrictatime` " | " `mode` " | " `uid` " | " `gid` " | " `nr_inodes` " | " `nr_blocks` " | " `mpol` "
 * @property size The size (in MiB) of the `tmpfs` volume.
 */
public data class JobDefinitionTmpfsArgs(
    public val containerPath: Output,
    public val mountOptions: Output>? = null,
    public val size: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.batch.inputs.JobDefinitionTmpfsArgs =
        com.pulumi.awsnative.batch.inputs.JobDefinitionTmpfsArgs.builder()
            .containerPath(containerPath.applyValue({ args0 -> args0 }))
            .mountOptions(mountOptions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .size(size.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobDefinitionTmpfsArgs].
 */
@PulumiTagMarker
public class JobDefinitionTmpfsArgsBuilder internal constructor() {
    private var containerPath: Output? = null

    private var mountOptions: Output>? = null

    private var size: Output? = null

    /**
     * @param value The absolute file path in the container where the `tmpfs` volume is mounted.
     */
    @JvmName("cqkyeofqglkhvppy")
    public suspend fun containerPath(`value`: Output) {
        this.containerPath = value
    }

    /**
     * @param value The list of `tmpfs` volume mount options.
     * Valid values: " `defaults` " | " `ro` " | " `rw` " | " `suid` " | " `nosuid` " | " `dev` " | " `nodev` " | " `exec` " | " `noexec` " | " `sync` " | " `async` " | " `dirsync` " | " `remount` " | " `mand` " | " `nomand` " | " `atime` " | " `noatime` " | " `diratime` " | " `nodiratime` " | " `bind` " | " `rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime` " | " `norelatime` " | " `strictatime` " | " `nostrictatime` " | " `mode` " | " `uid` " | " `gid` " | " `nr_inodes` " | " `nr_blocks` " | " `mpol` "
     */
    @JvmName("djyqhnhjrmbkswsa")
    public suspend fun mountOptions(`value`: Output>) {
        this.mountOptions = value
    }

    @JvmName("itefgahxoucsbnly")
    public suspend fun mountOptions(vararg values: Output) {
        this.mountOptions = Output.all(values.asList())
    }

    /**
     * @param values The list of `tmpfs` volume mount options.
     * Valid values: " `defaults` " | " `ro` " | " `rw` " | " `suid` " | " `nosuid` " | " `dev` " | " `nodev` " | " `exec` " | " `noexec` " | " `sync` " | " `async` " | " `dirsync` " | " `remount` " | " `mand` " | " `nomand` " | " `atime` " | " `noatime` " | " `diratime` " | " `nodiratime` " | " `bind` " | " `rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime` " | " `norelatime` " | " `strictatime` " | " `nostrictatime` " | " `mode` " | " `uid` " | " `gid` " | " `nr_inodes` " | " `nr_blocks` " | " `mpol` "
     */
    @JvmName("jvssrojojxajjhcx")
    public suspend fun mountOptions(values: List>) {
        this.mountOptions = Output.all(values)
    }

    /**
     * @param value The size (in MiB) of the `tmpfs` volume.
     */
    @JvmName("wtrcrtfevskdljpg")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value The absolute file path in the container where the `tmpfs` volume is mounted.
     */
    @JvmName("ekqhapklhbulikbq")
    public suspend fun containerPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerPath = mapped
    }

    /**
     * @param value The list of `tmpfs` volume mount options.
     * Valid values: " `defaults` " | " `ro` " | " `rw` " | " `suid` " | " `nosuid` " | " `dev` " | " `nodev` " | " `exec` " | " `noexec` " | " `sync` " | " `async` " | " `dirsync` " | " `remount` " | " `mand` " | " `nomand` " | " `atime` " | " `noatime` " | " `diratime` " | " `nodiratime` " | " `bind` " | " `rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime` " | " `norelatime` " | " `strictatime` " | " `nostrictatime` " | " `mode` " | " `uid` " | " `gid` " | " `nr_inodes` " | " `nr_blocks` " | " `mpol` "
     */
    @JvmName("iumnjgrgswglfnwc")
    public suspend fun mountOptions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param values The list of `tmpfs` volume mount options.
     * Valid values: " `defaults` " | " `ro` " | " `rw` " | " `suid` " | " `nosuid` " | " `dev` " | " `nodev` " | " `exec` " | " `noexec` " | " `sync` " | " `async` " | " `dirsync` " | " `remount` " | " `mand` " | " `nomand` " | " `atime` " | " `noatime` " | " `diratime` " | " `nodiratime` " | " `bind` " | " `rbind" | "unbindable" | "runbindable" | "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" | "relatime` " | " `norelatime` " | " `strictatime` " | " `nostrictatime` " | " `mode` " | " `uid` " | " `gid` " | " `nr_inodes` " | " `nr_blocks` " | " `mpol` "
     */
    @JvmName("pacmpjkyywonuyin")
    public suspend fun mountOptions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param value The size (in MiB) of the `tmpfs` volume.
     */
    @JvmName("vankysokwdksmcqh")
    public suspend fun size(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.size = mapped
    }

    internal fun build(): JobDefinitionTmpfsArgs = JobDefinitionTmpfsArgs(
        containerPath = containerPath ?: throw PulumiNullFieldException("containerPath"),
        mountOptions = mountOptions,
        size = size ?: throw PulumiNullFieldException("size"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy