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

com.pulumi.awsnative.ecs.kotlin.outputs.TaskDefinitionMountPoint.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.ecs.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 * 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 TaskDefinitionMountPoint(
    public val containerPath: String? = null,
    public val readOnly: Boolean? = null,
    public val sourceVolume: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.TaskDefinitionMountPoint): TaskDefinitionMountPoint = TaskDefinitionMountPoint(
            containerPath = javaType.containerPath().map({ args0 -> args0 }).orElse(null),
            readOnly = javaType.readOnly().map({ args0 -> args0 }).orElse(null),
            sourceVolume = javaType.sourceVolume().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy