com.pulumi.awsnative.ecs.kotlin.outputs.TaskDefinitionMountPoint.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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),
)
}
}