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

com.pulumi.awsnative.eks.kotlin.inputs.ClusterOutpostConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.eks.kotlin.inputs

import com.pulumi.awsnative.eks.inputs.ClusterOutpostConfigArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * An object representing the Outpost configuration to use for AWS EKS outpost cluster.
 * @property controlPlaneInstanceType Specify the Instance type of the machines that should be used to create your cluster.
 * @property controlPlanePlacement Specify the placement group of the control plane machines for your cluster.
 * @property outpostArns Specify one or more Arn(s) of Outpost(s) on which you would like to create your cluster.
 */
public data class ClusterOutpostConfigArgs(
    public val controlPlaneInstanceType: Output,
    public val controlPlanePlacement: Output? = null,
    public val outpostArns: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.eks.inputs.ClusterOutpostConfigArgs =
        com.pulumi.awsnative.eks.inputs.ClusterOutpostConfigArgs.builder()
            .controlPlaneInstanceType(controlPlaneInstanceType.applyValue({ args0 -> args0 }))
            .controlPlanePlacement(
                controlPlanePlacement?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .outpostArns(outpostArns.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ClusterOutpostConfigArgs].
 */
@PulumiTagMarker
public class ClusterOutpostConfigArgsBuilder internal constructor() {
    private var controlPlaneInstanceType: Output? = null

    private var controlPlanePlacement: Output? = null

    private var outpostArns: Output>? = null

    /**
     * @param value Specify the Instance type of the machines that should be used to create your cluster.
     */
    @JvmName("ioleosvqttxkylhj")
    public suspend fun controlPlaneInstanceType(`value`: Output) {
        this.controlPlaneInstanceType = value
    }

    /**
     * @param value Specify the placement group of the control plane machines for your cluster.
     */
    @JvmName("ijyprcvcumkdjhao")
    public suspend fun controlPlanePlacement(`value`: Output) {
        this.controlPlanePlacement = value
    }

    /**
     * @param value Specify one or more Arn(s) of Outpost(s) on which you would like to create your cluster.
     */
    @JvmName("iiryyrpfjikjgvbj")
    public suspend fun outpostArns(`value`: Output>) {
        this.outpostArns = value
    }

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

    /**
     * @param values Specify one or more Arn(s) of Outpost(s) on which you would like to create your cluster.
     */
    @JvmName("grvnemrsdyccdrrg")
    public suspend fun outpostArns(values: List>) {
        this.outpostArns = Output.all(values)
    }

    /**
     * @param value Specify the Instance type of the machines that should be used to create your cluster.
     */
    @JvmName("kcvmkknallywygiu")
    public suspend fun controlPlaneInstanceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.controlPlaneInstanceType = mapped
    }

    /**
     * @param value Specify the placement group of the control plane machines for your cluster.
     */
    @JvmName("dgukgfqkbptljcig")
    public suspend fun controlPlanePlacement(`value`: ClusterControlPlanePlacementArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.controlPlanePlacement = mapped
    }

    /**
     * @param argument Specify the placement group of the control plane machines for your cluster.
     */
    @JvmName("gcuqaufeebmipuud")
    public suspend fun controlPlanePlacement(argument: suspend ClusterControlPlanePlacementArgsBuilder.() -> Unit) {
        val toBeMapped = ClusterControlPlanePlacementArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.controlPlanePlacement = mapped
    }

    /**
     * @param value Specify one or more Arn(s) of Outpost(s) on which you would like to create your cluster.
     */
    @JvmName("rnukcgcraqvodygx")
    public suspend fun outpostArns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outpostArns = mapped
    }

    /**
     * @param values Specify one or more Arn(s) of Outpost(s) on which you would like to create your cluster.
     */
    @JvmName("cdbcsqkbkrhhryyo")
    public suspend fun outpostArns(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outpostArns = mapped
    }

    internal fun build(): ClusterOutpostConfigArgs = ClusterOutpostConfigArgs(
        controlPlaneInstanceType = controlPlaneInstanceType ?: throw
            PulumiNullFieldException("controlPlaneInstanceType"),
        controlPlanePlacement = controlPlanePlacement,
        outpostArns = outpostArns ?: throw PulumiNullFieldException("outpostArns"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy