![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.imagebuilder.kotlin.inputs.ImageRecipeInstanceBlockDeviceMappingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.imagebuilder.kotlin.inputs
import com.pulumi.awsnative.imagebuilder.inputs.ImageRecipeInstanceBlockDeviceMappingArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Defines block device mappings for the instance used to configure your image.
* @property deviceName The device to which these mappings apply.
* @property ebs Use to manage Amazon EBS-specific configuration for this mapping.
* @property noDevice Use to remove a mapping from the parent image.
* @property virtualName Use to manage instance ephemeral devices.
*/
public data class ImageRecipeInstanceBlockDeviceMappingArgs(
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.awsnative.imagebuilder.inputs.ImageRecipeInstanceBlockDeviceMappingArgs =
com.pulumi.awsnative.imagebuilder.inputs.ImageRecipeInstanceBlockDeviceMappingArgs.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 [ImageRecipeInstanceBlockDeviceMappingArgs].
*/
@PulumiTagMarker
public class ImageRecipeInstanceBlockDeviceMappingArgsBuilder internal constructor() {
private var deviceName: Output? = null
private var ebs: Output? = null
private var noDevice: Output? = null
private var virtualName: Output? = null
/**
* @param value The device to which these mappings apply.
*/
@JvmName("fbdnadnfxxquybya")
public suspend fun deviceName(`value`: Output) {
this.deviceName = value
}
/**
* @param value Use to manage Amazon EBS-specific configuration for this mapping.
*/
@JvmName("lesnjeajqpbvbnmm")
public suspend fun ebs(`value`: Output) {
this.ebs = value
}
/**
* @param value Use to remove a mapping from the parent image.
*/
@JvmName("dwcxnbpjpetnxoms")
public suspend fun noDevice(`value`: Output) {
this.noDevice = value
}
/**
* @param value Use to manage instance ephemeral devices.
*/
@JvmName("gwscyfsyfjrfnjqp")
public suspend fun virtualName(`value`: Output) {
this.virtualName = value
}
/**
* @param value The device to which these mappings apply.
*/
@JvmName("muhyrfxawlrwmotl")
public suspend fun deviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deviceName = mapped
}
/**
* @param value Use to manage Amazon EBS-specific configuration for this mapping.
*/
@JvmName("oksmcxqyoitkrryo")
public suspend fun ebs(`value`: ImageRecipeEbsInstanceBlockDeviceSpecificationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ebs = mapped
}
/**
* @param argument Use to manage Amazon EBS-specific configuration for this mapping.
*/
@JvmName("atvrbwmkoqnxpikg")
public suspend fun ebs(argument: suspend ImageRecipeEbsInstanceBlockDeviceSpecificationArgsBuilder.() -> Unit) {
val toBeMapped = ImageRecipeEbsInstanceBlockDeviceSpecificationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ebs = mapped
}
/**
* @param value Use to remove a mapping from the parent image.
*/
@JvmName("awgeojryugtauatl")
public suspend fun noDevice(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.noDevice = mapped
}
/**
* @param value Use to manage instance ephemeral devices.
*/
@JvmName("uefomjchicjvfvom")
public suspend fun virtualName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualName = mapped
}
internal fun build(): ImageRecipeInstanceBlockDeviceMappingArgs =
ImageRecipeInstanceBlockDeviceMappingArgs(
deviceName = deviceName,
ebs = ebs,
noDevice = noDevice,
virtualName = virtualName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy