Documentation ¶
Overview ¶
Package mturk provides the client and types for making API requests to Amazon Mechanical Turk.
Amazon Mechanical Turk API Reference ¶
See https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17 for more information on this service.
See mturk package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/mturk/
Using the Client ¶
To Amazon Mechanical Turk with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the Amazon Mechanical Turk client MTurk for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/mturk/#New
Index ¶
- Constants
- type AcceptQualificationRequestInput
- type AcceptQualificationRequestOutput
- type AcceptQualificationRequestRequest
- type ApproveAssignmentInput
- type ApproveAssignmentOutput
- type ApproveAssignmentRequest
- type Assignment
- type AssignmentStatus
- type AssociateQualificationWithWorkerInput
- type AssociateQualificationWithWorkerOutput
- type AssociateQualificationWithWorkerRequest
- type BonusPayment
- type Comparator
- type CreateAdditionalAssignmentsForHITInput
- type CreateAdditionalAssignmentsForHITOutput
- type CreateAdditionalAssignmentsForHITRequest
- type CreateHITInput
- type CreateHITOutput
- type CreateHITRequest
- type CreateHITTypeInput
- type CreateHITTypeOutput
- type CreateHITTypeRequest
- type CreateHITWithHITTypeInput
- type CreateHITWithHITTypeOutput
- type CreateHITWithHITTypeRequest
- type CreateQualificationTypeInput
- type CreateQualificationTypeOutput
- type CreateQualificationTypeRequest
- type CreateWorkerBlockInput
- type CreateWorkerBlockOutput
- type CreateWorkerBlockRequest
- type DeleteHITInput
- type DeleteHITOutput
- type DeleteHITRequest
- type DeleteQualificationTypeInput
- type DeleteQualificationTypeOutput
- type DeleteQualificationTypeRequest
- type DeleteWorkerBlockInput
- type DeleteWorkerBlockOutput
- type DeleteWorkerBlockRequest
- type DisassociateQualificationFromWorkerInput
- type DisassociateQualificationFromWorkerOutput
- type DisassociateQualificationFromWorkerRequest
- type EventType
- type GetAccountBalanceInput
- type GetAccountBalanceOutput
- type GetAccountBalanceRequest
- type GetAssignmentInput
- type GetAssignmentOutput
- type GetAssignmentRequest
- type GetFileUploadURLInput
- type GetFileUploadURLOutput
- type GetFileUploadURLRequest
- type GetHITInput
- type GetHITOutput
- type GetHITRequest
- type GetQualificationScoreInput
- type GetQualificationScoreOutput
- type GetQualificationScoreRequest
- type GetQualificationTypeInput
- type GetQualificationTypeOutput
- type GetQualificationTypeRequest
- type HIT
- type HITAccessActions
- type HITLayoutParameter
- type HITReviewStatus
- type HITStatus
- type ListAssignmentsForHITInput
- type ListAssignmentsForHITOutput
- type ListAssignmentsForHITPager
- type ListAssignmentsForHITRequest
- type ListBonusPaymentsInput
- type ListBonusPaymentsOutput
- type ListBonusPaymentsPager
- type ListBonusPaymentsRequest
- type ListHITsForQualificationTypeInput
- type ListHITsForQualificationTypeOutput
- type ListHITsForQualificationTypePager
- type ListHITsForQualificationTypeRequest
- type ListHITsInput
- type ListHITsOutput
- type ListHITsPager
- type ListHITsRequest
- type ListQualificationRequestsInput
- type ListQualificationRequestsOutput
- type ListQualificationRequestsPager
- type ListQualificationRequestsRequest
- type ListQualificationTypesInput
- type ListQualificationTypesOutput
- type ListQualificationTypesPager
- type ListQualificationTypesRequest
- type ListReviewPolicyResultsForHITInput
- type ListReviewPolicyResultsForHITOutput
- type ListReviewPolicyResultsForHITPager
- type ListReviewPolicyResultsForHITRequest
- type ListReviewableHITsInput
- type ListReviewableHITsOutput
- type ListReviewableHITsPager
- type ListReviewableHITsRequest
- type ListWorkerBlocksInput
- type ListWorkerBlocksOutput
- type ListWorkerBlocksPager
- type ListWorkerBlocksRequest
- type ListWorkersWithQualificationTypeInput
- type ListWorkersWithQualificationTypeOutput
- type ListWorkersWithQualificationTypePager
- type ListWorkersWithQualificationTypeRequest
- type Locale
- type MTurk
- func (c *MTurk) AcceptQualificationRequestRequest(input *AcceptQualificationRequestInput) AcceptQualificationRequestRequest
- func (c *MTurk) ApproveAssignmentRequest(input *ApproveAssignmentInput) ApproveAssignmentRequest
- func (c *MTurk) AssociateQualificationWithWorkerRequest(input *AssociateQualificationWithWorkerInput) AssociateQualificationWithWorkerRequest
- func (c *MTurk) CreateAdditionalAssignmentsForHITRequest(input *CreateAdditionalAssignmentsForHITInput) CreateAdditionalAssignmentsForHITRequest
- func (c *MTurk) CreateHITRequest(input *CreateHITInput) CreateHITRequest
- func (c *MTurk) CreateHITTypeRequest(input *CreateHITTypeInput) CreateHITTypeRequest
- func (c *MTurk) CreateHITWithHITTypeRequest(input *CreateHITWithHITTypeInput) CreateHITWithHITTypeRequest
- func (c *MTurk) CreateQualificationTypeRequest(input *CreateQualificationTypeInput) CreateQualificationTypeRequest
- func (c *MTurk) CreateWorkerBlockRequest(input *CreateWorkerBlockInput) CreateWorkerBlockRequest
- func (c *MTurk) DeleteHITRequest(input *DeleteHITInput) DeleteHITRequest
- func (c *MTurk) DeleteQualificationTypeRequest(input *DeleteQualificationTypeInput) DeleteQualificationTypeRequest
- func (c *MTurk) DeleteWorkerBlockRequest(input *DeleteWorkerBlockInput) DeleteWorkerBlockRequest
- func (c *MTurk) DisassociateQualificationFromWorkerRequest(input *DisassociateQualificationFromWorkerInput) DisassociateQualificationFromWorkerRequest
- func (c *MTurk) GetAccountBalanceRequest(input *GetAccountBalanceInput) GetAccountBalanceRequest
- func (c *MTurk) GetAssignmentRequest(input *GetAssignmentInput) GetAssignmentRequest
- func (c *MTurk) GetFileUploadURLRequest(input *GetFileUploadURLInput) GetFileUploadURLRequest
- func (c *MTurk) GetHITRequest(input *GetHITInput) GetHITRequest
- func (c *MTurk) GetQualificationScoreRequest(input *GetQualificationScoreInput) GetQualificationScoreRequest
- func (c *MTurk) GetQualificationTypeRequest(input *GetQualificationTypeInput) GetQualificationTypeRequest
- func (c *MTurk) ListAssignmentsForHITRequest(input *ListAssignmentsForHITInput) ListAssignmentsForHITRequest
- func (c *MTurk) ListBonusPaymentsRequest(input *ListBonusPaymentsInput) ListBonusPaymentsRequest
- func (c *MTurk) ListHITsForQualificationTypeRequest(input *ListHITsForQualificationTypeInput) ListHITsForQualificationTypeRequest
- func (c *MTurk) ListHITsRequest(input *ListHITsInput) ListHITsRequest
- func (c *MTurk) ListQualificationRequestsRequest(input *ListQualificationRequestsInput) ListQualificationRequestsRequest
- func (c *MTurk) ListQualificationTypesRequest(input *ListQualificationTypesInput) ListQualificationTypesRequest
- func (c *MTurk) ListReviewPolicyResultsForHITRequest(input *ListReviewPolicyResultsForHITInput) ListReviewPolicyResultsForHITRequest
- func (c *MTurk) ListReviewableHITsRequest(input *ListReviewableHITsInput) ListReviewableHITsRequest
- func (c *MTurk) ListWorkerBlocksRequest(input *ListWorkerBlocksInput) ListWorkerBlocksRequest
- func (c *MTurk) ListWorkersWithQualificationTypeRequest(input *ListWorkersWithQualificationTypeInput) ListWorkersWithQualificationTypeRequest
- func (c *MTurk) NotifyWorkersRequest(input *NotifyWorkersInput) NotifyWorkersRequest
- func (c *MTurk) RejectAssignmentRequest(input *RejectAssignmentInput) RejectAssignmentRequest
- func (c *MTurk) RejectQualificationRequestRequest(input *RejectQualificationRequestInput) RejectQualificationRequestRequest
- func (c *MTurk) SendBonusRequest(input *SendBonusInput) SendBonusRequest
- func (c *MTurk) SendTestEventNotificationRequest(input *SendTestEventNotificationInput) SendTestEventNotificationRequest
- func (c *MTurk) UpdateExpirationForHITRequest(input *UpdateExpirationForHITInput) UpdateExpirationForHITRequest
- func (c *MTurk) UpdateHITReviewStatusRequest(input *UpdateHITReviewStatusInput) UpdateHITReviewStatusRequest
- func (c *MTurk) UpdateHITTypeOfHITRequest(input *UpdateHITTypeOfHITInput) UpdateHITTypeOfHITRequest
- func (c *MTurk) UpdateNotificationSettingsRequest(input *UpdateNotificationSettingsInput) UpdateNotificationSettingsRequest
- func (c *MTurk) UpdateQualificationTypeRequest(input *UpdateQualificationTypeInput) UpdateQualificationTypeRequest
- type NotificationSpecification
- type NotificationTransport
- type NotifyWorkersFailureCode
- type NotifyWorkersFailureStatus
- type NotifyWorkersInput
- type NotifyWorkersOutput
- type NotifyWorkersRequest
- type ParameterMapEntry
- type PolicyParameter
- type Qualification
- type QualificationRequest
- type QualificationRequirement
- type QualificationStatus
- type QualificationType
- type QualificationTypeStatus
- type RejectAssignmentInput
- type RejectAssignmentOutput
- type RejectAssignmentRequest
- type RejectQualificationRequestInput
- type RejectQualificationRequestOutput
- type RejectQualificationRequestRequest
- type ReviewActionDetail
- type ReviewActionStatus
- type ReviewPolicy
- type ReviewPolicyLevel
- type ReviewReport
- type ReviewResultDetail
- type ReviewableHITStatus
- type SendBonusInput
- type SendBonusOutput
- type SendBonusRequest
- type SendTestEventNotificationInput
- type SendTestEventNotificationOutput
- type SendTestEventNotificationRequest
- type UpdateExpirationForHITInput
- type UpdateExpirationForHITOutput
- type UpdateExpirationForHITRequest
- type UpdateHITReviewStatusInput
- type UpdateHITReviewStatusOutput
- type UpdateHITReviewStatusRequest
- type UpdateHITTypeOfHITInput
- type UpdateHITTypeOfHITOutput
- type UpdateHITTypeOfHITRequest
- type UpdateNotificationSettingsInput
- type UpdateNotificationSettingsOutput
- type UpdateNotificationSettingsRequest
- type UpdateQualificationTypeInput
- type UpdateQualificationTypeOutput
- type UpdateQualificationTypeRequest
- type WorkerBlock
Constants ¶
const ( // ErrCodeRequestError for service response error code // "RequestError". // // Your request is invalid. ErrCodeRequestError = "RequestError" // ErrCodeServiceFault for service response error code // "ServiceFault". // // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. ErrCodeServiceFault = "ServiceFault" )
const ( ServiceName = "mturk-requester" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptQualificationRequestInput ¶
type AcceptQualificationRequestInput struct { // 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. IntegerValue *int64 `type:"integer"` // The ID of the Qualification request, as returned by the GetQualificationRequests // operation. // // QualificationRequestId is a required field QualificationRequestId *string `type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequestRequest
func (AcceptQualificationRequestInput) GoString ¶
func (s AcceptQualificationRequestInput) GoString() string
GoString returns the string representation
func (AcceptQualificationRequestInput) String ¶
func (s AcceptQualificationRequestInput) String() string
String returns the string representation
func (*AcceptQualificationRequestInput) Validate ¶
func (s *AcceptQualificationRequestInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AcceptQualificationRequestOutput ¶
type AcceptQualificationRequestOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequestResponse
func (AcceptQualificationRequestOutput) GoString ¶
func (s AcceptQualificationRequestOutput) GoString() string
GoString returns the string representation
func (AcceptQualificationRequestOutput) SDKResponseMetadata ¶
func (s AcceptQualificationRequestOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (AcceptQualificationRequestOutput) String ¶
func (s AcceptQualificationRequestOutput) String() string
String returns the string representation
type AcceptQualificationRequestRequest ¶
type AcceptQualificationRequestRequest struct { *aws.Request Input *AcceptQualificationRequestInput Copy func(*AcceptQualificationRequestInput) AcceptQualificationRequestRequest }
AcceptQualificationRequestRequest is a API request type for the AcceptQualificationRequest API operation.
func (AcceptQualificationRequestRequest) Send ¶
func (r AcceptQualificationRequestRequest) Send() (*AcceptQualificationRequestOutput, error)
Send marshals and sends the AcceptQualificationRequest API request.
type ApproveAssignmentInput ¶
type ApproveAssignmentInput struct { // The ID of the assignment. The assignment must correspond to a HIT created // by the Requester. // // AssignmentId is a required field AssignmentId *string `min:"1" type:"string" required:"true"` // A flag indicating that an assignment should be approved even if it was previously // rejected. Defaults to False. OverrideRejection *bool `type:"boolean"` // A message for the Worker, which the Worker can see in the Status section // of the web site. RequesterFeedback *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignmentRequest
func (ApproveAssignmentInput) GoString ¶
func (s ApproveAssignmentInput) GoString() string
GoString returns the string representation
func (ApproveAssignmentInput) String ¶
func (s ApproveAssignmentInput) String() string
String returns the string representation
func (*ApproveAssignmentInput) Validate ¶
func (s *ApproveAssignmentInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ApproveAssignmentOutput ¶
type ApproveAssignmentOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignmentResponse
func (ApproveAssignmentOutput) GoString ¶
func (s ApproveAssignmentOutput) GoString() string
GoString returns the string representation
func (ApproveAssignmentOutput) SDKResponseMetadata ¶
func (s ApproveAssignmentOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ApproveAssignmentOutput) String ¶
func (s ApproveAssignmentOutput) String() string
String returns the string representation
type ApproveAssignmentRequest ¶
type ApproveAssignmentRequest struct { *aws.Request Input *ApproveAssignmentInput Copy func(*ApproveAssignmentInput) ApproveAssignmentRequest }
ApproveAssignmentRequest is a API request type for the ApproveAssignment API operation.
func (ApproveAssignmentRequest) Send ¶
func (r ApproveAssignmentRequest) Send() (*ApproveAssignmentOutput, error)
Send marshals and sends the ApproveAssignment API request.
type Assignment ¶
type Assignment struct { // The date and time the Worker accepted the assignment. AcceptTime *time.Time `type:"timestamp" timestampFormat:"unix"` // 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. Answer *string `type:"string"` // 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. ApprovalTime *time.Time `type:"timestamp" timestampFormat:"unix"` // A unique identifier for the assignment. AssignmentId *string `min:"1" type:"string"` // The status of the assignment. AssignmentStatus AssignmentStatus `type:"string" enum:"true"` // 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. AutoApprovalTime *time.Time `type:"timestamp" timestampFormat:"unix"` // 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. Deadline *time.Time `type:"timestamp" timestampFormat:"unix"` // The ID of the HIT. HITId *string `min:"1" type:"string"` // If the Worker has submitted results and the Requester has rejected the results, // RejectionTime is the date and time the Requester rejected the results. RejectionTime *time.Time `type:"timestamp" timestampFormat:"unix"` // 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. RequesterFeedback *string `type:"string"` // 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. SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The ID of the Worker who accepted the HIT. WorkerId *string `min:"1" type:"string"` // contains filtered or unexported fields }
The Assignment data structure represents a single assignment of a HIT to a Worker. The assignment tracks the Worker's efforts to complete the HIT, and contains the results for later retrieval. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Assignment
func (Assignment) GoString ¶
func (s Assignment) GoString() string
GoString returns the string representation
func (Assignment) String ¶
func (s Assignment) String() string
String returns the string representation
type AssignmentStatus ¶
type AssignmentStatus string
const ( AssignmentStatusSubmitted AssignmentStatus = "Submitted" AssignmentStatusApproved AssignmentStatus = "Approved" AssignmentStatusRejected AssignmentStatus = "Rejected" )
Enum values for AssignmentStatus
func (AssignmentStatus) MarshalValue ¶ added in v0.3.0
func (enum AssignmentStatus) MarshalValue() (string, error)
func (AssignmentStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum AssignmentStatus) MarshalValueBuf(b []byte) ([]byte, error)
type AssociateQualificationWithWorkerInput ¶
type AssociateQualificationWithWorkerInput struct { // The value of the Qualification to assign. IntegerValue *int64 `type:"integer"` // The ID of the Qualification type to use for the assigned Qualification. // // QualificationTypeId is a required field QualificationTypeId *string `min:"1" type:"string" required:"true"` // 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. SendNotification *bool `type:"boolean"` // The ID of the Worker to whom the Qualification is being assigned. Worker // IDs are included with submitted HIT assignments and Qualification requests. // // WorkerId is a required field WorkerId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorkerRequest
func (AssociateQualificationWithWorkerInput) GoString ¶
func (s AssociateQualificationWithWorkerInput) GoString() string
GoString returns the string representation
func (AssociateQualificationWithWorkerInput) String ¶
func (s AssociateQualificationWithWorkerInput) String() string
String returns the string representation
func (*AssociateQualificationWithWorkerInput) Validate ¶
func (s *AssociateQualificationWithWorkerInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AssociateQualificationWithWorkerOutput ¶
type AssociateQualificationWithWorkerOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorkerResponse
func (AssociateQualificationWithWorkerOutput) GoString ¶
func (s AssociateQualificationWithWorkerOutput) GoString() string
GoString returns the string representation
func (AssociateQualificationWithWorkerOutput) SDKResponseMetadata ¶
func (s AssociateQualificationWithWorkerOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (AssociateQualificationWithWorkerOutput) String ¶
func (s AssociateQualificationWithWorkerOutput) String() string
String returns the string representation
type AssociateQualificationWithWorkerRequest ¶
type AssociateQualificationWithWorkerRequest struct { *aws.Request Input *AssociateQualificationWithWorkerInput Copy func(*AssociateQualificationWithWorkerInput) AssociateQualificationWithWorkerRequest }
AssociateQualificationWithWorkerRequest is a API request type for the AssociateQualificationWithWorker API operation.
func (AssociateQualificationWithWorkerRequest) Send ¶
func (r AssociateQualificationWithWorkerRequest) Send() (*AssociateQualificationWithWorkerOutput, error)
Send marshals and sends the AssociateQualificationWithWorker API request.
type BonusPayment ¶
type BonusPayment struct { // The ID of the assignment associated with this bonus payment. AssignmentId *string `min:"1" type:"string"` // A string representing a currency amount. BonusAmount *string `type:"string"` // The date and time of when the bonus was granted. GrantTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The Reason text given when the bonus was granted, if any. Reason *string `type:"string"` // The ID of the Worker to whom the bonus was paid. WorkerId *string `min:"1" type:"string"` // contains filtered or unexported fields }
An object representing a Bonus payment paid to a Worker. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/BonusPayment
func (BonusPayment) GoString ¶
func (s BonusPayment) GoString() string
GoString returns the string representation
func (BonusPayment) String ¶
func (s BonusPayment) String() string
String returns the string representation
type Comparator ¶
type Comparator string
const ( ComparatorLessThan Comparator = "LessThan" ComparatorLessThanOrEqualTo Comparator = "LessThanOrEqualTo" ComparatorGreaterThan Comparator = "GreaterThan" ComparatorGreaterThanOrEqualTo Comparator = "GreaterThanOrEqualTo" ComparatorEqualTo Comparator = "EqualTo" ComparatorNotEqualTo Comparator = "NotEqualTo" ComparatorExists Comparator = "Exists" ComparatorDoesNotExist Comparator = "DoesNotExist" ComparatorIn Comparator = "In" ComparatorNotIn Comparator = "NotIn" )
Enum values for Comparator
func (Comparator) MarshalValue ¶ added in v0.3.0
func (enum Comparator) MarshalValue() (string, error)
func (Comparator) MarshalValueBuf ¶ added in v0.3.0
func (enum Comparator) MarshalValueBuf(b []byte) ([]byte, error)
type CreateAdditionalAssignmentsForHITInput ¶
type CreateAdditionalAssignmentsForHITInput struct { // The ID of the HIT to extend. // // HITId is a required field HITId *string `min:"1" type:"string" required:"true"` // The number of additional assignments to request for this HIT. // // NumberOfAdditionalAssignments is a required field NumberOfAdditionalAssignments *int64 `type:"integer" required:"true"` // 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. UniqueRequestToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHITRequest
func (CreateAdditionalAssignmentsForHITInput) GoString ¶
func (s CreateAdditionalAssignmentsForHITInput) GoString() string
GoString returns the string representation
func (CreateAdditionalAssignmentsForHITInput) String ¶
func (s CreateAdditionalAssignmentsForHITInput) String() string
String returns the string representation
func (*CreateAdditionalAssignmentsForHITInput) Validate ¶
func (s *CreateAdditionalAssignmentsForHITInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateAdditionalAssignmentsForHITOutput ¶
type CreateAdditionalAssignmentsForHITOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHITResponse
func (CreateAdditionalAssignmentsForHITOutput) GoString ¶
func (s CreateAdditionalAssignmentsForHITOutput) GoString() string
GoString returns the string representation
func (CreateAdditionalAssignmentsForHITOutput) SDKResponseMetadata ¶
func (s CreateAdditionalAssignmentsForHITOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateAdditionalAssignmentsForHITOutput) String ¶
func (s CreateAdditionalAssignmentsForHITOutput) String() string
String returns the string representation
type CreateAdditionalAssignmentsForHITRequest ¶
type CreateAdditionalAssignmentsForHITRequest struct { *aws.Request Input *CreateAdditionalAssignmentsForHITInput Copy func(*CreateAdditionalAssignmentsForHITInput) CreateAdditionalAssignmentsForHITRequest }
CreateAdditionalAssignmentsForHITRequest is a API request type for the CreateAdditionalAssignmentsForHIT API operation.
func (CreateAdditionalAssignmentsForHITRequest) Send ¶
func (r CreateAdditionalAssignmentsForHITRequest) Send() (*CreateAdditionalAssignmentsForHITOutput, error)
Send marshals and sends the CreateAdditionalAssignmentsForHIT API request.
type CreateHITInput ¶
type CreateHITInput struct { // 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 AssignmentDurationInSeconds *int64 `type:"long" required:"true"` // 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. AssignmentReviewPolicy *ReviewPolicy `type:"structure"` // 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. AutoApprovalDelayInSeconds *int64 `type:"long"` // 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 Description *string `type:"string" required:"true"` // 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. HITLayoutId *string `min:"1" type:"string"` // If the HITLayoutId is provided, any placeholder values must be filled in // with values using the HITLayoutParameter structure. For more information, // see HITLayout. HITLayoutParameters []HITLayoutParameter `type:"list"` // The HIT-level Review Policy applies to the HIT. You can specify for Mechanical // Turk to take various actions based on the policy. HITReviewPolicy *ReviewPolicy `type:"structure"` // One or more words or phrases that describe the HIT, separated by commas. // These words are used in searches to find HITs. Keywords *string `type:"string"` // 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. // // LifetimeInSeconds is a required field LifetimeInSeconds *int64 `type:"long" required:"true"` // The number of times the HIT can be accepted and completed before the HIT // becomes unavailable. MaxAssignments *int64 `type:"integer"` // 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. QualificationRequirements []QualificationRequirement `type:"list"` // 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. Question *string `type:"string"` // 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. RequesterAnnotation *string `type:"string"` // The amount of money the Requester will pay a Worker for successfully completing // the HIT. // // Reward is a required field Reward *string `type:"string" required:"true"` // 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 Title *string `type:"string" required:"true"` // 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. UniqueRequestToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITRequest
func (CreateHITInput) GoString ¶
func (s CreateHITInput) GoString() string
GoString returns the string representation
func (CreateHITInput) String ¶
func (s CreateHITInput) String() string
String returns the string representation
func (*CreateHITInput) Validate ¶
func (s *CreateHITInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateHITOutput ¶
type CreateHITOutput struct { // 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. HIT *HIT `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITResponse
func (CreateHITOutput) GoString ¶
func (s CreateHITOutput) GoString() string
GoString returns the string representation
func (CreateHITOutput) SDKResponseMetadata ¶
func (s CreateHITOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateHITOutput) String ¶
func (s CreateHITOutput) String() string
String returns the string representation
type CreateHITRequest ¶
type CreateHITRequest struct { *aws.Request Input *CreateHITInput Copy func(*CreateHITInput) CreateHITRequest }
CreateHITRequest is a API request type for the CreateHIT API operation.
func (CreateHITRequest) Send ¶
func (r CreateHITRequest) Send() (*CreateHITOutput, error)
Send marshals and sends the CreateHIT API request.
type CreateHITTypeInput ¶
type CreateHITTypeInput struct { // 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 AssignmentDurationInSeconds *int64 `type:"long" required:"true"` // 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. AutoApprovalDelayInSeconds *int64 `type:"long"` // 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 Description *string `type:"string" required:"true"` // One or more words or phrases that describe the HIT, separated by commas. // These words are used in searches to find HITs. Keywords *string `type:"string"` // 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. QualificationRequirements []QualificationRequirement `type:"list"` // The amount of money the Requester will pay a Worker for successfully completing // the HIT. // // Reward is a required field Reward *string `type:"string" required:"true"` // 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 Title *string `type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITTypeRequest
func (CreateHITTypeInput) GoString ¶
func (s CreateHITTypeInput) GoString() string
GoString returns the string representation
func (CreateHITTypeInput) String ¶
func (s CreateHITTypeInput) String() string
String returns the string representation
func (*CreateHITTypeInput) Validate ¶
func (s *CreateHITTypeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateHITTypeOutput ¶
type CreateHITTypeOutput struct { // The ID of the newly registered HIT type. HITTypeId *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITTypeResponse
func (CreateHITTypeOutput) GoString ¶
func (s CreateHITTypeOutput) GoString() string
GoString returns the string representation
func (CreateHITTypeOutput) SDKResponseMetadata ¶
func (s CreateHITTypeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateHITTypeOutput) String ¶
func (s CreateHITTypeOutput) String() string
String returns the string representation
type CreateHITTypeRequest ¶
type CreateHITTypeRequest struct { *aws.Request Input *CreateHITTypeInput Copy func(*CreateHITTypeInput) CreateHITTypeRequest }
CreateHITTypeRequest is a API request type for the CreateHITType API operation.
func (CreateHITTypeRequest) Send ¶
func (r CreateHITTypeRequest) Send() (*CreateHITTypeOutput, error)
Send marshals and sends the CreateHITType API request.
type CreateHITWithHITTypeInput ¶
type CreateHITWithHITTypeInput struct { // 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. AssignmentReviewPolicy *ReviewPolicy `type:"structure"` // 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. HITLayoutId *string `min:"1" type:"string"` // If the HITLayoutId is provided, any placeholder values must be filled in // with values using the HITLayoutParameter structure. For more information, // see HITLayout. HITLayoutParameters []HITLayoutParameter `type:"list"` // The HIT-level Review Policy applies to the HIT. You can specify for Mechanical // Turk to take various actions based on the policy. HITReviewPolicy *ReviewPolicy `type:"structure"` // The HIT type ID you want to create this HIT with. // // HITTypeId is a required field HITTypeId *string `min:"1" type:"string" required:"true"` // 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. // // LifetimeInSeconds is a required field LifetimeInSeconds *int64 `type:"long" required:"true"` // The number of times the HIT can be accepted and completed before the HIT // becomes unavailable. MaxAssignments *int64 `type:"integer"` // 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. Question *string `type:"string"` // 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. RequesterAnnotation *string `type:"string"` // 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. UniqueRequestToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITTypeRequest
func (CreateHITWithHITTypeInput) GoString ¶
func (s CreateHITWithHITTypeInput) GoString() string
GoString returns the string representation
func (CreateHITWithHITTypeInput) String ¶
func (s CreateHITWithHITTypeInput) String() string
String returns the string representation
func (*CreateHITWithHITTypeInput) Validate ¶
func (s *CreateHITWithHITTypeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateHITWithHITTypeOutput ¶
type CreateHITWithHITTypeOutput struct { // 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. HIT *HIT `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITTypeResponse
func (CreateHITWithHITTypeOutput) GoString ¶
func (s CreateHITWithHITTypeOutput) GoString() string
GoString returns the string representation
func (CreateHITWithHITTypeOutput) SDKResponseMetadata ¶
func (s CreateHITWithHITTypeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateHITWithHITTypeOutput) String ¶
func (s CreateHITWithHITTypeOutput) String() string
String returns the string representation
type CreateHITWithHITTypeRequest ¶
type CreateHITWithHITTypeRequest struct { *aws.Request Input *CreateHITWithHITTypeInput Copy func(*CreateHITWithHITTypeInput) CreateHITWithHITTypeRequest }
CreateHITWithHITTypeRequest is a API request type for the CreateHITWithHITType API operation.
func (CreateHITWithHITTypeRequest) Send ¶
func (r CreateHITWithHITTypeRequest) Send() (*CreateHITWithHITTypeOutput, error)
Send marshals and sends the CreateHITWithHITType API request.
type CreateQualificationTypeInput ¶
type CreateQualificationTypeInput struct { // 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. AnswerKey *string `type:"string"` // 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. AutoGranted *bool `type:"boolean"` // The Qualification value to use for automatically granted Qualifications. // This parameter is used only if the AutoGranted parameter is true. AutoGrantedValue *int64 `type:"integer"` // 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. // // Description is a required field Description *string `type:"string" required:"true"` // 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. Keywords *string `type:"string"` // 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. // // Name is a required field Name *string `type:"string" required:"true"` // The initial status of the Qualification type. // // Constraints: Valid values are: Active | Inactive // // QualificationTypeStatus is a required field QualificationTypeStatus QualificationTypeStatus `type:"string" required:"true" enum:"true"` // 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. RetryDelayInSeconds *int64 `type:"long"` // 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. Test *string `type:"string"` // The number of seconds the Worker has to complete the Qualification test, // starting from the time the Worker requests the Qualification. TestDurationInSeconds *int64 `type:"long"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationTypeRequest
func (CreateQualificationTypeInput) GoString ¶
func (s CreateQualificationTypeInput) GoString() string
GoString returns the string representation
func (CreateQualificationTypeInput) String ¶
func (s CreateQualificationTypeInput) String() string
String returns the string representation
func (*CreateQualificationTypeInput) Validate ¶
func (s *CreateQualificationTypeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateQualificationTypeOutput ¶
type CreateQualificationTypeOutput struct { // The created Qualification type, returned as a QualificationType data structure. QualificationType *QualificationType `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationTypeResponse
func (CreateQualificationTypeOutput) GoString ¶
func (s CreateQualificationTypeOutput) GoString() string
GoString returns the string representation
func (CreateQualificationTypeOutput) SDKResponseMetadata ¶
func (s CreateQualificationTypeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateQualificationTypeOutput) String ¶
func (s CreateQualificationTypeOutput) String() string
String returns the string representation
type CreateQualificationTypeRequest ¶
type CreateQualificationTypeRequest struct { *aws.Request Input *CreateQualificationTypeInput Copy func(*CreateQualificationTypeInput) CreateQualificationTypeRequest }
CreateQualificationTypeRequest is a API request type for the CreateQualificationType API operation.
func (CreateQualificationTypeRequest) Send ¶
func (r CreateQualificationTypeRequest) Send() (*CreateQualificationTypeOutput, error)
Send marshals and sends the CreateQualificationType API request.
type CreateWorkerBlockInput ¶
type CreateWorkerBlockInput struct { // 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. // // Reason is a required field Reason *string `type:"string" required:"true"` // The ID of the Worker to block. // // WorkerId is a required field WorkerId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlockRequest
func (CreateWorkerBlockInput) GoString ¶
func (s CreateWorkerBlockInput) GoString() string
GoString returns the string representation
func (CreateWorkerBlockInput) String ¶
func (s CreateWorkerBlockInput) String() string
String returns the string representation
func (*CreateWorkerBlockInput) Validate ¶
func (s *CreateWorkerBlockInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateWorkerBlockOutput ¶
type CreateWorkerBlockOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlockResponse
func (CreateWorkerBlockOutput) GoString ¶
func (s CreateWorkerBlockOutput) GoString() string
GoString returns the string representation
func (CreateWorkerBlockOutput) SDKResponseMetadata ¶
func (s CreateWorkerBlockOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateWorkerBlockOutput) String ¶
func (s CreateWorkerBlockOutput) String() string
String returns the string representation
type CreateWorkerBlockRequest ¶
type CreateWorkerBlockRequest struct { *aws.Request Input *CreateWorkerBlockInput Copy func(*CreateWorkerBlockInput) CreateWorkerBlockRequest }
CreateWorkerBlockRequest is a API request type for the CreateWorkerBlock API operation.
func (CreateWorkerBlockRequest) Send ¶
func (r CreateWorkerBlockRequest) Send() (*CreateWorkerBlockOutput, error)
Send marshals and sends the CreateWorkerBlock API request.
type DeleteHITInput ¶
type DeleteHITInput struct { // The ID of the HIT to be deleted. // // HITId is a required field HITId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHITRequest
func (DeleteHITInput) GoString ¶
func (s DeleteHITInput) GoString() string
GoString returns the string representation
func (DeleteHITInput) String ¶
func (s DeleteHITInput) String() string
String returns the string representation
func (*DeleteHITInput) Validate ¶
func (s *DeleteHITInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteHITOutput ¶
type DeleteHITOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHITResponse
func (DeleteHITOutput) GoString ¶
func (s DeleteHITOutput) GoString() string
GoString returns the string representation
func (DeleteHITOutput) SDKResponseMetadata ¶
func (s DeleteHITOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteHITOutput) String ¶
func (s DeleteHITOutput) String() string
String returns the string representation
type DeleteHITRequest ¶
type DeleteHITRequest struct { *aws.Request Input *DeleteHITInput Copy func(*DeleteHITInput) DeleteHITRequest }
DeleteHITRequest is a API request type for the DeleteHIT API operation.
func (DeleteHITRequest) Send ¶
func (r DeleteHITRequest) Send() (*DeleteHITOutput, error)
Send marshals and sends the DeleteHIT API request.
type DeleteQualificationTypeInput ¶
type DeleteQualificationTypeInput struct { // The ID of the QualificationType to dispose. // // QualificationTypeId is a required field QualificationTypeId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationTypeRequest
func (DeleteQualificationTypeInput) GoString ¶
func (s DeleteQualificationTypeInput) GoString() string
GoString returns the string representation
func (DeleteQualificationTypeInput) String ¶
func (s DeleteQualificationTypeInput) String() string
String returns the string representation
func (*DeleteQualificationTypeInput) Validate ¶
func (s *DeleteQualificationTypeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteQualificationTypeOutput ¶
type DeleteQualificationTypeOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationTypeResponse
func (DeleteQualificationTypeOutput) GoString ¶
func (s DeleteQualificationTypeOutput) GoString() string
GoString returns the string representation
func (DeleteQualificationTypeOutput) SDKResponseMetadata ¶
func (s DeleteQualificationTypeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteQualificationTypeOutput) String ¶
func (s DeleteQualificationTypeOutput) String() string
String returns the string representation
type DeleteQualificationTypeRequest ¶
type DeleteQualificationTypeRequest struct { *aws.Request Input *DeleteQualificationTypeInput Copy func(*DeleteQualificationTypeInput) DeleteQualificationTypeRequest }
DeleteQualificationTypeRequest is a API request type for the DeleteQualificationType API operation.
func (DeleteQualificationTypeRequest) Send ¶
func (r DeleteQualificationTypeRequest) Send() (*DeleteQualificationTypeOutput, error)
Send marshals and sends the DeleteQualificationType API request.
type DeleteWorkerBlockInput ¶
type DeleteWorkerBlockInput struct { // A message that explains the reason for unblocking the Worker. The Worker // does not see this message. Reason *string `type:"string"` // The ID of the Worker to unblock. // // WorkerId is a required field WorkerId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlockRequest
func (DeleteWorkerBlockInput) GoString ¶
func (s DeleteWorkerBlockInput) GoString() string
GoString returns the string representation
func (DeleteWorkerBlockInput) String ¶
func (s DeleteWorkerBlockInput) String() string
String returns the string representation
func (*DeleteWorkerBlockInput) Validate ¶
func (s *DeleteWorkerBlockInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteWorkerBlockOutput ¶
type DeleteWorkerBlockOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlockResponse
func (DeleteWorkerBlockOutput) GoString ¶
func (s DeleteWorkerBlockOutput) GoString() string
GoString returns the string representation
func (DeleteWorkerBlockOutput) SDKResponseMetadata ¶
func (s DeleteWorkerBlockOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteWorkerBlockOutput) String ¶
func (s DeleteWorkerBlockOutput) String() string
String returns the string representation
type DeleteWorkerBlockRequest ¶
type DeleteWorkerBlockRequest struct { *aws.Request Input *DeleteWorkerBlockInput Copy func(*DeleteWorkerBlockInput) DeleteWorkerBlockRequest }
DeleteWorkerBlockRequest is a API request type for the DeleteWorkerBlock API operation.
func (DeleteWorkerBlockRequest) Send ¶
func (r DeleteWorkerBlockRequest) Send() (*DeleteWorkerBlockOutput, error)
Send marshals and sends the DeleteWorkerBlock API request.
type DisassociateQualificationFromWorkerInput ¶
type DisassociateQualificationFromWorkerInput struct { // The ID of the Qualification type of the Qualification to be revoked. // // QualificationTypeId is a required field QualificationTypeId *string `min:"1" type:"string" required:"true"` // A text message that explains why the Qualification was revoked. The user // who had the Qualification sees this message. Reason *string `type:"string"` // The ID of the Worker who possesses the Qualification to be revoked. // // WorkerId is a required field WorkerId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorkerRequest
func (DisassociateQualificationFromWorkerInput) GoString ¶
func (s DisassociateQualificationFromWorkerInput) GoString() string
GoString returns the string representation
func (DisassociateQualificationFromWorkerInput) String ¶
func (s DisassociateQualificationFromWorkerInput) String() string
String returns the string representation
func (*DisassociateQualificationFromWorkerInput) Validate ¶
func (s *DisassociateQualificationFromWorkerInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DisassociateQualificationFromWorkerOutput ¶
type DisassociateQualificationFromWorkerOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorkerResponse
func (DisassociateQualificationFromWorkerOutput) GoString ¶
func (s DisassociateQualificationFromWorkerOutput) GoString() string
GoString returns the string representation
func (DisassociateQualificationFromWorkerOutput) SDKResponseMetadata ¶
func (s DisassociateQualificationFromWorkerOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DisassociateQualificationFromWorkerOutput) String ¶
func (s DisassociateQualificationFromWorkerOutput) String() string
String returns the string representation
type DisassociateQualificationFromWorkerRequest ¶
type DisassociateQualificationFromWorkerRequest struct { *aws.Request Input *DisassociateQualificationFromWorkerInput Copy func(*DisassociateQualificationFromWorkerInput) DisassociateQualificationFromWorkerRequest }
DisassociateQualificationFromWorkerRequest is a API request type for the DisassociateQualificationFromWorker API operation.
func (DisassociateQualificationFromWorkerRequest) Send ¶
func (r DisassociateQualificationFromWorkerRequest) Send() (*DisassociateQualificationFromWorkerOutput, error)
Send marshals and sends the DisassociateQualificationFromWorker API request.
type EventType ¶
type EventType string
const ( EventTypeAssignmentAccepted EventType = "AssignmentAccepted" EventTypeAssignmentAbandoned EventType = "AssignmentAbandoned" EventTypeAssignmentReturned EventType = "AssignmentReturned" EventTypeAssignmentSubmitted EventType = "AssignmentSubmitted" EventTypeAssignmentRejected EventType = "AssignmentRejected" EventTypeAssignmentApproved EventType = "AssignmentApproved" EventTypeHitcreated EventType = "HITCreated" EventTypeHitexpired EventType = "HITExpired" EventTypeHitreviewable EventType = "HITReviewable" EventTypeHitextended EventType = "HITExtended" EventTypeHitdisposed EventType = "HITDisposed" EventTypePing EventType = "Ping" )
Enum values for EventType
func (EventType) MarshalValue ¶ added in v0.3.0
type GetAccountBalanceInput ¶
type GetAccountBalanceInput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalanceRequest
func (GetAccountBalanceInput) GoString ¶
func (s GetAccountBalanceInput) GoString() string
GoString returns the string representation
func (GetAccountBalanceInput) String ¶
func (s GetAccountBalanceInput) String() string
String returns the string representation
type GetAccountBalanceOutput ¶
type GetAccountBalanceOutput struct { // A string representing a currency amount. AvailableBalance *string `type:"string"` // A string representing a currency amount. OnHoldBalance *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalanceResponse
func (GetAccountBalanceOutput) GoString ¶
func (s GetAccountBalanceOutput) GoString() string
GoString returns the string representation
func (GetAccountBalanceOutput) SDKResponseMetadata ¶
func (s GetAccountBalanceOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetAccountBalanceOutput) String ¶
func (s GetAccountBalanceOutput) String() string
String returns the string representation
type GetAccountBalanceRequest ¶
type GetAccountBalanceRequest struct { *aws.Request Input *GetAccountBalanceInput Copy func(*GetAccountBalanceInput) GetAccountBalanceRequest }
GetAccountBalanceRequest is a API request type for the GetAccountBalance API operation.
func (GetAccountBalanceRequest) Send ¶
func (r GetAccountBalanceRequest) Send() (*GetAccountBalanceOutput, error)
Send marshals and sends the GetAccountBalance API request.
type GetAssignmentInput ¶
type GetAssignmentInput struct { // The ID of the Assignment to be retrieved. // // AssignmentId is a required field AssignmentId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignmentRequest
func (GetAssignmentInput) GoString ¶
func (s GetAssignmentInput) GoString() string
GoString returns the string representation
func (GetAssignmentInput) String ¶
func (s GetAssignmentInput) String() string
String returns the string representation
func (*GetAssignmentInput) Validate ¶
func (s *GetAssignmentInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetAssignmentOutput ¶
type GetAssignmentOutput struct { // The assignment. The response includes one Assignment element. Assignment *Assignment `type:"structure"` // The HIT associated with this assignment. The response includes one HIT element. HIT *HIT `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignmentResponse
func (GetAssignmentOutput) GoString ¶
func (s GetAssignmentOutput) GoString() string
GoString returns the string representation
func (GetAssignmentOutput) SDKResponseMetadata ¶
func (s GetAssignmentOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetAssignmentOutput) String ¶
func (s GetAssignmentOutput) String() string
String returns the string representation
type GetAssignmentRequest ¶
type GetAssignmentRequest struct { *aws.Request Input *GetAssignmentInput Copy func(*GetAssignmentInput) GetAssignmentRequest }
GetAssignmentRequest is a API request type for the GetAssignment API operation.
func (GetAssignmentRequest) Send ¶
func (r GetAssignmentRequest) Send() (*GetAssignmentOutput, error)
Send marshals and sends the GetAssignment API request.
type GetFileUploadURLInput ¶
type GetFileUploadURLInput struct { // The ID of the assignment that contains the question with a FileUploadAnswer. // // AssignmentId is a required field AssignmentId *string `min:"1" type:"string" required:"true"` // The identifier of the question with a FileUploadAnswer, as specified in the // QuestionForm of the HIT. // // QuestionIdentifier is a required field QuestionIdentifier *string `type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURLRequest
func (GetFileUploadURLInput) GoString ¶
func (s GetFileUploadURLInput) GoString() string
GoString returns the string representation
func (GetFileUploadURLInput) String ¶
func (s GetFileUploadURLInput) String() string
String returns the string representation
func (*GetFileUploadURLInput) Validate ¶
func (s *GetFileUploadURLInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetFileUploadURLOutput ¶
type GetFileUploadURLOutput struct { // A temporary URL for the file that the Worker uploaded for the answer. FileUploadURL *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURLResponse
func (GetFileUploadURLOutput) GoString ¶
func (s GetFileUploadURLOutput) GoString() string
GoString returns the string representation
func (GetFileUploadURLOutput) SDKResponseMetadata ¶
func (s GetFileUploadURLOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetFileUploadURLOutput) String ¶
func (s GetFileUploadURLOutput) String() string
String returns the string representation
type GetFileUploadURLRequest ¶
type GetFileUploadURLRequest struct { *aws.Request Input *GetFileUploadURLInput Copy func(*GetFileUploadURLInput) GetFileUploadURLRequest }
GetFileUploadURLRequest is a API request type for the GetFileUploadURL API operation.
func (GetFileUploadURLRequest) Send ¶
func (r GetFileUploadURLRequest) Send() (*GetFileUploadURLOutput, error)
Send marshals and sends the GetFileUploadURL API request.
type GetHITInput ¶
type GetHITInput struct { // The ID of the HIT to be retrieved. // // HITId is a required field HITId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHITRequest
func (GetHITInput) GoString ¶
func (s GetHITInput) GoString() string
GoString returns the string representation
func (GetHITInput) String ¶
func (s GetHITInput) String() string
String returns the string representation
func (*GetHITInput) Validate ¶
func (s *GetHITInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetHITOutput ¶
type GetHITOutput struct { // Contains the requested HIT data. HIT *HIT `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHITResponse
func (GetHITOutput) GoString ¶
func (s GetHITOutput) GoString() string
GoString returns the string representation
func (GetHITOutput) SDKResponseMetadata ¶
func (s GetHITOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetHITOutput) String ¶
func (s GetHITOutput) String() string
String returns the string representation
type GetHITRequest ¶
type GetHITRequest struct { *aws.Request Input *GetHITInput Copy func(*GetHITInput) GetHITRequest }
GetHITRequest is a API request type for the GetHIT API operation.
func (GetHITRequest) Send ¶
func (r GetHITRequest) Send() (*GetHITOutput, error)
Send marshals and sends the GetHIT API request.
type GetQualificationScoreInput ¶
type GetQualificationScoreInput struct { // The ID of the QualificationType. // // QualificationTypeId is a required field QualificationTypeId *string `min:"1" type:"string" required:"true"` // The ID of the Worker whose Qualification is being updated. // // WorkerId is a required field WorkerId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScoreRequest
func (GetQualificationScoreInput) GoString ¶
func (s GetQualificationScoreInput) GoString() string
GoString returns the string representation
func (GetQualificationScoreInput) String ¶
func (s GetQualificationScoreInput) String() string
String returns the string representation
func (*GetQualificationScoreInput) Validate ¶
func (s *GetQualificationScoreInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetQualificationScoreOutput ¶
type GetQualificationScoreOutput struct { // The Qualification data structure of the Qualification assigned to a user, // including the Qualification type and the value (score). Qualification *Qualification `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScoreResponse
func (GetQualificationScoreOutput) GoString ¶
func (s GetQualificationScoreOutput) GoString() string
GoString returns the string representation
func (GetQualificationScoreOutput) SDKResponseMetadata ¶
func (s GetQualificationScoreOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetQualificationScoreOutput) String ¶
func (s GetQualificationScoreOutput) String() string
String returns the string representation
type GetQualificationScoreRequest ¶
type GetQualificationScoreRequest struct { *aws.Request Input *GetQualificationScoreInput Copy func(*GetQualificationScoreInput) GetQualificationScoreRequest }
GetQualificationScoreRequest is a API request type for the GetQualificationScore API operation.
func (GetQualificationScoreRequest) Send ¶
func (r GetQualificationScoreRequest) Send() (*GetQualificationScoreOutput, error)
Send marshals and sends the GetQualificationScore API request.
type GetQualificationTypeInput ¶
type GetQualificationTypeInput struct { // The ID of the QualificationType. // // QualificationTypeId is a required field QualificationTypeId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationTypeRequest
func (GetQualificationTypeInput) GoString ¶
func (s GetQualificationTypeInput) GoString() string
GoString returns the string representation
func (GetQualificationTypeInput) String ¶
func (s GetQualificationTypeInput) String() string
String returns the string representation
func (*GetQualificationTypeInput) Validate ¶
func (s *GetQualificationTypeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetQualificationTypeOutput ¶
type GetQualificationTypeOutput struct { // The returned Qualification Type QualificationType *QualificationType `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationTypeResponse
func (GetQualificationTypeOutput) GoString ¶
func (s GetQualificationTypeOutput) GoString() string
GoString returns the string representation
func (GetQualificationTypeOutput) SDKResponseMetadata ¶
func (s GetQualificationTypeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (GetQualificationTypeOutput) String ¶
func (s GetQualificationTypeOutput) String() string
String returns the string representation
type GetQualificationTypeRequest ¶
type GetQualificationTypeRequest struct { *aws.Request Input *GetQualificationTypeInput Copy func(*GetQualificationTypeInput) GetQualificationTypeRequest }
GetQualificationTypeRequest is a API request type for the GetQualificationType API operation.
func (GetQualificationTypeRequest) Send ¶
func (r GetQualificationTypeRequest) Send() (*GetQualificationTypeOutput, error)
Send marshals and sends the GetQualificationType API request.
type HIT ¶
type HIT struct { // The length of time, in seconds, that a Worker has to complete the HIT after // accepting it. AssignmentDurationInSeconds *int64 `type:"long"` // 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. AutoApprovalDelayInSeconds *int64 `type:"long"` // The date and time the HIT was created. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` // A general description of the HIT. Description *string `type:"string"` // The date and time the HIT expires. Expiration *time.Time `type:"timestamp" timestampFormat:"unix"` // The ID of the HIT Group of this HIT. HITGroupId *string `min:"1" type:"string"` // A unique identifier for the HIT. HITId *string `min:"1" type:"string"` // The ID of the HIT Layout of this HIT. HITLayoutId *string `min:"1" type:"string"` // Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview // | ReviewedAppropriate | ReviewedInappropriate. HITReviewStatus HITReviewStatus `type:"string" enum:"true"` // The status of the HIT and its assignments. Valid Values are Assignable | // Unassignable | Reviewable | Reviewing | Disposed. HITStatus HITStatus `type:"string" enum:"true"` // The ID of the HIT type of this HIT HITTypeId *string `min:"1" type:"string"` // 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. Keywords *string `type:"string"` // The number of times the HIT can be accepted and completed before the HIT // becomes unavailable. MaxAssignments *int64 `type:"integer"` // The number of assignments for this HIT that are available for Workers to // accept. NumberOfAssignmentsAvailable *int64 `type:"integer"` // The number of assignments for this HIT that have been approved or rejected. NumberOfAssignmentsCompleted *int64 `type:"integer"` // 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. NumberOfAssignmentsPending *int64 `type:"integer"` // 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. QualificationRequirements []QualificationRequirement `type:"list"` // The data the Worker completing the HIT uses produce the results. This is // either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure. Question *string `type:"string"` // An arbitrary data field the Requester who created the HIT can use. This field // is visible only to the creator of the HIT. RequesterAnnotation *string `type:"string"` // A string representing a currency amount. Reward *string `type:"string"` // The title of the HIT. Title *string `type:"string"` // contains filtered or unexported fields }
The HIT data structure represents a single HIT, including all the information necessary for a Worker to accept and complete the HIT. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/HIT
type HITAccessActions ¶ added in v0.4.0
type HITAccessActions string
const ( HITAccessActionsAccept HITAccessActions = "Accept" HITAccessActionsPreviewAndAccept HITAccessActions = "PreviewAndAccept" HITAccessActionsDiscoverPreviewAndAccept HITAccessActions = "DiscoverPreviewAndAccept" )
Enum values for HITAccessActions
func (HITAccessActions) MarshalValue ¶ added in v0.4.0
func (enum HITAccessActions) MarshalValue() (string, error)
func (HITAccessActions) MarshalValueBuf ¶ added in v0.4.0
func (enum HITAccessActions) MarshalValueBuf(b []byte) ([]byte, error)
type HITLayoutParameter ¶
type HITLayoutParameter struct { // The name of the parameter in the HITLayout. // // Name is a required field Name *string `type:"string" required:"true"` // The value substituted for the parameter referenced in the HITLayout. // // Value is a required field Value *string `type:"string" required:"true"` // contains filtered or unexported fields }
The HITLayoutParameter data structure defines parameter values used with a HITLayout. A HITLayout is a reusable Amazon Mechanical Turk project template used to provide Human Intelligence Task (HIT) question data for CreateHIT. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/HITLayoutParameter
func (HITLayoutParameter) GoString ¶
func (s HITLayoutParameter) GoString() string
GoString returns the string representation
func (HITLayoutParameter) String ¶
func (s HITLayoutParameter) String() string
String returns the string representation
func (*HITLayoutParameter) Validate ¶
func (s *HITLayoutParameter) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type HITReviewStatus ¶
type HITReviewStatus string
const ( HITReviewStatusNotReviewed HITReviewStatus = "NotReviewed" HITReviewStatusMarkedForReview HITReviewStatus = "MarkedForReview" HITReviewStatusReviewedAppropriate HITReviewStatus = "ReviewedAppropriate" HITReviewStatusReviewedInappropriate HITReviewStatus = "ReviewedInappropriate" )
Enum values for HITReviewStatus
func (HITReviewStatus) MarshalValue ¶ added in v0.3.0
func (enum HITReviewStatus) MarshalValue() (string, error)
func (HITReviewStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum HITReviewStatus) MarshalValueBuf(b []byte) ([]byte, error)
type HITStatus ¶
type HITStatus string
const ( HITStatusAssignable HITStatus = "Assignable" HITStatusUnassignable HITStatus = "Unassignable" HITStatusReviewable HITStatus = "Reviewable" HITStatusReviewing HITStatus = "Reviewing" HITStatusDisposed HITStatus = "Disposed" )
Enum values for HITStatus
func (HITStatus) MarshalValue ¶ added in v0.3.0
type ListAssignmentsForHITInput ¶
type ListAssignmentsForHITInput struct { // The status of the assignments to return: Submitted | Approved | Rejected AssignmentStatuses []AssignmentStatus `type:"list"` // The ID of the HIT. // // HITId is a required field HITId *string `min:"1" type:"string" required:"true"` MaxResults *int64 `min:"1" type:"integer"` // Pagination token NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHITRequest
func (ListAssignmentsForHITInput) GoString ¶
func (s ListAssignmentsForHITInput) GoString() string
GoString returns the string representation
func (ListAssignmentsForHITInput) String ¶
func (s ListAssignmentsForHITInput) String() string
String returns the string representation
func (*ListAssignmentsForHITInput) Validate ¶
func (s *ListAssignmentsForHITInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListAssignmentsForHITOutput ¶
type ListAssignmentsForHITOutput struct { // The collection of Assignment data structures returned by this call. Assignments []Assignment `type:"list"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The number of assignments on the page in the filtered results list, equivalent // to the number of assignments returned by this call. NumResults *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHITResponse
func (ListAssignmentsForHITOutput) GoString ¶
func (s ListAssignmentsForHITOutput) GoString() string
GoString returns the string representation
func (ListAssignmentsForHITOutput) SDKResponseMetadata ¶
func (s ListAssignmentsForHITOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListAssignmentsForHITOutput) String ¶
func (s ListAssignmentsForHITOutput) String() string
String returns the string representation
type ListAssignmentsForHITPager ¶ added in v0.3.0
ListAssignmentsForHITPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListAssignmentsForHITPager) CurrentPage ¶ added in v0.3.0
func (p *ListAssignmentsForHITPager) CurrentPage() *ListAssignmentsForHITOutput
type ListAssignmentsForHITRequest ¶
type ListAssignmentsForHITRequest struct { *aws.Request Input *ListAssignmentsForHITInput Copy func(*ListAssignmentsForHITInput) ListAssignmentsForHITRequest }
ListAssignmentsForHITRequest is a API request type for the ListAssignmentsForHIT API operation.
func (*ListAssignmentsForHITRequest) Paginate ¶ added in v0.3.0
func (p *ListAssignmentsForHITRequest) Paginate(opts ...aws.Option) ListAssignmentsForHITPager
Paginate pages iterates over the pages of a ListAssignmentsForHITRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListAssignmentsForHIT operation. req := client.ListAssignmentsForHITRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListAssignmentsForHITRequest) Send ¶
func (r ListAssignmentsForHITRequest) Send() (*ListAssignmentsForHITOutput, error)
Send marshals and sends the ListAssignmentsForHIT API request.
type ListBonusPaymentsInput ¶
type ListBonusPaymentsInput struct { // 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 AssignmentId *string `min:"1" type:"string"` // 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 HITId *string `min:"1" type:"string"` MaxResults *int64 `min:"1" type:"integer"` // Pagination token NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPaymentsRequest
func (ListBonusPaymentsInput) GoString ¶
func (s ListBonusPaymentsInput) GoString() string
GoString returns the string representation
func (ListBonusPaymentsInput) String ¶
func (s ListBonusPaymentsInput) String() string
String returns the string representation
func (*ListBonusPaymentsInput) Validate ¶
func (s *ListBonusPaymentsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBonusPaymentsOutput ¶
type ListBonusPaymentsOutput struct { // A successful request to the ListBonusPayments operation returns a list of // BonusPayment objects. BonusPayments []BonusPayment `type:"list"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // 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. NumResults *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPaymentsResponse
func (ListBonusPaymentsOutput) GoString ¶
func (s ListBonusPaymentsOutput) GoString() string
GoString returns the string representation
func (ListBonusPaymentsOutput) SDKResponseMetadata ¶
func (s ListBonusPaymentsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListBonusPaymentsOutput) String ¶
func (s ListBonusPaymentsOutput) String() string
String returns the string representation
type ListBonusPaymentsPager ¶ added in v0.3.0
ListBonusPaymentsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListBonusPaymentsPager) CurrentPage ¶ added in v0.3.0
func (p *ListBonusPaymentsPager) CurrentPage() *ListBonusPaymentsOutput
type ListBonusPaymentsRequest ¶
type ListBonusPaymentsRequest struct { *aws.Request Input *ListBonusPaymentsInput Copy func(*ListBonusPaymentsInput) ListBonusPaymentsRequest }
ListBonusPaymentsRequest is a API request type for the ListBonusPayments API operation.
func (*ListBonusPaymentsRequest) Paginate ¶ added in v0.3.0
func (p *ListBonusPaymentsRequest) Paginate(opts ...aws.Option) ListBonusPaymentsPager
Paginate pages iterates over the pages of a ListBonusPaymentsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListBonusPayments operation. req := client.ListBonusPaymentsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListBonusPaymentsRequest) Send ¶
func (r ListBonusPaymentsRequest) Send() (*ListBonusPaymentsOutput, error)
Send marshals and sends the ListBonusPayments API request.
type ListHITsForQualificationTypeInput ¶
type ListHITsForQualificationTypeInput struct { // Limit the number of results returned. MaxResults *int64 `min:"1" type:"integer"` // Pagination Token NextToken *string `min:"1" type:"string"` // The ID of the Qualification type to use when querying HITs. // // QualificationTypeId is a required field QualificationTypeId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationTypeRequest
func (ListHITsForQualificationTypeInput) GoString ¶
func (s ListHITsForQualificationTypeInput) GoString() string
GoString returns the string representation
func (ListHITsForQualificationTypeInput) String ¶
func (s ListHITsForQualificationTypeInput) String() string
String returns the string representation
func (*ListHITsForQualificationTypeInput) Validate ¶
func (s *ListHITsForQualificationTypeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListHITsForQualificationTypeOutput ¶
type ListHITsForQualificationTypeOutput struct { // The list of HIT elements returned by the query. HITs []HIT `type:"list"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The number of HITs on this page in the filtered results list, equivalent // to the number of HITs being returned by this call. NumResults *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationTypeResponse
func (ListHITsForQualificationTypeOutput) GoString ¶
func (s ListHITsForQualificationTypeOutput) GoString() string
GoString returns the string representation
func (ListHITsForQualificationTypeOutput) SDKResponseMetadata ¶
func (s ListHITsForQualificationTypeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListHITsForQualificationTypeOutput) String ¶
func (s ListHITsForQualificationTypeOutput) String() string
String returns the string representation
type ListHITsForQualificationTypePager ¶ added in v0.3.0
ListHITsForQualificationTypePager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListHITsForQualificationTypePager) CurrentPage ¶ added in v0.3.0
func (p *ListHITsForQualificationTypePager) CurrentPage() *ListHITsForQualificationTypeOutput
type ListHITsForQualificationTypeRequest ¶
type ListHITsForQualificationTypeRequest struct { *aws.Request Input *ListHITsForQualificationTypeInput Copy func(*ListHITsForQualificationTypeInput) ListHITsForQualificationTypeRequest }
ListHITsForQualificationTypeRequest is a API request type for the ListHITsForQualificationType API operation.
func (*ListHITsForQualificationTypeRequest) Paginate ¶ added in v0.3.0
func (p *ListHITsForQualificationTypeRequest) Paginate(opts ...aws.Option) ListHITsForQualificationTypePager
Paginate pages iterates over the pages of a ListHITsForQualificationTypeRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListHITsForQualificationType operation. req := client.ListHITsForQualificationTypeRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListHITsForQualificationTypeRequest) Send ¶
func (r ListHITsForQualificationTypeRequest) Send() (*ListHITsForQualificationTypeOutput, error)
Send marshals and sends the ListHITsForQualificationType API request.
type ListHITsInput ¶
type ListHITsInput struct { MaxResults *int64 `min:"1" type:"integer"` // Pagination token NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsRequest
func (ListHITsInput) GoString ¶
func (s ListHITsInput) GoString() string
GoString returns the string representation
func (ListHITsInput) String ¶
func (s ListHITsInput) String() string
String returns the string representation
func (*ListHITsInput) Validate ¶
func (s *ListHITsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListHITsOutput ¶
type ListHITsOutput struct { // The list of HIT elements returned by the query. HITs []HIT `type:"list"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The number of HITs on this page in the filtered results list, equivalent // to the number of HITs being returned by this call. NumResults *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsResponse
func (ListHITsOutput) GoString ¶
func (s ListHITsOutput) GoString() string
GoString returns the string representation
func (ListHITsOutput) SDKResponseMetadata ¶
func (s ListHITsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListHITsOutput) String ¶
func (s ListHITsOutput) String() string
String returns the string representation
type ListHITsPager ¶ added in v0.3.0
ListHITsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListHITsPager) CurrentPage ¶ added in v0.3.0
func (p *ListHITsPager) CurrentPage() *ListHITsOutput
type ListHITsRequest ¶
type ListHITsRequest struct { *aws.Request Input *ListHITsInput Copy func(*ListHITsInput) ListHITsRequest }
ListHITsRequest is a API request type for the ListHITs API operation.
func (*ListHITsRequest) Paginate ¶ added in v0.3.0
func (p *ListHITsRequest) Paginate(opts ...aws.Option) ListHITsPager
Paginate pages iterates over the pages of a ListHITsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListHITs operation. req := client.ListHITsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListHITsRequest) Send ¶
func (r ListHITsRequest) Send() (*ListHITsOutput, error)
Send marshals and sends the ListHITs API request.
type ListQualificationRequestsInput ¶
type ListQualificationRequestsInput struct { // The maximum number of results to return in a single call. MaxResults *int64 `min:"1" type:"integer"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The ID of the QualificationType. QualificationTypeId *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequestsRequest
func (ListQualificationRequestsInput) GoString ¶
func (s ListQualificationRequestsInput) GoString() string
GoString returns the string representation
func (ListQualificationRequestsInput) String ¶
func (s ListQualificationRequestsInput) String() string
String returns the string representation
func (*ListQualificationRequestsInput) Validate ¶
func (s *ListQualificationRequestsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListQualificationRequestsOutput ¶
type ListQualificationRequestsOutput struct { // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // 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. NumResults *int64 `type:"integer"` // The Qualification request. The response includes one QualificationRequest // element for each Qualification request returned by the query. QualificationRequests []QualificationRequest `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequestsResponse
func (ListQualificationRequestsOutput) GoString ¶
func (s ListQualificationRequestsOutput) GoString() string
GoString returns the string representation
func (ListQualificationRequestsOutput) SDKResponseMetadata ¶
func (s ListQualificationRequestsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListQualificationRequestsOutput) String ¶
func (s ListQualificationRequestsOutput) String() string
String returns the string representation
type ListQualificationRequestsPager ¶ added in v0.3.0
ListQualificationRequestsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListQualificationRequestsPager) CurrentPage ¶ added in v0.3.0
func (p *ListQualificationRequestsPager) CurrentPage() *ListQualificationRequestsOutput
type ListQualificationRequestsRequest ¶
type ListQualificationRequestsRequest struct { *aws.Request Input *ListQualificationRequestsInput Copy func(*ListQualificationRequestsInput) ListQualificationRequestsRequest }
ListQualificationRequestsRequest is a API request type for the ListQualificationRequests API operation.
func (*ListQualificationRequestsRequest) Paginate ¶ added in v0.3.0
func (p *ListQualificationRequestsRequest) Paginate(opts ...aws.Option) ListQualificationRequestsPager
Paginate pages iterates over the pages of a ListQualificationRequestsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListQualificationRequests operation. req := client.ListQualificationRequestsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListQualificationRequestsRequest) Send ¶
func (r ListQualificationRequestsRequest) Send() (*ListQualificationRequestsOutput, error)
Send marshals and sends the ListQualificationRequests API request.
type ListQualificationTypesInput ¶
type ListQualificationTypesInput struct { // The maximum number of results to return in a single call. MaxResults *int64 `min:"1" type:"integer"` // Specifies that only Qualification types that the Requester created are returned. // If false, the operation returns all Qualification types. MustBeOwnedByCaller *bool `type:"boolean"` // 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. // // MustBeRequestable is a required field MustBeRequestable *bool `type:"boolean" required:"true"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // A text query against all of the searchable attributes of Qualification types. Query *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypesRequest
func (ListQualificationTypesInput) GoString ¶
func (s ListQualificationTypesInput) GoString() string
GoString returns the string representation
func (ListQualificationTypesInput) String ¶
func (s ListQualificationTypesInput) String() string
String returns the string representation
func (*ListQualificationTypesInput) Validate ¶
func (s *ListQualificationTypesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListQualificationTypesOutput ¶
type ListQualificationTypesOutput struct { // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The number of Qualification types on this page in the filtered results list, // equivalent to the number of types this operation returns. NumResults *int64 `type:"integer"` // The list of QualificationType elements returned by the query. QualificationTypes []QualificationType `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypesResponse
func (ListQualificationTypesOutput) GoString ¶
func (s ListQualificationTypesOutput) GoString() string
GoString returns the string representation
func (ListQualificationTypesOutput) SDKResponseMetadata ¶
func (s ListQualificationTypesOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListQualificationTypesOutput) String ¶
func (s ListQualificationTypesOutput) String() string
String returns the string representation
type ListQualificationTypesPager ¶ added in v0.3.0
ListQualificationTypesPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListQualificationTypesPager) CurrentPage ¶ added in v0.3.0
func (p *ListQualificationTypesPager) CurrentPage() *ListQualificationTypesOutput
type ListQualificationTypesRequest ¶
type ListQualificationTypesRequest struct { *aws.Request Input *ListQualificationTypesInput Copy func(*ListQualificationTypesInput) ListQualificationTypesRequest }
ListQualificationTypesRequest is a API request type for the ListQualificationTypes API operation.
func (*ListQualificationTypesRequest) Paginate ¶ added in v0.3.0
func (p *ListQualificationTypesRequest) Paginate(opts ...aws.Option) ListQualificationTypesPager
Paginate pages iterates over the pages of a ListQualificationTypesRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListQualificationTypes operation. req := client.ListQualificationTypesRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListQualificationTypesRequest) Send ¶
func (r ListQualificationTypesRequest) Send() (*ListQualificationTypesOutput, error)
Send marshals and sends the ListQualificationTypes API request.
type ListReviewPolicyResultsForHITInput ¶
type ListReviewPolicyResultsForHITInput struct { // The unique identifier of the HIT to retrieve review results for. // // HITId is a required field HITId *string `min:"1" type:"string" required:"true"` // Limit the number of results returned. MaxResults *int64 `min:"1" type:"integer"` // Pagination token NextToken *string `min:"1" type:"string"` // 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. PolicyLevels []ReviewPolicyLevel `type:"list"` // Specify if the operation should retrieve a list of the actions taken executing // the Review Policies and their outcomes. RetrieveActions *bool `type:"boolean"` // Specify if the operation should retrieve a list of the results computed by // the Review Policies. RetrieveResults *bool `type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHITRequest
func (ListReviewPolicyResultsForHITInput) GoString ¶
func (s ListReviewPolicyResultsForHITInput) GoString() string
GoString returns the string representation
func (ListReviewPolicyResultsForHITInput) String ¶
func (s ListReviewPolicyResultsForHITInput) String() string
String returns the string representation
func (*ListReviewPolicyResultsForHITInput) Validate ¶
func (s *ListReviewPolicyResultsForHITInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListReviewPolicyResultsForHITOutput ¶
type ListReviewPolicyResultsForHITOutput struct { // The name of the Assignment-level Review Policy. This contains only the PolicyName // element. AssignmentReviewPolicy *ReviewPolicy `type:"structure"` // Contains both ReviewResult and ReviewAction elements for an Assignment. AssignmentReviewReport *ReviewReport `type:"structure"` // The HITId of the HIT for which results have been returned. HITId *string `min:"1" type:"string"` // The name of the HIT-level Review Policy. This contains only the PolicyName // element. HITReviewPolicy *ReviewPolicy `type:"structure"` // Contains both ReviewResult and ReviewAction elements for a particular HIT. HITReviewReport *ReviewReport `type:"structure"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHITResponse
func (ListReviewPolicyResultsForHITOutput) GoString ¶
func (s ListReviewPolicyResultsForHITOutput) GoString() string
GoString returns the string representation
func (ListReviewPolicyResultsForHITOutput) SDKResponseMetadata ¶
func (s ListReviewPolicyResultsForHITOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListReviewPolicyResultsForHITOutput) String ¶
func (s ListReviewPolicyResultsForHITOutput) String() string
String returns the string representation
type ListReviewPolicyResultsForHITPager ¶ added in v0.3.0
ListReviewPolicyResultsForHITPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListReviewPolicyResultsForHITPager) CurrentPage ¶ added in v0.3.0
func (p *ListReviewPolicyResultsForHITPager) CurrentPage() *ListReviewPolicyResultsForHITOutput
type ListReviewPolicyResultsForHITRequest ¶
type ListReviewPolicyResultsForHITRequest struct { *aws.Request Input *ListReviewPolicyResultsForHITInput Copy func(*ListReviewPolicyResultsForHITInput) ListReviewPolicyResultsForHITRequest }
ListReviewPolicyResultsForHITRequest is a API request type for the ListReviewPolicyResultsForHIT API operation.
func (*ListReviewPolicyResultsForHITRequest) Paginate ¶ added in v0.3.0
func (p *ListReviewPolicyResultsForHITRequest) Paginate(opts ...aws.Option) ListReviewPolicyResultsForHITPager
Paginate pages iterates over the pages of a ListReviewPolicyResultsForHITRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListReviewPolicyResultsForHIT operation. req := client.ListReviewPolicyResultsForHITRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListReviewPolicyResultsForHITRequest) Send ¶
func (r ListReviewPolicyResultsForHITRequest) Send() (*ListReviewPolicyResultsForHITOutput, error)
Send marshals and sends the ListReviewPolicyResultsForHIT API request.
type ListReviewableHITsInput ¶
type ListReviewableHITsInput struct { // The ID of the HIT type of the HITs to consider for the query. If not specified, // all HITs for the Reviewer are considered HITTypeId *string `min:"1" type:"string"` // Limit the number of results returned. MaxResults *int64 `min:"1" type:"integer"` // Pagination Token NextToken *string `min:"1" type:"string"` // Can be either Reviewable or Reviewing. Reviewable is the default value. Status ReviewableHITStatus `type:"string" enum:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITsRequest
func (ListReviewableHITsInput) GoString ¶
func (s ListReviewableHITsInput) GoString() string
GoString returns the string representation
func (ListReviewableHITsInput) String ¶
func (s ListReviewableHITsInput) String() string
String returns the string representation
func (*ListReviewableHITsInput) Validate ¶
func (s *ListReviewableHITsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListReviewableHITsOutput ¶
type ListReviewableHITsOutput struct { // The list of HIT elements returned by the query. HITs []HIT `type:"list"` // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The number of HITs on this page in the filtered results list, equivalent // to the number of HITs being returned by this call. NumResults *int64 `type:"integer"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITsResponse
func (ListReviewableHITsOutput) GoString ¶
func (s ListReviewableHITsOutput) GoString() string
GoString returns the string representation
func (ListReviewableHITsOutput) SDKResponseMetadata ¶
func (s ListReviewableHITsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListReviewableHITsOutput) String ¶
func (s ListReviewableHITsOutput) String() string
String returns the string representation
type ListReviewableHITsPager ¶ added in v0.3.0
ListReviewableHITsPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListReviewableHITsPager) CurrentPage ¶ added in v0.3.0
func (p *ListReviewableHITsPager) CurrentPage() *ListReviewableHITsOutput
type ListReviewableHITsRequest ¶
type ListReviewableHITsRequest struct { *aws.Request Input *ListReviewableHITsInput Copy func(*ListReviewableHITsInput) ListReviewableHITsRequest }
ListReviewableHITsRequest is a API request type for the ListReviewableHITs API operation.
func (*ListReviewableHITsRequest) Paginate ¶ added in v0.3.0
func (p *ListReviewableHITsRequest) Paginate(opts ...aws.Option) ListReviewableHITsPager
Paginate pages iterates over the pages of a ListReviewableHITsRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListReviewableHITs operation. req := client.ListReviewableHITsRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListReviewableHITsRequest) Send ¶
func (r ListReviewableHITsRequest) Send() (*ListReviewableHITsOutput, error)
Send marshals and sends the ListReviewableHITs API request.
type ListWorkerBlocksInput ¶
type ListWorkerBlocksInput struct { MaxResults *int64 `min:"1" type:"integer"` // Pagination token NextToken *string `min:"1" type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocksRequest
func (ListWorkerBlocksInput) GoString ¶
func (s ListWorkerBlocksInput) GoString() string
GoString returns the string representation
func (ListWorkerBlocksInput) String ¶
func (s ListWorkerBlocksInput) String() string
String returns the string representation
func (*ListWorkerBlocksInput) Validate ¶
func (s *ListWorkerBlocksInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListWorkerBlocksOutput ¶
type ListWorkerBlocksOutput struct { // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The number of assignments on the page in the filtered results list, equivalent // to the number of assignments returned by this call. NumResults *int64 `type:"integer"` // The list of WorkerBlocks, containing the collection of Worker IDs and reasons // for blocking. WorkerBlocks []WorkerBlock `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocksResponse
func (ListWorkerBlocksOutput) GoString ¶
func (s ListWorkerBlocksOutput) GoString() string
GoString returns the string representation
func (ListWorkerBlocksOutput) SDKResponseMetadata ¶
func (s ListWorkerBlocksOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListWorkerBlocksOutput) String ¶
func (s ListWorkerBlocksOutput) String() string
String returns the string representation
type ListWorkerBlocksPager ¶ added in v0.3.0
ListWorkerBlocksPager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListWorkerBlocksPager) CurrentPage ¶ added in v0.3.0
func (p *ListWorkerBlocksPager) CurrentPage() *ListWorkerBlocksOutput
type ListWorkerBlocksRequest ¶
type ListWorkerBlocksRequest struct { *aws.Request Input *ListWorkerBlocksInput Copy func(*ListWorkerBlocksInput) ListWorkerBlocksRequest }
ListWorkerBlocksRequest is a API request type for the ListWorkerBlocks API operation.
func (*ListWorkerBlocksRequest) Paginate ¶ added in v0.3.0
func (p *ListWorkerBlocksRequest) Paginate(opts ...aws.Option) ListWorkerBlocksPager
Paginate pages iterates over the pages of a ListWorkerBlocksRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListWorkerBlocks operation. req := client.ListWorkerBlocksRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListWorkerBlocksRequest) Send ¶
func (r ListWorkerBlocksRequest) Send() (*ListWorkerBlocksOutput, error)
Send marshals and sends the ListWorkerBlocks API request.
type ListWorkersWithQualificationTypeInput ¶
type ListWorkersWithQualificationTypeInput struct { // Limit the number of results returned. MaxResults *int64 `min:"1" type:"integer"` // Pagination Token NextToken *string `min:"1" type:"string"` // The ID of the Qualification type of the Qualifications to return. // // QualificationTypeId is a required field QualificationTypeId *string `min:"1" type:"string" required:"true"` // The status of the Qualifications to return. Can be Granted | Revoked. Status QualificationStatus `type:"string" enum:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationTypeRequest
func (ListWorkersWithQualificationTypeInput) GoString ¶
func (s ListWorkersWithQualificationTypeInput) GoString() string
GoString returns the string representation
func (ListWorkersWithQualificationTypeInput) String ¶
func (s ListWorkersWithQualificationTypeInput) String() string
String returns the string representation
func (*ListWorkersWithQualificationTypeInput) Validate ¶
func (s *ListWorkersWithQualificationTypeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListWorkersWithQualificationTypeOutput ¶
type ListWorkersWithQualificationTypeOutput struct { // If the previous response was incomplete (because there is more data to retrieve), // Amazon Mechanical Turk returns a pagination token in the response. You can // use this pagination token to retrieve the next set of results. NextToken *string `min:"1" type:"string"` // The number of Qualifications on this page in the filtered results list, equivalent // to the number of Qualifications being returned by this call. NumResults *int64 `type:"integer"` // The list of Qualification elements returned by this call. Qualifications []Qualification `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationTypeResponse
func (ListWorkersWithQualificationTypeOutput) GoString ¶
func (s ListWorkersWithQualificationTypeOutput) GoString() string
GoString returns the string representation
func (ListWorkersWithQualificationTypeOutput) SDKResponseMetadata ¶
func (s ListWorkersWithQualificationTypeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (ListWorkersWithQualificationTypeOutput) String ¶
func (s ListWorkersWithQualificationTypeOutput) String() string
String returns the string representation
type ListWorkersWithQualificationTypePager ¶ added in v0.3.0
ListWorkersWithQualificationTypePager is used to paginate the request. This can be done by calling Next and CurrentPage.
func (*ListWorkersWithQualificationTypePager) CurrentPage ¶ added in v0.3.0
func (p *ListWorkersWithQualificationTypePager) CurrentPage() *ListWorkersWithQualificationTypeOutput
type ListWorkersWithQualificationTypeRequest ¶
type ListWorkersWithQualificationTypeRequest struct { *aws.Request Input *ListWorkersWithQualificationTypeInput Copy func(*ListWorkersWithQualificationTypeInput) ListWorkersWithQualificationTypeRequest }
ListWorkersWithQualificationTypeRequest is a API request type for the ListWorkersWithQualificationType API operation.
func (*ListWorkersWithQualificationTypeRequest) Paginate ¶ added in v0.3.0
func (p *ListWorkersWithQualificationTypeRequest) Paginate(opts ...aws.Option) ListWorkersWithQualificationTypePager
Paginate pages iterates over the pages of a ListWorkersWithQualificationTypeRequest operation, calling the Next method for each page. Using the paginators Next method will depict whether or not there are more pages.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListWorkersWithQualificationType operation. req := client.ListWorkersWithQualificationTypeRequest(input) p := req.Paginate() for p.Next() { page := p.CurrentPage() } if err := p.Err(); err != nil { return err }
func (ListWorkersWithQualificationTypeRequest) Send ¶
func (r ListWorkersWithQualificationTypeRequest) Send() (*ListWorkersWithQualificationTypeOutput, error)
Send marshals and sends the ListWorkersWithQualificationType API request.
type Locale ¶
type Locale struct { // 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. // // Country is a required field Country *string `min:"2" type:"string" required:"true"` // 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. Subdivision *string `min:"2" type:"string"` // contains filtered or unexported fields }
The Locale data structure represents a geographical region or location. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Locale
type MTurk ¶
MTurk provides the API operation methods for making requests to Amazon Mechanical Turk. See this package's package overview docs for details on the service.
MTurk methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the MTurk client with a config.
Example:
// Create a MTurk client from just a config. svc := mturk.New(myConfig)
func (*MTurk) AcceptQualificationRequestRequest ¶
func (c *MTurk) AcceptQualificationRequestRequest(input *AcceptQualificationRequestInput) AcceptQualificationRequestRequest
AcceptQualificationRequestRequest returns a request value for making API operation for Amazon Mechanical Turk.
The AcceptQualificationRequest operation approves a Worker's request for a Qualification.
Only the owner of the Qualification type can grant a Qualification request for that type.
A successful request for the AcceptQualificationRequest operation returns with no errors and an empty body.
// Example sending a request using the AcceptQualificationRequestRequest method. req := client.AcceptQualificationRequestRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequest
func (*MTurk) ApproveAssignmentRequest ¶
func (c *MTurk) ApproveAssignmentRequest(input *ApproveAssignmentInput) ApproveAssignmentRequest
ApproveAssignmentRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ApproveAssignment operation approves the results of a completed assignment.
Approving an assignment initiates two payments from the Requester's Amazon.com account
The Worker who submitted the results is paid the reward specified in the HIT.
Amazon Mechanical Turk fees are debited.
If the Requester's account does not have adequate funds for these payments, the call to ApproveAssignment returns an exception, and the approval is not processed. You can include an optional feedback message with the approval, which the Worker can see in the Status section of the web site.
You can also call this operation for assignments that were previous rejected and approve them by explicitly overriding the previous rejection. This only works on rejected assignments that were submitted within the previous 30 days and only if the assignment's related HIT has not been deleted.
// Example sending a request using the ApproveAssignmentRequest method. req := client.ApproveAssignmentRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignment
func (*MTurk) AssociateQualificationWithWorkerRequest ¶
func (c *MTurk) AssociateQualificationWithWorkerRequest(input *AssociateQualificationWithWorkerInput) AssociateQualificationWithWorkerRequest
AssociateQualificationWithWorkerRequest returns a request value for making API operation for Amazon Mechanical Turk.
The AssociateQualificationWithWorker operation gives a Worker a Qualification. AssociateQualificationWithWorker does not require that the Worker submit a Qualification request. It gives the Qualification directly to the Worker.
You can only assign a Qualification of a Qualification type that you created (using the CreateQualificationType operation).
Note: AssociateQualificationWithWorker does not affect any pending Qualification requests for the Qualification by the Worker. If you assign a Qualification to a Worker, then later grant a Qualification request made by the Worker, the granting of the request may modify the Qualification score. To resolve a pending Qualification request without affecting the Qualification the Worker already has, reject the request with the RejectQualificationRequest operation.
// Example sending a request using the AssociateQualificationWithWorkerRequest method. req := client.AssociateQualificationWithWorkerRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorker
func (*MTurk) CreateAdditionalAssignmentsForHITRequest ¶
func (c *MTurk) CreateAdditionalAssignmentsForHITRequest(input *CreateAdditionalAssignmentsForHITInput) CreateAdditionalAssignmentsForHITRequest
CreateAdditionalAssignmentsForHITRequest returns a request value for making API operation for Amazon Mechanical Turk.
The CreateAdditionalAssignmentsForHIT operation increases the maximum number of assignments of an existing HIT.
To extend the maximum number of assignments, specify the number of additional assignments.
HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more assignments will result in an AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease exception.
HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an AWS.MechanicalTurk.HITTooOldForExtension exception.
// Example sending a request using the CreateAdditionalAssignmentsForHITRequest method. req := client.CreateAdditionalAssignmentsForHITRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHIT
func (*MTurk) CreateHITRequest ¶
func (c *MTurk) CreateHITRequest(input *CreateHITInput) CreateHITRequest
CreateHITRequest returns a request value for making API operation for Amazon Mechanical Turk.
The CreateHIT operation creates a new Human Intelligence Task (HIT). The new HIT is made available for Workers to find and accept on the Amazon Mechanical Turk website.
This operation allows you to specify a new HIT by passing in values for the properties of the HIT, such as its title, reward amount and number of assignments. When you pass these values to CreateHIT, a new HIT is created for you, with a new HITTypeID. The HITTypeID can be used to create additional HITs in the future without needing to specify common parameters such as the title, description and reward amount each time.
An alternative way to create HITs is to first generate a HITTypeID using the CreateHITType operation and then call the CreateHITWithHITType operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.
CreateHIT also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters.
If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see Amazon Mechanical Turk Pricing (https://requester.mturk.com/pricing).
// Example sending a request using the CreateHITRequest method. req := client.CreateHITRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHIT
func (*MTurk) CreateHITTypeRequest ¶
func (c *MTurk) CreateHITTypeRequest(input *CreateHITTypeInput) CreateHITTypeRequest
CreateHITTypeRequest returns a request value for making API operation for Amazon Mechanical Turk.
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.
// Example sending a request using the CreateHITTypeRequest method. req := client.CreateHITTypeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITType
func (*MTurk) CreateHITWithHITTypeRequest ¶
func (c *MTurk) CreateHITWithHITTypeRequest(input *CreateHITWithHITTypeInput) CreateHITWithHITTypeRequest
CreateHITWithHITTypeRequest returns a request value for making API operation for Amazon Mechanical Turk.
The CreateHITWithHITType operation creates a new Human Intelligence Task (HIT) using an existing HITTypeID generated by the CreateHITType operation.
This is an alternative way to create HITs from the CreateHIT operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.
CreateHITWithHITType also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters.
If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see Amazon Mechanical Turk Pricing (https://requester.mturk.com/pricing).
// Example sending a request using the CreateHITWithHITTypeRequest method. req := client.CreateHITWithHITTypeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITType
func (*MTurk) CreateQualificationTypeRequest ¶
func (c *MTurk) CreateQualificationTypeRequest(input *CreateQualificationTypeInput) CreateQualificationTypeRequest
CreateQualificationTypeRequest returns a request value for making API operation for Amazon Mechanical Turk.
The CreateQualificationType operation creates a new Qualification type, which is represented by a QualificationType data structure.
// Example sending a request using the CreateQualificationTypeRequest method. req := client.CreateQualificationTypeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationType
func (*MTurk) CreateWorkerBlockRequest ¶
func (c *MTurk) CreateWorkerBlockRequest(input *CreateWorkerBlockInput) CreateWorkerBlockRequest
CreateWorkerBlockRequest returns a request value for making API operation for Amazon Mechanical Turk.
The CreateWorkerBlock operation allows you to prevent a Worker from working on your HITs. For example, you can block a Worker who is producing poor quality work. You can block up to 100,000 Workers.
// Example sending a request using the CreateWorkerBlockRequest method. req := client.CreateWorkerBlockRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlock
func (*MTurk) DeleteHITRequest ¶
func (c *MTurk) DeleteHITRequest(input *DeleteHITInput) DeleteHITRequest
DeleteHITRequest returns a request value for making API operation for Amazon Mechanical Turk.
The DeleteHIT operation is used to delete HIT that is no longer needed. Only the Requester who created the HIT can delete it.
You can only dispose of HITs that are in the Reviewable state, with all of their submitted assignments already either approved or rejected. If you call the DeleteHIT operation on a HIT that is not in the Reviewable state (for example, that has not expired, or still has active assignments), or on a HIT that is Reviewable but without all of its submitted assignments already approved or rejected, the service will return an error.
HITs are automatically disposed of after 120 days.
After you dispose of a HIT, you can no longer approve the HIT's rejected
assignments.
Disposed HITs are not returned in results for the ListHITs operation. Disposing HITs can improve the performance of operations such as ListReviewableHITs
and ListHITs.
// Example sending a request using the DeleteHITRequest method. req := client.DeleteHITRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHIT
func (*MTurk) DeleteQualificationTypeRequest ¶
func (c *MTurk) DeleteQualificationTypeRequest(input *DeleteQualificationTypeInput) DeleteQualificationTypeRequest
DeleteQualificationTypeRequest returns a request value for making API operation for Amazon Mechanical Turk.
The DeleteQualificationType deletes a Qualification type and deletes any HIT types that are associated with the Qualification type.
This operation does not revoke Qualifications already assigned to Workers because the Qualifications might be needed for active HITs. If there are any pending requests for the Qualification type, Amazon Mechanical Turk rejects those requests. After you delete a Qualification type, you can no longer use it to create HITs or HIT types.
DeleteQualificationType must wait for all the HITs that use the deleted Qualification type to be deleted before completing. It may take up to 48 hours before DeleteQualificationType completes and the unique name of the Qualification type is available for reuse with CreateQualificationType.
// Example sending a request using the DeleteQualificationTypeRequest method. req := client.DeleteQualificationTypeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationType
func (*MTurk) DeleteWorkerBlockRequest ¶
func (c *MTurk) DeleteWorkerBlockRequest(input *DeleteWorkerBlockInput) DeleteWorkerBlockRequest
DeleteWorkerBlockRequest returns a request value for making API operation for Amazon Mechanical Turk.
The DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.
// Example sending a request using the DeleteWorkerBlockRequest method. req := client.DeleteWorkerBlockRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlock
func (*MTurk) DisassociateQualificationFromWorkerRequest ¶
func (c *MTurk) DisassociateQualificationFromWorkerRequest(input *DisassociateQualificationFromWorkerInput) DisassociateQualificationFromWorkerRequest
DisassociateQualificationFromWorkerRequest returns a request value for making API operation for Amazon Mechanical Turk.
The DisassociateQualificationFromWorker revokes a previously granted Qualification from a user.
You can provide a text message explaining why the Qualification was revoked. The user who had the Qualification can see this message.
// Example sending a request using the DisassociateQualificationFromWorkerRequest method. req := client.DisassociateQualificationFromWorkerRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorker
func (*MTurk) GetAccountBalanceRequest ¶
func (c *MTurk) GetAccountBalanceRequest(input *GetAccountBalanceInput) GetAccountBalanceRequest
GetAccountBalanceRequest returns a request value for making API operation for Amazon Mechanical Turk.
The GetAccountBalance operation retrieves the amount of money in your Amazon Mechanical Turk account.
// Example sending a request using the GetAccountBalanceRequest method. req := client.GetAccountBalanceRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalance
func (*MTurk) GetAssignmentRequest ¶
func (c *MTurk) GetAssignmentRequest(input *GetAssignmentInput) GetAssignmentRequest
GetAssignmentRequest returns a request value for making API operation for Amazon Mechanical Turk.
The GetAssignment operation retrieves the details of the specified Assignment.
// Example sending a request using the GetAssignmentRequest method. req := client.GetAssignmentRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignment
func (*MTurk) GetFileUploadURLRequest ¶
func (c *MTurk) GetFileUploadURLRequest(input *GetFileUploadURLInput) GetFileUploadURLRequest
GetFileUploadURLRequest returns a request value for making API operation for Amazon Mechanical Turk.
The GetFileUploadURL operation generates and returns a temporary URL. You use the temporary URL to retrieve a file uploaded by a Worker as an answer to a FileUploadAnswer question for a HIT. The temporary URL is generated the instant the GetFileUploadURL operation is called, and is valid for 60 seconds. You can get a temporary file upload URL any time until the HIT is disposed. After the HIT is disposed, any uploaded files are deleted, and cannot be retrieved. Pending Deprecation on December 12, 2017. The Answer Specification structure will no longer support the FileUploadAnswer element to be used for the QuestionForm data structure. Instead, we recommend that Requesters who want to create HITs asking Workers to upload files to use Amazon S3.
// Example sending a request using the GetFileUploadURLRequest method. req := client.GetFileUploadURLRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURL
func (*MTurk) GetHITRequest ¶
func (c *MTurk) GetHITRequest(input *GetHITInput) GetHITRequest
GetHITRequest returns a request value for making API operation for Amazon Mechanical Turk.
The GetHIT operation retrieves the details of the specified HIT.
// Example sending a request using the GetHITRequest method. req := client.GetHITRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHIT
func (*MTurk) GetQualificationScoreRequest ¶
func (c *MTurk) GetQualificationScoreRequest(input *GetQualificationScoreInput) GetQualificationScoreRequest
GetQualificationScoreRequest returns a request value for making API operation for Amazon Mechanical Turk.
The GetQualificationScore operation returns the value of a Worker's Qualification for a given Qualification type.
To get a Worker's Qualification, you must know the Worker's ID. The Worker's ID is included in the assignment data returned by the ListAssignmentsForHIT operation.
Only the owner of a Qualification type can query the value of a Worker's Qualification of that type.
// Example sending a request using the GetQualificationScoreRequest method. req := client.GetQualificationScoreRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScore
func (*MTurk) GetQualificationTypeRequest ¶
func (c *MTurk) GetQualificationTypeRequest(input *GetQualificationTypeInput) GetQualificationTypeRequest
GetQualificationTypeRequest returns a request value for making API operation for Amazon Mechanical Turk.
The GetQualificationTypeoperation retrieves information about a Qualification type using its ID.
// Example sending a request using the GetQualificationTypeRequest method. req := client.GetQualificationTypeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationType
func (*MTurk) ListAssignmentsForHITRequest ¶
func (c *MTurk) ListAssignmentsForHITRequest(input *ListAssignmentsForHITInput) ListAssignmentsForHITRequest
ListAssignmentsForHITRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListAssignmentsForHIT operation retrieves completed assignments for a HIT. You can use this operation to retrieve the results for a HIT.
You can get assignments for a HIT at any time, even if the HIT is not yet Reviewable. If a HIT requested multiple assignments, and has received some results but has not yet become Reviewable, you can still retrieve the partial results with this operation.
Use the AssignmentStatus parameter to control which set of assignments for a HIT are returned. The ListAssignmentsForHIT operation can return submitted assignments awaiting approval, or it can return assignments that have already been approved or rejected. You can set AssignmentStatus=Approved,Rejected to get assignments that have already been approved and rejected together in one result set.
Only the Requester who created the HIT can retrieve the assignments for that HIT.
Results are sorted and divided into numbered pages and the operation returns a single page of results. You can use the parameters of the operation to control sorting and pagination.
// Example sending a request using the ListAssignmentsForHITRequest method. req := client.ListAssignmentsForHITRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHIT
func (*MTurk) ListBonusPaymentsRequest ¶
func (c *MTurk) ListBonusPaymentsRequest(input *ListBonusPaymentsInput) ListBonusPaymentsRequest
ListBonusPaymentsRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListBonusPayments operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment.
// Example sending a request using the ListBonusPaymentsRequest method. req := client.ListBonusPaymentsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPayments
func (*MTurk) ListHITsForQualificationTypeRequest ¶
func (c *MTurk) ListHITsForQualificationTypeRequest(input *ListHITsForQualificationTypeInput) ListHITsForQualificationTypeRequest
ListHITsForQualificationTypeRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListHITsForQualificationType operation returns the HITs that use the given Qualification type for a Qualification requirement. The operation returns HITs of any status, except for HITs that have been deleted with the DeleteHIT operation or that have been auto-deleted.
// Example sending a request using the ListHITsForQualificationTypeRequest method. req := client.ListHITsForQualificationTypeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationType
func (*MTurk) ListHITsRequest ¶
func (c *MTurk) ListHITsRequest(input *ListHITsInput) ListHITsRequest
ListHITsRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListHITs operation returns all of a Requester's HITs. The operation returns HITs of any status, except for HITs that have been deleted of with the DeleteHIT operation or that have been auto-deleted.
// Example sending a request using the ListHITsRequest method. req := client.ListHITsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITs
func (*MTurk) ListQualificationRequestsRequest ¶
func (c *MTurk) ListQualificationRequestsRequest(input *ListQualificationRequestsInput) ListQualificationRequestsRequest
ListQualificationRequestsRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListQualificationRequests operation retrieves requests for Qualifications of a particular Qualification type. The owner of the Qualification type calls this operation to poll for pending requests, and accepts them using the AcceptQualification operation.
// Example sending a request using the ListQualificationRequestsRequest method. req := client.ListQualificationRequestsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequests
func (*MTurk) ListQualificationTypesRequest ¶
func (c *MTurk) ListQualificationTypesRequest(input *ListQualificationTypesInput) ListQualificationTypesRequest
ListQualificationTypesRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListQualificationTypes operation returns a list of Qualification types, filtered by an optional search term.
// Example sending a request using the ListQualificationTypesRequest method. req := client.ListQualificationTypesRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypes
func (*MTurk) ListReviewPolicyResultsForHITRequest ¶
func (c *MTurk) ListReviewPolicyResultsForHITRequest(input *ListReviewPolicyResultsForHITInput) ListReviewPolicyResultsForHITRequest
ListReviewPolicyResultsForHITRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListReviewPolicyResultsForHIT operation retrieves the computed results and the actions taken in the course of executing your Review Policies for a given HIT. For information about how to specify Review Policies when you call CreateHIT, see Review Policies. The ListReviewPolicyResultsForHIT operation can return results for both Assignment-level and HIT-level review results.
// Example sending a request using the ListReviewPolicyResultsForHITRequest method. req := client.ListReviewPolicyResultsForHITRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHIT
func (*MTurk) ListReviewableHITsRequest ¶
func (c *MTurk) ListReviewableHITsRequest(input *ListReviewableHITsInput) ListReviewableHITsRequest
ListReviewableHITsRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListReviewableHITs operation retrieves the HITs with Status equal to Reviewable or Status equal to Reviewing that belong to the Requester calling the operation.
// Example sending a request using the ListReviewableHITsRequest method. req := client.ListReviewableHITsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITs
func (*MTurk) ListWorkerBlocksRequest ¶
func (c *MTurk) ListWorkerBlocksRequest(input *ListWorkerBlocksInput) ListWorkerBlocksRequest
ListWorkerBlocksRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListWorkersBlocks operation retrieves a list of Workers who are blocked from working on your HITs.
// Example sending a request using the ListWorkerBlocksRequest method. req := client.ListWorkerBlocksRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocks
func (*MTurk) ListWorkersWithQualificationTypeRequest ¶
func (c *MTurk) ListWorkersWithQualificationTypeRequest(input *ListWorkersWithQualificationTypeInput) ListWorkersWithQualificationTypeRequest
ListWorkersWithQualificationTypeRequest returns a request value for making API operation for Amazon Mechanical Turk.
The ListWorkersWithQualificationType operation returns all of the Workers that have been associated with a given Qualification type.
// Example sending a request using the ListWorkersWithQualificationTypeRequest method. req := client.ListWorkersWithQualificationTypeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationType
func (*MTurk) NotifyWorkersRequest ¶
func (c *MTurk) NotifyWorkersRequest(input *NotifyWorkersInput) NotifyWorkersRequest
NotifyWorkersRequest returns a request value for making API operation for Amazon Mechanical Turk.
The NotifyWorkers operation sends an email to one or more Workers that you specify with the Worker ID. You can specify up to 100 Worker IDs to send the same message with a single call to the NotifyWorkers operation. The NotifyWorkers operation will send a notification email to a Worker only if you have previously approved or rejected work from the Worker.
// Example sending a request using the NotifyWorkersRequest method. req := client.NotifyWorkersRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkers
func (*MTurk) RejectAssignmentRequest ¶
func (c *MTurk) RejectAssignmentRequest(input *RejectAssignmentInput) RejectAssignmentRequest
RejectAssignmentRequest returns a request value for making API operation for Amazon Mechanical Turk.
The RejectAssignment operation rejects the results of a completed assignment.
You can include an optional feedback message with the rejection, which the Worker can see in the Status section of the web site. When you include a feedback message with the rejection, it helps the Worker understand why the assignment was rejected, and can improve the quality of the results the Worker submits in the future.
Only the Requester who created the HIT can reject an assignment for the HIT.
// Example sending a request using the RejectAssignmentRequest method. req := client.RejectAssignmentRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignment
func (*MTurk) RejectQualificationRequestRequest ¶
func (c *MTurk) RejectQualificationRequestRequest(input *RejectQualificationRequestInput) RejectQualificationRequestRequest
RejectQualificationRequestRequest returns a request value for making API operation for Amazon Mechanical Turk.
The RejectQualificationRequest operation rejects a user's request for a Qualification.
You can provide a text message explaining why the request was rejected. The Worker who made the request can see this message.
// Example sending a request using the RejectQualificationRequestRequest method. req := client.RejectQualificationRequestRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequest
func (*MTurk) SendBonusRequest ¶
func (c *MTurk) SendBonusRequest(input *SendBonusInput) SendBonusRequest
SendBonusRequest returns a request value for making API operation for Amazon Mechanical Turk.
The SendBonus operation issues a payment of money from your account to a Worker. This payment happens separately from the reward you pay to the Worker when you approve the Worker's assignment. The SendBonus operation requires the Worker's ID and the assignment ID as parameters to initiate payment of the bonus. You must include a message that explains the reason for the bonus payment, as the Worker may not be expecting the payment. Amazon Mechanical Turk collects a fee for bonus payments, similar to the HIT listing fee. This operation fails if your account does not have enough funds to pay for both the bonus and the fees.
// Example sending a request using the SendBonusRequest method. req := client.SendBonusRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonus
func (*MTurk) SendTestEventNotificationRequest ¶
func (c *MTurk) SendTestEventNotificationRequest(input *SendTestEventNotificationInput) SendTestEventNotificationRequest
SendTestEventNotificationRequest returns a request value for making API operation for Amazon Mechanical Turk.
The SendTestEventNotification operation causes Amazon Mechanical Turk to send a notification message as if a HIT event occurred, according to the provided notification specification. This allows you to test notifications without setting up notifications for a real HIT type and trying to trigger them using the website. When you call this operation, the service attempts to send the test notification immediately.
// Example sending a request using the SendTestEventNotificationRequest method. req := client.SendTestEventNotificationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotification
func (*MTurk) UpdateExpirationForHITRequest ¶
func (c *MTurk) UpdateExpirationForHITRequest(input *UpdateExpirationForHITInput) UpdateExpirationForHITRequest
UpdateExpirationForHITRequest returns a request value for making API operation for Amazon Mechanical Turk.
The UpdateExpirationForHIT operation allows you update the expiration time of a HIT. If you update it to a time in the past, the HIT will be immediately expired.
// Example sending a request using the UpdateExpirationForHITRequest method. req := client.UpdateExpirationForHITRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHIT
func (*MTurk) UpdateHITReviewStatusRequest ¶
func (c *MTurk) UpdateHITReviewStatusRequest(input *UpdateHITReviewStatusInput) UpdateHITReviewStatusRequest
UpdateHITReviewStatusRequest returns a request value for making API operation for Amazon Mechanical Turk.
The UpdateHITReviewStatus operation updates the status of a HIT. If the status is Reviewable, this operation can update the status to Reviewing, or it can revert a Reviewing HIT back to the Reviewable status.
// Example sending a request using the UpdateHITReviewStatusRequest method. req := client.UpdateHITReviewStatusRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatus
func (*MTurk) UpdateHITTypeOfHITRequest ¶
func (c *MTurk) UpdateHITTypeOfHITRequest(input *UpdateHITTypeOfHITInput) UpdateHITTypeOfHITRequest
UpdateHITTypeOfHITRequest returns a request value for making API operation for Amazon Mechanical Turk.
The UpdateHITTypeOfHIT operation allows you to change the HITType properties of a HIT. This operation disassociates the HIT from its old HITType properties and associates it with the new HITType properties. The HIT takes on the properties of the new HITType in place of the old ones.
// Example sending a request using the UpdateHITTypeOfHITRequest method. req := client.UpdateHITTypeOfHITRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHIT
func (*MTurk) UpdateNotificationSettingsRequest ¶
func (c *MTurk) UpdateNotificationSettingsRequest(input *UpdateNotificationSettingsInput) UpdateNotificationSettingsRequest
UpdateNotificationSettingsRequest returns a request value for making API operation for Amazon Mechanical Turk.
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.
// Example sending a request using the UpdateNotificationSettingsRequest method. req := client.UpdateNotificationSettingsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettings
func (*MTurk) UpdateQualificationTypeRequest ¶
func (c *MTurk) UpdateQualificationTypeRequest(input *UpdateQualificationTypeInput) UpdateQualificationTypeRequest
UpdateQualificationTypeRequest returns a request value for making API operation for Amazon Mechanical Turk.
The UpdateQualificationType operation modifies the attributes of an existing Qualification type, which is represented by a QualificationType data structure. Only the owner of a Qualification type can modify its attributes.
Most attributes of a Qualification type can be changed after the type has been created. However, the Name and Keywords fields cannot be modified. The RetryDelayInSeconds parameter can be modified or added to change the delay or to enable retries, but RetryDelayInSeconds cannot be used to disable retries.
You can use this operation to update the test for a Qualification type. The test is updated based on the values specified for the Test, TestDurationInSeconds and AnswerKey parameters. All three parameters specify the updated test. If you are updating the test for a type, you must specify the Test and TestDurationInSeconds parameters. The AnswerKey parameter is optional; omitting it specifies that the updated test does not have an answer key.
If you omit the Test parameter, the test for the Qualification type is unchanged. There is no way to remove a test from a Qualification type that has one. If the type already has a test, you cannot update it to be AutoGranted. If the Qualification type does not have a test and one is provided by an update, the type will henceforth have a test.
If you want to update the test duration or answer key for an existing test without changing the questions, you must specify a Test parameter with the original questions, along with the updated values.
If you provide an updated Test but no AnswerKey, the new test will not have an answer key. Requests for such Qualifications must be granted manually.
You can also update the AutoGranted and AutoGrantedValue attributes of the Qualification type.
// Example sending a request using the UpdateQualificationTypeRequest method. req := client.UpdateQualificationTypeRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationType
type NotificationSpecification ¶
type NotificationSpecification struct { // 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. // // Destination is a required field Destination *string `type:"string" required:"true"` // 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. // // EventTypes is a required field EventTypes []EventType `type:"list" required:"true"` // The method Amazon Mechanical Turk uses to send the notification. Valid Values: // Email | SQS | SNS. // // Transport is a required field Transport NotificationTransport `type:"string" required:"true" enum:"true"` // The version of the Notification API to use. Valid value is 2006-05-05. // // Version is a required field Version *string `type:"string" required:"true"` // contains filtered or unexported fields }
The NotificationSpecification data structure describes a HIT event notification for a HIT type. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotificationSpecification
func (NotificationSpecification) GoString ¶
func (s NotificationSpecification) GoString() string
GoString returns the string representation
func (NotificationSpecification) String ¶
func (s NotificationSpecification) String() string
String returns the string representation
func (*NotificationSpecification) Validate ¶
func (s *NotificationSpecification) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type NotificationTransport ¶
type NotificationTransport string
const ( NotificationTransportEmail NotificationTransport = "Email" NotificationTransportSqs NotificationTransport = "SQS" NotificationTransportSns NotificationTransport = "SNS" )
Enum values for NotificationTransport
func (NotificationTransport) MarshalValue ¶ added in v0.3.0
func (enum NotificationTransport) MarshalValue() (string, error)
func (NotificationTransport) MarshalValueBuf ¶ added in v0.3.0
func (enum NotificationTransport) MarshalValueBuf(b []byte) ([]byte, error)
type NotifyWorkersFailureCode ¶
type NotifyWorkersFailureCode string
const ( NotifyWorkersFailureCodeSoftFailure NotifyWorkersFailureCode = "SoftFailure" NotifyWorkersFailureCodeHardFailure NotifyWorkersFailureCode = "HardFailure" )
Enum values for NotifyWorkersFailureCode
func (NotifyWorkersFailureCode) MarshalValue ¶ added in v0.3.0
func (enum NotifyWorkersFailureCode) MarshalValue() (string, error)
func (NotifyWorkersFailureCode) MarshalValueBuf ¶ added in v0.3.0
func (enum NotifyWorkersFailureCode) MarshalValueBuf(b []byte) ([]byte, error)
type NotifyWorkersFailureStatus ¶
type NotifyWorkersFailureStatus struct { // Encoded value for the failure type. NotifyWorkersFailureCode NotifyWorkersFailureCode `type:"string" enum:"true"` // A message detailing the reason the Worker could not be notified. NotifyWorkersFailureMessage *string `type:"string"` // The ID of the Worker. WorkerId *string `min:"1" type:"string"` // contains filtered or unexported fields }
When MTurk encounters an issue with notifying the Workers you specified, it returns back this object with failure details. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkersFailureStatus
func (NotifyWorkersFailureStatus) GoString ¶
func (s NotifyWorkersFailureStatus) GoString() string
GoString returns the string representation
func (NotifyWorkersFailureStatus) String ¶
func (s NotifyWorkersFailureStatus) String() string
String returns the string representation
type NotifyWorkersInput ¶
type NotifyWorkersInput struct { // The text of the email message to send. Can include up to 4,096 characters // // MessageText is a required field MessageText *string `type:"string" required:"true"` // The subject line of the email message to send. Can include up to 200 characters. // // Subject is a required field Subject *string `type:"string" required:"true"` // A list of Worker IDs you wish to notify. You can notify upto 100 Workers // at a time. // // WorkerIds is a required field WorkerIds []string `type:"list" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkersRequest
func (NotifyWorkersInput) GoString ¶
func (s NotifyWorkersInput) GoString() string
GoString returns the string representation
func (NotifyWorkersInput) String ¶
func (s NotifyWorkersInput) String() string
String returns the string representation
func (*NotifyWorkersInput) Validate ¶
func (s *NotifyWorkersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type NotifyWorkersOutput ¶
type NotifyWorkersOutput struct { // When MTurk sends notifications to the list of Workers, it returns back any // failures it encounters in this list of NotifyWorkersFailureStatus objects. NotifyWorkersFailureStatuses []NotifyWorkersFailureStatus `type:"list"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkersResponse
func (NotifyWorkersOutput) GoString ¶
func (s NotifyWorkersOutput) GoString() string
GoString returns the string representation
func (NotifyWorkersOutput) SDKResponseMetadata ¶
func (s NotifyWorkersOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (NotifyWorkersOutput) String ¶
func (s NotifyWorkersOutput) String() string
String returns the string representation
type NotifyWorkersRequest ¶
type NotifyWorkersRequest struct { *aws.Request Input *NotifyWorkersInput Copy func(*NotifyWorkersInput) NotifyWorkersRequest }
NotifyWorkersRequest is a API request type for the NotifyWorkers API operation.
func (NotifyWorkersRequest) Send ¶
func (r NotifyWorkersRequest) Send() (*NotifyWorkersOutput, error)
Send marshals and sends the NotifyWorkers API request.
type ParameterMapEntry ¶
type ParameterMapEntry struct { // 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. Key *string `type:"string"` // 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. Values []string `type:"list"` // contains filtered or unexported fields }
This data structure is the data type for the AnswerKey parameter of the ScoreMyKnownAnswers/2011-09-01 Review Policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ParameterMapEntry
func (ParameterMapEntry) GoString ¶
func (s ParameterMapEntry) GoString() string
GoString returns the string representation
func (ParameterMapEntry) String ¶
func (s ParameterMapEntry) String() string
String returns the string representation
type PolicyParameter ¶
type PolicyParameter struct { // Name of the parameter from the list of Review Polices. Key *string `type:"string"` // List of ParameterMapEntry objects. MapEntries []ParameterMapEntry `type:"list"` // The list of values of the Parameter Values []string `type:"list"` // contains filtered or unexported fields }
Name of the parameter from the Review policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/PolicyParameter
func (PolicyParameter) GoString ¶
func (s PolicyParameter) GoString() string
GoString returns the string representation
func (PolicyParameter) String ¶
func (s PolicyParameter) String() string
String returns the string representation
type Qualification ¶
type Qualification struct { // 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. GrantTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The value (score) of the Qualification, if the Qualification has an integer // value. IntegerValue *int64 `type:"integer"` // The Locale data structure represents a geographical region or location. LocaleValue *Locale `type:"structure"` // The ID of the Qualification type for the Qualification. QualificationTypeId *string `min:"1" type:"string"` // The status of the Qualification. Valid values are Granted | Revoked. Status QualificationStatus `type:"string" enum:"true"` // The ID of the Worker who possesses the Qualification. WorkerId *string `min:"1" type:"string"` // contains filtered or unexported fields }
The Qualification data structure represents a Qualification assigned to a user, including the Qualification type and the value (score). Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/Qualification
func (Qualification) GoString ¶
func (s Qualification) GoString() string
GoString returns the string representation
func (Qualification) String ¶
func (s Qualification) String() string
String returns the string representation
type QualificationRequest ¶
type QualificationRequest struct { // 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. Answer *string `type:"string"` // The ID of the Qualification request, a unique identifier generated when the // request was submitted. QualificationRequestId *string `type:"string"` // The ID of the Qualification type the Worker is requesting, as returned by // the CreateQualificationType operation. QualificationTypeId *string `min:"1" type:"string"` // 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. SubmitTime *time.Time `type:"timestamp" timestampFormat:"unix"` // 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. Test *string `type:"string"` // The ID of the Worker requesting the Qualification. WorkerId *string `min:"1" type:"string"` // contains filtered or unexported fields }
The QualificationRequest data structure represents a request a Worker has made for a Qualification. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationRequest
func (QualificationRequest) GoString ¶
func (s QualificationRequest) GoString() string
GoString returns the string representation
func (QualificationRequest) String ¶
func (s QualificationRequest) String() string
String returns the string representation
type QualificationRequirement ¶
type QualificationRequirement struct { // 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. ActionsGuarded HITAccessActions `type:"string" enum:"true"` // 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. // // Comparator is a required field Comparator Comparator `type:"string" required:"true" enum:"true"` // 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. IntegerValues []int64 `type:"list"` // 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. LocaleValues []Locale `type:"list"` // The ID of the Qualification type for the requirement. // // QualificationTypeId is a required field QualificationTypeId *string `type:"string" required:"true"` // 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. RequiredToPreview *bool `deprecated:"true" type:"boolean"` // contains filtered or unexported fields }
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. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationRequirement
func (QualificationRequirement) GoString ¶
func (s QualificationRequirement) GoString() string
GoString returns the string representation
func (QualificationRequirement) String ¶
func (s QualificationRequirement) String() string
String returns the string representation
func (*QualificationRequirement) Validate ¶
func (s *QualificationRequirement) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type QualificationStatus ¶
type QualificationStatus string
const ( QualificationStatusGranted QualificationStatus = "Granted" QualificationStatusRevoked QualificationStatus = "Revoked" )
Enum values for QualificationStatus
func (QualificationStatus) MarshalValue ¶ added in v0.3.0
func (enum QualificationStatus) MarshalValue() (string, error)
func (QualificationStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum QualificationStatus) MarshalValueBuf(b []byte) ([]byte, error)
type QualificationType ¶
type QualificationType struct { // The answers to the Qualification test specified in the Test parameter. AnswerKey *string `type:"string"` // Specifies that requests for the Qualification type are granted immediately, // without prompting the Worker with a Qualification test. Valid values are // True | False. AutoGranted *bool `type:"boolean"` // The Qualification integer value to use for automatically granted Qualifications, // if AutoGranted is true. This is 1 by default. AutoGrantedValue *int64 `type:"integer"` // The date and time the Qualification type was created. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"` // A long description for the Qualification type. Description *string `type:"string"` // 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. IsRequestable *bool `type:"boolean"` // One or more words or phrases that describe theQualification type, separated // by commas. The Keywords make the type easier to find using a search. Keywords *string `type:"string"` // 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. Name *string `type:"string"` // A unique identifier for the Qualification type. A Qualification type is given // a Qualification type ID when you call the CreateQualificationType operation. QualificationTypeId *string `min:"1" type:"string"` // 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. QualificationTypeStatus QualificationTypeStatus `type:"string" enum:"true"` // 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. RetryDelayInSeconds *int64 `type:"long"` // 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. Test *string `type:"string"` // The amount of time, in seconds, given to a Worker to complete the Qualification // test, beginning from the time the Worker requests the Qualification. TestDurationInSeconds *int64 `type:"long"` // contains filtered or unexported fields }
The QualificationType data structure represents a Qualification type, a description of a property of a Worker that must match the requirements of a HIT for the Worker to be able to accept the HIT. The type also describes how a Worker can obtain a Qualification of that type, such as through a Qualification test. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/QualificationType
func (QualificationType) GoString ¶
func (s QualificationType) GoString() string
GoString returns the string representation
func (QualificationType) String ¶
func (s QualificationType) String() string
String returns the string representation
type QualificationTypeStatus ¶
type QualificationTypeStatus string
const ( QualificationTypeStatusActive QualificationTypeStatus = "Active" QualificationTypeStatusInactive QualificationTypeStatus = "Inactive" )
Enum values for QualificationTypeStatus
func (QualificationTypeStatus) MarshalValue ¶ added in v0.3.0
func (enum QualificationTypeStatus) MarshalValue() (string, error)
func (QualificationTypeStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum QualificationTypeStatus) MarshalValueBuf(b []byte) ([]byte, error)
type RejectAssignmentInput ¶
type RejectAssignmentInput struct { // The ID of the assignment. The assignment must correspond to a HIT created // by the Requester. // // AssignmentId is a required field AssignmentId *string `min:"1" type:"string" required:"true"` // A message for the Worker, which the Worker can see in the Status section // of the web site. // // RequesterFeedback is a required field RequesterFeedback *string `type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignmentRequest
func (RejectAssignmentInput) GoString ¶
func (s RejectAssignmentInput) GoString() string
GoString returns the string representation
func (RejectAssignmentInput) String ¶
func (s RejectAssignmentInput) String() string
String returns the string representation
func (*RejectAssignmentInput) Validate ¶
func (s *RejectAssignmentInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RejectAssignmentOutput ¶
type RejectAssignmentOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignmentResponse
func (RejectAssignmentOutput) GoString ¶
func (s RejectAssignmentOutput) GoString() string
GoString returns the string representation
func (RejectAssignmentOutput) SDKResponseMetadata ¶
func (s RejectAssignmentOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (RejectAssignmentOutput) String ¶
func (s RejectAssignmentOutput) String() string
String returns the string representation
type RejectAssignmentRequest ¶
type RejectAssignmentRequest struct { *aws.Request Input *RejectAssignmentInput Copy func(*RejectAssignmentInput) RejectAssignmentRequest }
RejectAssignmentRequest is a API request type for the RejectAssignment API operation.
func (RejectAssignmentRequest) Send ¶
func (r RejectAssignmentRequest) Send() (*RejectAssignmentOutput, error)
Send marshals and sends the RejectAssignment API request.
type RejectQualificationRequestInput ¶
type RejectQualificationRequestInput struct { // The ID of the Qualification request, as returned by the ListQualificationRequests // operation. // // QualificationRequestId is a required field QualificationRequestId *string `type:"string" required:"true"` // A text message explaining why the request was rejected, to be shown to the // Worker who made the request. Reason *string `type:"string"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequestRequest
func (RejectQualificationRequestInput) GoString ¶
func (s RejectQualificationRequestInput) GoString() string
GoString returns the string representation
func (RejectQualificationRequestInput) String ¶
func (s RejectQualificationRequestInput) String() string
String returns the string representation
func (*RejectQualificationRequestInput) Validate ¶
func (s *RejectQualificationRequestInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RejectQualificationRequestOutput ¶
type RejectQualificationRequestOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequestResponse
func (RejectQualificationRequestOutput) GoString ¶
func (s RejectQualificationRequestOutput) GoString() string
GoString returns the string representation
func (RejectQualificationRequestOutput) SDKResponseMetadata ¶
func (s RejectQualificationRequestOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (RejectQualificationRequestOutput) String ¶
func (s RejectQualificationRequestOutput) String() string
String returns the string representation
type RejectQualificationRequestRequest ¶
type RejectQualificationRequestRequest struct { *aws.Request Input *RejectQualificationRequestInput Copy func(*RejectQualificationRequestInput) RejectQualificationRequestRequest }
RejectQualificationRequestRequest is a API request type for the RejectQualificationRequest API operation.
func (RejectQualificationRequestRequest) Send ¶
func (r RejectQualificationRequestRequest) Send() (*RejectQualificationRequestOutput, error)
Send marshals and sends the RejectQualificationRequest API request.
type ReviewActionDetail ¶
type ReviewActionDetail struct { // The unique identifier for the action. ActionId *string `min:"1" type:"string"` // 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. ActionName *string `type:"string"` // The date when the action was completed. CompleteTime *time.Time `type:"timestamp" timestampFormat:"unix"` // Present only when the Results have a FAILED Status. ErrorCode *string `type:"string"` // A description of the outcome of the review. Result *string `type:"string"` // The current disposition of the action: INTENDED, SUCCEEDED, FAILED, or CANCELLED. Status ReviewActionStatus `type:"string" enum:"true"` // The specific HITId or AssignmentID targeted by the action. TargetId *string `min:"1" type:"string"` // The type of object in TargetId. TargetType *string `type:"string"` // contains filtered or unexported fields }
Both the AssignmentReviewReport and the HITReviewReport elements contains the ReviewActionDetail data structure. This structure is returned multiple times for each action specified in the Review Policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewActionDetail
func (ReviewActionDetail) GoString ¶
func (s ReviewActionDetail) GoString() string
GoString returns the string representation
func (ReviewActionDetail) String ¶
func (s ReviewActionDetail) String() string
String returns the string representation
type ReviewActionStatus ¶
type ReviewActionStatus string
const ( ReviewActionStatusIntended ReviewActionStatus = "Intended" ReviewActionStatusSucceeded ReviewActionStatus = "Succeeded" ReviewActionStatusFailed ReviewActionStatus = "Failed" ReviewActionStatusCancelled ReviewActionStatus = "Cancelled" )
Enum values for ReviewActionStatus
func (ReviewActionStatus) MarshalValue ¶ added in v0.3.0
func (enum ReviewActionStatus) MarshalValue() (string, error)
func (ReviewActionStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum ReviewActionStatus) MarshalValueBuf(b []byte) ([]byte, error)
type ReviewPolicy ¶
type ReviewPolicy struct { // Name of the parameter from the Review policy. Parameters []PolicyParameter `type:"list"` // Name of a Review Policy: SimplePlurality/2011-09-01 or ScoreMyKnownAnswers/2011-09-01 // // PolicyName is a required field PolicyName *string `type:"string" required:"true"` // contains filtered or unexported fields }
HIT Review Policy data structures represent HIT review policies, which you specify when you create a HIT. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewPolicy
func (ReviewPolicy) GoString ¶
func (s ReviewPolicy) GoString() string
GoString returns the string representation
func (ReviewPolicy) String ¶
func (s ReviewPolicy) String() string
String returns the string representation
func (*ReviewPolicy) Validate ¶
func (s *ReviewPolicy) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ReviewPolicyLevel ¶
type ReviewPolicyLevel string
const ( ReviewPolicyLevelAssignment ReviewPolicyLevel = "Assignment" ReviewPolicyLevelHit ReviewPolicyLevel = "HIT" )
Enum values for ReviewPolicyLevel
func (ReviewPolicyLevel) MarshalValue ¶ added in v0.3.0
func (enum ReviewPolicyLevel) MarshalValue() (string, error)
func (ReviewPolicyLevel) MarshalValueBuf ¶ added in v0.3.0
func (enum ReviewPolicyLevel) MarshalValueBuf(b []byte) ([]byte, error)
type ReviewReport ¶
type ReviewReport struct { // A list of ReviewAction objects for each action specified in the Review Policy. ReviewActions []ReviewActionDetail `type:"list"` // A list of ReviewResults objects for each action specified in the Review Policy. ReviewResults []ReviewResultDetail `type:"list"` // contains filtered or unexported fields }
Contains both ReviewResult and ReviewAction elements for a particular HIT. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewReport
func (ReviewReport) GoString ¶
func (s ReviewReport) GoString() string
GoString returns the string representation
func (ReviewReport) String ¶
func (s ReviewReport) String() string
String returns the string representation
type ReviewResultDetail ¶
type ReviewResultDetail struct { // A unique identifier of the Review action result. ActionId *string `min:"1" type:"string"` // Key identifies the particular piece of reviewed information. Key *string `type:"string"` // 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. QuestionId *string `min:"1" type:"string"` // 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. SubjectId *string `min:"1" type:"string"` // The type of the object from the SubjectId field. SubjectType *string `type:"string"` // The values of Key provided by the review policies you have selected. Value *string `type:"string"` // contains filtered or unexported fields }
This data structure is returned multiple times for each result specified in the Review Policy. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ReviewResultDetail
func (ReviewResultDetail) GoString ¶
func (s ReviewResultDetail) GoString() string
GoString returns the string representation
func (ReviewResultDetail) String ¶
func (s ReviewResultDetail) String() string
String returns the string representation
type ReviewableHITStatus ¶
type ReviewableHITStatus string
const ( ReviewableHITStatusReviewable ReviewableHITStatus = "Reviewable" ReviewableHITStatusReviewing ReviewableHITStatus = "Reviewing" )
Enum values for ReviewableHITStatus
func (ReviewableHITStatus) MarshalValue ¶ added in v0.3.0
func (enum ReviewableHITStatus) MarshalValue() (string, error)
func (ReviewableHITStatus) MarshalValueBuf ¶ added in v0.3.0
func (enum ReviewableHITStatus) MarshalValueBuf(b []byte) ([]byte, error)
type SendBonusInput ¶
type SendBonusInput struct { // The ID of the assignment for which this bonus is paid. // // AssignmentId is a required field AssignmentId *string `min:"1" type:"string" required:"true"` // 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. // // BonusAmount is a required field BonusAmount *string `type:"string" required:"true"` // A message that explains the reason for the bonus payment. The Worker receiving // the bonus can see this message. // // Reason is a required field Reason *string `type:"string" required:"true"` // 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. UniqueRequestToken *string `min:"1" type:"string"` // The ID of the Worker being paid the bonus. // // WorkerId is a required field WorkerId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonusRequest
func (SendBonusInput) GoString ¶
func (s SendBonusInput) GoString() string
GoString returns the string representation
func (SendBonusInput) String ¶
func (s SendBonusInput) String() string
String returns the string representation
func (*SendBonusInput) Validate ¶
func (s *SendBonusInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SendBonusOutput ¶
type SendBonusOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonusResponse
func (SendBonusOutput) GoString ¶
func (s SendBonusOutput) GoString() string
GoString returns the string representation
func (SendBonusOutput) SDKResponseMetadata ¶
func (s SendBonusOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (SendBonusOutput) String ¶
func (s SendBonusOutput) String() string
String returns the string representation
type SendBonusRequest ¶
type SendBonusRequest struct { *aws.Request Input *SendBonusInput Copy func(*SendBonusInput) SendBonusRequest }
SendBonusRequest is a API request type for the SendBonus API operation.
func (SendBonusRequest) Send ¶
func (r SendBonusRequest) Send() (*SendBonusOutput, error)
Send marshals and sends the SendBonus API request.
type SendTestEventNotificationInput ¶
type SendTestEventNotificationInput struct { // 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. // // Notification is a required field Notification *NotificationSpecification `type:"structure" required:"true"` // 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. // // TestEventType is a required field TestEventType EventType `type:"string" required:"true" enum:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotificationRequest
func (SendTestEventNotificationInput) GoString ¶
func (s SendTestEventNotificationInput) GoString() string
GoString returns the string representation
func (SendTestEventNotificationInput) String ¶
func (s SendTestEventNotificationInput) String() string
String returns the string representation
func (*SendTestEventNotificationInput) Validate ¶
func (s *SendTestEventNotificationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SendTestEventNotificationOutput ¶
type SendTestEventNotificationOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotificationResponse
func (SendTestEventNotificationOutput) GoString ¶
func (s SendTestEventNotificationOutput) GoString() string
GoString returns the string representation
func (SendTestEventNotificationOutput) SDKResponseMetadata ¶
func (s SendTestEventNotificationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (SendTestEventNotificationOutput) String ¶
func (s SendTestEventNotificationOutput) String() string
String returns the string representation
type SendTestEventNotificationRequest ¶
type SendTestEventNotificationRequest struct { *aws.Request Input *SendTestEventNotificationInput Copy func(*SendTestEventNotificationInput) SendTestEventNotificationRequest }
SendTestEventNotificationRequest is a API request type for the SendTestEventNotification API operation.
func (SendTestEventNotificationRequest) Send ¶
func (r SendTestEventNotificationRequest) Send() (*SendTestEventNotificationOutput, error)
Send marshals and sends the SendTestEventNotification API request.
type UpdateExpirationForHITInput ¶
type UpdateExpirationForHITInput struct { // The date and time at which you want the HIT to expire // // ExpireAt is a required field ExpireAt *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` // The HIT to update. // // HITId is a required field HITId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHITRequest
func (UpdateExpirationForHITInput) GoString ¶
func (s UpdateExpirationForHITInput) GoString() string
GoString returns the string representation
func (UpdateExpirationForHITInput) String ¶
func (s UpdateExpirationForHITInput) String() string
String returns the string representation
func (*UpdateExpirationForHITInput) Validate ¶
func (s *UpdateExpirationForHITInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateExpirationForHITOutput ¶
type UpdateExpirationForHITOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHITResponse
func (UpdateExpirationForHITOutput) GoString ¶
func (s UpdateExpirationForHITOutput) GoString() string
GoString returns the string representation
func (UpdateExpirationForHITOutput) SDKResponseMetadata ¶
func (s UpdateExpirationForHITOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateExpirationForHITOutput) String ¶
func (s UpdateExpirationForHITOutput) String() string
String returns the string representation
type UpdateExpirationForHITRequest ¶
type UpdateExpirationForHITRequest struct { *aws.Request Input *UpdateExpirationForHITInput Copy func(*UpdateExpirationForHITInput) UpdateExpirationForHITRequest }
UpdateExpirationForHITRequest is a API request type for the UpdateExpirationForHIT API operation.
func (UpdateExpirationForHITRequest) Send ¶
func (r UpdateExpirationForHITRequest) Send() (*UpdateExpirationForHITOutput, error)
Send marshals and sends the UpdateExpirationForHIT API request.
type UpdateHITReviewStatusInput ¶
type UpdateHITReviewStatusInput struct { // The ID of the HIT to update. // // HITId is a required field HITId *string `min:"1" type:"string" required:"true"` // 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 Revert *bool `type:"boolean"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatusRequest
func (UpdateHITReviewStatusInput) GoString ¶
func (s UpdateHITReviewStatusInput) GoString() string
GoString returns the string representation
func (UpdateHITReviewStatusInput) String ¶
func (s UpdateHITReviewStatusInput) String() string
String returns the string representation
func (*UpdateHITReviewStatusInput) Validate ¶
func (s *UpdateHITReviewStatusInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateHITReviewStatusOutput ¶
type UpdateHITReviewStatusOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatusResponse
func (UpdateHITReviewStatusOutput) GoString ¶
func (s UpdateHITReviewStatusOutput) GoString() string
GoString returns the string representation
func (UpdateHITReviewStatusOutput) SDKResponseMetadata ¶
func (s UpdateHITReviewStatusOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateHITReviewStatusOutput) String ¶
func (s UpdateHITReviewStatusOutput) String() string
String returns the string representation
type UpdateHITReviewStatusRequest ¶
type UpdateHITReviewStatusRequest struct { *aws.Request Input *UpdateHITReviewStatusInput Copy func(*UpdateHITReviewStatusInput) UpdateHITReviewStatusRequest }
UpdateHITReviewStatusRequest is a API request type for the UpdateHITReviewStatus API operation.
func (UpdateHITReviewStatusRequest) Send ¶
func (r UpdateHITReviewStatusRequest) Send() (*UpdateHITReviewStatusOutput, error)
Send marshals and sends the UpdateHITReviewStatus API request.
type UpdateHITTypeOfHITInput ¶
type UpdateHITTypeOfHITInput struct { // The HIT to update. // // HITId is a required field HITId *string `min:"1" type:"string" required:"true"` // The ID of the new HIT type. // // HITTypeId is a required field HITTypeId *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHITRequest
func (UpdateHITTypeOfHITInput) GoString ¶
func (s UpdateHITTypeOfHITInput) GoString() string
GoString returns the string representation
func (UpdateHITTypeOfHITInput) String ¶
func (s UpdateHITTypeOfHITInput) String() string
String returns the string representation
func (*UpdateHITTypeOfHITInput) Validate ¶
func (s *UpdateHITTypeOfHITInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateHITTypeOfHITOutput ¶
type UpdateHITTypeOfHITOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHITResponse
func (UpdateHITTypeOfHITOutput) GoString ¶
func (s UpdateHITTypeOfHITOutput) GoString() string
GoString returns the string representation
func (UpdateHITTypeOfHITOutput) SDKResponseMetadata ¶
func (s UpdateHITTypeOfHITOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateHITTypeOfHITOutput) String ¶
func (s UpdateHITTypeOfHITOutput) String() string
String returns the string representation
type UpdateHITTypeOfHITRequest ¶
type UpdateHITTypeOfHITRequest struct { *aws.Request Input *UpdateHITTypeOfHITInput Copy func(*UpdateHITTypeOfHITInput) UpdateHITTypeOfHITRequest }
UpdateHITTypeOfHITRequest is a API request type for the UpdateHITTypeOfHIT API operation.
func (UpdateHITTypeOfHITRequest) Send ¶
func (r UpdateHITTypeOfHITRequest) Send() (*UpdateHITTypeOfHITOutput, error)
Send marshals and sends the UpdateHITTypeOfHIT API request.
type UpdateNotificationSettingsInput ¶
type UpdateNotificationSettingsInput struct { // 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. Active *bool `type:"boolean"` // The ID of the HIT type whose notification specification is being updated. // // HITTypeId is a required field HITTypeId *string `min:"1" type:"string" required:"true"` // The notification specification for the HIT type. Notification *NotificationSpecification `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettingsRequest
func (UpdateNotificationSettingsInput) GoString ¶
func (s UpdateNotificationSettingsInput) GoString() string
GoString returns the string representation
func (UpdateNotificationSettingsInput) String ¶
func (s UpdateNotificationSettingsInput) String() string
String returns the string representation
func (*UpdateNotificationSettingsInput) Validate ¶
func (s *UpdateNotificationSettingsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateNotificationSettingsOutput ¶
type UpdateNotificationSettingsOutput struct {
// contains filtered or unexported fields
}
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettingsResponse
func (UpdateNotificationSettingsOutput) GoString ¶
func (s UpdateNotificationSettingsOutput) GoString() string
GoString returns the string representation
func (UpdateNotificationSettingsOutput) SDKResponseMetadata ¶
func (s UpdateNotificationSettingsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateNotificationSettingsOutput) String ¶
func (s UpdateNotificationSettingsOutput) String() string
String returns the string representation
type UpdateNotificationSettingsRequest ¶
type UpdateNotificationSettingsRequest struct { *aws.Request Input *UpdateNotificationSettingsInput Copy func(*UpdateNotificationSettingsInput) UpdateNotificationSettingsRequest }
UpdateNotificationSettingsRequest is a API request type for the UpdateNotificationSettings API operation.
func (UpdateNotificationSettingsRequest) Send ¶
func (r UpdateNotificationSettingsRequest) Send() (*UpdateNotificationSettingsOutput, error)
Send marshals and sends the UpdateNotificationSettings API request.
type UpdateQualificationTypeInput ¶
type UpdateQualificationTypeInput struct { // The answers to the Qualification test specified in the Test parameter, in // the form of an AnswerKey data structure. AnswerKey *string `type:"string"` // 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. AutoGranted *bool `type:"boolean"` // The Qualification value to use for automatically granted Qualifications. // This parameter is used only if the AutoGranted parameter is true. AutoGrantedValue *int64 `type:"integer"` // The new description of the Qualification type. Description *string `type:"string"` // The ID of the Qualification type to update. // // QualificationTypeId is a required field QualificationTypeId *string `min:"1" type:"string" required:"true"` // The new status of the Qualification type - Active | Inactive QualificationTypeStatus QualificationTypeStatus `type:"string" enum:"true"` // 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. RetryDelayInSeconds *int64 `type:"long"` // 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. Test *string `type:"string"` // The number of seconds the Worker has to complete the Qualification test, // starting from the time the Worker requests the Qualification. TestDurationInSeconds *int64 `type:"long"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationTypeRequest
func (UpdateQualificationTypeInput) GoString ¶
func (s UpdateQualificationTypeInput) GoString() string
GoString returns the string representation
func (UpdateQualificationTypeInput) String ¶
func (s UpdateQualificationTypeInput) String() string
String returns the string representation
func (*UpdateQualificationTypeInput) Validate ¶
func (s *UpdateQualificationTypeInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateQualificationTypeOutput ¶
type UpdateQualificationTypeOutput struct { // Contains a QualificationType data structure. QualificationType *QualificationType `type:"structure"` // contains filtered or unexported fields }
Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationTypeResponse
func (UpdateQualificationTypeOutput) GoString ¶
func (s UpdateQualificationTypeOutput) GoString() string
GoString returns the string representation
func (UpdateQualificationTypeOutput) SDKResponseMetadata ¶
func (s UpdateQualificationTypeOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateQualificationTypeOutput) String ¶
func (s UpdateQualificationTypeOutput) String() string
String returns the string representation
type UpdateQualificationTypeRequest ¶
type UpdateQualificationTypeRequest struct { *aws.Request Input *UpdateQualificationTypeInput Copy func(*UpdateQualificationTypeInput) UpdateQualificationTypeRequest }
UpdateQualificationTypeRequest is a API request type for the UpdateQualificationType API operation.
func (UpdateQualificationTypeRequest) Send ¶
func (r UpdateQualificationTypeRequest) Send() (*UpdateQualificationTypeOutput, error)
Send marshals and sends the UpdateQualificationType API request.
type WorkerBlock ¶
type WorkerBlock struct { // A message explaining the reason the Worker was blocked. Reason *string `type:"string"` // The ID of the Worker who accepted the HIT. WorkerId *string `min:"1" type:"string"` // contains filtered or unexported fields }
The WorkerBlock data structure represents a Worker who has been blocked. It has two elements: the WorkerId and the Reason for the block. Please also see https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/WorkerBlock
func (WorkerBlock) GoString ¶
func (s WorkerBlock) GoString() string
GoString returns the string representation
func (WorkerBlock) String ¶
func (s WorkerBlock) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package mturkiface provides an interface to enable mocking the Amazon Mechanical Turk service client for testing your code.
|
Package mturkiface provides an interface to enable mocking the Amazon Mechanical Turk service client for testing your code. |