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

com.pulumi.aws.appconfig.kotlin.inputs.GetConfigurationProfilePlainArgs.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.appconfig.kotlin.inputs

import com.pulumi.aws.appconfig.inputs.GetConfigurationProfilePlainArgs.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 getConfigurationProfile.
 * @property applicationId ID of the AppConfig application to which this configuration profile belongs.
 * @property configurationProfileId ID of the Configuration Profile.
 * @property tags Map of tags for the resource.
 */
public data class GetConfigurationProfilePlainArgs(
    public val applicationId: String,
    public val configurationProfileId: String,
    public val tags: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appconfig.inputs.GetConfigurationProfilePlainArgs =
        com.pulumi.aws.appconfig.inputs.GetConfigurationProfilePlainArgs.builder()
            .applicationId(applicationId.let({ args0 -> args0 }))
            .configurationProfileId(configurationProfileId.let({ args0 -> args0 }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}

/**
 * Builder for [GetConfigurationProfilePlainArgs].
 */
@PulumiTagMarker
public class GetConfigurationProfilePlainArgsBuilder internal constructor() {
    private var applicationId: String? = null

    private var configurationProfileId: String? = null

    private var tags: Map? = null

    /**
     * @param value ID of the AppConfig application to which this configuration profile belongs.
     */
    @JvmName("yrnavrgjymmctifu")
    public suspend fun applicationId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.applicationId = mapped
    }

    /**
     * @param value ID of the Configuration Profile.
     */
    @JvmName("ytxilfimtnovmovb")
    public suspend fun configurationProfileId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.configurationProfileId = mapped
    }

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

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

    internal fun build(): GetConfigurationProfilePlainArgs = GetConfigurationProfilePlainArgs(
        applicationId = applicationId ?: throw PulumiNullFieldException("applicationId"),
        configurationProfileId = configurationProfileId ?: throw
            PulumiNullFieldException("configurationProfileId"),
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy