com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleFirehoseActionArgs.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.TopicRuleFirehoseActionArgs.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 deliver the Kinesis Data Firehose stream as a batch by using [`PutRecordBatch`](https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html) . The default value is `false` .
* When `batchMode` is `true` and the rule's SQL statement evaluates to an Array, each Array element forms one record in the [`PutRecordBatch`](https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html) request. The resulting array can't have more than 500 records.
* @property deliveryStreamName The delivery stream name.
* @property roleArn The IAM role that grants access to the Amazon Kinesis Firehose stream.
* @property separator A character separator that will be used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
*/
public data class TopicRuleFirehoseActionArgs(
public val batchMode: Output? = null,
public val deliveryStreamName: Output,
public val roleArn: Output,
public val separator: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleFirehoseActionArgs =
com.pulumi.awsnative.iot.inputs.TopicRuleFirehoseActionArgs.builder()
.batchMode(batchMode?.applyValue({ args0 -> args0 }))
.deliveryStreamName(deliveryStreamName.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 }))
.separator(separator?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleFirehoseActionArgs].
*/
@PulumiTagMarker
public class TopicRuleFirehoseActionArgsBuilder internal constructor() {
private var batchMode: Output? = null
private var deliveryStreamName: Output? = null
private var roleArn: Output? = null
private var separator: Output? = null
/**
* @param value Whether to deliver the Kinesis Data Firehose stream as a batch by using [`PutRecordBatch`](https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html) . The default value is `false` .
* When `batchMode` is `true` and the rule's SQL statement evaluates to an Array, each Array element forms one record in the [`PutRecordBatch`](https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html) request. The resulting array can't have more than 500 records.
*/
@JvmName("pegujiqvhrqewkbr")
public suspend fun batchMode(`value`: Output) {
this.batchMode = value
}
/**
* @param value The delivery stream name.
*/
@JvmName("jsjpxwxubbdjyarr")
public suspend fun deliveryStreamName(`value`: Output) {
this.deliveryStreamName = value
}
/**
* @param value The IAM role that grants access to the Amazon Kinesis Firehose stream.
*/
@JvmName("nkuucpiibobycgqu")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value A character separator that will be used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
*/
@JvmName("xxaqihvvxdotoamu")
public suspend fun separator(`value`: Output) {
this.separator = value
}
/**
* @param value Whether to deliver the Kinesis Data Firehose stream as a batch by using [`PutRecordBatch`](https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html) . The default value is `false` .
* When `batchMode` is `true` and the rule's SQL statement evaluates to an Array, each Array element forms one record in the [`PutRecordBatch`](https://docs.aws.amazon.com/firehose/latest/APIReference/API_PutRecordBatch.html) request. The resulting array can't have more than 500 records.
*/
@JvmName("hxkdajfmplqerdaw")
public suspend fun batchMode(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.batchMode = mapped
}
/**
* @param value The delivery stream name.
*/
@JvmName("squcmdohycphwndo")
public suspend fun deliveryStreamName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.deliveryStreamName = mapped
}
/**
* @param value The IAM role that grants access to the Amazon Kinesis Firehose stream.
*/
@JvmName("gktdamdgqmmuboyd")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
/**
* @param value A character separator that will be used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
*/
@JvmName("elahvpcrbndojrtc")
public suspend fun separator(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.separator = mapped
}
internal fun build(): TopicRuleFirehoseActionArgs = TopicRuleFirehoseActionArgs(
batchMode = batchMode,
deliveryStreamName = deliveryStreamName ?: throw PulumiNullFieldException("deliveryStreamName"),
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
separator = separator,
)
}