MTurk.Client.
update_notification_settings
(**kwargs)¶The UpdateNotificationSettings
operation creates, updates, disables or re-enables notifications for a HIT type. If you call the UpdateNotificationSettings operation for a HIT type that already has a notification specification, the operation replaces the old specification with a new one. You can call the UpdateNotificationSettings operation to enable or disable notifications for the HIT type, without having to modify the notification specification itself by providing updates to the Active status without specifying a new notification specification. To change the Active status of a HIT type's notifications, the HIT type must already have a notification specification, or one must be provided in the same call to UpdateNotificationSettings
.
See also: AWS API Documentation
Request Syntax
response = client.update_notification_settings(
HITTypeId='string',
Notification={
'Destination': 'string',
'Transport': 'Email'|'SQS'|'SNS',
'Version': 'string',
'EventTypes': [
'AssignmentAccepted'|'AssignmentAbandoned'|'AssignmentReturned'|'AssignmentSubmitted'|'AssignmentRejected'|'AssignmentApproved'|'HITCreated'|'HITExpired'|'HITReviewable'|'HITExtended'|'HITDisposed'|'Ping',
]
},
Active=True|False
)
[REQUIRED]
The ID of the HIT type whose notification specification is being updated.
The notification specification for the HIT type.
The target for notification messages. The Destination’s format is determined by the specified Transport:
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
The version of the Notification API to use. Valid value is 2006-05-05.
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.
dict
Response Syntax
{}
Response Structure
Exceptions
MTurk.Client.exceptions.ServiceFault
MTurk.Client.exceptions.RequestError