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

com.pulumi.awsnative.batch.kotlin.outputs.JobDefinitionVolumes.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.batch.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 JobDefinitionVolumes(
    public val efsVolumeConfiguration: JobDefinitionEfsVolumeConfiguration? = null,
    public val host: JobDefinitionVolumesHost? = null,
    public val name: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.batch.outputs.JobDefinitionVolumes): JobDefinitionVolumes = JobDefinitionVolumes(
            efsVolumeConfiguration = javaType.efsVolumeConfiguration().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.batch.kotlin.outputs.JobDefinitionEfsVolumeConfiguration.Companion.toKotlin(args0)
                })
            }).orElse(null),
            host = javaType.host().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.batch.kotlin.outputs.JobDefinitionVolumesHost.Companion.toKotlin(args0)
                })
            }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy