com.pulumi.aws.ec2.kotlin.inputs.InstanceEphemeralBlockDeviceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ec2.kotlin.inputs
import com.pulumi.aws.ec2.inputs.InstanceEphemeralBlockDeviceArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property deviceName Name of the block device to mount on the instance.
* @property noDevice Suppresses the specified device included in the AMI's block device mapping.
* @property virtualName [Instance Store Device Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames) (e.g., `ephemeral0`).
* Each AWS Instance type has a different set of Instance Store block devices available for attachment. AWS [publishes a list](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#StorageOnInstanceTypes) of which ephemeral devices are available on each type. The devices are always identified by the `virtual_name` in the format `ephemeral{0..N}`.
*/
public data class InstanceEphemeralBlockDeviceArgs(
public val deviceName: Output,
public val noDevice: Output? = null,
public val virtualName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2.inputs.InstanceEphemeralBlockDeviceArgs =
com.pulumi.aws.ec2.inputs.InstanceEphemeralBlockDeviceArgs.builder()
.deviceName(deviceName.applyValue({ args0 -> args0 }))
.noDevice(noDevice?.applyValue({ args0 -> args0 }))
.virtualName(virtualName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceEphemeralBlockDeviceArgs].
*/
@PulumiTagMarker
public class InstanceEphemeralBlockDeviceArgsBuilder internal constructor() {
private var deviceName: Output? = null
private var noDevice: Output? = null
private var virtualName: Output? = null
/**
* @param value Name of the block device to mount on the instance.
*/
@JvmName("kyxodgftuxqhwwxk")
public suspend fun deviceName(`value`: Output) {
this.deviceName = value
}
/**
* @param value Suppresses the specified device included in the AMI's block device mapping.
*/
@JvmName("cnacqwhydpdjqclg")
public suspend fun noDevice(`value`: Output) {
this.noDevice = value
}
/**
* @param value [Instance Store Device Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames) (e.g., `ephemeral0`).
* Each AWS Instance type has a different set of Instance Store block devices available for attachment. AWS [publishes a list](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#StorageOnInstanceTypes) of which ephemeral devices are available on each type. The devices are always identified by the `virtual_name` in the format `ephemeral{0..N}`.
*/
@JvmName("rbmutgjjchiycolv")
public suspend fun virtualName(`value`: Output) {
this.virtualName = value
}
/**
* @param value Name of the block device to mount on the instance.
*/
@JvmName("ngdhmjfmtchfugkg")
public suspend fun deviceName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.deviceName = mapped
}
/**
* @param value Suppresses the specified device included in the AMI's block device mapping.
*/
@JvmName("hwhiqmbgcoigmvjp")
public suspend fun noDevice(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.noDevice = mapped
}
/**
* @param value [Instance Store Device Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames) (e.g., `ephemeral0`).
* Each AWS Instance type has a different set of Instance Store block devices available for attachment. AWS [publishes a list](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#StorageOnInstanceTypes) of which ephemeral devices are available on each type. The devices are always identified by the `virtual_name` in the format `ephemeral{0..N}`.
*/
@JvmName("xkccnevrpbiqviqs")
public suspend fun virtualName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualName = mapped
}
internal fun build(): InstanceEphemeralBlockDeviceArgs = InstanceEphemeralBlockDeviceArgs(
deviceName = deviceName ?: throw PulumiNullFieldException("deviceName"),
noDevice = noDevice,
virtualName = virtualName,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy