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

com.pulumi.aws.iot.kotlin.inputs.TopicRuleErrorActionSqsArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.iot.kotlin.inputs

import com.pulumi.aws.iot.inputs.TopicRuleErrorActionSqsArgs.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 TopicRuleErrorActionSqsArgs(
    public val queueUrl: Output,
    public val roleArn: Output,
    public val useBase64: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.iot.inputs.TopicRuleErrorActionSqsArgs =
        com.pulumi.aws.iot.inputs.TopicRuleErrorActionSqsArgs.builder()
            .queueUrl(queueUrl.applyValue({ args0 -> args0 }))
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .useBase64(useBase64.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleErrorActionSqsArgs].
 */
@PulumiTagMarker
public class TopicRuleErrorActionSqsArgsBuilder 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("ylxvrfofutkqbrhf")
    public suspend fun queueUrl(`value`: Output) {
        this.queueUrl = value
    }

    /**
     * @param value The ARN of the IAM role that grants access.
     */
    @JvmName("hocngelfpbharrbo")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value Specifies whether to use Base64 encoding.
     */
    @JvmName("xbbofojrqietlyvo")
    public suspend fun useBase64(`value`: Output) {
        this.useBase64 = value
    }

    /**
     * @param value The URL of the Amazon SQS queue.
     */
    @JvmName("uxfrrxwguyiclpig")
    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("eurywrnhojshaltn")
    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("rnavjcsmtxqliwsu")
    public suspend fun useBase64(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.useBase64 = mapped
    }

    internal fun build(): TopicRuleErrorActionSqsArgs = TopicRuleErrorActionSqsArgs(
        queueUrl = queueUrl ?: throw PulumiNullFieldException("queueUrl"),
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        useBase64 = useBase64 ?: throw PulumiNullFieldException("useBase64"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy