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

com.pulumi.awsnative.ec2.kotlin.inputs.LaunchTemplateElasticInferenceAcceleratorArgs.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.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.LaunchTemplateElasticInferenceAcceleratorArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies an elastic inference accelerator.
 *   ``LaunchTemplateElasticInferenceAccelerator`` is a property of [AWS::EC2::LaunchTemplate LaunchTemplateData](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html).
 * @property count The number of elastic inference accelerators to attach to the instance.
 *  Default: 1
 * @property type The type of elastic inference accelerator. The possible values are eia1.medium, eia1.large, and eia1.xlarge.
 */
public data class LaunchTemplateElasticInferenceAcceleratorArgs(
    public val count: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.LaunchTemplateElasticInferenceAcceleratorArgs =
        com.pulumi.awsnative.ec2.inputs.LaunchTemplateElasticInferenceAcceleratorArgs.builder()
            .count(count?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LaunchTemplateElasticInferenceAcceleratorArgs].
 */
@PulumiTagMarker
public class LaunchTemplateElasticInferenceAcceleratorArgsBuilder internal constructor() {
    private var count: Output? = null

    private var type: Output? = null

    /**
     * @param value The number of elastic inference accelerators to attach to the instance.
     *  Default: 1
     */
    @JvmName("cfbeqgcusirwcnfd")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The type of elastic inference accelerator. The possible values are eia1.medium, eia1.large, and eia1.xlarge.
     */
    @JvmName("msgdejbrtrsgbvks")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The number of elastic inference accelerators to attach to the instance.
     *  Default: 1
     */
    @JvmName("qaylrweoregkbdge")
    public suspend fun count(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value The type of elastic inference accelerator. The possible values are eia1.medium, eia1.large, and eia1.xlarge.
     */
    @JvmName("ghsjejdtvqrfnkxw")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): LaunchTemplateElasticInferenceAcceleratorArgs =
        LaunchTemplateElasticInferenceAcceleratorArgs(
            count = count,
            type = type,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy