Class SnsAction

    • Method Detail

      • targetArn

        public final String targetArn()

        The ARN of the SNS topic.

        Returns:
        The ARN of the SNS topic.
      • roleArn

        public final String roleArn()

        The ARN of the IAM role that grants access.

        Returns:
        The ARN of the IAM role that grants access.
      • messageFormat

        public final MessageFormat messageFormat()

        (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. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.

        If the service returns an enum value that is not available in the current SDK version, messageFormat will return MessageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from messageFormatAsString().

        Returns:
        (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. To read more about SNS message formats, see https://docs.aws .amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
        See Also:
        MessageFormat
      • messageFormatAsString

        public final String messageFormatAsString()

        (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. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.

        If the service returns an enum value that is not available in the current SDK version, messageFormat will return MessageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from messageFormatAsString().

        Returns:
        (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. To read more about SNS message formats, see https://docs.aws .amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
        See Also:
        MessageFormat
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)