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

com.pulumi.aws.autoscalingplans.kotlin.inputs.ScalingPlanApplicationSourceArgs.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.autoscalingplans.kotlin.inputs

import com.pulumi.aws.autoscalingplans.inputs.ScalingPlanApplicationSourceArgs.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

/**
 *
 * @property cloudformationStackArn ARN of a AWS CloudFormation stack.
 * @property tagFilters Set of tags.
 */
public data class ScalingPlanApplicationSourceArgs(
    public val cloudformationStackArn: Output? = null,
    public val tagFilters: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.autoscalingplans.inputs.ScalingPlanApplicationSourceArgs =
        com.pulumi.aws.autoscalingplans.inputs.ScalingPlanApplicationSourceArgs.builder()
            .cloudformationStackArn(cloudformationStackArn?.applyValue({ args0 -> args0 }))
            .tagFilters(
                tagFilters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ScalingPlanApplicationSourceArgs].
 */
@PulumiTagMarker
public class ScalingPlanApplicationSourceArgsBuilder internal constructor() {
    private var cloudformationStackArn: Output? = null

    private var tagFilters: Output>? = null

    /**
     * @param value ARN of a AWS CloudFormation stack.
     */
    @JvmName("xxowwhrhpsjaworw")
    public suspend fun cloudformationStackArn(`value`: Output) {
        this.cloudformationStackArn = value
    }

    /**
     * @param value Set of tags.
     */
    @JvmName("iwhbnxlpvahtmtig")
    public suspend fun tagFilters(`value`: Output>) {
        this.tagFilters = value
    }

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

    /**
     * @param values Set of tags.
     */
    @JvmName("uvmqlwgpuubgfirv")
    public suspend fun tagFilters(values: List>) {
        this.tagFilters = Output.all(values)
    }

    /**
     * @param value ARN of a AWS CloudFormation stack.
     */
    @JvmName("ynybruluuwkaamjm")
    public suspend fun cloudformationStackArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudformationStackArn = mapped
    }

    /**
     * @param value Set of tags.
     */
    @JvmName("ifggrquaafnxspjm")
    public suspend fun tagFilters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagFilters = mapped
    }

    /**
     * @param argument Set of tags.
     */
    @JvmName("ofhrmugakuwicmxa")
    public suspend fun tagFilters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ScalingPlanApplicationSourceTagFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tagFilters = mapped
    }

    /**
     * @param argument Set of tags.
     */
    @JvmName("vdcqrescwthutmji")
    public suspend fun tagFilters(vararg argument: suspend ScalingPlanApplicationSourceTagFilterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ScalingPlanApplicationSourceTagFilterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tagFilters = mapped
    }

    /**
     * @param argument Set of tags.
     */
    @JvmName("lgnusfknnkaoenre")
    public suspend fun tagFilters(argument: suspend ScalingPlanApplicationSourceTagFilterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ScalingPlanApplicationSourceTagFilterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.tagFilters = mapped
    }

    /**
     * @param values Set of tags.
     */
    @JvmName("soiexowaiqtbumdf")
    public suspend fun tagFilters(vararg values: ScalingPlanApplicationSourceTagFilterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tagFilters = mapped
    }

    internal fun build(): ScalingPlanApplicationSourceArgs = ScalingPlanApplicationSourceArgs(
        cloudformationStackArn = cloudformationStackArn,
        tagFilters = tagFilters,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy