Enum SnsActionMessageFormat

java.lang.Object
java.lang.Enum<SnsActionMessageFormat>
software.amazon.awscdk.services.iot.actions.alpha.SnsActionMessageFormat
All Implemented Interfaces:
Serializable, Comparable<SnsActionMessageFormat>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-08-02T00:29:19.851Z") @Stability(Experimental) public enum SnsActionMessageFormat extends Enum<SnsActionMessageFormat>
(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();
 
  • Enum Constant Details

    • RAW

      @Stability(Experimental) public static final SnsActionMessageFormat RAW
      (experimental) RAW message format.
    • JSON

      @Stability(Experimental) public static final SnsActionMessageFormat JSON
      (experimental) JSON message format.
  • Method Details

    • values

      public static SnsActionMessageFormat[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SnsActionMessageFormat valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null