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

com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleIotEventsAction.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 TopicRuleIotEventsAction(
    public val batchMode: Boolean? = null,
    public val inputName: String,
    public val messageId: String? = null,
    public val roleArn: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.TopicRuleIotEventsAction): TopicRuleIotEventsAction = TopicRuleIotEventsAction(
            batchMode = javaType.batchMode().map({ args0 -> args0 }).orElse(null),
            inputName = javaType.inputName(),
            messageId = javaType.messageId().map({ args0 -> args0 }).orElse(null),
            roleArn = javaType.roleArn(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy