Interface SnsTopicActionProps
- All Superinterfaces:
CommonActionProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SnsTopicActionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.028Z")
@Stability(Experimental)
public interface SnsTopicActionProps
extends software.amazon.jsii.JsiiSerializable, CommonActionProps
(experimental) Configuration options for the SNS topic action.
Example:
import software.amazon.awscdk.services.sns.*;
Topic topic = new Topic(this, "MyTopic");
TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule")
.sql(IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, year, month, day FROM 'device/+/data'"))
.actions(List.of(
SnsTopicAction.Builder.create(topic)
.messageFormat(SnsActionMessageFormat.JSON)
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSnsTopicActionPropsstatic final classAn implementation forSnsTopicActionProps -
Method Summary
Modifier and TypeMethodDescriptionstatic SnsTopicActionProps.Builderbuilder()default SnsActionMessageFormat(experimental) The message format of the message to publish.Methods inherited from interface software.amazon.awscdk.services.iot.actions.CommonActionProps
getRoleMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMessageFormat
(experimental) The message format of the message to publish.SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted.
Default: SnsActionMessageFormat.RAW
-
builder
- Returns:
- a
SnsTopicActionProps.BuilderofSnsTopicActionProps
-