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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleTimestreamActionArgs.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.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>) {
        this.dimensions = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the role that grants AWS IoT permission to write to the Timestream database table.
     */
    @JvmName("aloyiacupkwugeqh")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value The table where the message data will be written.
     */
    @JvmName("nxjevkvqxdvwtwyw")
    public suspend fun tableName(`value`: Output) {
        this.tableName = value
    }

    /**
     * @param value The value to use for the entry's timestamp. If blank, the time that the entry was processed is used.
     */
    @JvmName("jngdpultnajqxefe")
    public suspend fun timestamp(`value`: Output) {
        this.timestamp = value
    }

    /**
     * @param value The name of an Amazon Timestream database that has the table to write records into.
     */
    @JvmName("yeulruatbiqtwmaq")
    public suspend fun databaseName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseName = mapped
    }

    /**
     * @param value Metadata attributes of the time series that are written in each measure record.
     */
    @JvmName("qqrfqrkddbfhhwfk")
    public suspend fun dimensions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensions = mapped
    }

    /**
     * @param argument Metadata attributes of the time series that are written in each measure record.
     */
    @JvmName("muksllcyimoeysny")
    public suspend fun dimensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicRuleTimestreamDimensionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param argument Metadata attributes of the time series that are written in each measure record.
     */
    @JvmName("cfwyaexcptfooeno")
    public suspend fun dimensions(vararg argument: suspend TopicRuleTimestreamDimensionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicRuleTimestreamDimensionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param argument Metadata attributes of the time series that are written in each measure record.
     */
    @JvmName("kepoetaoaluseldl")
    public suspend fun dimensions(argument: suspend TopicRuleTimestreamDimensionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TopicRuleTimestreamDimensionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param values Metadata attributes of the time series that are written in each measure record.
     */
    @JvmName("yqeapkgjrsqekntu")
    public suspend fun dimensions(vararg values: TopicRuleTimestreamDimensionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensions = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the role that grants AWS IoT permission to write to the Timestream database table.
     */
    @JvmName("hnvdjklgpdjqngts")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value The table where the message data will be written.
     */
    @JvmName("dmugyclenfeyiqqa")
    public suspend fun tableName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tableName = mapped
    }

    /**
     * @param value The value to use for the entry's timestamp. If blank, the time that the entry was processed is used.
     */
    @JvmName("sxdctidmjwempcwf")
    public suspend fun timestamp(`value`: TopicRuleTimestreamTimestampArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timestamp = mapped
    }

    /**
     * @param argument The value to use for the entry's timestamp. If blank, the time that the entry was processed is used.
     */
    @JvmName("lsaorkuoomlvxaem")
    public suspend fun timestamp(argument: suspend TopicRuleTimestreamTimestampArgsBuilder.() -> Unit) {
        val toBeMapped = TopicRuleTimestreamTimestampArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.timestamp = mapped
    }

    internal fun build(): TopicRuleTimestreamActionArgs = TopicRuleTimestreamActionArgs(
        databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
        dimensions = dimensions ?: throw PulumiNullFieldException("dimensions"),
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        tableName = tableName ?: throw PulumiNullFieldException("tableName"),
        timestamp = timestamp,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy