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

com.pulumi.aws.iot.kotlin.inputs.TopicRuleIotEventArgs.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.iot.kotlin.inputs

import com.pulumi.aws.iot.inputs.TopicRuleIotEventArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property batchMode The payload that contains a JSON array of records will be sent to IoT Events via a batch call.
 * @property inputName The name of the AWS IoT Events input.
 * @property messageId Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector.
 * @property roleArn The ARN of the IAM role that grants access.
 */
public data class TopicRuleIotEventArgs(
    public val batchMode: Output? = null,
    public val inputName: Output,
    public val messageId: Output? = null,
    public val roleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iot.inputs.TopicRuleIotEventArgs =
        com.pulumi.aws.iot.inputs.TopicRuleIotEventArgs.builder()
            .batchMode(batchMode?.applyValue({ args0 -> args0 }))
            .inputName(inputName.applyValue({ args0 -> args0 }))
            .messageId(messageId?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleIotEventArgs].
 */
@PulumiTagMarker
public class TopicRuleIotEventArgsBuilder internal constructor() {
    private var batchMode: Output? = null

    private var inputName: Output? = null

    private var messageId: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value The payload that contains a JSON array of records will be sent to IoT Events via a batch call.
     */
    @JvmName("muuagfksspbxofhr")
    public suspend fun batchMode(`value`: Output) {
        this.batchMode = value
    }

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

    /**
     * @param value Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector.
     */
    @JvmName("lcwuqoqvrwpwkdyg")
    public suspend fun messageId(`value`: Output) {
        this.messageId = value
    }

    /**
     * @param value The ARN of the IAM role that grants access.
     */
    @JvmName("fdodvkwjuumaeyfw")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The payload that contains a JSON array of records will be sent to IoT Events via a batch call.
     */
    @JvmName("scyfcfcohmiecaqg")
    public suspend fun batchMode(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batchMode = mapped
    }

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

    /**
     * @param value Use this to ensure that only one input (message) with a given messageId is processed by an AWS IoT Events detector.
     */
    @JvmName("aivveduqdojtlpip")
    public suspend fun messageId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.messageId = mapped
    }

    /**
     * @param value The ARN of the IAM role that grants access.
     */
    @JvmName("mvlysomcoqxwmase")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): TopicRuleIotEventArgs = TopicRuleIotEventArgs(
        batchMode = batchMode,
        inputName = inputName ?: throw PulumiNullFieldException("inputName"),
        messageId = messageId,
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy