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

com.pulumi.awsnative.budgets.kotlin.inputs.BudgetsActionSsmActionDefinitionArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.budgets.kotlin.inputs

import com.pulumi.awsnative.budgets.inputs.BudgetsActionSsmActionDefinitionArgs.builder
import com.pulumi.awsnative.budgets.kotlin.enums.BudgetsActionSsmActionDefinitionSubtype
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 instanceIds The EC2 and RDS instance IDs.
 * @property region The Region to run the ( SSM ) document.
 * @property subtype The action subType.
 */
public data class BudgetsActionSsmActionDefinitionArgs(
    public val instanceIds: Output>,
    public val region: Output,
    public val subtype: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.budgets.inputs.BudgetsActionSsmActionDefinitionArgs =
        com.pulumi.awsnative.budgets.inputs.BudgetsActionSsmActionDefinitionArgs.builder()
            .instanceIds(instanceIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .region(region.applyValue({ args0 -> args0 }))
            .subtype(subtype.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [BudgetsActionSsmActionDefinitionArgs].
 */
@PulumiTagMarker
public class BudgetsActionSsmActionDefinitionArgsBuilder internal constructor() {
    private var instanceIds: Output>? = null

    private var region: Output? = null

    private var subtype: Output? = null

    /**
     * @param value The EC2 and RDS instance IDs.
     */
    @JvmName("ueyhjdtaikqepxkb")
    public suspend fun instanceIds(`value`: Output>) {
        this.instanceIds = value
    }

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

    /**
     * @param values The EC2 and RDS instance IDs.
     */
    @JvmName("aupwphtoayaiubwd")
    public suspend fun instanceIds(values: List>) {
        this.instanceIds = Output.all(values)
    }

    /**
     * @param value The Region to run the ( SSM ) document.
     */
    @JvmName("cyhrlhyeeqryefnu")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value The action subType.
     */
    @JvmName("qmclqgiwyxwxmygr")
    public suspend fun subtype(`value`: Output) {
        this.subtype = value
    }

    /**
     * @param value The EC2 and RDS instance IDs.
     */
    @JvmName("waswtljqbxhivplr")
    public suspend fun instanceIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceIds = mapped
    }

    /**
     * @param values The EC2 and RDS instance IDs.
     */
    @JvmName("ufpjtqjhecgmwiho")
    public suspend fun instanceIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceIds = mapped
    }

    /**
     * @param value The Region to run the ( SSM ) document.
     */
    @JvmName("kgwdxeyramqvtfhi")
    public suspend fun region(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.region = mapped
    }

    /**
     * @param value The action subType.
     */
    @JvmName("kyarnmifksyvpcyw")
    public suspend fun subtype(`value`: BudgetsActionSsmActionDefinitionSubtype) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subtype = mapped
    }

    internal fun build(): BudgetsActionSsmActionDefinitionArgs = BudgetsActionSsmActionDefinitionArgs(
        instanceIds = instanceIds ?: throw PulumiNullFieldException("instanceIds"),
        region = region ?: throw PulumiNullFieldException("region"),
        subtype = subtype ?: throw PulumiNullFieldException("subtype"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy