Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
The CreateHITType
operation creates a new HIT type. This operation allows you to define a standard set of HIT properties to use when creating HITs. If you register a HIT type with values that match an existing HIT type, the HIT type ID of the existing type will be returned.
- createHITType :: Integer -> Text -> Text -> Text -> CreateHITType
- data CreateHITType
- chittAutoApprovalDelayInSeconds :: Lens' CreateHITType (Maybe Integer)
- chittKeywords :: Lens' CreateHITType (Maybe Text)
- chittQualificationRequirements :: Lens' CreateHITType [QualificationRequirement]
- chittAssignmentDurationInSeconds :: Lens' CreateHITType Integer
- chittReward :: Lens' CreateHITType Text
- chittTitle :: Lens' CreateHITType Text
- chittDescription :: Lens' CreateHITType Text
- createHITTypeResponse :: Int -> CreateHITTypeResponse
- data CreateHITTypeResponse
- chittrsHITTypeId :: Lens' CreateHITTypeResponse (Maybe Text)
- chittrsResponseStatus :: Lens' CreateHITTypeResponse Int
Creating a Request
:: Integer | |
-> Text | |
-> Text | |
-> Text | |
-> CreateHITType |
Creates a value of CreateHITType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chittAutoApprovalDelayInSeconds
- 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.chittKeywords
- One or more words or phrases that describe the HIT, separated by commas. These words are used in searches to find HITs.chittQualificationRequirements
- A condition that a Worker's Qualifications must meet before the Worker is allowed to accept and complete the HIT.chittAssignmentDurationInSeconds
- 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.chittReward
- The amount of money the Requester will pay a Worker for successfully completing the HIT.chittTitle
- 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.chittDescription
- 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.
data CreateHITType Source #
See: createHITType
smart constructor.
Request Lenses
chittAutoApprovalDelayInSeconds :: 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.
chittKeywords :: 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.
chittQualificationRequirements :: Lens' CreateHITType [QualificationRequirement] Source #
A condition that a Worker's Qualifications must meet before the Worker is allowed to accept and complete the HIT.
chittAssignmentDurationInSeconds :: 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.
chittReward :: Lens' CreateHITType Text Source #
The amount of money the Requester will pay a Worker for successfully completing the HIT.
chittTitle :: 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.
chittDescription :: 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.
Destructuring the Response
createHITTypeResponse Source #
Creates a value of CreateHITTypeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chittrsHITTypeId
- The ID of the newly registered HIT type.chittrsResponseStatus
- -- | The response status code.
data CreateHITTypeResponse Source #
See: createHITTypeResponse
smart constructor.
Response Lenses
chittrsHITTypeId :: Lens' CreateHITTypeResponse (Maybe Text) Source #
The ID of the newly registered HIT type.
chittrsResponseStatus :: Lens' CreateHITTypeResponse Int Source #
- - | The response status code.