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

com.pulumi.awsnative.ec2.kotlin.inputs.CreditSpecificationPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.CreditSpecificationPropertiesArgs.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

/**
 * The credit option for CPU usage of the burstable performance instance. Valid values are standard and unlimited.
 * @property cpuCredits The credit option for CPU usage of the instance.
 * Valid values: `standard` | `unlimited`
 * T3 instances with `host` tenancy do not support the `unlimited` CPU credit option.
 */
public data class CreditSpecificationPropertiesArgs(
    public val cpuCredits: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.CreditSpecificationPropertiesArgs =
        com.pulumi.awsnative.ec2.inputs.CreditSpecificationPropertiesArgs.builder()
            .cpuCredits(cpuCredits?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CreditSpecificationPropertiesArgs].
 */
@PulumiTagMarker
public class CreditSpecificationPropertiesArgsBuilder internal constructor() {
    private var cpuCredits: Output? = null

    /**
     * @param value The credit option for CPU usage of the instance.
     * Valid values: `standard` | `unlimited`
     * T3 instances with `host` tenancy do not support the `unlimited` CPU credit option.
     */
    @JvmName("lprpweqsoftxchtc")
    public suspend fun cpuCredits(`value`: Output) {
        this.cpuCredits = value
    }

    /**
     * @param value The credit option for CPU usage of the instance.
     * Valid values: `standard` | `unlimited`
     * T3 instances with `host` tenancy do not support the `unlimited` CPU credit option.
     */
    @JvmName("okitwfarjwvlnerv")
    public suspend fun cpuCredits(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuCredits = mapped
    }

    internal fun build(): CreditSpecificationPropertiesArgs = CreditSpecificationPropertiesArgs(
        cpuCredits = cpuCredits,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy