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

com.pulumi.aws.imagebuilder.kotlin.inputs.ImageRecipeComponentArgs.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.imagebuilder.kotlin.inputs

import com.pulumi.aws.imagebuilder.inputs.ImageRecipeComponentArgs.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

/**
 *
 * @property componentArn Amazon Resource Name (ARN) of the Image Builder Component to associate.
 * @property parameters Configuration block(s) for parameters to configure the component. Detailed below.
 */
public data class ImageRecipeComponentArgs(
    public val componentArn: Output,
    public val parameters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.ImageRecipeComponentArgs =
        com.pulumi.aws.imagebuilder.inputs.ImageRecipeComponentArgs.builder()
            .componentArn(componentArn.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var parameters: Output>? = null

    /**
     * @param value Amazon Resource Name (ARN) of the Image Builder Component to associate.
     */
    @JvmName("qjwrbljmqyuupnuq")
    public suspend fun componentArn(`value`: Output) {
        this.componentArn = value
    }

    /**
     * @param value Configuration block(s) for parameters to configure the component. Detailed below.
     */
    @JvmName("lrujvcxjrkxfxrld")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values Configuration block(s) for parameters to configure the component. Detailed below.
     */
    @JvmName("xwnrwtmjxoininsb")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value Amazon Resource Name (ARN) of the Image Builder Component to associate.
     */
    @JvmName("vhtvoylmkssskumc")
    public suspend fun componentArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.componentArn = mapped
    }

    /**
     * @param value Configuration block(s) for parameters to configure the component. Detailed below.
     */
    @JvmName("lkgvlfhdmsicjtvx")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Configuration block(s) for parameters to configure the component. Detailed below.
     */
    @JvmName("jydcsfhcbhvypsbb")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ImageRecipeComponentParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Configuration block(s) for parameters to configure the component. Detailed below.
     */
    @JvmName("wfffsrwxfjufdqgy")
    public suspend fun parameters(vararg argument: suspend ImageRecipeComponentParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ImageRecipeComponentParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Configuration block(s) for parameters to configure the component. Detailed below.
     */
    @JvmName("ievenybyvbbiytgv")
    public suspend fun parameters(argument: suspend ImageRecipeComponentParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ImageRecipeComponentParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Configuration block(s) for parameters to configure the component. Detailed below.
     */
    @JvmName("opkuiejbvbhisgeu")
    public suspend fun parameters(vararg values: ImageRecipeComponentParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    internal fun build(): ImageRecipeComponentArgs = ImageRecipeComponentArgs(
        componentArn = componentArn ?: throw PulumiNullFieldException("componentArn"),
        parameters = parameters,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy