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

com.pulumi.awsnative.ecs.kotlin.inputs.TaskDefinitionMountPointArgs.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.ecs.kotlin.inputs

import com.pulumi.awsnative.ecs.inputs.TaskDefinitionMountPointArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The details for a volume mount point that's used in a container definition.
 * @property containerPath The path on the container to mount the host volume at.
 * @property readOnly If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
 * @property sourceVolume The name of the volume to mount. Must be a volume name referenced in the ``name`` parameter of task definition ``volume``.
 */
public data class TaskDefinitionMountPointArgs(
    public val containerPath: Output? = null,
    public val readOnly: Output? = null,
    public val sourceVolume: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.TaskDefinitionMountPointArgs =
        com.pulumi.awsnative.ecs.inputs.TaskDefinitionMountPointArgs.builder()
            .containerPath(containerPath?.applyValue({ args0 -> args0 }))
            .readOnly(readOnly?.applyValue({ args0 -> args0 }))
            .sourceVolume(sourceVolume?.applyValue({ args0 -> args0 })).build()
}

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

    private var readOnly: Output? = null

    private var sourceVolume: Output? = null

    /**
     * @param value The path on the container to mount the host volume at.
     */
    @JvmName("rejxsashyloifbhm")
    public suspend fun containerPath(`value`: Output) {
        this.containerPath = value
    }

    /**
     * @param value If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
     */
    @JvmName("hhpsbnbfcgkwmail")
    public suspend fun readOnly(`value`: Output) {
        this.readOnly = value
    }

    /**
     * @param value The name of the volume to mount. Must be a volume name referenced in the ``name`` parameter of task definition ``volume``.
     */
    @JvmName("wkubrykcswharsyd")
    public suspend fun sourceVolume(`value`: Output) {
        this.sourceVolume = value
    }

    /**
     * @param value The path on the container to mount the host volume at.
     */
    @JvmName("imihwavfjdkgyrag")
    public suspend fun containerPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerPath = mapped
    }

    /**
     * @param value If this value is ``true``, the container has read-only access to the volume. If this value is ``false``, then the container can write to the volume. The default value is ``false``.
     */
    @JvmName("fwbykpejgpkbgbla")
    public suspend fun readOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readOnly = mapped
    }

    /**
     * @param value The name of the volume to mount. Must be a volume name referenced in the ``name`` parameter of task definition ``volume``.
     */
    @JvmName("txxkqeunbickccgi")
    public suspend fun sourceVolume(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceVolume = mapped
    }

    internal fun build(): TaskDefinitionMountPointArgs = TaskDefinitionMountPointArgs(
        containerPath = containerPath,
        readOnly = readOnly,
        sourceVolume = sourceVolume,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy