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

com.pulumi.awsnative.emrserverless.kotlin.inputs.ApplicationWorkerConfigurationArgs.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.emrserverless.kotlin.inputs

import com.pulumi.awsnative.emrserverless.inputs.ApplicationWorkerConfigurationArgs.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 diskType Per worker DiskType resource. Shuffle optimized and Standard are only supported types and specifying diskType is optional
 * @property memory Per worker memory resource. GB is the only supported unit and specifying GB is optional.
 */
public data class ApplicationWorkerConfigurationArgs(
    public val cpu: Output,
    public val disk: Output? = null,
    public val diskType: Output? = null,
    public val memory: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.emrserverless.inputs.ApplicationWorkerConfigurationArgs =
        com.pulumi.awsnative.emrserverless.inputs.ApplicationWorkerConfigurationArgs.builder()
            .cpu(cpu.applyValue({ args0 -> args0 }))
            .disk(disk?.applyValue({ args0 -> args0 }))
            .diskType(diskType?.applyValue({ args0 -> args0 }))
            .memory(memory.applyValue({ args0 -> args0 })).build()
}

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

    private var disk: Output? = null

    private var diskType: 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("iyoslqtibcahqmhu")
    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("jjaqrcbsvdjtmuhq")
    public suspend fun disk(`value`: Output) {
        this.disk = value
    }

    /**
     * @param value Per worker DiskType resource. Shuffle optimized and Standard are only supported types and specifying diskType is optional
     */
    @JvmName("jrjchjudcnhaynvm")
    public suspend fun diskType(`value`: Output) {
        this.diskType = value
    }

    /**
     * @param value Per worker memory resource. GB is the only supported unit and specifying GB is optional.
     */
    @JvmName("jhnxtybdnxjbarav")
    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("qgwvctgsjligejdc")
    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("kihhrfoldcwrgseq")
    public suspend fun disk(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.disk = mapped
    }

    /**
     * @param value Per worker DiskType resource. Shuffle optimized and Standard are only supported types and specifying diskType is optional
     */
    @JvmName("mhbpxifyoufuadge")
    public suspend fun diskType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskType = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy