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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleIotEventsActionArgs.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.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.TopicRuleIotEventsActionArgs.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 Whether to process the event actions as a batch. The default value is `false` .
 * When `batchMode` is `true` , you can't specify a `messageId` .
 * When `batchMode` is `true` and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when Events by calling [`BatchPutMessage`](https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchPutMessage.html) . The resulting array can't have more than 10 messages.
 * @property inputName The name of the AWS IoT Events input.
 * @property messageId The ID of the message. The default `messageId` is a new UUID value.
 * When `batchMode` is `true` , you can't specify a `messageId` --a new UUID value will be assigned.
 * Assign a value to this property to ensure that only one input (message) with a given `messageId` will be processed by an AWS IoT Events detector.
 * @property roleArn The ARN of the role that grants AWS IoT permission to send an input to an AWS IoT Events detector. ("Action":"iotevents:BatchPutMessage").
 */
public data class TopicRuleIotEventsActionArgs(
    public val batchMode: Output? = null,
    public val inputName: Output,
    public val messageId: Output? = null,
    public val roleArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleIotEventsActionArgs =
        com.pulumi.awsnative.iot.inputs.TopicRuleIotEventsActionArgs.builder()
            .batchMode(batchMode?.applyValue({ args0 -> args0 }))
            .inputName(inputName.applyValue({ args0 -> args0 }))
            .messageId(messageId?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}

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

    private var inputName: Output? = null

    private var messageId: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value Whether to process the event actions as a batch. The default value is `false` .
     * When `batchMode` is `true` , you can't specify a `messageId` .
     * When `batchMode` is `true` and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when Events by calling [`BatchPutMessage`](https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchPutMessage.html) . The resulting array can't have more than 10 messages.
     */
    @JvmName("xwcafscwasswijwm")
    public suspend fun batchMode(`value`: Output) {
        this.batchMode = value
    }

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

    /**
     * @param value The ID of the message. The default `messageId` is a new UUID value.
     * When `batchMode` is `true` , you can't specify a `messageId` --a new UUID value will be assigned.
     * Assign a value to this property to ensure that only one input (message) with a given `messageId` will be processed by an AWS IoT Events detector.
     */
    @JvmName("gkfpjmcnnghjgjjm")
    public suspend fun messageId(`value`: Output) {
        this.messageId = value
    }

    /**
     * @param value The ARN of the role that grants AWS IoT permission to send an input to an AWS IoT Events detector. ("Action":"iotevents:BatchPutMessage").
     */
    @JvmName("tjpyustosxqlxnab")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value Whether to process the event actions as a batch. The default value is `false` .
     * When `batchMode` is `true` , you can't specify a `messageId` .
     * When `batchMode` is `true` and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when Events by calling [`BatchPutMessage`](https://docs.aws.amazon.com/iotevents/latest/apireference/API_iotevents-data_BatchPutMessage.html) . The resulting array can't have more than 10 messages.
     */
    @JvmName("ihowffjgocrweyrt")
    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("jeqfoqvlqdtidgqe")
    public suspend fun inputName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputName = mapped
    }

    /**
     * @param value The ID of the message. The default `messageId` is a new UUID value.
     * When `batchMode` is `true` , you can't specify a `messageId` --a new UUID value will be assigned.
     * Assign a value to this property to ensure that only one input (message) with a given `messageId` will be processed by an AWS IoT Events detector.
     */
    @JvmName("mtebjdufdseojyue")
    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 role that grants AWS IoT permission to send an input to an AWS IoT Events detector. ("Action":"iotevents:BatchPutMessage").
     */
    @JvmName("chcbswwmvtvxfunx")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy