com.pulumi.aws.ecs.kotlin.inputs.ServiceVolumeConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ecs.kotlin.inputs
import com.pulumi.aws.ecs.inputs.ServiceVolumeConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property managedEbsVolume Configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. See below.
* @property name Name of the volume.
*/
public data class ServiceVolumeConfigurationArgs(
public val managedEbsVolume: Output,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ecs.inputs.ServiceVolumeConfigurationArgs =
com.pulumi.aws.ecs.inputs.ServiceVolumeConfigurationArgs.builder()
.managedEbsVolume(managedEbsVolume.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceVolumeConfigurationArgs].
*/
@PulumiTagMarker
public class ServiceVolumeConfigurationArgsBuilder internal constructor() {
private var managedEbsVolume: Output? = null
private var name: Output? = null
/**
* @param value Configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. See below.
*/
@JvmName("pjvsuphsnswtgokp")
public suspend fun managedEbsVolume(`value`: Output) {
this.managedEbsVolume = value
}
/**
* @param value Name of the volume.
*/
@JvmName("bofpccqbkyasgecp")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. See below.
*/
@JvmName("pmfnhhelyfrbmkxc")
public suspend fun managedEbsVolume(`value`: ServiceVolumeConfigurationManagedEbsVolumeArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.managedEbsVolume = mapped
}
/**
* @param argument Configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. See below.
*/
@JvmName("mjijfbsaqijimkep")
public suspend fun managedEbsVolume(argument: suspend ServiceVolumeConfigurationManagedEbsVolumeArgsBuilder.() -> Unit) {
val toBeMapped = ServiceVolumeConfigurationManagedEbsVolumeArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.managedEbsVolume = mapped
}
/**
* @param value Name of the volume.
*/
@JvmName("thgkitloecjtejvp")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ServiceVolumeConfigurationArgs = ServiceVolumeConfigurationArgs(
managedEbsVolume = managedEbsVolume ?: throw PulumiNullFieldException("managedEbsVolume"),
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy