com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleRepublishActionArgs.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.TopicRuleRepublishActionArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property headers MQTT Version 5.0 headers information. For more information, see [MQTT](https://docs.aws.amazon.com//iot/latest/developerguide/mqtt.html) in the IoT Core Developer Guide.
* @property qos The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
* @property roleArn The ARN of the IAM role that grants access.
* @property topic The name of the MQTT topic.
*/
public data class TopicRuleRepublishActionArgs(
public val headers: Output? = null,
public val qos: Output? = null,
public val roleArn: Output,
public val topic: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleRepublishActionArgs =
com.pulumi.awsnative.iot.inputs.TopicRuleRepublishActionArgs.builder()
.headers(headers?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.qos(qos?.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 }))
.topic(topic.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleRepublishActionArgs].
*/
@PulumiTagMarker
public class TopicRuleRepublishActionArgsBuilder internal constructor() {
private var headers: Output? = null
private var qos: Output? = null
private var roleArn: Output? = null
private var topic: Output? = null
/**
* @param value MQTT Version 5.0 headers information. For more information, see [MQTT](https://docs.aws.amazon.com//iot/latest/developerguide/mqtt.html) in the IoT Core Developer Guide.
*/
@JvmName("rggwtxtadbqjmpuk")
public suspend fun headers(`value`: Output) {
this.headers = value
}
/**
* @param value The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
*/
@JvmName("pkbmflgbxfaggqis")
public suspend fun qos(`value`: Output) {
this.qos = value
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("elfficiclfdxrqmo")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value The name of the MQTT topic.
*/
@JvmName("iawggwumfamqvofe")
public suspend fun topic(`value`: Output) {
this.topic = value
}
/**
* @param value MQTT Version 5.0 headers information. For more information, see [MQTT](https://docs.aws.amazon.com//iot/latest/developerguide/mqtt.html) in the IoT Core Developer Guide.
*/
@JvmName("pxppavrofpfjfori")
public suspend fun headers(`value`: TopicRuleRepublishActionHeadersArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.headers = mapped
}
/**
* @param argument MQTT Version 5.0 headers information. For more information, see [MQTT](https://docs.aws.amazon.com//iot/latest/developerguide/mqtt.html) in the IoT Core Developer Guide.
*/
@JvmName("rogqxlnqyswcafjg")
public suspend fun headers(argument: suspend TopicRuleRepublishActionHeadersArgsBuilder.() -> Unit) {
val toBeMapped = TopicRuleRepublishActionHeadersArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.headers = mapped
}
/**
* @param value The Quality of Service (QoS) level to use when republishing messages. The default value is 0.
*/
@JvmName("qjsokxoqsstjgpta")
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("kpotmrposedegmwk")
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.
*/
@JvmName("kbogwxxxitdyoxku")
public suspend fun topic(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.topic = mapped
}
internal fun build(): TopicRuleRepublishActionArgs = TopicRuleRepublishActionArgs(
headers = headers,
qos = qos,
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
topic = topic ?: throw PulumiNullFieldException("topic"),
)
}