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

com.pulumi.awsnative.iotevents.kotlin.inputs.AlarmModelFirehoseArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iotevents.kotlin.inputs

import com.pulumi.awsnative.iotevents.inputs.AlarmModelFirehoseArgs.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.jvm.JvmName

/**
 * Sends information about the alarm model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
 * @property deliveryStreamName The name of the Kinesis Data Firehose delivery stream where the data is written.
 * @property payload
 * @property separator A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
 */
public data class AlarmModelFirehoseArgs(
    public val deliveryStreamName: Output,
    public val payload: Output? = null,
    public val separator: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.AlarmModelFirehoseArgs =
        com.pulumi.awsnative.iotevents.inputs.AlarmModelFirehoseArgs.builder()
            .deliveryStreamName(deliveryStreamName.applyValue({ args0 -> args0 }))
            .payload(payload?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .separator(separator?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlarmModelFirehoseArgs].
 */
@PulumiTagMarker
public class AlarmModelFirehoseArgsBuilder internal constructor() {
    private var deliveryStreamName: Output? = null

    private var payload: Output? = null

    private var separator: Output? = null

    /**
     * @param value The name of the Kinesis Data Firehose delivery stream where the data is written.
     */
    @JvmName("gtbelrhivepfjtml")
    public suspend fun deliveryStreamName(`value`: Output) {
        this.deliveryStreamName = value
    }

    /**
     * @param value
     */
    @JvmName("rpuqqqwfeigfkqih")
    public suspend fun payload(`value`: Output) {
        this.payload = value
    }

    /**
     * @param value A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
     */
    @JvmName("irbjumwyaojpelyl")
    public suspend fun separator(`value`: Output) {
        this.separator = value
    }

    /**
     * @param value The name of the Kinesis Data Firehose delivery stream where the data is written.
     */
    @JvmName("ygvlubiiwvchnwcj")
    public suspend fun deliveryStreamName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deliveryStreamName = mapped
    }

    /**
     * @param value
     */
    @JvmName("bndjwjscqrenijrf")
    public suspend fun payload(`value`: AlarmModelPayloadArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.payload = mapped
    }

    /**
     * @param argument
     */
    @JvmName("wsaggscsnxvnfojk")
    public suspend fun payload(argument: suspend AlarmModelPayloadArgsBuilder.() -> Unit) {
        val toBeMapped = AlarmModelPayloadArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.payload = mapped
    }

    /**
     * @param value A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
     */
    @JvmName("fkldsvkipodyxqqm")
    public suspend fun separator(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.separator = mapped
    }

    internal fun build(): AlarmModelFirehoseArgs = AlarmModelFirehoseArgs(
        deliveryStreamName = deliveryStreamName ?: throw PulumiNullFieldException("deliveryStreamName"),
        payload = payload,
        separator = separator,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy