
com.pulumi.awsnative.ec2.kotlin.inputs.LaunchTemplateCreditSpecificationArgs.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.inputs
import com.pulumi.awsnative.ec2.inputs.LaunchTemplateCreditSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Specifies the credit option for CPU usage of a T2, T3, or T3a instance.
* ``CreditSpecification`` is a property of [AWS::EC2::LaunchTemplate LaunchTemplateData](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html).
* @property cpuCredits The credit option for CPU usage of a T instance.
* Valid values: ``standard`` | ``unlimited``
*/
public data class LaunchTemplateCreditSpecificationArgs(
public val cpuCredits: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.inputs.LaunchTemplateCreditSpecificationArgs =
com.pulumi.awsnative.ec2.inputs.LaunchTemplateCreditSpecificationArgs.builder()
.cpuCredits(cpuCredits?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LaunchTemplateCreditSpecificationArgs].
*/
@PulumiTagMarker
public class LaunchTemplateCreditSpecificationArgsBuilder internal constructor() {
private var cpuCredits: Output? = null
/**
* @param value The credit option for CPU usage of a T instance.
* Valid values: ``standard`` | ``unlimited``
*/
@JvmName("svkcqfrbwwyojwbl")
public suspend fun cpuCredits(`value`: Output) {
this.cpuCredits = value
}
/**
* @param value The credit option for CPU usage of a T instance.
* Valid values: ``standard`` | ``unlimited``
*/
@JvmName("eqthftlfboeimqdh")
public suspend fun cpuCredits(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cpuCredits = mapped
}
internal fun build(): LaunchTemplateCreditSpecificationArgs =
LaunchTemplateCreditSpecificationArgs(
cpuCredits = cpuCredits,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy