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

com.pulumi.aws.imagebuilder.kotlin.inputs.GetInfrastructureConfigurationPlainArgs.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.GetInfrastructureConfigurationPlainArgs.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 getInfrastructureConfiguration.
 * @property arn ARN of the infrastructure configuration.
 * @property resourceTags Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
 * @property tags Key-value map of resource tags for the infrastructure configuration.
 */
public data class GetInfrastructureConfigurationPlainArgs(
    public val arn: String,
    public val resourceTags: Map? = null,
    public val tags: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.GetInfrastructureConfigurationPlainArgs = com.pulumi.aws.imagebuilder.inputs.GetInfrastructureConfigurationPlainArgs.builder()
        .arn(arn.let({ args0 -> args0 }))
        .resourceTags(
            resourceTags?.let({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }),
        )
        .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}

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

    private var resourceTags: Map? = null

    private var tags: Map? = null

    /**
     * @param value ARN of the infrastructure configuration.
     */
    @JvmName("aumdadqnthongpie")
    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 infrastructure created by the infrastructure configuration.
     */
    @JvmName("slnmfrcjhoxilesy")
    public suspend fun resourceTags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.resourceTags = mapped
    }

    /**
     * @param values Key-value map of resource tags for the infrastructure created by the infrastructure configuration.
     */
    @JvmName("aftjvxvyqjnoccat")
    public fun resourceTags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.resourceTags = mapped
    }

    /**
     * @param value Key-value map of resource tags for the infrastructure configuration.
     */
    @JvmName("fqhofnrhbrfiwhoc")
    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 infrastructure configuration.
     */
    @JvmName("ybtwmjowwsoxlfhj")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy