![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ecs.kotlin.inputs.TaskDefinitionVolumeFromArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ecs.kotlin.inputs
import com.pulumi.awsnative.ecs.inputs.TaskDefinitionVolumeFromArgs.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
/**
* 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 TaskDefinitionVolumeFromArgs(
public val readOnly: Output? = null,
public val sourceContainer: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ecs.inputs.TaskDefinitionVolumeFromArgs =
com.pulumi.awsnative.ecs.inputs.TaskDefinitionVolumeFromArgs.builder()
.readOnly(readOnly?.applyValue({ args0 -> args0 }))
.sourceContainer(sourceContainer?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TaskDefinitionVolumeFromArgs].
*/
@PulumiTagMarker
public class TaskDefinitionVolumeFromArgsBuilder internal constructor() {
private var readOnly: Output? = null
private var sourceContainer: Output? = null
/**
* @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("jhtlvaxiojvfkapk")
public suspend fun readOnly(`value`: Output) {
this.readOnly = value
}
/**
* @param value The name of another container within the same task definition to mount volumes from.
*/
@JvmName("cexxvwxkxycnoagf")
public suspend fun sourceContainer(`value`: Output) {
this.sourceContainer = 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("mhwtsjqgtpwccqix")
public suspend fun readOnly(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.readOnly = mapped
}
/**
* @param value The name of another container within the same task definition to mount volumes from.
*/
@JvmName("bgldalgusmthbftd")
public suspend fun sourceContainer(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sourceContainer = mapped
}
internal fun build(): TaskDefinitionVolumeFromArgs = TaskDefinitionVolumeFromArgs(
readOnly = readOnly,
sourceContainer = sourceContainer,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy