Module Values.NotificationSpecificationSource

The NotificationSpecification data structure describes a HIT event notification for a HIT type.

Sourcetype nonrec t = {
  1. destination : String_.t;
    (*

    The target for notification messages. The Destination’s format is determined by the specified Transport: When Transport is Email, the Destination is your email address. When Transport is SQS, the Destination is your queue URL. When Transport is SNS, the Destination is the ARN of your topic.

    *)
  2. transport : NotificationTransport.t;
    (*

    The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.

    *)
  3. version : String_.t;
    (*

    The version of the Notification API to use. Valid value is 2006-05-05.

    *)
  4. eventTypes : EventTypeList.t;
    (*

    The list of events that should cause notifications to be sent. Valid Values: AssignmentAccepted | AssignmentAbandoned | AssignmentReturned | AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated | HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is only valid for the SendTestEventNotification operation.

    *)
}
Sourceval context_ : string
Sourceval make : destination:String_.t -> transport:NotificationTransport.t -> version:String_.t -> eventTypes:EventTypeList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string ] list | `String of String_.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