com.pulumi.aws.iot.kotlin.inputs.TopicRuleErrorActionSnsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.iot.kotlin.inputs
import com.pulumi.aws.iot.inputs.TopicRuleErrorActionSnsArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property messageFormat The message format of the message to publish. Accepted values are "JSON" and "RAW".
* @property roleArn The ARN of the IAM role that grants access.
* @property targetArn The ARN of the SNS topic.
*/
public data class TopicRuleErrorActionSnsArgs(
public val messageFormat: Output? = null,
public val roleArn: Output,
public val targetArn: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.iot.inputs.TopicRuleErrorActionSnsArgs =
com.pulumi.aws.iot.inputs.TopicRuleErrorActionSnsArgs.builder()
.messageFormat(messageFormat?.applyValue({ args0 -> args0 }))
.roleArn(roleArn.applyValue({ args0 -> args0 }))
.targetArn(targetArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleErrorActionSnsArgs].
*/
@PulumiTagMarker
public class TopicRuleErrorActionSnsArgsBuilder internal constructor() {
private var messageFormat: Output? = null
private var roleArn: Output? = null
private var targetArn: Output? = null
/**
* @param value The message format of the message to publish. Accepted values are "JSON" and "RAW".
*/
@JvmName("wjsrvaiwydljqlyt")
public suspend fun messageFormat(`value`: Output) {
this.messageFormat = value
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("rkntesvnqtrejnym")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value The ARN of the SNS topic.
*/
@JvmName("cxjqorvtnajqytxf")
public suspend fun targetArn(`value`: Output) {
this.targetArn = value
}
/**
* @param value The message format of the message to publish. Accepted values are "JSON" and "RAW".
*/
@JvmName("mdpipglrordqmagr")
public suspend fun messageFormat(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.messageFormat = mapped
}
/**
* @param value The ARN of the IAM role that grants access.
*/
@JvmName("jdvvuialjtryonmm")
public suspend fun roleArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.roleArn = mapped
}
/**
* @param value The ARN of the SNS topic.
*/
@JvmName("bvrpotkorlmlivet")
public suspend fun targetArn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.targetArn = mapped
}
internal fun build(): TopicRuleErrorActionSnsArgs = TopicRuleErrorActionSnsArgs(
messageFormat = messageFormat,
roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
targetArn = targetArn ?: throw PulumiNullFieldException("targetArn"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy