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

com.pulumi.aws.iot.kotlin.inputs.TopicRuleErrorActionTimestreamArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.iot.kotlin.inputs

import com.pulumi.aws.iot.inputs.TopicRuleErrorActionTimestreamArgs.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.
 * @property dimensions Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
 * @property roleArn The ARN of the role that grants permission to write to the Amazon Timestream database table.
 * @property tableName The name of the database table into which to write the measure records.
 * @property timestamp Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below.
 */
public data class TopicRuleErrorActionTimestreamArgs(
    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.aws.iot.inputs.TopicRuleErrorActionTimestreamArgs =
        com.pulumi.aws.iot.inputs.TopicRuleErrorActionTimestreamArgs.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 [TopicRuleErrorActionTimestreamArgs].
 */
@PulumiTagMarker
public class TopicRuleErrorActionTimestreamArgsBuilder 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.
     */
    @JvmName("hiuamomxavdwybhk")
    public suspend fun databaseName(`value`: Output) {
        this.databaseName = value
    }

    /**
     * @param value Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
     */
    @JvmName("lxvqxctyovyaafbt")
    public suspend fun dimensions(`value`: Output>) {
        this.dimensions = value
    }

    @JvmName("vyghamtkeignoywk")
    public suspend fun dimensions(vararg values: Output) {
        this.dimensions = Output.all(values.asList())
    }

    /**
     * @param values Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
     */
    @JvmName("nnttxmwnouhesnxy")
    public suspend fun dimensions(values: List>) {
        this.dimensions = Output.all(values)
    }

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

    /**
     * @param value The name of the database table into which to write the measure records.
     */
    @JvmName("bxodwgvfrgnfmoyr")
    public suspend fun tableName(`value`: Output) {
        this.tableName = value
    }

    /**
     * @param value Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below.
     */
    @JvmName("mrdqaktdexygykdk")
    public suspend fun timestamp(`value`: Output) {
        this.timestamp = value
    }

    /**
     * @param value The name of an Amazon Timestream database.
     */
    @JvmName("gxeqbhjvcrguudju")
    public suspend fun databaseName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseName = mapped
    }

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

    /**
     * @param argument Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
     */
    @JvmName("xmayysleaqgaejfs")
    public suspend fun dimensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TopicRuleErrorActionTimestreamDimensionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param argument Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
     */
    @JvmName("dhdwtxwgqkklwcyg")
    public suspend fun dimensions(vararg argument: suspend TopicRuleErrorActionTimestreamDimensionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TopicRuleErrorActionTimestreamDimensionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param argument Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
     */
    @JvmName("xtodtulrsekcqiwf")
    public suspend fun dimensions(argument: suspend TopicRuleErrorActionTimestreamDimensionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TopicRuleErrorActionTimestreamDimensionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.dimensions = mapped
    }

    /**
     * @param values Configuration blocks with metadata attributes of the time series that are written in each measure record. Nested arguments below.
     */
    @JvmName("smrhrnqwydtgrwrv")
    public suspend fun dimensions(vararg values: TopicRuleErrorActionTimestreamDimensionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensions = mapped
    }

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

    /**
     * @param value The name of the database table into which to write the measure records.
     */
    @JvmName("kwpsnmryusmjgqku")
    public suspend fun tableName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tableName = mapped
    }

    /**
     * @param value Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below.
     */
    @JvmName("yggcympgmebcoobc")
    public suspend fun timestamp(`value`: TopicRuleErrorActionTimestreamTimestampArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timestamp = mapped
    }

    /**
     * @param argument Configuration block specifying an application-defined value to replace the default value assigned to the Timestream record's timestamp in the time column. Nested arguments below.
     */
    @JvmName("emwhimpauqrngtjx")
    public suspend fun timestamp(argument: suspend TopicRuleErrorActionTimestreamTimestampArgsBuilder.() -> Unit) {
        val toBeMapped = TopicRuleErrorActionTimestreamTimestampArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.timestamp = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy