@Generated(value="jsii-pacmak/1.78.1 (build 878761e)", date="2023-04-17T22:38:13.263Z") @Stability(value=Experimental) public class SnsTopicAction extends software.amazon.jsii.JsiiObject implements IAction
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 | Class and Description |
|---|---|
static class |
SnsTopicAction.Builder
(experimental) A fluent builder for
SnsTopicAction. |
software.amazon.jsii.JsiiObject.InitializationModeIAction.Jsii$Default, IAction.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SnsTopicAction(ITopic topic) |
|
SnsTopicAction(ITopic topic,
SnsTopicActionProps props) |
protected |
SnsTopicAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SnsTopicAction(software.amazon.jsii.JsiiObjectRef objRef) |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SnsTopicAction(software.amazon.jsii.JsiiObjectRef objRef)
protected SnsTopicAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public SnsTopicAction(@NotNull
ITopic topic,
@Nullable
SnsTopicActionProps props)
topic - The Amazon SNS topic to publish data on. This parameter is required.props - Properties to configure the action.@Stability(value=Experimental)
public SnsTopicAction(@NotNull
ITopic topic)
topic - The Amazon SNS topic to publish data on. This parameter is required.Copyright © 2023. All rights reserved.