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

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

package com.pulumi.awsnative.iotevents.kotlin.inputs

import com.pulumi.awsnative.iotevents.inputs.AlarmModelIotEventsArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Sends an AWS IoT Events input, passing in information about the alarm model instance and the event that triggered the action.
 * @property inputName The name of the AWS IoT Events input where the data is sent.
 * @property payload
 */
public data class AlarmModelIotEventsArgs(
    public val inputName: Output,
    public val payload: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.AlarmModelIotEventsArgs =
        com.pulumi.awsnative.iotevents.inputs.AlarmModelIotEventsArgs.builder()
            .inputName(inputName.applyValue({ args0 -> args0 }))
            .payload(payload?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AlarmModelIotEventsArgs].
 */
@PulumiTagMarker
public class AlarmModelIotEventsArgsBuilder internal constructor() {
    private var inputName: Output? = null

    private var payload: Output? = null

    /**
     * @param value The name of the AWS IoT Events input where the data is sent.
     */
    @JvmName("ftjrgkolfoxyvnrc")
    public suspend fun inputName(`value`: Output) {
        this.inputName = value
    }

    /**
     * @param value
     */
    @JvmName("affvwvisqctpdfqi")
    public suspend fun payload(`value`: Output) {
        this.payload = value
    }

    /**
     * @param value The name of the AWS IoT Events input where the data is sent.
     */
    @JvmName("udxarrfkykussjco")
    public suspend fun inputName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputName = mapped
    }

    /**
     * @param value
     */
    @JvmName("jhtptcxohwtaciro")
    public suspend fun payload(`value`: AlarmModelPayloadArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.payload = mapped
    }

    /**
     * @param argument
     */
    @JvmName("iaefopnlhdxrdcse")
    public suspend fun payload(argument: suspend AlarmModelPayloadArgsBuilder.() -> Unit) {
        val toBeMapped = AlarmModelPayloadArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.payload = mapped
    }

    internal fun build(): AlarmModelIotEventsArgs = AlarmModelIotEventsArgs(
        inputName = inputName ?: throw PulumiNullFieldException("inputName"),
        payload = payload,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy