com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleTimestreamActionArgs.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.TopicRuleTimestreamActionArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property databaseName The name of an Amazon Timestream database that has the table to write records into.
* @property dimensions Metadata attributes of the time series that are written in each measure record.
* @property roleArn The Amazon Resource Name (ARN) of the role that grants AWS IoT permission to write to the Timestream database table.
* @property tableName The table where the message data will be written.
* @property timestamp The value to use for the entry's timestamp. If blank, the time that the entry was processed is used.
*/
public data class TopicRuleTimestreamActionArgs(
public val databaseName: Output,
public val dimensions: Output>,
public val roleArn: Output,
public val tableName: Output,
public val timestamp: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleTimestreamActionArgs =
com.pulumi.awsnative.iot.inputs.TopicRuleTimestreamActionArgs.builder()
.databaseName(databaseName.applyValue({ args0 -> args0 }))
.dimensions(
dimensions.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.roleArn(roleArn.applyValue({ args0 -> args0 }))
.tableName(tableName.applyValue({ args0 -> args0 }))
.timestamp(timestamp?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [TopicRuleTimestreamActionArgs].
*/
@PulumiTagMarker
public class TopicRuleTimestreamActionArgsBuilder internal constructor() {
private var databaseName: Output? = null
private var dimensions: Output>? = null
private var roleArn: Output? = null
private var tableName: Output? = null
private var timestamp: Output? = null
/**
* @param value The name of an Amazon Timestream database that has the table to write records into.
*/
@JvmName("lgnytegigtubwgpu")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value Metadata attributes of the time series that are written in each measure record.
*/
@JvmName("oiyxcbuvtsvyrchm")
public suspend fun dimensions(`value`: Output>) {
this.dimensions = value
}
@JvmName("qijjmofppyvnmsrr")
public suspend fun dimensions(vararg values: Output) {
this.dimensions = Output.all(values.asList())
}
/**
* @param values Metadata attributes of the time series that are written in each measure record.
*/
@JvmName("damnthavwoqntqyb")
public suspend fun dimensions(values: List