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

com.pulumi.awsnative.autoscaling.kotlin.outputs.LaunchConfigurationBlockDeviceMapping.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.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 * 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 LaunchConfigurationBlockDeviceMapping(
    public val deviceName: String,
    public val ebs: LaunchConfigurationBlockDevice? = null,
    public val noDevice: Boolean? = null,
    public val virtualName: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.autoscaling.outputs.LaunchConfigurationBlockDeviceMapping): LaunchConfigurationBlockDeviceMapping = LaunchConfigurationBlockDeviceMapping(
            deviceName = javaType.deviceName(),
            ebs = javaType.ebs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.autoscaling.kotlin.outputs.LaunchConfigurationBlockDevice.Companion.toKotlin(args0)
                })
            }).orElse(null),
            noDevice = javaType.noDevice().map({ args0 -> args0 }).orElse(null),
            virtualName = javaType.virtualName().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy