
com.pulumi.awsnative.iotevents.kotlin.inputs.AlarmModelSqsArgs.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.iotevents.kotlin.inputs
import com.pulumi.awsnative.iotevents.inputs.AlarmModelSqsArgs.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
/**
*
* @property payload
* @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 AlarmModelSqsArgs(
public val payload: Output? = null,
public val queueUrl: Output,
public val useBase64: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotevents.inputs.AlarmModelSqsArgs =
com.pulumi.awsnative.iotevents.inputs.AlarmModelSqsArgs.builder()
.payload(payload?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.queueUrl(queueUrl.applyValue({ args0 -> args0 }))
.useBase64(useBase64?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AlarmModelSqsArgs].
*/
@PulumiTagMarker
public class AlarmModelSqsArgsBuilder internal constructor() {
private var payload: Output? = null
private var queueUrl: Output? = null
private var useBase64: Output? = null
/**
* @param value
*/
@JvmName("padbnrjhvybarqek")
public suspend fun payload(`value`: Output) {
this.payload = value
}
/**
* @param value The URL of the SQS queue where the data is written.
*/
@JvmName("raggxarqkyhfruih")
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("myxlseclemkteksb")
public suspend fun useBase64(`value`: Output) {
this.useBase64 = value
}
/**
* @param value
*/
@JvmName("cbjcmwmvcvgroyve")
public suspend fun payload(`value`: AlarmModelPayloadArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.payload = mapped
}
/**
* @param argument
*/
@JvmName("bufmowewficlkvox")
public suspend fun payload(argument: suspend AlarmModelPayloadArgsBuilder.() -> Unit) {
val toBeMapped = AlarmModelPayloadArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.payload = mapped
}
/**
* @param value The URL of the SQS queue where the data is written.
*/
@JvmName("qqmigdwjsufvsoch")
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("uwxywabispcvnvuo")
public suspend fun useBase64(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useBase64 = mapped
}
internal fun build(): AlarmModelSqsArgs = AlarmModelSqsArgs(
payload = payload,
queueUrl = queueUrl ?: throw PulumiNullFieldException("queueUrl"),
useBase64 = useBase64,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy