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

com.pulumi.awsnative.iotevents.kotlin.inputs.DetectorModelSqsArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.awsnative.iotevents.inputs.DetectorModelSqsArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
 * @property payload You can configure the action payload when you send a message to an Amazon SQS queue.
 * @property queueUrl The URL of the SQS queue where the data is written.
 * @property useBase64 Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.
 */
public data class DetectorModelSqsArgs(
    public val payload: Output? = null,
    public val queueUrl: Output,
    public val useBase64: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.DetectorModelSqsArgs =
        com.pulumi.awsnative.iotevents.inputs.DetectorModelSqsArgs.builder()
            .payload(payload?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .queueUrl(queueUrl.applyValue({ args0 -> args0 }))
            .useBase64(useBase64?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DetectorModelSqsArgs].
 */
@PulumiTagMarker
public class DetectorModelSqsArgsBuilder internal constructor() {
    private var payload: Output? = null

    private var queueUrl: Output? = null

    private var useBase64: Output? = null

    /**
     * @param value You can configure the action payload when you send a message to an Amazon SQS queue.
     */
    @JvmName("cqosscefgnscubey")
    public suspend fun payload(`value`: Output) {
        this.payload = value
    }

    /**
     * @param value The URL of the SQS queue where the data is written.
     */
    @JvmName("lyixcphakwbddywd")
    public suspend fun queueUrl(`value`: Output) {
        this.queueUrl = value
    }

    /**
     * @param value Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.
     */
    @JvmName("qxxgidgewrpdmnie")
    public suspend fun useBase64(`value`: Output) {
        this.useBase64 = value
    }

    /**
     * @param value You can configure the action payload when you send a message to an Amazon SQS queue.
     */
    @JvmName("cpbcqwowmelkcoky")
    public suspend fun payload(`value`: DetectorModelPayloadArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.payload = mapped
    }

    /**
     * @param argument You can configure the action payload when you send a message to an Amazon SQS queue.
     */
    @JvmName("korqqodtjarapabe")
    public suspend fun payload(argument: suspend DetectorModelPayloadArgsBuilder.() -> Unit) {
        val toBeMapped = DetectorModelPayloadArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.payload = mapped
    }

    /**
     * @param value The URL of the SQS queue where the data is written.
     */
    @JvmName("cjcwsmjihnkiihkj")
    public suspend fun queueUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queueUrl = mapped
    }

    /**
     * @param value Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.
     */
    @JvmName("bbqjorfjwpayojmh")
    public suspend fun useBase64(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useBase64 = mapped
    }

    internal fun build(): DetectorModelSqsArgs = DetectorModelSqsArgs(
        payload = payload,
        queueUrl = queueUrl ?: throw PulumiNullFieldException("queueUrl"),
        useBase64 = useBase64,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy