@Generated(value="jsii-pacmak/1.78.1 (build 878761e)", date="2023-04-17T22:38:13.264Z") @Stability(value=Experimental) public interface SnsTopicActionProps extends software.amazon.jsii.JsiiSerializable, CommonActionProps
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
SnsTopicActionProps.Builder
A builder for
SnsTopicActionProps |
static class |
SnsTopicActionProps.Jsii$Proxy
An implementation for
SnsTopicActionProps |
| Modifier and Type | Method and Description |
|---|---|
static SnsTopicActionProps.Builder |
builder() |
default SnsActionMessageFormat |
getMessageFormat()
(experimental) The message format of the message to publish.
|
getRole@Stability(value=Experimental) @Nullable default SnsActionMessageFormat getMessageFormat()
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
@Stability(value=Experimental) static SnsTopicActionProps.Builder builder()
builder in interface CommonActionPropsSnsTopicActionProps.Builder of SnsTopicActionPropsCopyright © 2023. All rights reserved.