Module Values.SnsActionSource

The action to publish the email content to an Amazon SNS topic. When executed, this action will send the email as a notification to the specified SNS topic.

Sourcetype nonrec t = {
  1. actionFailurePolicy : ActionFailurePolicy.t option;
    (*

    A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, specified SNS topic has been deleted or the role lacks necessary permissions to call the sns:Publish API.

    *)
  2. topicArn : SnsTopicArn.t;
    (*

    The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.

    *)
  3. roleArn : IamRoleArn.t;
    (*

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to Amazon SNS. This role must have access to the sns:Publish API for the given topic.

    *)
  4. encoding : SnsNotificationEncoding.t option;
    (*

    The encoding to use for the email within the Amazon SNS notification. The default value is UTF-8. Use BASE64 if you need to preserve all special characters, especially when the original message uses a different encoding format.

    *)
  5. payloadType : SnsNotificationPayloadType.t option;
    (*

    The expected payload type within the Amazon SNS notification. CONTENT attempts to publish the full email content with 20KB of headers content. HEADERS extracts up to 100KB of header content to include in the notification, email content will not be included to the notification. The default value is CONTENT.

    *)
}
Sourceval context_ : string
Sourceval make : ?actionFailurePolicy:??? -> ?encoding:??? -> ?payloadType:??? -> topicArn:SnsTopicArn.t -> roleArn:IamRoleArn.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of SnsTopicArn.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t