@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:50.555Z") @Stability(value=Experimental) public class SnsTopicAction extends software.amazon.jsii.JsiiObject implements IAction
Example:
import software.amazon.awscdk.core.*;
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) |
| Modifier and Type | Method and Description |
|---|---|
ActionConfig |
bind(ITopicRule rule)
(experimental) Returns the topic rule action specification.
|
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.@Stability(value=Experimental) @NotNull public ActionConfig bind(@NotNull ITopicRule rule)
Copyright © 2022. All rights reserved.