![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ec2.kotlin.outputs.LaunchTemplateBlockDeviceMapping.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.ec2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* Specifies a block device mapping for a launch template. You must specify ``DeviceName`` plus exactly one of the following properties: ``Ebs``, ``NoDevice``, or ``VirtualName``.
* ``BlockDeviceMapping`` is a property of [AWS::EC2::LaunchTemplate LaunchTemplateData](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html).
* @property deviceName The device name (for example, /dev/sdh or xvdh).
* @property ebs Parameters used to automatically set up EBS volumes when the instance is launched.
* @property noDevice To omit the device from the block device mapping, specify an empty string.
* @property virtualName The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
*/
public data class LaunchTemplateBlockDeviceMapping(
public val deviceName: String? = null,
public val ebs: LaunchTemplateEbs? = null,
public val noDevice: String? = null,
public val virtualName: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.LaunchTemplateBlockDeviceMapping): LaunchTemplateBlockDeviceMapping = LaunchTemplateBlockDeviceMapping(
deviceName = javaType.deviceName().map({ args0 -> args0 }).orElse(null),
ebs = javaType.ebs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.LaunchTemplateEbs.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