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

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type CreateHITTypeInput struct { AssignmentDurationInSeconds *int64 `type:"long" required:"true"` AutoApprovalDelayInSeconds *int64 `type:"long"` Description *string `type:"string" required:"true"` Keywords *string `type:"string"` QualificationRequirements []*QualificationRequirement `type:"list"` Reward *string `type:"string" required:"true"` Title *string `type:"string" required:"true"` }


Type: *int64

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.

AssignmentDurationInSeconds is a required field


Type: *int64

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.


Type: *string

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.

Description is a required field


Type: *string

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


The QualificationRequirement data structure describes a Qualification that a Worker must have before the Worker is allowed to accept a HIT. A requirement may optionally state that a Worker must have the Qualification in order to preview the HIT, or see the HIT in search results.


Type: *string

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

Reward is a required field


Type: *string

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.

Title is a required field



func (s CreateHITTypeInput) GoString() string

GoString returns the string representation


func (s *CreateHITTypeInput) SetAssignmentDurationInSeconds(v int64) *CreateHITTypeInput

SetAssignmentDurationInSeconds sets the AssignmentDurationInSeconds field's value.


func (s *CreateHITTypeInput) SetAutoApprovalDelayInSeconds(v int64) *CreateHITTypeInput

SetAutoApprovalDelayInSeconds sets the AutoApprovalDelayInSeconds field's value.


func (s *CreateHITTypeInput) SetDescription(v string) *CreateHITTypeInput

SetDescription sets the Description field's value.


func (s *CreateHITTypeInput) SetKeywords(v string) *CreateHITTypeInput

SetKeywords sets the Keywords field's value.


func (s *CreateHITTypeInput) SetQualificationRequirements(v []*QualificationRequirement) *CreateHITTypeInput

SetQualificationRequirements sets the QualificationRequirements field's value.


func (s *CreateHITTypeInput) SetReward(v string) *CreateHITTypeInput

SetReward sets the Reward field's value.


func (s *CreateHITTypeInput) SetTitle(v string) *CreateHITTypeInput

SetTitle sets the Title field's value.


func (s CreateHITTypeInput) String() string

String returns the string representation


func (s *CreateHITTypeInput) Validate() error

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

On this page: