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

com.pulumi.aws.batch.kotlin.inputs.JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.batch.kotlin.inputs

import com.pulumi.aws.batch.inputs.JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property limits
 * @property requests
 */
public data class JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgs(
    public val limits: Output>? = null,
    public val requests: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.batch.inputs.JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgs =
        com.pulumi.aws.batch.inputs.JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgs.builder()
            .limits(limits?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .requests(
                requests?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgs].
 */
@PulumiTagMarker
public class JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgsBuilder internal constructor() {
    private var limits: Output>? = null

    private var requests: Output>? = null

    /**
     * @param value
     */
    @JvmName("qryvyqfhyseruwvb")
    public suspend fun limits(`value`: Output>) {
        this.limits = value
    }

    /**
     * @param value
     */
    @JvmName("vbxohgmjhbxjpmdx")
    public suspend fun requests(`value`: Output>) {
        this.requests = value
    }

    /**
     * @param value
     */
    @JvmName("indbgnqngpbpkqlb")
    public suspend fun limits(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.limits = mapped
    }

    /**
     * @param values
     */
    @JvmName("bqthlhtucsusmmdn")
    public fun limits(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.limits = mapped
    }

    /**
     * @param value
     */
    @JvmName("gucbspjnshkbkgcc")
    public suspend fun requests(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requests = mapped
    }

    /**
     * @param values
     */
    @JvmName("pifqkeieaengkbuy")
    public fun requests(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.requests = mapped
    }

    internal fun build(): JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgs =
        JobDefinitionEksPropertiesPodPropertiesInitContainerResourcesArgs(
            limits = limits,
            requests = requests,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy