Interface CfnTopicRule.SnsActionProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnTopicRule.SnsActionProperty extends
Describes an action to publish to an Amazon SNS topic.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 SnsActionProperty snsActionProperty = SnsActionProperty.builder()
         // the properties below are optional
  • Method Details

    • getRoleArn

      @Stability(Stable) @NotNull String getRoleArn()
      The ARN of the IAM role that grants access.
    • getTargetArn

      @Stability(Stable) @NotNull String getTargetArn()
      The ARN of the SNS topic.
    • getMessageFormat

      @Stability(Stable) @Nullable default String getMessageFormat()
      (Optional) The message format of the message to publish.

      Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. For more information, see Amazon SNS Message and JSON Formats in the Amazon Simple Notification Service Developer Guide .

    • builder

      @Stability(Stable) static CfnTopicRule.SnsActionProperty.Builder builder()
      a CfnTopicRule.SnsActionProperty.Builder of CfnTopicRule.SnsActionProperty