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

com.pulumi.aws.emr.kotlin.inputs.InstanceFleetLaunchSpecificationsArgs.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.emr.kotlin.inputs

import com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property onDemandSpecifications Configuration block for on demand instances launch specifications
 * @property spotSpecifications Configuration block for spot instances launch specifications
 */
public data class InstanceFleetLaunchSpecificationsArgs(
    public val onDemandSpecifications: Output>? = null,
    public val spotSpecifications: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsArgs =
        com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsArgs.builder()
            .onDemandSpecifications(
                onDemandSpecifications?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .spotSpecifications(
                spotSpecifications?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    private var spotSpecifications:
        Output>? = null

    /**
     * @param value Configuration block for on demand instances launch specifications
     */
    @JvmName("qtfebddwcpfjowrx")
    public suspend fun onDemandSpecifications(`value`: Output>) {
        this.onDemandSpecifications = value
    }

    @JvmName("fvdykpmxtsldmuat")
    public suspend fun onDemandSpecifications(vararg values: Output) {
        this.onDemandSpecifications = Output.all(values.asList())
    }

    /**
     * @param values Configuration block for on demand instances launch specifications
     */
    @JvmName("hwiaugxkfiwhwwjl")
    public suspend fun onDemandSpecifications(values: List>) {
        this.onDemandSpecifications = Output.all(values)
    }

    /**
     * @param value Configuration block for spot instances launch specifications
     */
    @JvmName("qdqdptkhqmshfymp")
    public suspend fun spotSpecifications(`value`: Output>) {
        this.spotSpecifications = value
    }

    @JvmName("evdhxsbjgefsmmrt")
    public suspend fun spotSpecifications(vararg values: Output) {
        this.spotSpecifications = Output.all(values.asList())
    }

    /**
     * @param values Configuration block for spot instances launch specifications
     */
    @JvmName("ebflbpwipooivfwo")
    public suspend fun spotSpecifications(values: List>) {
        this.spotSpecifications = Output.all(values)
    }

    /**
     * @param value Configuration block for on demand instances launch specifications
     */
    @JvmName("xngoxsxuqshovtld")
    public suspend fun onDemandSpecifications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onDemandSpecifications = mapped
    }

    /**
     * @param argument Configuration block for on demand instances launch specifications
     */
    @JvmName("wyyxakeqmaajinqm")
    public suspend fun onDemandSpecifications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstanceFleetLaunchSpecificationsOnDemandSpecificationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.onDemandSpecifications = mapped
    }

    /**
     * @param argument Configuration block for on demand instances launch specifications
     */
    @JvmName("ejswgjliilsdpmli")
    public suspend fun onDemandSpecifications(vararg argument: suspend InstanceFleetLaunchSpecificationsOnDemandSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstanceFleetLaunchSpecificationsOnDemandSpecificationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.onDemandSpecifications = mapped
    }

    /**
     * @param argument Configuration block for on demand instances launch specifications
     */
    @JvmName("fjxgicmvnbpxeggo")
    public suspend fun onDemandSpecifications(argument: suspend InstanceFleetLaunchSpecificationsOnDemandSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                InstanceFleetLaunchSpecificationsOnDemandSpecificationArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.onDemandSpecifications = mapped
    }

    /**
     * @param values Configuration block for on demand instances launch specifications
     */
    @JvmName("htpjoskawdkhehkt")
    public suspend fun onDemandSpecifications(vararg values: InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.onDemandSpecifications = mapped
    }

    /**
     * @param value Configuration block for spot instances launch specifications
     */
    @JvmName("nmhsnjcquuikxdix")
    public suspend fun spotSpecifications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spotSpecifications = mapped
    }

    /**
     * @param argument Configuration block for spot instances launch specifications
     */
    @JvmName("rkeptfujfymvesfh")
    public suspend fun spotSpecifications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstanceFleetLaunchSpecificationsSpotSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.spotSpecifications = mapped
    }

    /**
     * @param argument Configuration block for spot instances launch specifications
     */
    @JvmName("btyhwknqcotwsgnc")
    public suspend fun spotSpecifications(vararg argument: suspend InstanceFleetLaunchSpecificationsSpotSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstanceFleetLaunchSpecificationsSpotSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.spotSpecifications = mapped
    }

    /**
     * @param argument Configuration block for spot instances launch specifications
     */
    @JvmName("vhxoyxjiyandhfmu")
    public suspend fun spotSpecifications(argument: suspend InstanceFleetLaunchSpecificationsSpotSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                InstanceFleetLaunchSpecificationsSpotSpecificationArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.spotSpecifications = mapped
    }

    /**
     * @param values Configuration block for spot instances launch specifications
     */
    @JvmName("xakwnbnpritlslcw")
    public suspend fun spotSpecifications(vararg values: InstanceFleetLaunchSpecificationsSpotSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.spotSpecifications = mapped
    }

    internal fun build(): InstanceFleetLaunchSpecificationsArgs =
        InstanceFleetLaunchSpecificationsArgs(
            onDemandSpecifications = onDemandSpecifications,
            spotSpecifications = spotSpecifications,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy