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

com.pulumi.awsnative.autoscaling.kotlin.inputs.LaunchConfigurationBlockDeviceArgs.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.LaunchConfigurationBlockDeviceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * BlockDevice is a subproperty of BlockDeviceMapping that describes an Amazon EBS volume.
 * @property deleteOnTermination Indicates whether the volume is deleted on instance termination.
 * @property encrypted Specifies whether the volume should be encrypted.
 * @property iops The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
 * @property snapshotId The snapshot ID of the volume to use.
 * @property throughput The throughput (MiBps) to provision for a gp3 volume.
 * @property volumeSize The volume size, in GiBs.
 * @property volumeType The volume type.
 */
public data class LaunchConfigurationBlockDeviceArgs(
    public val deleteOnTermination: Output? = null,
    public val encrypted: Output? = null,
    public val iops: Output? = null,
    public val snapshotId: Output? = null,
    public val throughput: Output? = null,
    public val volumeSize: Output? = null,
    public val volumeType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.autoscaling.inputs.LaunchConfigurationBlockDeviceArgs = com.pulumi.awsnative.autoscaling.inputs.LaunchConfigurationBlockDeviceArgs.builder()
        .deleteOnTermination(deleteOnTermination?.applyValue({ args0 -> args0 }))
        .encrypted(encrypted?.applyValue({ args0 -> args0 }))
        .iops(iops?.applyValue({ args0 -> args0 }))
        .snapshotId(snapshotId?.applyValue({ args0 -> args0 }))
        .throughput(throughput?.applyValue({ args0 -> args0 }))
        .volumeSize(volumeSize?.applyValue({ args0 -> args0 }))
        .volumeType(volumeType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LaunchConfigurationBlockDeviceArgs].
 */
@PulumiTagMarker
public class LaunchConfigurationBlockDeviceArgsBuilder internal constructor() {
    private var deleteOnTermination: Output? = null

    private var encrypted: Output? = null

    private var iops: Output? = null

    private var snapshotId: Output? = null

    private var throughput: Output? = null

    private var volumeSize: Output? = null

    private var volumeType: Output? = null

    /**
     * @param value Indicates whether the volume is deleted on instance termination.
     */
    @JvmName("vxfpiucpyhlfpdwq")
    public suspend fun deleteOnTermination(`value`: Output) {
        this.deleteOnTermination = value
    }

    /**
     * @param value Specifies whether the volume should be encrypted.
     */
    @JvmName("rhocsvoqiymaxtlr")
    public suspend fun encrypted(`value`: Output) {
        this.encrypted = value
    }

    /**
     * @param value The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
     */
    @JvmName("bnlwpsasqtlliqtp")
    public suspend fun iops(`value`: Output) {
        this.iops = value
    }

    /**
     * @param value The snapshot ID of the volume to use.
     */
    @JvmName("erdftidgnxlapdid")
    public suspend fun snapshotId(`value`: Output) {
        this.snapshotId = value
    }

    /**
     * @param value The throughput (MiBps) to provision for a gp3 volume.
     */
    @JvmName("peafofvvfwbatjxi")
    public suspend fun throughput(`value`: Output) {
        this.throughput = value
    }

    /**
     * @param value The volume size, in GiBs.
     */
    @JvmName("drfgwachccnkeykv")
    public suspend fun volumeSize(`value`: Output) {
        this.volumeSize = value
    }

    /**
     * @param value The volume type.
     */
    @JvmName("vhhbhucbwrmjnqul")
    public suspend fun volumeType(`value`: Output) {
        this.volumeType = value
    }

    /**
     * @param value Indicates whether the volume is deleted on instance termination.
     */
    @JvmName("qrdxhlehgrfvludi")
    public suspend fun deleteOnTermination(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deleteOnTermination = mapped
    }

    /**
     * @param value Specifies whether the volume should be encrypted.
     */
    @JvmName("ktgecjaaipjodlnm")
    public suspend fun encrypted(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encrypted = mapped
    }

    /**
     * @param value The number of input/output (I/O) operations per second (IOPS) to provision for the volume.
     */
    @JvmName("pwulvqilxdxbgbyg")
    public suspend fun iops(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.iops = mapped
    }

    /**
     * @param value The snapshot ID of the volume to use.
     */
    @JvmName("amaeyvfqxnysaufk")
    public suspend fun snapshotId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.snapshotId = mapped
    }

    /**
     * @param value The throughput (MiBps) to provision for a gp3 volume.
     */
    @JvmName("djhoakjjmfmmqora")
    public suspend fun throughput(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.throughput = mapped
    }

    /**
     * @param value The volume size, in GiBs.
     */
    @JvmName("mitsymaqfvjrngac")
    public suspend fun volumeSize(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeSize = mapped
    }

    /**
     * @param value The volume type.
     */
    @JvmName("aefbknrqaagillpp")
    public suspend fun volumeType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.volumeType = mapped
    }

    internal fun build(): LaunchConfigurationBlockDeviceArgs = LaunchConfigurationBlockDeviceArgs(
        deleteOnTermination = deleteOnTermination,
        encrypted = encrypted,
        iops = iops,
        snapshotId = snapshotId,
        throughput = throughput,
        volumeSize = volumeSize,
        volumeType = volumeType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy