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

com.pulumi.aws.budgets.kotlin.inputs.BudgetActionDefinitionSsmActionDefinitionArgs.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.BudgetActionDefinitionSsmActionDefinitionArgs.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 actionSubType The action subType. Valid values are `STOP_EC2_INSTANCES` or `STOP_RDS_INSTANCES`.
 * @property instanceIds The EC2 and RDS instance IDs.
 * @property region The Region to run the SSM document.
 */
public data class BudgetActionDefinitionSsmActionDefinitionArgs(
    public val actionSubType: Output,
    public val instanceIds: Output>,
    public val region: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.budgets.inputs.BudgetActionDefinitionSsmActionDefinitionArgs = com.pulumi.aws.budgets.inputs.BudgetActionDefinitionSsmActionDefinitionArgs.builder()
        .actionSubType(actionSubType.applyValue({ args0 -> args0 }))
        .instanceIds(instanceIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .region(region.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BudgetActionDefinitionSsmActionDefinitionArgs].
 */
@PulumiTagMarker
public class BudgetActionDefinitionSsmActionDefinitionArgsBuilder internal constructor() {
    private var actionSubType: Output? = null

    private var instanceIds: Output>? = null

    private var region: Output? = null

    /**
     * @param value The action subType. Valid values are `STOP_EC2_INSTANCES` or `STOP_RDS_INSTANCES`.
     */
    @JvmName("vaidrepjnxpwoahr")
    public suspend fun actionSubType(`value`: Output) {
        this.actionSubType = value
    }

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

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

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

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

    /**
     * @param value The action subType. Valid values are `STOP_EC2_INSTANCES` or `STOP_RDS_INSTANCES`.
     */
    @JvmName("fhviihgollynvhop")
    public suspend fun actionSubType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionSubType = mapped
    }

    /**
     * @param value The EC2 and RDS instance IDs.
     */
    @JvmName("qckvpsxkmdwjvoit")
    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("ksedqxawddefkebb")
    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("loytjmvuibesoapf")
    public suspend fun region(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.region = mapped
    }

    internal fun build(): BudgetActionDefinitionSsmActionDefinitionArgs =
        BudgetActionDefinitionSsmActionDefinitionArgs(
            actionSubType = actionSubType ?: throw PulumiNullFieldException("actionSubType"),
            instanceIds = instanceIds ?: throw PulumiNullFieldException("instanceIds"),
            region = region ?: throw PulumiNullFieldException("region"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy