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

com.pulumi.awsnative.autoscaling.kotlin.inputs.LaunchConfigurationBlockDeviceMappingArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.autoscaling.kotlin.inputs

import com.pulumi.awsnative.autoscaling.inputs.LaunchConfigurationBlockDeviceMappingArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * BlockDeviceMapping is a property of AWS::AutoScaling::LaunchConfiguration that describes a block device mapping for an Auto Scaling group.
 * @property deviceName The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
 * @property ebs Parameters used to automatically set up EBS volumes when an instance is launched.
 * @property noDevice Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
 * @property virtualName The name of the virtual device.
 */
public data class LaunchConfigurationBlockDeviceMappingArgs(
    public val deviceName: Output,
    public val ebs: Output? = null,
    public val noDevice: Output? = null,
    public val virtualName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.autoscaling.inputs.LaunchConfigurationBlockDeviceMappingArgs =
        com.pulumi.awsnative.autoscaling.inputs.LaunchConfigurationBlockDeviceMappingArgs.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 [LaunchConfigurationBlockDeviceMappingArgs].
 */
@PulumiTagMarker
public class LaunchConfigurationBlockDeviceMappingArgsBuilder 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 name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
     */
    @JvmName("ylumbnuoxlctbxab")
    public suspend fun deviceName(`value`: Output) {
        this.deviceName = value
    }

    /**
     * @param value Parameters used to automatically set up EBS volumes when an instance is launched.
     */
    @JvmName("phvhpkwkupgfycfr")
    public suspend fun ebs(`value`: Output) {
        this.ebs = value
    }

    /**
     * @param value Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
     */
    @JvmName("utrfcbdmvhxkpbyu")
    public suspend fun noDevice(`value`: Output) {
        this.noDevice = value
    }

    /**
     * @param value The name of the virtual device.
     */
    @JvmName("qibsimglbwhmwsnu")
    public suspend fun virtualName(`value`: Output) {
        this.virtualName = value
    }

    /**
     * @param value The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).
     */
    @JvmName("ssbhodktlkbbftho")
    public suspend fun deviceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deviceName = mapped
    }

    /**
     * @param value Parameters used to automatically set up EBS volumes when an instance is launched.
     */
    @JvmName("lkjypttldebicjcj")
    public suspend fun ebs(`value`: LaunchConfigurationBlockDeviceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ebs = mapped
    }

    /**
     * @param argument Parameters used to automatically set up EBS volumes when an instance is launched.
     */
    @JvmName("kerjnlmtnpjejuob")
    public suspend fun ebs(argument: suspend LaunchConfigurationBlockDeviceArgsBuilder.() -> Unit) {
        val toBeMapped = LaunchConfigurationBlockDeviceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ebs = mapped
    }

    /**
     * @param value Setting this value to true suppresses the specified device included in the block device mapping of the AMI.
     */
    @JvmName("hgnwcxukvahflypf")
    public suspend fun noDevice(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noDevice = mapped
    }

    /**
     * @param value The name of the virtual device.
     */
    @JvmName("yhcjpigerpghrsll")
    public suspend fun virtualName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualName = mapped
    }

    internal fun build(): LaunchConfigurationBlockDeviceMappingArgs =
        LaunchConfigurationBlockDeviceMappingArgs(
            deviceName = deviceName ?: throw PulumiNullFieldException("deviceName"),
            ebs = ebs,
            noDevice = noDevice,
            virtualName = virtualName,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy