com.pulumi.aws.iot.kotlin.inputs.TopicRuleSqsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.iot.kotlin.inputs
import com.pulumi.aws.iot.inputs.TopicRuleSqsArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property queueUrl The URL of the Amazon SQS queue.
* @property roleArn The ARN of the IAM role that grants access.
* @property useBase64 Specifies whether to use Base64 encoding.
*/
public data class TopicRuleSqsArgs(
public val queueUrl: Output,
public val roleArn: Output,
public val useBase64: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.iot.inputs.TopicRuleSqsArgs =
com.pulumi.aws.iot.inputs.TopicRuleSqsArgs.builder()
.queueUrl(queueUrl.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 }))
.useBase64(useBase64.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleSqsArgs].
*/
@PulumiTagMarker
public class TopicRuleSqsArgsBuilder internal constructor() {
private var queueUrl: Output? = null
private var roleArn: Output? = null
private var useBase64: Output? = null
/**
* @param value The URL of the Amazon SQS queue.
*/
@JvmName("miabbscbqjskulyg")
public suspend fun queueUrl(`value`: Output) {
this.queueUrl = value
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("sirgkqdjpmmrinyg")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value Specifies whether to use Base64 encoding.
*/
@JvmName("guhxlhebssthnjri")
public suspend fun useBase64(`value`: Output) {
this.useBase64 = value
}
/**
* @param value The URL of the Amazon SQS queue.
*/
@JvmName("aanmefohmdogwqps")
public suspend fun queueUrl(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.queueUrl = mapped
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("faulwtgsueeauwic")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
/**
* @param value Specifies whether to use Base64 encoding.
*/
@JvmName("iytknojrddmragmo")
public suspend fun useBase64(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.useBase64 = mapped
}
internal fun build(): TopicRuleSqsArgs = TopicRuleSqsArgs(
queueUrl = queueUrl ?: throw PulumiNullFieldException("queueUrl"),
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
useBase64 = useBase64 ?: throw PulumiNullFieldException("useBase64"),
)
}