com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleIotAnalyticsActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iot.kotlin.inputs
import com.pulumi.awsnative.iot.inputs.TopicRuleIotAnalyticsActionArgs.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 action as a batch. The default value is `false` .
* When `batchMode` is `true` and the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed by [`BatchPutMessage`](https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_BatchPutMessage.html) The resulting array can't have more than 100 messages.
* @property channelName The name of the IoT Analytics channel to which message data will be sent.
* @property roleArn The ARN of the role which has a policy that grants IoT Analytics permission to send message data via IoT Analytics (iotanalytics:BatchPutMessage).
*/
public data class TopicRuleIotAnalyticsActionArgs(
public val batchMode: Output? = null,
public val channelName: Output,
public val roleArn: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleIotAnalyticsActionArgs =
com.pulumi.awsnative.iot.inputs.TopicRuleIotAnalyticsActionArgs.builder()
.batchMode(batchMode?.applyValue({ args0 -> args0 }))
.channelName(channelName.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleIotAnalyticsActionArgs].
*/
@PulumiTagMarker
public class TopicRuleIotAnalyticsActionArgsBuilder internal constructor() {
private var batchMode: Output? = null
private var channelName: Output? = null
private var roleArn: Output? = null
/**
* @param value Whether to process the action as a batch. The default value is `false` .
* When `batchMode` is `true` and the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed by [`BatchPutMessage`](https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_BatchPutMessage.html) The resulting array can't have more than 100 messages.
*/
@JvmName("qkjgrncburyxcumu")
public suspend fun batchMode(`value`: Output) {
this.batchMode = value
}
/**
* @param value The name of the IoT Analytics channel to which message data will be sent.
*/
@JvmName("ijycctijsigtxcmf")
public suspend fun channelName(`value`: Output) {
this.channelName = value
}
/**
* @param value The ARN of the role which has a policy that grants IoT Analytics permission to send message data via IoT Analytics (iotanalytics:BatchPutMessage).
*/
@JvmName("ufurgkspjdanjpfd")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value Whether to process the action as a batch. The default value is `false` .
* When `batchMode` is `true` and the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed by [`BatchPutMessage`](https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_BatchPutMessage.html) The resulting array can't have more than 100 messages.
*/
@JvmName("ykcyokcleluuuerm")
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 IoT Analytics channel to which message data will be sent.
*/
@JvmName("yxhjlvkexkfeuufp")
public suspend fun channelName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.channelName = mapped
}
/**
* @param value The ARN of the role which has a policy that grants IoT Analytics permission to send message data via IoT Analytics (iotanalytics:BatchPutMessage).
*/
@JvmName("alschyjgokqwxoix")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
internal fun build(): TopicRuleIotAnalyticsActionArgs = TopicRuleIotAnalyticsActionArgs(
batchMode = batchMode,
channelName = channelName ?: throw PulumiNullFieldException("channelName"),
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
)
}