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

com.pulumi.awsnative.emrserverless.kotlin.inputs.ApplicationMaximumAllowedResourcesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.emrserverless.kotlin.inputs

import com.pulumi.awsnative.emrserverless.inputs.ApplicationMaximumAllowedResourcesArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property cpu Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional.
 * @property disk Per worker Disk resource. GB is the only supported unit and specifying GB is optional
 * @property memory Per worker memory resource. GB is the only supported unit and specifying GB is optional.
 */
public data class ApplicationMaximumAllowedResourcesArgs(
    public val cpu: Output,
    public val disk: Output? = null,
    public val memory: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.emrserverless.inputs.ApplicationMaximumAllowedResourcesArgs =
        com.pulumi.awsnative.emrserverless.inputs.ApplicationMaximumAllowedResourcesArgs.builder()
            .cpu(cpu.applyValue({ args0 -> args0 }))
            .disk(disk?.applyValue({ args0 -> args0 }))
            .memory(memory.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationMaximumAllowedResourcesArgs].
 */
@PulumiTagMarker
public class ApplicationMaximumAllowedResourcesArgsBuilder internal constructor() {
    private var cpu: Output? = null

    private var disk: Output? = null

    private var memory: Output? = null

    /**
     * @param value Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional.
     */
    @JvmName("kusddbddtxjjphyt")
    public suspend fun cpu(`value`: Output) {
        this.cpu = value
    }

    /**
     * @param value Per worker Disk resource. GB is the only supported unit and specifying GB is optional
     */
    @JvmName("oxfyixgsitbdujkf")
    public suspend fun disk(`value`: Output) {
        this.disk = value
    }

    /**
     * @param value Per worker memory resource. GB is the only supported unit and specifying GB is optional.
     */
    @JvmName("ixgjltayxegsnlhd")
    public suspend fun memory(`value`: Output) {
        this.memory = value
    }

    /**
     * @param value Per worker CPU resource. vCPU is the only supported unit and specifying vCPU is optional.
     */
    @JvmName("rqmvdlmsbyqjavwc")
    public suspend fun cpu(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cpu = mapped
    }

    /**
     * @param value Per worker Disk resource. GB is the only supported unit and specifying GB is optional
     */
    @JvmName("htycelejskyuyvgf")
    public suspend fun disk(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disk = mapped
    }

    /**
     * @param value Per worker memory resource. GB is the only supported unit and specifying GB is optional.
     */
    @JvmName("sybjkwicoivxwmfy")
    public suspend fun memory(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.memory = mapped
    }

    internal fun build(): ApplicationMaximumAllowedResourcesArgs =
        ApplicationMaximumAllowedResourcesArgs(
            cpu = cpu ?: throw PulumiNullFieldException("cpu"),
            disk = disk,
            memory = memory ?: throw PulumiNullFieldException("memory"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy