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

com.pulumi.awsnative.imagebuilder.kotlin.inputs.ContainerRecipeComponentConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.imagebuilder.kotlin.inputs

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

/**
 * Configuration details of the component.
 * @property componentArn The Amazon Resource Name (ARN) of the component.
 * @property parameters A group of parameter settings that are used to configure the component for a specific recipe.
 */
public data class ContainerRecipeComponentConfigurationArgs(
    public val componentArn: Output? = null,
    public val parameters: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.ContainerRecipeComponentConfigurationArgs =
        com.pulumi.awsnative.imagebuilder.inputs.ContainerRecipeComponentConfigurationArgs.builder()
            .componentArn(componentArn?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ContainerRecipeComponentConfigurationArgs].
 */
@PulumiTagMarker
public class ContainerRecipeComponentConfigurationArgsBuilder internal constructor() {
    private var componentArn: Output? = null

    private var parameters: Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the component.
     */
    @JvmName("fegsesghlxfkffwj")
    public suspend fun componentArn(`value`: Output) {
        this.componentArn = value
    }

    /**
     * @param value A group of parameter settings that are used to configure the component for a specific recipe.
     */
    @JvmName("mmoepuletocwxrxl")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values A group of parameter settings that are used to configure the component for a specific recipe.
     */
    @JvmName("wldsslcvxvowwbud")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the component.
     */
    @JvmName("jjvxkqbmkdsihytw")
    public suspend fun componentArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentArn = mapped
    }

    /**
     * @param value A group of parameter settings that are used to configure the component for a specific recipe.
     */
    @JvmName("dcemghoohfrliyvu")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument A group of parameter settings that are used to configure the component for a specific recipe.
     */
    @JvmName("bhxnlaerppmibrss")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ContainerRecipeComponentParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument A group of parameter settings that are used to configure the component for a specific recipe.
     */
    @JvmName("kcqttycpytaivdga")
    public suspend fun parameters(vararg argument: suspend ContainerRecipeComponentParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ContainerRecipeComponentParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument A group of parameter settings that are used to configure the component for a specific recipe.
     */
    @JvmName("iamfritnycpqdqvj")
    public suspend fun parameters(argument: suspend ContainerRecipeComponentParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ContainerRecipeComponentParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values A group of parameter settings that are used to configure the component for a specific recipe.
     */
    @JvmName("ymrbxlasgvqbqmhd")
    public suspend fun parameters(vararg values: ContainerRecipeComponentParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    internal fun build(): ContainerRecipeComponentConfigurationArgs =
        ContainerRecipeComponentConfigurationArgs(
            componentArn = componentArn,
            parameters = parameters,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy