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

com.pulumi.aws.budgets.kotlin.inputs.BudgetActionDefinitionScpActionDefinitionArgs.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.budgets.kotlin.inputs

import com.pulumi.aws.budgets.inputs.BudgetActionDefinitionScpActionDefinitionArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property policyId The policy ID attached.
 * @property targetIds A list of target IDs.
 */
public data class BudgetActionDefinitionScpActionDefinitionArgs(
    public val policyId: Output,
    public val targetIds: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.budgets.inputs.BudgetActionDefinitionScpActionDefinitionArgs = com.pulumi.aws.budgets.inputs.BudgetActionDefinitionScpActionDefinitionArgs.builder()
        .policyId(policyId.applyValue({ args0 -> args0 }))
        .targetIds(targetIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [BudgetActionDefinitionScpActionDefinitionArgs].
 */
@PulumiTagMarker
public class BudgetActionDefinitionScpActionDefinitionArgsBuilder internal constructor() {
    private var policyId: Output? = null

    private var targetIds: Output>? = null

    /**
     * @param value The policy ID attached.
     */
    @JvmName("obxspjtklerrvwek")
    public suspend fun policyId(`value`: Output) {
        this.policyId = value
    }

    /**
     * @param value A list of target IDs.
     */
    @JvmName("dbtnkcdppufulqco")
    public suspend fun targetIds(`value`: Output>) {
        this.targetIds = value
    }

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

    /**
     * @param values A list of target IDs.
     */
    @JvmName("tpqucqjrrwkkjfki")
    public suspend fun targetIds(values: List>) {
        this.targetIds = Output.all(values)
    }

    /**
     * @param value The policy ID attached.
     */
    @JvmName("vjveehqeldirlhlm")
    public suspend fun policyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.policyId = mapped
    }

    /**
     * @param value A list of target IDs.
     */
    @JvmName("mgqiimxphvmflcko")
    public suspend fun targetIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetIds = mapped
    }

    /**
     * @param values A list of target IDs.
     */
    @JvmName("xkmlonjbyjqhmham")
    public suspend fun targetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.targetIds = mapped
    }

    internal fun build(): BudgetActionDefinitionScpActionDefinitionArgs =
        BudgetActionDefinitionScpActionDefinitionArgs(
            policyId = policyId ?: throw PulumiNullFieldException("policyId"),
            targetIds = targetIds ?: throw PulumiNullFieldException("targetIds"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy