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.Types.HIT

Description

 
Synopsis

Documentation

data HIT Source #

The HIT data structure represents a single HIT, including all the information necessary for a Worker to accept and complete the HIT.

See: newHIT smart constructor.

Constructors

HIT' 

Fields

  • assignmentDurationInSeconds :: Maybe Integer

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

  • autoApprovalDelayInSeconds :: Maybe Integer

    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.

  • creationTime :: Maybe POSIX

    The date and time the HIT was created.

  • description :: Maybe Text

    A general description of the HIT.

  • expiration :: Maybe POSIX

    The date and time the HIT expires.

  • hITGroupId :: Maybe Text

    The ID of the HIT Group of this HIT.

  • hITId :: Maybe Text

    A unique identifier for the HIT.

  • hITLayoutId :: Maybe Text

    The ID of the HIT Layout of this HIT.

  • hITReviewStatus :: Maybe HITReviewStatus

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

  • hITStatus :: Maybe HITStatus

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

  • hITTypeId :: Maybe Text

    The ID of the HIT type of this HIT

  • keywords :: Maybe Text

    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.

  • maxAssignments :: Maybe Int

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

  • numberOfAssignmentsAvailable :: Maybe Int

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

  • numberOfAssignmentsCompleted :: Maybe Int

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

  • numberOfAssignmentsPending :: Maybe Int

    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.

  • qualificationRequirements :: Maybe [QualificationRequirement]

    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.

  • question :: Maybe Text

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

  • requesterAnnotation :: Maybe Text

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

  • reward :: Maybe Text
     
  • title :: Maybe Text

    The title of the HIT.

Instances

Instances details
FromJSON HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Generic HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Associated Types

type Rep HIT :: Type -> Type #

Methods

from :: HIT -> Rep HIT x #

to :: Rep HIT x -> HIT #

Read HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Show HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Methods

showsPrec :: Int -> HIT -> ShowS #

show :: HIT -> String #

showList :: [HIT] -> ShowS #

NFData HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Methods

rnf :: HIT -> () #

Eq HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Methods

(==) :: HIT -> HIT -> Bool #

(/=) :: HIT -> HIT -> Bool #

Hashable HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

Methods

hashWithSalt :: Int -> HIT -> Int #

hash :: HIT -> Int #

type Rep HIT Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.HIT

type Rep HIT = D1 ('MetaData "HIT" "Amazonka.MechanicalTurk.Types.HIT" "amazonka-mechanicalturk-2.0-7Thix2UjvlJINPIH68shk3" 'False) (C1 ('MetaCons "HIT'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "assignmentDurationInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "autoApprovalDelayInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "expiration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "hITGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "hITId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "hITLayoutId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "hITReviewStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HITReviewStatus)) :*: S1 ('MetaSel ('Just "hITStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HITStatus)))))) :*: (((S1 ('MetaSel ('Just "hITTypeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "keywords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxAssignments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "numberOfAssignmentsAvailable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "numberOfAssignmentsCompleted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: ((S1 ('MetaSel ('Just "numberOfAssignmentsPending") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "qualificationRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [QualificationRequirement])) :*: S1 ('MetaSel ('Just "question") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "requesterAnnotation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "reward") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))))

newHIT :: HIT Source #

Create a value of HIT with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:assignmentDurationInSeconds:HIT', hit_assignmentDurationInSeconds - The length of time, in seconds, that a Worker has to complete the HIT after accepting it.

$sel:autoApprovalDelayInSeconds:HIT', hit_autoApprovalDelayInSeconds - 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.

$sel:creationTime:HIT', hit_creationTime - The date and time the HIT was created.

$sel:description:HIT', hit_description - A general description of the HIT.

$sel:expiration:HIT', hit_expiration - The date and time the HIT expires.

$sel:hITGroupId:HIT', hit_hITGroupId - The ID of the HIT Group of this HIT.

$sel:hITId:HIT', hit_hITId - A unique identifier for the HIT.

$sel:hITLayoutId:HIT', hit_hITLayoutId - The ID of the HIT Layout of this HIT.

$sel:hITReviewStatus:HIT', hit_hITReviewStatus - Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.

$sel:hITStatus:HIT', hit_hITStatus - The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.

$sel:hITTypeId:HIT', hit_hITTypeId - The ID of the HIT type of this HIT

$sel:keywords:HIT', hit_keywords - 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.

$sel:maxAssignments:HIT', hit_maxAssignments - The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

$sel:numberOfAssignmentsAvailable:HIT', hit_numberOfAssignmentsAvailable - The number of assignments for this HIT that are available for Workers to accept.

$sel:numberOfAssignmentsCompleted:HIT', hit_numberOfAssignmentsCompleted - The number of assignments for this HIT that have been approved or rejected.

$sel:numberOfAssignmentsPending:HIT', hit_numberOfAssignmentsPending - 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.

$sel:qualificationRequirements:HIT', hit_qualificationRequirements - 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.

$sel:question:HIT', hit_question - The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.

$sel:requesterAnnotation:HIT', hit_requesterAnnotation - An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.

$sel:reward:HIT', hit_reward - Undocumented member.

$sel:title:HIT', hit_title - The title of the 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.