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

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

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

import com.pulumi.awsnative.batch.inputs.JobDefinitionVolumesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property efsVolumeConfiguration This is used when you're using an Amazon Elastic File System file system for job storage. For more information, see [Amazon EFS Volumes](https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) in the *AWS Batch User Guide* .
 * @property host The contents of the `host` parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
 * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
 * @property name The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the `sourceVolume` parameter of container definition `mountPoints` .
 */
public data class JobDefinitionVolumesArgs(
    public val efsVolumeConfiguration: Output? = null,
    public val host: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.batch.inputs.JobDefinitionVolumesArgs =
        com.pulumi.awsnative.batch.inputs.JobDefinitionVolumesArgs.builder()
            .efsVolumeConfiguration(
                efsVolumeConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .host(host?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobDefinitionVolumesArgs].
 */
@PulumiTagMarker
public class JobDefinitionVolumesArgsBuilder internal constructor() {
    private var efsVolumeConfiguration: Output? = null

    private var host: Output? = null

    private var name: Output? = null

    /**
     * @param value This is used when you're using an Amazon Elastic File System file system for job storage. For more information, see [Amazon EFS Volumes](https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) in the *AWS Batch User Guide* .
     */
    @JvmName("djljkhggdvhjhvsp")
    public suspend fun efsVolumeConfiguration(`value`: Output) {
        this.efsVolumeConfiguration = value
    }

    /**
     * @param value The contents of the `host` parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("kcftnxpmqytpvclq")
    public suspend fun host(`value`: Output) {
        this.host = value
    }

    /**
     * @param value The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the `sourceVolume` parameter of container definition `mountPoints` .
     */
    @JvmName("nkbrjrtyvcrphlxk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value This is used when you're using an Amazon Elastic File System file system for job storage. For more information, see [Amazon EFS Volumes](https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) in the *AWS Batch User Guide* .
     */
    @JvmName("djosyeqacufqwqdt")
    public suspend fun efsVolumeConfiguration(`value`: JobDefinitionEfsVolumeConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.efsVolumeConfiguration = mapped
    }

    /**
     * @param argument This is used when you're using an Amazon Elastic File System file system for job storage. For more information, see [Amazon EFS Volumes](https://docs.aws.amazon.com/batch/latest/userguide/efs-volumes.html) in the *AWS Batch User Guide* .
     */
    @JvmName("ymjwhqoeqrvbrbkx")
    public suspend fun efsVolumeConfiguration(argument: suspend JobDefinitionEfsVolumeConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionEfsVolumeConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.efsVolumeConfiguration = mapped
    }

    /**
     * @param value The contents of the `host` parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("mmecsxeucttpeivs")
    public suspend fun host(`value`: JobDefinitionVolumesHostArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.host = mapped
    }

    /**
     * @param argument The contents of the `host` parameter determine whether your data volume persists on the host container instance and where it's stored. If the host parameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.
     * > This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
     */
    @JvmName("uuhskwealcssrteb")
    public suspend fun host(argument: suspend JobDefinitionVolumesHostArgsBuilder.() -> Unit) {
        val toBeMapped = JobDefinitionVolumesHostArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.host = mapped
    }

    /**
     * @param value The name of the volume. It can be up to 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_). This name is referenced in the `sourceVolume` parameter of container definition `mountPoints` .
     */
    @JvmName("ruvumjqcsoeacapf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): JobDefinitionVolumesArgs = JobDefinitionVolumesArgs(
        efsVolumeConfiguration = efsVolumeConfiguration,
        host = host,
        name = name,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy