@Generated(value="jsii-pacmak/1.78.1 (build 878761e)", date="2023-04-17T22:38:13.263Z") @Stability(value=Experimental) public enum SnsActionMessageFormat extends Enum<SnsActionMessageFormat>
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();
| Enum Constant and Description |
|---|
JSON
(experimental) JSON message format.
|
RAW
(experimental) RAW message format.
|
| Modifier and Type | Method and Description |
|---|---|
static SnsActionMessageFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnsActionMessageFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final SnsActionMessageFormat RAW
@Stability(value=Experimental) public static final SnsActionMessageFormat JSON
public static SnsActionMessageFormat[] values()
for (SnsActionMessageFormat c : SnsActionMessageFormat.values()) System.out.println(c);
public static SnsActionMessageFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.