You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::MTurk::Types::NotificationSpecification

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing NotificationSpecification as input to an Aws::Client method, you can use a vanilla Hash:

{
  destination: "String", # required
  transport: "Email", # required, accepts Email, SQS, SNS
  version: "String", # required
  event_types: ["AssignmentAccepted"], # required, accepts AssignmentAccepted, AssignmentAbandoned, AssignmentReturned, AssignmentSubmitted, AssignmentRejected, AssignmentApproved, HITCreated, HITExpired, HITReviewable, HITExtended, HITDisposed, Ping
}

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

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#destinationString

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.

Returns:

  • (String)

    The target for notification messages.

#event_typesArray<String>

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.

Returns:

  • (Array<String>)

    The list of events that should cause notifications to be sent.

#transportString

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

Possible values:

  • Email
  • SQS
  • SNS

Returns:

  • (String)

    The method Amazon Mechanical Turk uses to send the notification.

#versionString

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

Returns:

  • (String)

    The version of the Notification API to use.