com.pulumi.aws.imagebuilder.kotlin.inputs.ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs.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.imagebuilder.kotlin.inputs
import com.pulumi.aws.imagebuilder.inputs.ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property deviceName Name of the device. For example, `/dev/sda` or `/dev/xvdb`.
* @property ebs Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
* @property noDevice Set to `true` to remove a mapping from the parent image.
* @property virtualName Virtual device name. For example, `ephemeral0`. Instance store volumes are numbered starting from 0.
*/
public data class ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs(
public val deviceName: Output? = null,
public val ebs: Output? = null,
public val noDevice: Output? = null,
public val virtualName: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.imagebuilder.inputs.ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs =
com.pulumi.aws.imagebuilder.inputs.ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs.builder()
.deviceName(deviceName?.applyValue({ args0 -> args0 }))
.ebs(ebs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.noDevice(noDevice?.applyValue({ args0 -> args0 }))
.virtualName(virtualName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs].
*/
@PulumiTagMarker
public class ContainerRecipeInstanceConfigurationBlockDeviceMappingArgsBuilder internal constructor() {
private var deviceName: Output? = null
private var ebs: Output? = null
private var noDevice: Output? = null
private var virtualName: Output? = null
/**
* @param value Name of the device. For example, `/dev/sda` or `/dev/xvdb`.
*/
@JvmName("pxbwmtwxbenlraeo")
public suspend fun deviceName(`value`: Output) {
this.deviceName = value
}
/**
* @param value Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
*/
@JvmName("nblwxrrttygofkhr")
public suspend fun ebs(`value`: Output) {
this.ebs = value
}
/**
* @param value Set to `true` to remove a mapping from the parent image.
*/
@JvmName("vslcscgqvaubilrh")
public suspend fun noDevice(`value`: Output) {
this.noDevice = value
}
/**
* @param value Virtual device name. For example, `ephemeral0`. Instance store volumes are numbered starting from 0.
*/
@JvmName("himeqgyykgqpefjm")
public suspend fun virtualName(`value`: Output) {
this.virtualName = value
}
/**
* @param value Name of the device. For example, `/dev/sda` or `/dev/xvdb`.
*/
@JvmName("uowcgepvfwmeyaek")
public suspend fun deviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deviceName = mapped
}
/**
* @param value Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
*/
@JvmName("onwwjtxbntvfrvyb")
public suspend fun ebs(`value`: ContainerRecipeInstanceConfigurationBlockDeviceMappingEbsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ebs = mapped
}
/**
* @param argument Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
*/
@JvmName("jtnukqtfwxttkbxk")
public suspend fun ebs(argument: suspend ContainerRecipeInstanceConfigurationBlockDeviceMappingEbsArgsBuilder.() -> Unit) {
val toBeMapped =
ContainerRecipeInstanceConfigurationBlockDeviceMappingEbsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ebs = mapped
}
/**
* @param value Set to `true` to remove a mapping from the parent image.
*/
@JvmName("ongptrnjdsghvjlm")
public suspend fun noDevice(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.noDevice = mapped
}
/**
* @param value Virtual device name. For example, `ephemeral0`. Instance store volumes are numbered starting from 0.
*/
@JvmName("gygktvmtmljlykay")
public suspend fun virtualName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualName = mapped
}
internal fun build(): ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs =
ContainerRecipeInstanceConfigurationBlockDeviceMappingArgs(
deviceName = deviceName,
ebs = ebs,
noDevice = noDevice,
virtualName = virtualName,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy