
com.pulumi.awsnative.ecs.kotlin.outputs.TaskDefinitionVolumeFrom.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
/**
* Details on a data volume from another container in the same task definition.
* @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 sourceContainer The name of another container within the same task definition to mount volumes from.
*/
public data class TaskDefinitionVolumeFrom(
public val readOnly: Boolean? = null,
public val sourceContainer: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.TaskDefinitionVolumeFrom): TaskDefinitionVolumeFrom = TaskDefinitionVolumeFrom(
readOnly = javaType.readOnly().map({ args0 -> args0 }).orElse(null),
sourceContainer = javaType.sourceContainer().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy