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

com.pulumi.aws.imagebuilder.kotlin.inputs.GetImageRecipePlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.imagebuilder.kotlin.inputs

import com.pulumi.aws.imagebuilder.inputs.GetImageRecipePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getImageRecipe.
 * @property arn ARN of the image recipe.
 * @property tags Key-value map of resource tags for the image recipe.
 */
public data class GetImageRecipePlainArgs(
    public val arn: String,
    public val tags: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.GetImageRecipePlainArgs =
        com.pulumi.aws.imagebuilder.inputs.GetImageRecipePlainArgs.builder()
            .arn(arn.let({ args0 -> args0 }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}

/**
 * Builder for [GetImageRecipePlainArgs].
 */
@PulumiTagMarker
public class GetImageRecipePlainArgsBuilder internal constructor() {
    private var arn: String? = null

    private var tags: Map? = null

    /**
     * @param value ARN of the image recipe.
     */
    @JvmName("aaooqoigmquxyxnw")
    public suspend fun arn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.arn = mapped
    }

    /**
     * @param value Key-value map of resource tags for the image recipe.
     */
    @JvmName("raeesgfpsuevhmll")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values Key-value map of resource tags for the image recipe.
     */
    @JvmName("ijbmnhcochxuqvua")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    internal fun build(): GetImageRecipePlainArgs = GetImageRecipePlainArgs(
        arn = arn ?: throw PulumiNullFieldException("arn"),
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy