amazonka-mechanicalturk-2.0: Amazon Mechanical Turk SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MechanicalTurk.Lens

Description

 
Synopsis

Operations

AcceptQualificationRequest

acceptQualificationRequest_integerValue :: Lens' AcceptQualificationRequest (Maybe Int) Source #

The value of the Qualification. You can omit this value if you are using the presence or absence of the Qualification as the basis for a HIT requirement.

acceptQualificationRequest_qualificationRequestId :: Lens' AcceptQualificationRequest Text Source #

The ID of the Qualification request, as returned by the GetQualificationRequests operation.

ApproveAssignment

approveAssignment_overrideRejection :: Lens' ApproveAssignment (Maybe Bool) Source #

A flag indicating that an assignment should be approved even if it was previously rejected. Defaults to False.

approveAssignment_requesterFeedback :: Lens' ApproveAssignment (Maybe Text) Source #

A message for the Worker, which the Worker can see in the Status section of the web site.

approveAssignment_assignmentId :: Lens' ApproveAssignment Text Source #

The ID of the assignment. The assignment must correspond to a HIT created by the Requester.

AssociateQualificationWithWorker

associateQualificationWithWorker_sendNotification :: Lens' AssociateQualificationWithWorker (Maybe Bool) Source #

Specifies whether to send a notification email message to the Worker saying that the qualification was assigned to the Worker. Note: this is true by default.

associateQualificationWithWorker_qualificationTypeId :: Lens' AssociateQualificationWithWorker Text Source #

The ID of the Qualification type to use for the assigned Qualification.

associateQualificationWithWorker_workerId :: Lens' AssociateQualificationWithWorker Text Source #

The ID of the Worker to whom the Qualification is being assigned. Worker IDs are included with submitted HIT assignments and Qualification requests.

CreateAdditionalAssignmentsForHIT

createAdditionalAssignmentsForHIT_uniqueRequestToken :: Lens' CreateAdditionalAssignmentsForHIT (Maybe Text) Source #

A unique identifier for this request, which allows you to retry the call on error without extending the HIT multiple times. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the extend HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

CreateHIT

createHIT_assignmentReviewPolicy :: Lens' CreateHIT (Maybe ReviewPolicy) Source #

The Assignment-level Review Policy applies to the assignments under the HIT. You can specify for Mechanical Turk to take various actions based on the policy.

createHIT_autoApprovalDelayInSeconds :: Lens' CreateHIT (Maybe Integer) Source #

The number of seconds after an assignment for the HIT has been submitted, after which the assignment is considered Approved automatically unless the Requester explicitly rejects it.

createHIT_hITLayoutId :: Lens' CreateHIT (Maybe Text) Source #

The HITLayoutId allows you to use a pre-existing HIT design with placeholder values and create an additional HIT by providing those values as HITLayoutParameters.

Constraints: Either a Question parameter or a HITLayoutId parameter must be provided.

createHIT_hITLayoutParameters :: Lens' CreateHIT (Maybe [HITLayoutParameter]) Source #

If the HITLayoutId is provided, any placeholder values must be filled in with values using the HITLayoutParameter structure. For more information, see HITLayout.

createHIT_hITReviewPolicy :: Lens' CreateHIT (Maybe ReviewPolicy) Source #

The HIT-level Review Policy applies to the HIT. You can specify for Mechanical Turk to take various actions based on the policy.

createHIT_keywords :: Lens' CreateHIT (Maybe Text) Source #

One or more words or phrases that describe the HIT, separated by commas. These words are used in searches to find HITs.

createHIT_maxAssignments :: Lens' CreateHIT (Maybe Int) Source #

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

createHIT_qualificationRequirements :: Lens' CreateHIT (Maybe [QualificationRequirement]) Source #

Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure.

createHIT_question :: Lens' CreateHIT (Maybe Text) Source #

The data the person completing the HIT uses to produce the results.

Constraints: Must be a QuestionForm data structure, an ExternalQuestion data structure, or an HTMLQuestion data structure. The XML question data must not be larger than 64 kilobytes (65,535 bytes) in size, including whitespace.

Either a Question parameter or a HITLayoutId parameter must be provided.

createHIT_requesterAnnotation :: Lens' CreateHIT (Maybe Text) Source #

An arbitrary data field. The RequesterAnnotation parameter lets your application attach arbitrary data to the HIT for tracking purposes. For example, this parameter could be an identifier internal to the Requester's application that corresponds with the HIT.

The RequesterAnnotation parameter for a HIT is only visible to the Requester who created the HIT. It is not shown to the Worker, or any other Requester.

The RequesterAnnotation parameter may be different for each HIT you submit. It does not affect how your HITs are grouped.

createHIT_uniqueRequestToken :: Lens' CreateHIT (Maybe Text) Source #

A unique identifier for this request which allows you to retry the call on error without creating duplicate HITs. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return a AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.

Note: It is your responsibility to ensure uniqueness of the token. The unique token expires after 24 hours. Subsequent calls using the same UniqueRequestToken made after the 24 hour limit could create duplicate HITs.

createHIT_lifetimeInSeconds :: Lens' CreateHIT Integer Source #

An amount of time, in seconds, after which the HIT is no longer available for users to accept. After the lifetime of the HIT elapses, the HIT no longer appears in HIT searches, even if not all of the assignments for the HIT have been accepted.

createHIT_assignmentDurationInSeconds :: Lens' CreateHIT Integer Source #

The amount of time, in seconds, that a Worker has to complete the HIT after accepting it. If a Worker does not complete the assignment within the specified duration, the assignment is considered abandoned. If the HIT is still active (that is, its lifetime has not elapsed), the assignment becomes available for other users to find and accept.

createHIT_reward :: Lens' CreateHIT Text Source #

The amount of money the Requester will pay a Worker for successfully completing the HIT.

createHIT_title :: Lens' CreateHIT Text Source #

The title of the HIT. A title should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.

createHIT_description :: Lens' CreateHIT Text Source #

A general description of the HIT. A description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it.

createHITResponse_hit :: Lens' CreateHITResponse (Maybe HIT) Source #

Contains the newly created HIT data. For a description of the HIT data structure as it appears in responses, see the HIT Data Structure documentation.

createHITResponse_httpStatus :: Lens' CreateHITResponse Int Source #

The response's http status code.

CreateHITType

createHITType_autoApprovalDelayInSeconds :: Lens' CreateHITType (Maybe Integer) Source #

The number of seconds after an assignment for the HIT has been submitted, after which the assignment is considered Approved automatically unless the Requester explicitly rejects it.

createHITType_keywords :: Lens' CreateHITType (Maybe Text) Source #

One or more words or phrases that describe the HIT, separated by commas. These words are used in searches to find HITs.

createHITType_qualificationRequirements :: Lens' CreateHITType (Maybe [QualificationRequirement]) Source #

Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure.

createHITType_assignmentDurationInSeconds :: Lens' CreateHITType Integer Source #

The amount of time, in seconds, that a Worker has to complete the HIT after accepting it. If a Worker does not complete the assignment within the specified duration, the assignment is considered abandoned. If the HIT is still active (that is, its lifetime has not elapsed), the assignment becomes available for other users to find and accept.

createHITType_reward :: Lens' CreateHITType Text Source #

The amount of money the Requester will pay a Worker for successfully completing the HIT.

createHITType_title :: Lens' CreateHITType Text Source #

The title of the HIT. A title should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.

createHITType_description :: Lens' CreateHITType Text Source #

A general description of the HIT. A description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it.

createHITTypeResponse_hITTypeId :: Lens' CreateHITTypeResponse (Maybe Text) Source #

The ID of the newly registered HIT type.

CreateHITWithHITType

createHITWithHITType_assignmentReviewPolicy :: Lens' CreateHITWithHITType (Maybe ReviewPolicy) Source #

The Assignment-level Review Policy applies to the assignments under the HIT. You can specify for Mechanical Turk to take various actions based on the policy.

createHITWithHITType_hITLayoutId :: Lens' CreateHITWithHITType (Maybe Text) Source #

The HITLayoutId allows you to use a pre-existing HIT design with placeholder values and create an additional HIT by providing those values as HITLayoutParameters.

Constraints: Either a Question parameter or a HITLayoutId parameter must be provided.

createHITWithHITType_hITLayoutParameters :: Lens' CreateHITWithHITType (Maybe [HITLayoutParameter]) Source #

If the HITLayoutId is provided, any placeholder values must be filled in with values using the HITLayoutParameter structure. For more information, see HITLayout.

createHITWithHITType_hITReviewPolicy :: Lens' CreateHITWithHITType (Maybe ReviewPolicy) Source #

The HIT-level Review Policy applies to the HIT. You can specify for Mechanical Turk to take various actions based on the policy.

createHITWithHITType_maxAssignments :: Lens' CreateHITWithHITType (Maybe Int) Source #

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

createHITWithHITType_question :: Lens' CreateHITWithHITType (Maybe Text) Source #

The data the person completing the HIT uses to produce the results.

Constraints: Must be a QuestionForm data structure, an ExternalQuestion data structure, or an HTMLQuestion data structure. The XML question data must not be larger than 64 kilobytes (65,535 bytes) in size, including whitespace.

Either a Question parameter or a HITLayoutId parameter must be provided.

createHITWithHITType_requesterAnnotation :: Lens' CreateHITWithHITType (Maybe Text) Source #

An arbitrary data field. The RequesterAnnotation parameter lets your application attach arbitrary data to the HIT for tracking purposes. For example, this parameter could be an identifier internal to the Requester's application that corresponds with the HIT.

The RequesterAnnotation parameter for a HIT is only visible to the Requester who created the HIT. It is not shown to the Worker, or any other Requester.

The RequesterAnnotation parameter may be different for each HIT you submit. It does not affect how your HITs are grouped.

createHITWithHITType_uniqueRequestToken :: Lens' CreateHITWithHITType (Maybe Text) Source #

A unique identifier for this request which allows you to retry the call on error without creating duplicate HITs. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the HIT already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return a AWS.MechanicalTurk.HitAlreadyExists error with a message containing the HITId.

Note: It is your responsibility to ensure uniqueness of the token. The unique token expires after 24 hours. Subsequent calls using the same UniqueRequestToken made after the 24 hour limit could create duplicate HITs.

createHITWithHITType_hITTypeId :: Lens' CreateHITWithHITType Text Source #

The HIT type ID you want to create this HIT with.

createHITWithHITType_lifetimeInSeconds :: Lens' CreateHITWithHITType Integer Source #

An amount of time, in seconds, after which the HIT is no longer available for users to accept. After the lifetime of the HIT elapses, the HIT no longer appears in HIT searches, even if not all of the assignments for the HIT have been accepted.

createHITWithHITTypeResponse_hit :: Lens' CreateHITWithHITTypeResponse (Maybe HIT) Source #

Contains the newly created HIT data. For a description of the HIT data structure as it appears in responses, see the HIT Data Structure documentation.

CreateQualificationType

createQualificationType_answerKey :: Lens' CreateQualificationType (Maybe Text) Source #

The answers to the Qualification test specified in the Test parameter, in the form of an AnswerKey data structure.

Constraints: Must not be longer than 65535 bytes.

Constraints: None. If not specified, you must process Qualification requests manually.

createQualificationType_autoGranted :: Lens' CreateQualificationType (Maybe Bool) Source #

Specifies whether requests for the Qualification type are granted immediately, without prompting the Worker with a Qualification test.

Constraints: If the Test parameter is specified, this parameter cannot be true.

createQualificationType_autoGrantedValue :: Lens' CreateQualificationType (Maybe Int) Source #

The Qualification value to use for automatically granted Qualifications. This parameter is used only if the AutoGranted parameter is true.

createQualificationType_keywords :: Lens' CreateQualificationType (Maybe Text) Source #

One or more words or phrases that describe the Qualification type, separated by commas. The keywords of a type make the type easier to find during a search.

createQualificationType_retryDelayInSeconds :: Lens' CreateQualificationType (Maybe Integer) Source #

The number of seconds that a Worker must wait after requesting a Qualification of the Qualification type before the worker can retry the Qualification request.

Constraints: None. If not specified, retries are disabled and Workers can request a Qualification of this type only once, even if the Worker has not been granted the Qualification. It is not possible to disable retries for a Qualification type after it has been created with retries enabled. If you want to disable retries, you must delete existing retry-enabled Qualification type and then create a new Qualification type with retries disabled.

createQualificationType_test :: Lens' CreateQualificationType (Maybe Text) Source #

The questions for the Qualification test a Worker must answer correctly to obtain a Qualification of this type. If this parameter is specified, TestDurationInSeconds must also be specified.

Constraints: Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This parameter cannot be specified if AutoGranted is true.

Constraints: None. If not specified, the Worker may request the Qualification without answering any questions.

createQualificationType_testDurationInSeconds :: Lens' CreateQualificationType (Maybe Integer) Source #

The number of seconds the Worker has to complete the Qualification test, starting from the time the Worker requests the Qualification.

createQualificationType_name :: Lens' CreateQualificationType Text Source #

The name you give to the Qualification type. The type name is used to represent the Qualification to Workers, and to find the type using a Qualification type search. It must be unique across all of your Qualification types.

createQualificationType_description :: Lens' CreateQualificationType Text Source #

A long description for the Qualification type. On the Amazon Mechanical Turk website, the long description is displayed when a Worker examines a Qualification type.

createQualificationType_qualificationTypeStatus :: Lens' CreateQualificationType QualificationTypeStatus Source #

The initial status of the Qualification type.

Constraints: Valid values are: Active | Inactive

createQualificationTypeResponse_qualificationType :: Lens' CreateQualificationTypeResponse (Maybe QualificationType) Source #

The created Qualification type, returned as a QualificationType data structure.

CreateWorkerBlock

createWorkerBlock_reason :: Lens' CreateWorkerBlock Text Source #

A message explaining the reason for blocking the Worker. This parameter enables you to keep track of your Workers. The Worker does not see this message.

DeleteHIT

deleteHIT_hITId :: Lens' DeleteHIT Text Source #

The ID of the HIT to be deleted.

deleteHITResponse_httpStatus :: Lens' DeleteHITResponse Int Source #

The response's http status code.

DeleteQualificationType

DeleteWorkerBlock

deleteWorkerBlock_reason :: Lens' DeleteWorkerBlock (Maybe Text) Source #

A message that explains the reason for unblocking the Worker. The Worker does not see this message.

deleteWorkerBlock_workerId :: Lens' DeleteWorkerBlock Text Source #

The ID of the Worker to unblock.

DisassociateQualificationFromWorker

disassociateQualificationFromWorker_reason :: Lens' DisassociateQualificationFromWorker (Maybe Text) Source #

A text message that explains why the Qualification was revoked. The user who had the Qualification sees this message.

disassociateQualificationFromWorker_workerId :: Lens' DisassociateQualificationFromWorker Text Source #

The ID of the Worker who possesses the Qualification to be revoked.

disassociateQualificationFromWorker_qualificationTypeId :: Lens' DisassociateQualificationFromWorker Text Source #

The ID of the Qualification type of the Qualification to be revoked.

GetAccountBalance

GetAssignment

getAssignment_assignmentId :: Lens' GetAssignment Text Source #

The ID of the Assignment to be retrieved.

getAssignmentResponse_assignment :: Lens' GetAssignmentResponse (Maybe Assignment) Source #

The assignment. The response includes one Assignment element.

getAssignmentResponse_hit :: Lens' GetAssignmentResponse (Maybe HIT) Source #

The HIT associated with this assignment. The response includes one HIT element.

GetFileUploadURL

getFileUploadURL_assignmentId :: Lens' GetFileUploadURL Text Source #

The ID of the assignment that contains the question with a FileUploadAnswer.

getFileUploadURL_questionIdentifier :: Lens' GetFileUploadURL Text Source #

The identifier of the question with a FileUploadAnswer, as specified in the QuestionForm of the HIT.

getFileUploadURLResponse_fileUploadURL :: Lens' GetFileUploadURLResponse (Maybe Text) Source #

A temporary URL for the file that the Worker uploaded for the answer.

GetHIT

getHIT_hITId :: Lens' GetHIT Text Source #

The ID of the HIT to be retrieved.

getHITResponse_hit :: Lens' GetHITResponse (Maybe HIT) Source #

Contains the requested HIT data.

getHITResponse_httpStatus :: Lens' GetHITResponse Int Source #

The response's http status code.

GetQualificationScore

getQualificationScore_workerId :: Lens' GetQualificationScore Text Source #

The ID of the Worker whose Qualification is being updated.

getQualificationScoreResponse_qualification :: Lens' GetQualificationScoreResponse (Maybe Qualification) Source #

The Qualification data structure of the Qualification assigned to a user, including the Qualification type and the value (score).

GetQualificationType

ListAssignmentsForHIT

listAssignmentsForHIT_assignmentStatuses :: Lens' ListAssignmentsForHIT (Maybe [AssignmentStatus]) Source #

The status of the assignments to return: Submitted | Approved | Rejected

listAssignmentsForHITResponse_assignments :: Lens' ListAssignmentsForHITResponse (Maybe [Assignment]) Source #

The collection of Assignment data structures returned by this call.

listAssignmentsForHITResponse_numResults :: Lens' ListAssignmentsForHITResponse (Maybe Int) Source #

The number of assignments on the page in the filtered results list, equivalent to the number of assignments returned by this call.

ListBonusPayments

listBonusPayments_assignmentId :: Lens' ListBonusPayments (Maybe Text) Source #

The ID of the assignment associated with the bonus payments to retrieve. If specified, only bonus payments for the given assignment are returned. Either the HITId parameter or the AssignmentId parameter must be specified

listBonusPayments_hITId :: Lens' ListBonusPayments (Maybe Text) Source #

The ID of the HIT associated with the bonus payments to retrieve. If not specified, all bonus payments for all assignments for the given HIT are returned. Either the HITId parameter or the AssignmentId parameter must be specified

listBonusPaymentsResponse_bonusPayments :: Lens' ListBonusPaymentsResponse (Maybe [BonusPayment]) Source #

A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.

listBonusPaymentsResponse_numResults :: Lens' ListBonusPaymentsResponse (Maybe Int) Source #

The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.

ListHITs

listHITsResponse_hITs :: Lens' ListHITsResponse (Maybe [HIT]) Source #

The list of HIT elements returned by the query.

listHITsResponse_numResults :: Lens' ListHITsResponse (Maybe Int) Source #

The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.

listHITsResponse_httpStatus :: Lens' ListHITsResponse Int Source #

The response's http status code.

ListHITsForQualificationType

listHITsForQualificationType_qualificationTypeId :: Lens' ListHITsForQualificationType Text Source #

The ID of the Qualification type to use when querying HITs.

listHITsForQualificationTypeResponse_numResults :: Lens' ListHITsForQualificationTypeResponse (Maybe Int) Source #

The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.

ListQualificationRequests

listQualificationRequests_maxResults :: Lens' ListQualificationRequests (Maybe Natural) Source #

The maximum number of results to return in a single call.

listQualificationRequestsResponse_numResults :: Lens' ListQualificationRequestsResponse (Maybe Int) Source #

The number of Qualification requests on this page in the filtered results list, equivalent to the number of Qualification requests being returned by this call.

listQualificationRequestsResponse_qualificationRequests :: Lens' ListQualificationRequestsResponse (Maybe [QualificationRequest]) Source #

The Qualification request. The response includes one QualificationRequest element for each Qualification request returned by the query.

ListQualificationTypes

listQualificationTypes_maxResults :: Lens' ListQualificationTypes (Maybe Natural) Source #

The maximum number of results to return in a single call.

listQualificationTypes_mustBeOwnedByCaller :: Lens' ListQualificationTypes (Maybe Bool) Source #

Specifies that only Qualification types that the Requester created are returned. If false, the operation returns all Qualification types.

listQualificationTypes_query :: Lens' ListQualificationTypes (Maybe Text) Source #

A text query against all of the searchable attributes of Qualification types.

listQualificationTypes_mustBeRequestable :: Lens' ListQualificationTypes Bool Source #

Specifies that only Qualification types that a user can request through the Amazon Mechanical Turk web site, such as by taking a Qualification test, are returned as results of the search. Some Qualification types, such as those assigned automatically by the system, cannot be requested directly by users. If false, all Qualification types, including those managed by the system, are considered. Valid values are True | False.

listQualificationTypesResponse_numResults :: Lens' ListQualificationTypesResponse (Maybe Int) Source #

The number of Qualification types on this page in the filtered results list, equivalent to the number of types this operation returns.

ListReviewPolicyResultsForHIT

listReviewPolicyResultsForHIT_policyLevels :: Lens' ListReviewPolicyResultsForHIT (Maybe [ReviewPolicyLevel]) Source #

The Policy Level(s) to retrieve review results for - HIT or Assignment. If omitted, the default behavior is to retrieve all data for both policy levels. For a list of all the described policies, see Review Policies.

listReviewPolicyResultsForHIT_retrieveActions :: Lens' ListReviewPolicyResultsForHIT (Maybe Bool) Source #

Specify if the operation should retrieve a list of the actions taken executing the Review Policies and their outcomes.

listReviewPolicyResultsForHIT_retrieveResults :: Lens' ListReviewPolicyResultsForHIT (Maybe Bool) Source #

Specify if the operation should retrieve a list of the results computed by the Review Policies.

listReviewPolicyResultsForHIT_hITId :: Lens' ListReviewPolicyResultsForHIT Text Source #

The unique identifier of the HIT to retrieve review results for.

listReviewPolicyResultsForHITResponse_assignmentReviewPolicy :: Lens' ListReviewPolicyResultsForHITResponse (Maybe ReviewPolicy) Source #

The name of the Assignment-level Review Policy. This contains only the PolicyName element.

listReviewPolicyResultsForHITResponse_hITId :: Lens' ListReviewPolicyResultsForHITResponse (Maybe Text) Source #

The HITId of the HIT for which results have been returned.

listReviewPolicyResultsForHITResponse_hITReviewPolicy :: Lens' ListReviewPolicyResultsForHITResponse (Maybe ReviewPolicy) Source #

The name of the HIT-level Review Policy. This contains only the PolicyName element.

listReviewPolicyResultsForHITResponse_hITReviewReport :: Lens' ListReviewPolicyResultsForHITResponse (Maybe ReviewReport) Source #

Contains both ReviewResult and ReviewAction elements for a particular HIT.

ListReviewableHITs

listReviewableHITs_hITTypeId :: Lens' ListReviewableHITs (Maybe Text) Source #

The ID of the HIT type of the HITs to consider for the query. If not specified, all HITs for the Reviewer are considered

listReviewableHITs_maxResults :: Lens' ListReviewableHITs (Maybe Natural) Source #

Limit the number of results returned.

listReviewableHITs_status :: Lens' ListReviewableHITs (Maybe ReviewableHITStatus) Source #

Can be either Reviewable or Reviewing. Reviewable is the default value.

listReviewableHITsResponse_hITs :: Lens' ListReviewableHITsResponse (Maybe [HIT]) Source #

The list of HIT elements returned by the query.

listReviewableHITsResponse_numResults :: Lens' ListReviewableHITsResponse (Maybe Int) Source #

The number of HITs on this page in the filtered results list, equivalent to the number of HITs being returned by this call.

ListWorkerBlocks

listWorkerBlocksResponse_numResults :: Lens' ListWorkerBlocksResponse (Maybe Int) Source #

The number of assignments on the page in the filtered results list, equivalent to the number of assignments returned by this call.

listWorkerBlocksResponse_workerBlocks :: Lens' ListWorkerBlocksResponse (Maybe [WorkerBlock]) Source #

The list of WorkerBlocks, containing the collection of Worker IDs and reasons for blocking.

ListWorkersWithQualificationType

listWorkersWithQualificationType_status :: Lens' ListWorkersWithQualificationType (Maybe QualificationStatus) Source #

The status of the Qualifications to return. Can be Granted | Revoked.

listWorkersWithQualificationType_qualificationTypeId :: Lens' ListWorkersWithQualificationType Text Source #

The ID of the Qualification type of the Qualifications to return.

listWorkersWithQualificationTypeResponse_numResults :: Lens' ListWorkersWithQualificationTypeResponse (Maybe Int) Source #

The number of Qualifications on this page in the filtered results list, equivalent to the number of Qualifications being returned by this call.

NotifyWorkers

notifyWorkers_subject :: Lens' NotifyWorkers Text Source #

The subject line of the email message to send. Can include up to 200 characters.

notifyWorkers_messageText :: Lens' NotifyWorkers Text Source #

The text of the email message to send. Can include up to 4,096 characters

notifyWorkers_workerIds :: Lens' NotifyWorkers [Text] Source #

A list of Worker IDs you wish to notify. You can notify upto 100 Workers at a time.

notifyWorkersResponse_notifyWorkersFailureStatuses :: Lens' NotifyWorkersResponse (Maybe [NotifyWorkersFailureStatus]) Source #

When MTurk sends notifications to the list of Workers, it returns back any failures it encounters in this list of NotifyWorkersFailureStatus objects.

RejectAssignment

rejectAssignment_assignmentId :: Lens' RejectAssignment Text Source #

The ID of the assignment. The assignment must correspond to a HIT created by the Requester.

rejectAssignment_requesterFeedback :: Lens' RejectAssignment Text Source #

A message for the Worker, which the Worker can see in the Status section of the web site.

RejectQualificationRequest

rejectQualificationRequest_reason :: Lens' RejectQualificationRequest (Maybe Text) Source #

A text message explaining why the request was rejected, to be shown to the Worker who made the request.

rejectQualificationRequest_qualificationRequestId :: Lens' RejectQualificationRequest Text Source #

The ID of the Qualification request, as returned by the ListQualificationRequests operation.

SendBonus

sendBonus_uniqueRequestToken :: Lens' SendBonus (Maybe Text) Source #

A unique identifier for this request, which allows you to retry the call on error without granting multiple bonuses. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the bonus already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

sendBonus_workerId :: Lens' SendBonus Text Source #

The ID of the Worker being paid the bonus.

sendBonus_bonusAmount :: Lens' SendBonus Text Source #

The Bonus amount is a US Dollar amount specified using a string (for example, "5" represents $5.00 USD and "101.42" represents $101.42 USD). Do not include currency symbols or currency codes.

sendBonus_assignmentId :: Lens' SendBonus Text Source #

The ID of the assignment for which this bonus is paid.

sendBonus_reason :: Lens' SendBonus Text Source #

A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.

sendBonusResponse_httpStatus :: Lens' SendBonusResponse Int Source #

The response's http status code.

SendTestEventNotification

sendTestEventNotification_notification :: Lens' SendTestEventNotification NotificationSpecification Source #

The notification specification to test. This value is identical to the value you would provide to the UpdateNotificationSettings operation when you establish the notification specification for a HIT type.

sendTestEventNotification_testEventType :: Lens' SendTestEventNotification EventType Source #

The event to simulate to test the notification specification. This event is included in the test message even if the notification specification does not include the event type. The notification specification does not filter out the test event.

UpdateExpirationForHIT

updateExpirationForHIT_expireAt :: Lens' UpdateExpirationForHIT UTCTime Source #

The date and time at which you want the HIT to expire

UpdateHITReviewStatus

updateHITReviewStatus_revert :: Lens' UpdateHITReviewStatus (Maybe Bool) Source #

Specifies how to update the HIT status. Default is False.

  • Setting this to false will only transition a HIT from Reviewable to Reviewing
  • Setting this to true will only transition a HIT from Reviewing to Reviewable

UpdateHITTypeOfHIT

UpdateNotificationSettings

updateNotificationSettings_active :: Lens' UpdateNotificationSettings (Maybe Bool) Source #

Specifies whether notifications are sent for HITs of this HIT type, according to the notification specification. You must specify either the Notification parameter or the Active parameter for the call to UpdateNotificationSettings to succeed.

updateNotificationSettings_hITTypeId :: Lens' UpdateNotificationSettings Text Source #

The ID of the HIT type whose notification specification is being updated.

UpdateQualificationType

updateQualificationType_answerKey :: Lens' UpdateQualificationType (Maybe Text) Source #

The answers to the Qualification test specified in the Test parameter, in the form of an AnswerKey data structure.

updateQualificationType_autoGranted :: Lens' UpdateQualificationType (Maybe Bool) Source #

Specifies whether requests for the Qualification type are granted immediately, without prompting the Worker with a Qualification test.

Constraints: If the Test parameter is specified, this parameter cannot be true.

updateQualificationType_autoGrantedValue :: Lens' UpdateQualificationType (Maybe Int) Source #

The Qualification value to use for automatically granted Qualifications. This parameter is used only if the AutoGranted parameter is true.

updateQualificationType_description :: Lens' UpdateQualificationType (Maybe Text) Source #

The new description of the Qualification type.

updateQualificationType_retryDelayInSeconds :: Lens' UpdateQualificationType (Maybe Integer) Source #

The amount of time, in seconds, that Workers must wait after requesting a Qualification of the specified Qualification type before they can retry the Qualification request. It is not possible to disable retries for a Qualification type after it has been created with retries enabled. If you want to disable retries, you must dispose of the existing retry-enabled Qualification type using DisposeQualificationType and then create a new Qualification type with retries disabled using CreateQualificationType.

updateQualificationType_test :: Lens' UpdateQualificationType (Maybe Text) Source #

The questions for the Qualification test a Worker must answer correctly to obtain a Qualification of this type. If this parameter is specified, TestDurationInSeconds must also be specified.

Constraints: Must not be longer than 65535 bytes. Must be a QuestionForm data structure. This parameter cannot be specified if AutoGranted is true.

Constraints: None. If not specified, the Worker may request the Qualification without answering any questions.

updateQualificationType_testDurationInSeconds :: Lens' UpdateQualificationType (Maybe Integer) Source #

The number of seconds the Worker has to complete the Qualification test, starting from the time the Worker requests the Qualification.

Types

Assignment

assignment_acceptTime :: Lens' Assignment (Maybe UTCTime) Source #

The date and time the Worker accepted the assignment.

assignment_answer :: Lens' Assignment (Maybe Text) Source #

The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.

assignment_approvalTime :: Lens' Assignment (Maybe UTCTime) Source #

If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.

assignment_assignmentId :: Lens' Assignment (Maybe Text) Source #

A unique identifier for the assignment.

assignment_autoApprovalTime :: Lens' Assignment (Maybe UTCTime) Source #

If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.

assignment_deadline :: Lens' Assignment (Maybe UTCTime) Source #

The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.

assignment_rejectionTime :: Lens' Assignment (Maybe UTCTime) Source #

If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.

assignment_requesterFeedback :: Lens' Assignment (Maybe Text) Source #

The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.

assignment_submitTime :: Lens' Assignment (Maybe UTCTime) Source #

If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.

assignment_workerId :: Lens' Assignment (Maybe Text) Source #

The ID of the Worker who accepted the HIT.

BonusPayment

bonusPayment_assignmentId :: Lens' BonusPayment (Maybe Text) Source #

The ID of the assignment associated with this bonus payment.

bonusPayment_grantTime :: Lens' BonusPayment (Maybe UTCTime) Source #

The date and time of when the bonus was granted.

bonusPayment_reason :: Lens' BonusPayment (Maybe Text) Source #

The Reason text given when the bonus was granted, if any.

bonusPayment_workerId :: Lens' BonusPayment (Maybe Text) Source #

The ID of the Worker to whom the bonus was paid.

HIT

hit_assignmentDurationInSeconds :: Lens' HIT (Maybe Integer) Source #

The length of time, in seconds, that a Worker has to complete the HIT after accepting it.

hit_autoApprovalDelayInSeconds :: Lens' HIT (Maybe Integer) Source #

The amount of time, in seconds, after the Worker submits an assignment for the HIT that the results are automatically approved by Amazon Mechanical Turk. This is the amount of time the Requester has to reject an assignment submitted by a Worker before the assignment is auto-approved and the Worker is paid.

hit_creationTime :: Lens' HIT (Maybe UTCTime) Source #

The date and time the HIT was created.

hit_description :: Lens' HIT (Maybe Text) Source #

A general description of the HIT.

hit_expiration :: Lens' HIT (Maybe UTCTime) Source #

The date and time the HIT expires.

hit_hITGroupId :: Lens' HIT (Maybe Text) Source #

The ID of the HIT Group of this HIT.

hit_hITId :: Lens' HIT (Maybe Text) Source #

A unique identifier for the HIT.

hit_hITLayoutId :: Lens' HIT (Maybe Text) Source #

The ID of the HIT Layout of this HIT.

hit_hITReviewStatus :: Lens' HIT (Maybe HITReviewStatus) Source #

Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.

hit_hITStatus :: Lens' HIT (Maybe HITStatus) Source #

The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.

hit_hITTypeId :: Lens' HIT (Maybe Text) Source #

The ID of the HIT type of this HIT

hit_keywords :: Lens' HIT (Maybe Text) Source #

One or more words or phrases that describe the HIT, separated by commas. Search terms similar to the keywords of a HIT are more likely to have the HIT in the search results.

hit_maxAssignments :: Lens' HIT (Maybe Int) Source #

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

hit_numberOfAssignmentsAvailable :: Lens' HIT (Maybe Int) Source #

The number of assignments for this HIT that are available for Workers to accept.

hit_numberOfAssignmentsCompleted :: Lens' HIT (Maybe Int) Source #

The number of assignments for this HIT that have been approved or rejected.

hit_numberOfAssignmentsPending :: Lens' HIT (Maybe Int) Source #

The number of assignments for this HIT that are being previewed or have been accepted by Workers, but have not yet been submitted, returned, or abandoned.

hit_qualificationRequirements :: Lens' HIT (Maybe [QualificationRequirement]) Source #

Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded field on each QualificationRequirement structure.

hit_question :: Lens' HIT (Maybe Text) Source #

The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.

hit_requesterAnnotation :: Lens' HIT (Maybe Text) Source #

An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.

hit_reward :: Lens' HIT (Maybe Text) Source #

Undocumented member.

hit_title :: Lens' HIT (Maybe Text) Source #

The title of the HIT.

HITLayoutParameter

hITLayoutParameter_name :: Lens' HITLayoutParameter Text Source #

The name of the parameter in the HITLayout.

hITLayoutParameter_value :: Lens' HITLayoutParameter Text Source #

The value substituted for the parameter referenced in the HITLayout.

Locale

locale_subdivision :: Lens' Locale (Maybe Text) Source #

The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

locale_country :: Lens' Locale Text Source #

The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

NotificationSpecification

notificationSpecification_destination :: Lens' NotificationSpecification Text Source #

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.

notificationSpecification_transport :: Lens' NotificationSpecification NotificationTransport Source #

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

notificationSpecification_version :: Lens' NotificationSpecification Text Source #

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

notificationSpecification_eventTypes :: Lens' NotificationSpecification [EventType] Source #

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.

NotifyWorkersFailureStatus

notifyWorkersFailureStatus_notifyWorkersFailureMessage :: Lens' NotifyWorkersFailureStatus (Maybe Text) Source #

A message detailing the reason the Worker could not be notified.

ParameterMapEntry

parameterMapEntry_key :: Lens' ParameterMapEntry (Maybe Text) Source #

The QuestionID from the HIT that is used to identify which question requires Mechanical Turk to score as part of the ScoreMyKnownAnswers/2011-09-01 Review Policy.

parameterMapEntry_values :: Lens' ParameterMapEntry (Maybe [Text]) Source #

The list of answers to the question specified in the MapEntry Key element. The Worker must match all values in order for the answer to be scored correctly.

PolicyParameter

policyParameter_key :: Lens' PolicyParameter (Maybe Text) Source #

Name of the parameter from the list of Review Polices.

policyParameter_values :: Lens' PolicyParameter (Maybe [Text]) Source #

The list of values of the Parameter

Qualification

qualification_grantTime :: Lens' Qualification (Maybe UTCTime) Source #

The date and time the Qualification was granted to the Worker. If the Worker's Qualification was revoked, and then re-granted based on a new Qualification request, GrantTime is the date and time of the last call to the AcceptQualificationRequest operation.

qualification_integerValue :: Lens' Qualification (Maybe Int) Source #

The value (score) of the Qualification, if the Qualification has an integer value.

qualification_qualificationTypeId :: Lens' Qualification (Maybe Text) Source #

The ID of the Qualification type for the Qualification.

qualification_status :: Lens' Qualification (Maybe QualificationStatus) Source #

The status of the Qualification. Valid values are Granted | Revoked.

qualification_workerId :: Lens' Qualification (Maybe Text) Source #

The ID of the Worker who possesses the Qualification.

QualificationRequest

qualificationRequest_answer :: Lens' QualificationRequest (Maybe Text) Source #

The Worker's answers for the Qualification type's test contained in a QuestionFormAnswers document, if the type has a test and the Worker has submitted answers. If the Worker does not provide any answers, Answer may be empty.

qualificationRequest_qualificationRequestId :: Lens' QualificationRequest (Maybe Text) Source #

The ID of the Qualification request, a unique identifier generated when the request was submitted.

qualificationRequest_qualificationTypeId :: Lens' QualificationRequest (Maybe Text) Source #

The ID of the Qualification type the Worker is requesting, as returned by the CreateQualificationType operation.

qualificationRequest_submitTime :: Lens' QualificationRequest (Maybe UTCTime) Source #

The date and time the Qualification request had a status of Submitted. This is either the time the Worker submitted answers for a Qualification test, or the time the Worker requested the Qualification if the Qualification type does not have a test.

qualificationRequest_test :: Lens' QualificationRequest (Maybe Text) Source #

The contents of the Qualification test that was presented to the Worker, if the type has a test and the Worker has submitted answers. This value is identical to the QuestionForm associated with the Qualification type at the time the Worker requests the Qualification.

qualificationRequest_workerId :: Lens' QualificationRequest (Maybe Text) Source #

The ID of the Worker requesting the Qualification.

QualificationRequirement

qualificationRequirement_actionsGuarded :: Lens' QualificationRequirement (Maybe HITAccessActions) Source #

Setting this attribute prevents Workers whose Qualifications do not meet this QualificationRequirement from taking the specified action. Valid arguments include "Accept" (Worker cannot accept the HIT, but can preview the HIT and see it in their search results), "PreviewAndAccept" (Worker cannot accept or preview the HIT, but can see the HIT in their search results), and "DiscoverPreviewAndAccept" (Worker cannot accept, preview, or see the HIT in their search results). It's possible for you to create a HIT with multiple QualificationRequirements (which can have different values for the ActionGuarded attribute). In this case, the Worker is only permitted to perform an action when they have met all QualificationRequirements guarding the action. The actions in the order of least restrictive to most restrictive are Discover, Preview and Accept. For example, if a Worker meets all QualificationRequirements that are set to DiscoverPreviewAndAccept, but do not meet all requirements that are set with PreviewAndAccept, then the Worker will be able to Discover, i.e. see the HIT in their search result, but will not be able to Preview or Accept the HIT. ActionsGuarded should not be used in combination with the RequiredToPreview field.

qualificationRequirement_integerValues :: Lens' QualificationRequirement (Maybe [Int]) Source #

The integer value to compare against the Qualification's value. IntegerValue must not be present if Comparator is Exists or DoesNotExist. IntegerValue can only be used if the Qualification type has an integer value; it cannot be used with the Worker_Locale QualificationType ID. When performing a set comparison by using the In or the NotIn comparator, you can use up to 15 IntegerValue elements in a QualificationRequirement data structure.

qualificationRequirement_localeValues :: Lens' QualificationRequirement (Maybe [Locale]) Source #

The locale value to compare against the Qualification's value. The local value must be a valid ISO 3166 country code or supports ISO 3166-2 subdivisions. LocaleValue can only be used with a Worker_Locale QualificationType ID. LocaleValue can only be used with the EqualTo, NotEqualTo, In, and NotIn comparators. You must only use a single LocaleValue element when using the EqualTo or NotEqualTo comparators. When performing a set comparison by using the In or the NotIn comparator, you can use up to 30 LocaleValue elements in a QualificationRequirement data structure.

qualificationRequirement_requiredToPreview :: Lens' QualificationRequirement (Maybe Bool) Source #

DEPRECATED: Use the ActionsGuarded field instead. If RequiredToPreview is true, the question data for the HIT will not be shown when a Worker whose Qualifications do not meet this requirement tries to preview the HIT. That is, a Worker's Qualifications must meet all of the requirements for which RequiredToPreview is true in order to preview the HIT. If a Worker meets all of the requirements where RequiredToPreview is true (or if there are no such requirements), but does not meet all of the requirements for the HIT, the Worker will be allowed to preview the HIT's question data, but will not be allowed to accept and complete the HIT. The default is false. This should not be used in combination with the ActionsGuarded field.

qualificationRequirement_qualificationTypeId :: Lens' QualificationRequirement Text Source #

The ID of the Qualification type for the requirement.

qualificationRequirement_comparator :: Lens' QualificationRequirement Comparator Source #

The kind of comparison to make against a Qualification's value. You can compare a Qualification's value to an IntegerValue to see if it is LessThan, LessThanOrEqualTo, GreaterThan, GreaterThanOrEqualTo, EqualTo, or NotEqualTo the IntegerValue. You can compare it to a LocaleValue to see if it is EqualTo, or NotEqualTo the LocaleValue. You can check to see if the value is In or NotIn a set of IntegerValue or LocaleValue values. Lastly, a Qualification requirement can also test if a Qualification Exists or DoesNotExist in the user's profile, regardless of its value.

QualificationType

qualificationType_answerKey :: Lens' QualificationType (Maybe Text) Source #

The answers to the Qualification test specified in the Test parameter.

qualificationType_autoGranted :: Lens' QualificationType (Maybe Bool) Source #

Specifies that requests for the Qualification type are granted immediately, without prompting the Worker with a Qualification test. Valid values are True | False.

qualificationType_autoGrantedValue :: Lens' QualificationType (Maybe Int) Source #

The Qualification integer value to use for automatically granted Qualifications, if AutoGranted is true. This is 1 by default.

qualificationType_creationTime :: Lens' QualificationType (Maybe UTCTime) Source #

The date and time the Qualification type was created.

qualificationType_description :: Lens' QualificationType (Maybe Text) Source #

A long description for the Qualification type.

qualificationType_isRequestable :: Lens' QualificationType (Maybe Bool) Source #

Specifies whether the Qualification type is one that a user can request through the Amazon Mechanical Turk web site, such as by taking a Qualification test. This value is False for Qualifications assigned automatically by the system. Valid values are True | False.

qualificationType_keywords :: Lens' QualificationType (Maybe Text) Source #

One or more words or phrases that describe theQualification type, separated by commas. The Keywords make the type easier to find using a search.

qualificationType_name :: Lens' QualificationType (Maybe Text) Source #

The name of the Qualification type. The type name is used to identify the type, and to find the type using a Qualification type search.

qualificationType_qualificationTypeId :: Lens' QualificationType (Maybe Text) Source #

A unique identifier for the Qualification type. A Qualification type is given a Qualification type ID when you call the CreateQualificationType operation.

qualificationType_qualificationTypeStatus :: Lens' QualificationType (Maybe QualificationTypeStatus) Source #

The status of the Qualification type. A Qualification type's status determines if users can apply to receive a Qualification of this type, and if HITs can be created with requirements based on this type. Valid values are Active | Inactive.

qualificationType_retryDelayInSeconds :: Lens' QualificationType (Maybe Integer) Source #

The amount of time, in seconds, Workers must wait after taking the Qualification test before they can take it again. Workers can take a Qualification test multiple times if they were not granted the Qualification from a previous attempt, or if the test offers a gradient score and they want a better score. If not specified, retries are disabled and Workers can request a Qualification only once.

qualificationType_test :: Lens' QualificationType (Maybe Text) Source #

The questions for a Qualification test associated with this Qualification type that a user can take to obtain a Qualification of this type. This parameter must be specified if AnswerKey is present. A Qualification type cannot have both a specified Test parameter and an AutoGranted value of true.

qualificationType_testDurationInSeconds :: Lens' QualificationType (Maybe Integer) Source #

The amount of time, in seconds, given to a Worker to complete the Qualification test, beginning from the time the Worker requests the Qualification.

ReviewActionDetail

reviewActionDetail_actionId :: Lens' ReviewActionDetail (Maybe Text) Source #

The unique identifier for the action.

reviewActionDetail_actionName :: Lens' ReviewActionDetail (Maybe Text) Source #

The nature of the action itself. The Review Policy is responsible for examining the HIT and Assignments, emitting results, and deciding which other actions will be necessary.

reviewActionDetail_completeTime :: Lens' ReviewActionDetail (Maybe UTCTime) Source #

The date when the action was completed.

reviewActionDetail_errorCode :: Lens' ReviewActionDetail (Maybe Text) Source #

Present only when the Results have a FAILED Status.

reviewActionDetail_result :: Lens' ReviewActionDetail (Maybe Text) Source #

A description of the outcome of the review.

reviewActionDetail_status :: Lens' ReviewActionDetail (Maybe ReviewActionStatus) Source #

The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or CANCELLED.

reviewActionDetail_targetId :: Lens' ReviewActionDetail (Maybe Text) Source #

The specific HITId or AssignmentID targeted by the action.

ReviewPolicy

reviewPolicy_parameters :: Lens' ReviewPolicy (Maybe [PolicyParameter]) Source #

Name of the parameter from the Review policy.

reviewPolicy_policyName :: Lens' ReviewPolicy Text Source #

Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01

ReviewReport

reviewReport_reviewActions :: Lens' ReviewReport (Maybe [ReviewActionDetail]) Source #

A list of ReviewAction objects for each action specified in the Review Policy.

reviewReport_reviewResults :: Lens' ReviewReport (Maybe [ReviewResultDetail]) Source #

A list of ReviewResults objects for each action specified in the Review Policy.

ReviewResultDetail

reviewResultDetail_actionId :: Lens' ReviewResultDetail (Maybe Text) Source #

A unique identifier of the Review action result.

reviewResultDetail_key :: Lens' ReviewResultDetail (Maybe Text) Source #

Key identifies the particular piece of reviewed information.

reviewResultDetail_questionId :: Lens' ReviewResultDetail (Maybe Text) Source #

Specifies the QuestionId the result is describing. Depending on whether the TargetType is a HIT or Assignment this results could specify multiple values. If TargetType is HIT and QuestionId is absent, then the result describes results of the HIT, including the HIT agreement score. If ObjectType is Assignment and QuestionId is absent, then the result describes the Worker's performance on the HIT.

reviewResultDetail_subjectId :: Lens' ReviewResultDetail (Maybe Text) Source #

The HITID or AssignmentId about which this result was taken. Note that HIT-level Review Policies will often emit results about both the HIT itself and its Assignments, while Assignment-level review policies generally only emit results about the Assignment itself.

reviewResultDetail_subjectType :: Lens' ReviewResultDetail (Maybe Text) Source #

The type of the object from the SubjectId field.

reviewResultDetail_value :: Lens' ReviewResultDetail (Maybe Text) Source #

The values of Key provided by the review policies you have selected.

WorkerBlock

workerBlock_reason :: Lens' WorkerBlock (Maybe Text) Source #

A message explaining the reason the Worker was blocked.

workerBlock_workerId :: Lens' WorkerBlock (Maybe Text) Source #

The ID of the Worker who accepted the HIT.