
com.pulumi.aws.iot.kotlin.inputs.TopicRuleErrorActionRepublishArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.iot.kotlin.inputs
import com.pulumi.aws.iot.inputs.TopicRuleErrorActionRepublishArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property qos The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
* @property roleArn The ARN of the IAM role that grants access.
* @property topic The name of the MQTT topic the message should be republished to.
*/
public data class TopicRuleErrorActionRepublishArgs(
public val qos: Output? = null,
public val roleArn: Output,
public val topic: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.iot.inputs.TopicRuleErrorActionRepublishArgs =
com.pulumi.aws.iot.inputs.TopicRuleErrorActionRepublishArgs.builder()
.qos(qos?.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 }))
.topic(topic.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleErrorActionRepublishArgs].
*/
@PulumiTagMarker
public class TopicRuleErrorActionRepublishArgsBuilder internal constructor() {
private var qos: Output? = null
private var roleArn: Output? = null
private var topic: Output? = null
/**
* @param value The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
*/
@JvmName("dgehpvwnkyvyqjnq")
public suspend fun qos(`value`: Output) {
this.qos = value
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("gibnxlophverrnym")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value The name of the MQTT topic the message should be republished to.
*/
@JvmName("jpuupkmwagkcxopl")
public suspend fun topic(`value`: Output) {
this.topic = value
}
/**
* @param value The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
*/
@JvmName("qnsaaqhsqxiexgeu")
public suspend fun qos(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.qos = mapped
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("vxpijmggweaqdgxo")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
/**
* @param value The name of the MQTT topic the message should be republished to.
*/
@JvmName("tlaoxreghahtxopy")
public suspend fun topic(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.topic = mapped
}
internal fun build(): TopicRuleErrorActionRepublishArgs = TopicRuleErrorActionRepublishArgs(
qos = qos,
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
topic = topic ?: throw PulumiNullFieldException("topic"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy