com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleSqsActionArgs.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.iot.kotlin.inputs
import com.pulumi.awsnative.iot.inputs.TopicRuleSqsActionArgs.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 TopicRuleSqsActionArgs(
public val queueUrl: Output,
public val roleArn: Output,
public val useBase64: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleSqsActionArgs =
com.pulumi.awsnative.iot.inputs.TopicRuleSqsActionArgs.builder()
.queueUrl(queueUrl.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 }))
.useBase64(useBase64?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleSqsActionArgs].
*/
@PulumiTagMarker
public class TopicRuleSqsActionArgsBuilder 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("vtkgswgwatjhdybo")
public suspend fun queueUrl(`value`: Output) {
this.queueUrl = value
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("yyysvcjgsvlgvtoj")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value Specifies whether to use Base64 encoding.
*/
@JvmName("emiudckwhhdydyfs")
public suspend fun useBase64(`value`: Output) {
this.useBase64 = value
}
/**
* @param value The URL of the Amazon SQS queue.
*/
@JvmName("npkfddmjtyuqiqvp")
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("yhpvjrfwwaixbdpr")
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("wfjdwxpvjfilxopi")
public suspend fun useBase64(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.useBase64 = mapped
}
internal fun build(): TopicRuleSqsActionArgs = TopicRuleSqsActionArgs(
queueUrl = queueUrl ?: throw PulumiNullFieldException("queueUrl"),
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
useBase64 = useBase64,
)
}