com.pulumi.awsnative.iot.kotlin.outputs.TopicRuleSnsAction.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.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property messageFormat (Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. For more information, see [Amazon SNS Message and JSON Formats](https://docs.aws.amazon.com/sns/latest/dg/json-formats.html) in the *Amazon Simple Notification Service Developer Guide* .
* @property roleArn The ARN of the IAM role that grants access.
* @property targetArn The ARN of the SNS topic.
*/
public data class TopicRuleSnsAction(
public val messageFormat: String? = null,
public val roleArn: String,
public val targetArn: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iot.outputs.TopicRuleSnsAction): TopicRuleSnsAction = TopicRuleSnsAction(
messageFormat = javaType.messageFormat().map({ args0 -> args0 }).orElse(null),
roleArn = javaType.roleArn(),
targetArn = javaType.targetArn(),
)
}
}