AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

NotificationSpecification

import "github.com/aws/aws-sdk-go/service/mturk"

type NotificationSpecification struct { Destination *string `type:"string" required:"true"` EventTypes []*string `type:"list" required:"true"` Transport *string `type:"string" required:"true" enum:"NotificationTransport"` Version *string `type:"string" required:"true"` }

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

Destination

Type: *string

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.

Destination is a required field

EventTypes

Type: []*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.

EventTypes is a required field

Transport

Type: *string

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

Transport is a required field

Version

Type: *string

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

Version is a required field

Method

GoString

func (s NotificationSpecification) GoString() string

GoString returns the string representation

SetDestination

func (s *NotificationSpecification) SetDestination(v string) *NotificationSpecification

SetDestination sets the Destination field's value.

SetEventTypes

func (s *NotificationSpecification) SetEventTypes(v []*string) *NotificationSpecification

SetEventTypes sets the EventTypes field's value.

SetTransport

func (s *NotificationSpecification) SetTransport(v string) *NotificationSpecification

SetTransport sets the Transport field's value.

SetVersion

func (s *NotificationSpecification) SetVersion(v string) *NotificationSpecification

SetVersion sets the Version field's value.

String

func (s NotificationSpecification) String() string

String returns the string representation

Validate

func (s *NotificationSpecification) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: