software.amazon.awscdk.services.iot.actions.alpha.SnsActionMessageFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot-actions-alpha Show documentation
Show all versions of iot-actions-alpha Show documentation
Receipt rule actions for AWS IoT
package software.amazon.awscdk.services.iot.actions.alpha;
/**
* (experimental) SNS topic action message format options.
*
* 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();
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-04T00:39:42.247Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.iot.actions.alpha.$Module.class, fqn = "@aws-cdk/aws-iot-actions-alpha.SnsActionMessageFormat")
public enum SnsActionMessageFormat {
/**
* (experimental) RAW message format.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
RAW,
/**
* (experimental) JSON message format.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
JSON,
}