All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.imagebuilder.kotlin.inputs.ContainerRecipeInstanceBlockDeviceMappingArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.imagebuilder.kotlin.inputs

import com.pulumi.awsnative.imagebuilder.inputs.ContainerRecipeInstanceBlockDeviceMappingArgs.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 ContainerRecipeInstanceBlockDeviceMappingArgs(
    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.ContainerRecipeInstanceBlockDeviceMappingArgs =
        com.pulumi.awsnative.imagebuilder.inputs.ContainerRecipeInstanceBlockDeviceMappingArgs.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 [ContainerRecipeInstanceBlockDeviceMappingArgs].
 */
@PulumiTagMarker
public class ContainerRecipeInstanceBlockDeviceMappingArgsBuilder 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("cejpqunfhswrphti")
    public suspend fun deviceName(`value`: Output) {
        this.deviceName = value
    }

    /**
     * @param value Use to manage Amazon EBS-specific configuration for this mapping.
     */
    @JvmName("xmrvjcmbonjypspi")
    public suspend fun ebs(`value`: Output) {
        this.ebs = value
    }

    /**
     * @param value Use to remove a mapping from the parent image.
     */
    @JvmName("hjocddbbsqrxnoep")
    public suspend fun noDevice(`value`: Output) {
        this.noDevice = value
    }

    /**
     * @param value Use to manage instance ephemeral devices.
     */
    @JvmName("lsgxyfdypxmimcym")
    public suspend fun virtualName(`value`: Output) {
        this.virtualName = value
    }

    /**
     * @param value The device to which these mappings apply.
     */
    @JvmName("ifugcjmulyewcmrq")
    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("jiyypmwrfsfiykyn")
    public suspend fun ebs(`value`: ContainerRecipeEbsInstanceBlockDeviceSpecificationArgs?) {
        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("rulothojbwgoarmk")
    public suspend fun ebs(argument: suspend ContainerRecipeEbsInstanceBlockDeviceSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = ContainerRecipeEbsInstanceBlockDeviceSpecificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.ebs = mapped
    }

    /**
     * @param value Use to remove a mapping from the parent image.
     */
    @JvmName("egpyfosqtljywaoo")
    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("pdftiabqixnjgtir")
    public suspend fun virtualName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualName = mapped
    }

    internal fun build(): ContainerRecipeInstanceBlockDeviceMappingArgs =
        ContainerRecipeInstanceBlockDeviceMappingArgs(
            deviceName = deviceName,
            ebs = ebs,
            noDevice = noDevice,
            virtualName = virtualName,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy