AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

MTurk

import "github.com/aws/aws-sdk-go/service/mturk"

type MTurk struct { *client.Client }

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.

Client

Type: *client.Client

Method

AcceptQualificationRequest

func (c *MTurk) AcceptQualificationRequest(input *AcceptQualificationRequestInput) (*AcceptQualificationRequestOutput, error)

AcceptQualificationRequest 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation AcceptQualificationRequest for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequest

AcceptQualificationRequestRequest

func (c *MTurk) AcceptQualificationRequestRequest(input *AcceptQualificationRequestInput) (req *request.Request, output *AcceptQualificationRequestOutput)

AcceptQualificationRequestRequest generates a "aws/request.Request" representing the client's request for the AcceptQualificationRequest operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AcceptQualificationRequest for more information on using the AcceptQualificationRequest API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AcceptQualificationRequestRequest method. req, resp := client.AcceptQualificationRequestRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequest

AcceptQualificationRequestWithContext

func (c *MTurk) AcceptQualificationRequestWithContext(ctx aws.Context, input *AcceptQualificationRequestInput, opts ...request.Option) (*AcceptQualificationRequestOutput, error)

AcceptQualificationRequestWithContext is the same as AcceptQualificationRequest with the addition of the ability to pass a context and additional request options.

See AcceptQualificationRequest for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ApproveAssignment

func (c *MTurk) ApproveAssignment(input *ApproveAssignmentInput) (*ApproveAssignmentOutput, error)

ApproveAssignment 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ApproveAssignment for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignment

ApproveAssignmentRequest

func (c *MTurk) ApproveAssignmentRequest(input *ApproveAssignmentInput) (req *request.Request, output *ApproveAssignmentOutput)

ApproveAssignmentRequest generates a "aws/request.Request" representing the client's request for the ApproveAssignment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ApproveAssignment for more information on using the ApproveAssignment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ApproveAssignmentRequest method. req, resp := client.ApproveAssignmentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignment

ApproveAssignmentWithContext

func (c *MTurk) ApproveAssignmentWithContext(ctx aws.Context, input *ApproveAssignmentInput, opts ...request.Option) (*ApproveAssignmentOutput, error)

ApproveAssignmentWithContext is the same as ApproveAssignment with the addition of the ability to pass a context and additional request options.

See ApproveAssignment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

AssociateQualificationWithWorker

func (c *MTurk) AssociateQualificationWithWorker(input *AssociateQualificationWithWorkerInput) (*AssociateQualificationWithWorkerOutput, error)

AssociateQualificationWithWorker 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation AssociateQualificationWithWorker for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorker

AssociateQualificationWithWorkerRequest

func (c *MTurk) AssociateQualificationWithWorkerRequest(input *AssociateQualificationWithWorkerInput) (req *request.Request, output *AssociateQualificationWithWorkerOutput)

AssociateQualificationWithWorkerRequest generates a "aws/request.Request" representing the client's request for the AssociateQualificationWithWorker operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AssociateQualificationWithWorker for more information on using the AssociateQualificationWithWorker API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AssociateQualificationWithWorkerRequest method. req, resp := client.AssociateQualificationWithWorkerRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorker

AssociateQualificationWithWorkerWithContext

func (c *MTurk) AssociateQualificationWithWorkerWithContext(ctx aws.Context, input *AssociateQualificationWithWorkerInput, opts ...request.Option) (*AssociateQualificationWithWorkerOutput, error)

AssociateQualificationWithWorkerWithContext is the same as AssociateQualificationWithWorker with the addition of the ability to pass a context and additional request options.

See AssociateQualificationWithWorker for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateAdditionalAssignmentsForHIT

func (c *MTurk) CreateAdditionalAssignmentsForHIT(input *CreateAdditionalAssignmentsForHITInput) (*CreateAdditionalAssignmentsForHITOutput, error)

CreateAdditionalAssignmentsForHIT 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation CreateAdditionalAssignmentsForHIT for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHIT

CreateAdditionalAssignmentsForHITRequest

func (c *MTurk) CreateAdditionalAssignmentsForHITRequest(input *CreateAdditionalAssignmentsForHITInput) (req *request.Request, output *CreateAdditionalAssignmentsForHITOutput)

CreateAdditionalAssignmentsForHITRequest generates a "aws/request.Request" representing the client's request for the CreateAdditionalAssignmentsForHIT operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateAdditionalAssignmentsForHIT for more information on using the CreateAdditionalAssignmentsForHIT API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateAdditionalAssignmentsForHITRequest method. req, resp := client.CreateAdditionalAssignmentsForHITRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHIT

CreateAdditionalAssignmentsForHITWithContext

func (c *MTurk) CreateAdditionalAssignmentsForHITWithContext(ctx aws.Context, input *CreateAdditionalAssignmentsForHITInput, opts ...request.Option) (*CreateAdditionalAssignmentsForHITOutput, error)

CreateAdditionalAssignmentsForHITWithContext is the same as CreateAdditionalAssignmentsForHIT with the addition of the ability to pass a context and additional request options.

See CreateAdditionalAssignmentsForHIT for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateHIT

func (c *MTurk) CreateHIT(input *CreateHITInput) (*CreateHITOutput, error)

CreateHIT 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).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation CreateHIT for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHIT

CreateHITRequest

func (c *MTurk) CreateHITRequest(input *CreateHITInput) (req *request.Request, output *CreateHITOutput)

CreateHITRequest generates a "aws/request.Request" representing the client's request for the CreateHIT operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateHIT for more information on using the CreateHIT API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateHITRequest method. req, resp := client.CreateHITRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHIT

CreateHITType

func (c *MTurk) CreateHITType(input *CreateHITTypeInput) (*CreateHITTypeOutput, error)

CreateHITType 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation CreateHITType for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITType

CreateHITTypeRequest

func (c *MTurk) CreateHITTypeRequest(input *CreateHITTypeInput) (req *request.Request, output *CreateHITTypeOutput)

CreateHITTypeRequest generates a "aws/request.Request" representing the client's request for the CreateHITType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateHITType for more information on using the CreateHITType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateHITTypeRequest method. req, resp := client.CreateHITTypeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITType

CreateHITTypeWithContext

func (c *MTurk) CreateHITTypeWithContext(ctx aws.Context, input *CreateHITTypeInput, opts ...request.Option) (*CreateHITTypeOutput, error)

CreateHITTypeWithContext is the same as CreateHITType with the addition of the ability to pass a context and additional request options.

See CreateHITType for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateHITWithContext

func (c *MTurk) CreateHITWithContext(ctx aws.Context, input *CreateHITInput, opts ...request.Option) (*CreateHITOutput, error)

CreateHITWithContext is the same as CreateHIT with the addition of the ability to pass a context and additional request options.

See CreateHIT for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateHITWithHITType

func (c *MTurk) CreateHITWithHITType(input *CreateHITWithHITTypeInput) (*CreateHITWithHITTypeOutput, error)

CreateHITWithHITType 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).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation CreateHITWithHITType for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITType

CreateHITWithHITTypeRequest

func (c *MTurk) CreateHITWithHITTypeRequest(input *CreateHITWithHITTypeInput) (req *request.Request, output *CreateHITWithHITTypeOutput)

CreateHITWithHITTypeRequest generates a "aws/request.Request" representing the client's request for the CreateHITWithHITType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateHITWithHITType for more information on using the CreateHITWithHITType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateHITWithHITTypeRequest method. req, resp := client.CreateHITWithHITTypeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITType

CreateHITWithHITTypeWithContext

func (c *MTurk) CreateHITWithHITTypeWithContext(ctx aws.Context, input *CreateHITWithHITTypeInput, opts ...request.Option) (*CreateHITWithHITTypeOutput, error)

CreateHITWithHITTypeWithContext is the same as CreateHITWithHITType with the addition of the ability to pass a context and additional request options.

See CreateHITWithHITType for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateQualificationType

func (c *MTurk) CreateQualificationType(input *CreateQualificationTypeInput) (*CreateQualificationTypeOutput, error)

CreateQualificationType API operation for Amazon Mechanical Turk.

The CreateQualificationType operation creates a new Qualification type, which is represented by a QualificationType data structure.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation CreateQualificationType for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationType

CreateQualificationTypeRequest

func (c *MTurk) CreateQualificationTypeRequest(input *CreateQualificationTypeInput) (req *request.Request, output *CreateQualificationTypeOutput)

CreateQualificationTypeRequest generates a "aws/request.Request" representing the client's request for the CreateQualificationType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateQualificationType for more information on using the CreateQualificationType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateQualificationTypeRequest method. req, resp := client.CreateQualificationTypeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationType

CreateQualificationTypeWithContext

func (c *MTurk) CreateQualificationTypeWithContext(ctx aws.Context, input *CreateQualificationTypeInput, opts ...request.Option) (*CreateQualificationTypeOutput, error)

CreateQualificationTypeWithContext is the same as CreateQualificationType with the addition of the ability to pass a context and additional request options.

See CreateQualificationType for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

CreateWorkerBlock

func (c *MTurk) CreateWorkerBlock(input *CreateWorkerBlockInput) (*CreateWorkerBlockOutput, error)

CreateWorkerBlock 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation CreateWorkerBlock for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlock

CreateWorkerBlockRequest

func (c *MTurk) CreateWorkerBlockRequest(input *CreateWorkerBlockInput) (req *request.Request, output *CreateWorkerBlockOutput)

CreateWorkerBlockRequest generates a "aws/request.Request" representing the client's request for the CreateWorkerBlock operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateWorkerBlock for more information on using the CreateWorkerBlock API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateWorkerBlockRequest method. req, resp := client.CreateWorkerBlockRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlock

CreateWorkerBlockWithContext

func (c *MTurk) CreateWorkerBlockWithContext(ctx aws.Context, input *CreateWorkerBlockInput, opts ...request.Option) (*CreateWorkerBlockOutput, error)

CreateWorkerBlockWithContext is the same as CreateWorkerBlock with the addition of the ability to pass a context and additional request options.

See CreateWorkerBlock for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteHIT

func (c *MTurk) DeleteHIT(input *DeleteHITInput) (*DeleteHITOutput, error)

DeleteHIT 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation DeleteHIT for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHIT

DeleteHITRequest

func (c *MTurk) DeleteHITRequest(input *DeleteHITInput) (req *request.Request, output *DeleteHITOutput)

DeleteHITRequest generates a "aws/request.Request" representing the client's request for the DeleteHIT operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteHIT for more information on using the DeleteHIT API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteHITRequest method. req, resp := client.DeleteHITRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHIT

DeleteHITWithContext

func (c *MTurk) DeleteHITWithContext(ctx aws.Context, input *DeleteHITInput, opts ...request.Option) (*DeleteHITOutput, error)

DeleteHITWithContext is the same as DeleteHIT with the addition of the ability to pass a context and additional request options.

See DeleteHIT for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteQualificationType

func (c *MTurk) DeleteQualificationType(input *DeleteQualificationTypeInput) (*DeleteQualificationTypeOutput, error)

DeleteQualificationType 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation DeleteQualificationType for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationType

DeleteQualificationTypeRequest

func (c *MTurk) DeleteQualificationTypeRequest(input *DeleteQualificationTypeInput) (req *request.Request, output *DeleteQualificationTypeOutput)

DeleteQualificationTypeRequest generates a "aws/request.Request" representing the client's request for the DeleteQualificationType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteQualificationType for more information on using the DeleteQualificationType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteQualificationTypeRequest method. req, resp := client.DeleteQualificationTypeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationType

DeleteQualificationTypeWithContext

func (c *MTurk) DeleteQualificationTypeWithContext(ctx aws.Context, input *DeleteQualificationTypeInput, opts ...request.Option) (*DeleteQualificationTypeOutput, error)

DeleteQualificationTypeWithContext is the same as DeleteQualificationType with the addition of the ability to pass a context and additional request options.

See DeleteQualificationType for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DeleteWorkerBlock

func (c *MTurk) DeleteWorkerBlock(input *DeleteWorkerBlockInput) (*DeleteWorkerBlockOutput, error)

DeleteWorkerBlock 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation DeleteWorkerBlock for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlock

DeleteWorkerBlockRequest

func (c *MTurk) DeleteWorkerBlockRequest(input *DeleteWorkerBlockInput) (req *request.Request, output *DeleteWorkerBlockOutput)

DeleteWorkerBlockRequest generates a "aws/request.Request" representing the client's request for the DeleteWorkerBlock operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteWorkerBlock for more information on using the DeleteWorkerBlock API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteWorkerBlockRequest method. req, resp := client.DeleteWorkerBlockRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlock

DeleteWorkerBlockWithContext

func (c *MTurk) DeleteWorkerBlockWithContext(ctx aws.Context, input *DeleteWorkerBlockInput, opts ...request.Option) (*DeleteWorkerBlockOutput, error)

DeleteWorkerBlockWithContext is the same as DeleteWorkerBlock with the addition of the ability to pass a context and additional request options.

See DeleteWorkerBlock for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

DisassociateQualificationFromWorker

func (c *MTurk) DisassociateQualificationFromWorker(input *DisassociateQualificationFromWorkerInput) (*DisassociateQualificationFromWorkerOutput, error)

DisassociateQualificationFromWorker 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation DisassociateQualificationFromWorker for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorker

DisassociateQualificationFromWorkerRequest

func (c *MTurk) DisassociateQualificationFromWorkerRequest(input *DisassociateQualificationFromWorkerInput) (req *request.Request, output *DisassociateQualificationFromWorkerOutput)

DisassociateQualificationFromWorkerRequest generates a "aws/request.Request" representing the client's request for the DisassociateQualificationFromWorker operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisassociateQualificationFromWorker for more information on using the DisassociateQualificationFromWorker API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisassociateQualificationFromWorkerRequest method. req, resp := client.DisassociateQualificationFromWorkerRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorker

DisassociateQualificationFromWorkerWithContext

func (c *MTurk) DisassociateQualificationFromWorkerWithContext(ctx aws.Context, input *DisassociateQualificationFromWorkerInput, opts ...request.Option) (*DisassociateQualificationFromWorkerOutput, error)

DisassociateQualificationFromWorkerWithContext is the same as DisassociateQualificationFromWorker with the addition of the ability to pass a context and additional request options.

See DisassociateQualificationFromWorker for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetAccountBalance

func (c *MTurk) GetAccountBalance(input *GetAccountBalanceInput) (*GetAccountBalanceOutput, error)

GetAccountBalance API operation for Amazon Mechanical Turk.

The GetAccountBalance operation retrieves the amount of money in your Amazon Mechanical Turk account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation GetAccountBalance for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalance

GetAccountBalanceRequest

func (c *MTurk) GetAccountBalanceRequest(input *GetAccountBalanceInput) (req *request.Request, output *GetAccountBalanceOutput)

GetAccountBalanceRequest generates a "aws/request.Request" representing the client's request for the GetAccountBalance operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAccountBalance for more information on using the GetAccountBalance API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAccountBalanceRequest method. req, resp := client.GetAccountBalanceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalance

GetAccountBalanceWithContext

func (c *MTurk) GetAccountBalanceWithContext(ctx aws.Context, input *GetAccountBalanceInput, opts ...request.Option) (*GetAccountBalanceOutput, error)

GetAccountBalanceWithContext is the same as GetAccountBalance with the addition of the ability to pass a context and additional request options.

See GetAccountBalance for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetAssignment

func (c *MTurk) GetAssignment(input *GetAssignmentInput) (*GetAssignmentOutput, error)

GetAssignment API operation for Amazon Mechanical Turk.

The GetAssignment operation retrieves the details of the specified Assignment.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation GetAssignment for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignment

GetAssignmentRequest

func (c *MTurk) GetAssignmentRequest(input *GetAssignmentInput) (req *request.Request, output *GetAssignmentOutput)

GetAssignmentRequest generates a "aws/request.Request" representing the client's request for the GetAssignment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetAssignment for more information on using the GetAssignment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetAssignmentRequest method. req, resp := client.GetAssignmentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignment

GetAssignmentWithContext

func (c *MTurk) GetAssignmentWithContext(ctx aws.Context, input *GetAssignmentInput, opts ...request.Option) (*GetAssignmentOutput, error)

GetAssignmentWithContext is the same as GetAssignment with the addition of the ability to pass a context and additional request options.

See GetAssignment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetFileUploadURL

func (c *MTurk) GetFileUploadURL(input *GetFileUploadURLInput) (*GetFileUploadURLOutput, error)

GetFileUploadURL 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation GetFileUploadURL for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURL

GetFileUploadURLRequest

func (c *MTurk) GetFileUploadURLRequest(input *GetFileUploadURLInput) (req *request.Request, output *GetFileUploadURLOutput)

GetFileUploadURLRequest generates a "aws/request.Request" representing the client's request for the GetFileUploadURL operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetFileUploadURL for more information on using the GetFileUploadURL API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetFileUploadURLRequest method. req, resp := client.GetFileUploadURLRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURL

GetFileUploadURLWithContext

func (c *MTurk) GetFileUploadURLWithContext(ctx aws.Context, input *GetFileUploadURLInput, opts ...request.Option) (*GetFileUploadURLOutput, error)

GetFileUploadURLWithContext is the same as GetFileUploadURL with the addition of the ability to pass a context and additional request options.

See GetFileUploadURL for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetHIT

func (c *MTurk) GetHIT(input *GetHITInput) (*GetHITOutput, error)

GetHIT API operation for Amazon Mechanical Turk.

The GetHIT operation retrieves the details of the specified HIT.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation GetHIT for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHIT

GetHITRequest

func (c *MTurk) GetHITRequest(input *GetHITInput) (req *request.Request, output *GetHITOutput)

GetHITRequest generates a "aws/request.Request" representing the client's request for the GetHIT operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetHIT for more information on using the GetHIT API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetHITRequest method. req, resp := client.GetHITRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHIT

GetHITWithContext

func (c *MTurk) GetHITWithContext(ctx aws.Context, input *GetHITInput, opts ...request.Option) (*GetHITOutput, error)

GetHITWithContext is the same as GetHIT with the addition of the ability to pass a context and additional request options.

See GetHIT for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetQualificationScore

func (c *MTurk) GetQualificationScore(input *GetQualificationScoreInput) (*GetQualificationScoreOutput, error)

GetQualificationScore 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation GetQualificationScore for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScore

GetQualificationScoreRequest

func (c *MTurk) GetQualificationScoreRequest(input *GetQualificationScoreInput) (req *request.Request, output *GetQualificationScoreOutput)

GetQualificationScoreRequest generates a "aws/request.Request" representing the client's request for the GetQualificationScore operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetQualificationScore for more information on using the GetQualificationScore API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetQualificationScoreRequest method. req, resp := client.GetQualificationScoreRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScore

GetQualificationScoreWithContext

func (c *MTurk) GetQualificationScoreWithContext(ctx aws.Context, input *GetQualificationScoreInput, opts ...request.Option) (*GetQualificationScoreOutput, error)

GetQualificationScoreWithContext is the same as GetQualificationScore with the addition of the ability to pass a context and additional request options.

See GetQualificationScore for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

GetQualificationType

func (c *MTurk) GetQualificationType(input *GetQualificationTypeInput) (*GetQualificationTypeOutput, error)

GetQualificationType API operation for Amazon Mechanical Turk.

The GetQualificationTypeoperation retrieves information about a Qualification type using its ID.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation GetQualificationType for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationType

GetQualificationTypeRequest

func (c *MTurk) GetQualificationTypeRequest(input *GetQualificationTypeInput) (req *request.Request, output *GetQualificationTypeOutput)

GetQualificationTypeRequest generates a "aws/request.Request" representing the client's request for the GetQualificationType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetQualificationType for more information on using the GetQualificationType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetQualificationTypeRequest method. req, resp := client.GetQualificationTypeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationType

GetQualificationTypeWithContext

func (c *MTurk) GetQualificationTypeWithContext(ctx aws.Context, input *GetQualificationTypeInput, opts ...request.Option) (*GetQualificationTypeOutput, error)

GetQualificationTypeWithContext is the same as GetQualificationType with the addition of the ability to pass a context and additional request options.

See GetQualificationType for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListAssignmentsForHIT

func (c *MTurk) ListAssignmentsForHIT(input *ListAssignmentsForHITInput) (*ListAssignmentsForHITOutput, error)

ListAssignmentsForHIT 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListAssignmentsForHIT for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHIT

ListAssignmentsForHITPages

func (c *MTurk) ListAssignmentsForHITPages(input *ListAssignmentsForHITInput, fn func(*ListAssignmentsForHITOutput, bool) bool) error

ListAssignmentsForHITPages iterates over the pages of a ListAssignmentsForHIT operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListAssignmentsForHIT method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListAssignmentsForHIT operation. pageNum := 0 err := client.ListAssignmentsForHITPages(params, func(page *ListAssignmentsForHITOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListAssignmentsForHITPagesWithContext

func (c *MTurk) ListAssignmentsForHITPagesWithContext(ctx aws.Context, input *ListAssignmentsForHITInput, fn func(*ListAssignmentsForHITOutput, bool) bool, opts ...request.Option) error

ListAssignmentsForHITPagesWithContext same as ListAssignmentsForHITPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListAssignmentsForHITRequest

func (c *MTurk) ListAssignmentsForHITRequest(input *ListAssignmentsForHITInput) (req *request.Request, output *ListAssignmentsForHITOutput)

ListAssignmentsForHITRequest generates a "aws/request.Request" representing the client's request for the ListAssignmentsForHIT operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListAssignmentsForHIT for more information on using the ListAssignmentsForHIT API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListAssignmentsForHITRequest method. req, resp := client.ListAssignmentsForHITRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHIT

ListAssignmentsForHITWithContext

func (c *MTurk) ListAssignmentsForHITWithContext(ctx aws.Context, input *ListAssignmentsForHITInput, opts ...request.Option) (*ListAssignmentsForHITOutput, error)

ListAssignmentsForHITWithContext is the same as ListAssignmentsForHIT with the addition of the ability to pass a context and additional request options.

See ListAssignmentsForHIT for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListBonusPayments

func (c *MTurk) ListBonusPayments(input *ListBonusPaymentsInput) (*ListBonusPaymentsOutput, error)

ListBonusPayments 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListBonusPayments for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPayments

ListBonusPaymentsPages

func (c *MTurk) ListBonusPaymentsPages(input *ListBonusPaymentsInput, fn func(*ListBonusPaymentsOutput, bool) bool) error

ListBonusPaymentsPages iterates over the pages of a ListBonusPayments operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListBonusPayments method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListBonusPayments operation. pageNum := 0 err := client.ListBonusPaymentsPages(params, func(page *ListBonusPaymentsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListBonusPaymentsPagesWithContext

func (c *MTurk) ListBonusPaymentsPagesWithContext(ctx aws.Context, input *ListBonusPaymentsInput, fn func(*ListBonusPaymentsOutput, bool) bool, opts ...request.Option) error

ListBonusPaymentsPagesWithContext same as ListBonusPaymentsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListBonusPaymentsRequest

func (c *MTurk) ListBonusPaymentsRequest(input *ListBonusPaymentsInput) (req *request.Request, output *ListBonusPaymentsOutput)

ListBonusPaymentsRequest generates a "aws/request.Request" representing the client's request for the ListBonusPayments operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListBonusPayments for more information on using the ListBonusPayments API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListBonusPaymentsRequest method. req, resp := client.ListBonusPaymentsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPayments

ListBonusPaymentsWithContext

func (c *MTurk) ListBonusPaymentsWithContext(ctx aws.Context, input *ListBonusPaymentsInput, opts ...request.Option) (*ListBonusPaymentsOutput, error)

ListBonusPaymentsWithContext is the same as ListBonusPayments with the addition of the ability to pass a context and additional request options.

See ListBonusPayments for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListHITs

func (c *MTurk) ListHITs(input *ListHITsInput) (*ListHITsOutput, error)

ListHITs 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListHITs for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITs

ListHITsForQualificationType

func (c *MTurk) ListHITsForQualificationType(input *ListHITsForQualificationTypeInput) (*ListHITsForQualificationTypeOutput, error)

ListHITsForQualificationType 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListHITsForQualificationType for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationType

ListHITsForQualificationTypePages

func (c *MTurk) ListHITsForQualificationTypePages(input *ListHITsForQualificationTypeInput, fn func(*ListHITsForQualificationTypeOutput, bool) bool) error

ListHITsForQualificationTypePages iterates over the pages of a ListHITsForQualificationType operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListHITsForQualificationType method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListHITsForQualificationType operation. pageNum := 0 err := client.ListHITsForQualificationTypePages(params, func(page *ListHITsForQualificationTypeOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListHITsForQualificationTypePagesWithContext

func (c *MTurk) ListHITsForQualificationTypePagesWithContext(ctx aws.Context, input *ListHITsForQualificationTypeInput, fn func(*ListHITsForQualificationTypeOutput, bool) bool, opts ...request.Option) error

ListHITsForQualificationTypePagesWithContext same as ListHITsForQualificationTypePages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListHITsForQualificationTypeRequest

func (c *MTurk) ListHITsForQualificationTypeRequest(input *ListHITsForQualificationTypeInput) (req *request.Request, output *ListHITsForQualificationTypeOutput)

ListHITsForQualificationTypeRequest generates a "aws/request.Request" representing the client's request for the ListHITsForQualificationType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListHITsForQualificationType for more information on using the ListHITsForQualificationType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListHITsForQualificationTypeRequest method. req, resp := client.ListHITsForQualificationTypeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationType

ListHITsForQualificationTypeWithContext

func (c *MTurk) ListHITsForQualificationTypeWithContext(ctx aws.Context, input *ListHITsForQualificationTypeInput, opts ...request.Option) (*ListHITsForQualificationTypeOutput, error)

ListHITsForQualificationTypeWithContext is the same as ListHITsForQualificationType with the addition of the ability to pass a context and additional request options.

See ListHITsForQualificationType for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListHITsPages

func (c *MTurk) ListHITsPages(input *ListHITsInput, fn func(*ListHITsOutput, bool) bool) error

ListHITsPages iterates over the pages of a ListHITs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListHITs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListHITs operation. pageNum := 0 err := client.ListHITsPages(params, func(page *ListHITsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListHITsPagesWithContext

func (c *MTurk) ListHITsPagesWithContext(ctx aws.Context, input *ListHITsInput, fn func(*ListHITsOutput, bool) bool, opts ...request.Option) error

ListHITsPagesWithContext same as ListHITsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListHITsRequest

func (c *MTurk) ListHITsRequest(input *ListHITsInput) (req *request.Request, output *ListHITsOutput)

ListHITsRequest generates a "aws/request.Request" representing the client's request for the ListHITs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListHITs for more information on using the ListHITs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListHITsRequest method. req, resp := client.ListHITsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITs

ListHITsWithContext

func (c *MTurk) ListHITsWithContext(ctx aws.Context, input *ListHITsInput, opts ...request.Option) (*ListHITsOutput, error)

ListHITsWithContext is the same as ListHITs with the addition of the ability to pass a context and additional request options.

See ListHITs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListQualificationRequests

func (c *MTurk) ListQualificationRequests(input *ListQualificationRequestsInput) (*ListQualificationRequestsOutput, error)

ListQualificationRequests 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListQualificationRequests for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequests

ListQualificationRequestsPages

func (c *MTurk) ListQualificationRequestsPages(input *ListQualificationRequestsInput, fn func(*ListQualificationRequestsOutput, bool) bool) error

ListQualificationRequestsPages iterates over the pages of a ListQualificationRequests operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListQualificationRequests method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListQualificationRequests operation. pageNum := 0 err := client.ListQualificationRequestsPages(params, func(page *ListQualificationRequestsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListQualificationRequestsPagesWithContext

func (c *MTurk) ListQualificationRequestsPagesWithContext(ctx aws.Context, input *ListQualificationRequestsInput, fn func(*ListQualificationRequestsOutput, bool) bool, opts ...request.Option) error

ListQualificationRequestsPagesWithContext same as ListQualificationRequestsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListQualificationRequestsRequest

func (c *MTurk) ListQualificationRequestsRequest(input *ListQualificationRequestsInput) (req *request.Request, output *ListQualificationRequestsOutput)

ListQualificationRequestsRequest generates a "aws/request.Request" representing the client's request for the ListQualificationRequests operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListQualificationRequests for more information on using the ListQualificationRequests API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListQualificationRequestsRequest method. req, resp := client.ListQualificationRequestsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequests

ListQualificationRequestsWithContext

func (c *MTurk) ListQualificationRequestsWithContext(ctx aws.Context, input *ListQualificationRequestsInput, opts ...request.Option) (*ListQualificationRequestsOutput, error)

ListQualificationRequestsWithContext is the same as ListQualificationRequests with the addition of the ability to pass a context and additional request options.

See ListQualificationRequests for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListQualificationTypes

func (c *MTurk) ListQualificationTypes(input *ListQualificationTypesInput) (*ListQualificationTypesOutput, error)

ListQualificationTypes API operation for Amazon Mechanical Turk.

The ListQualificationTypes operation returns a list of Qualification types, filtered by an optional search term.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListQualificationTypes for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypes

ListQualificationTypesPages

func (c *MTurk) ListQualificationTypesPages(input *ListQualificationTypesInput, fn func(*ListQualificationTypesOutput, bool) bool) error

ListQualificationTypesPages iterates over the pages of a ListQualificationTypes operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListQualificationTypes method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListQualificationTypes operation. pageNum := 0 err := client.ListQualificationTypesPages(params, func(page *ListQualificationTypesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListQualificationTypesPagesWithContext

func (c *MTurk) ListQualificationTypesPagesWithContext(ctx aws.Context, input *ListQualificationTypesInput, fn func(*ListQualificationTypesOutput, bool) bool, opts ...request.Option) error

ListQualificationTypesPagesWithContext same as ListQualificationTypesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListQualificationTypesRequest

func (c *MTurk) ListQualificationTypesRequest(input *ListQualificationTypesInput) (req *request.Request, output *ListQualificationTypesOutput)

ListQualificationTypesRequest generates a "aws/request.Request" representing the client's request for the ListQualificationTypes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListQualificationTypes for more information on using the ListQualificationTypes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListQualificationTypesRequest method. req, resp := client.ListQualificationTypesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypes

ListQualificationTypesWithContext

func (c *MTurk) ListQualificationTypesWithContext(ctx aws.Context, input *ListQualificationTypesInput, opts ...request.Option) (*ListQualificationTypesOutput, error)

ListQualificationTypesWithContext is the same as ListQualificationTypes with the addition of the ability to pass a context and additional request options.

See ListQualificationTypes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListReviewPolicyResultsForHIT

func (c *MTurk) ListReviewPolicyResultsForHIT(input *ListReviewPolicyResultsForHITInput) (*ListReviewPolicyResultsForHITOutput, error)

ListReviewPolicyResultsForHIT 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListReviewPolicyResultsForHIT for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHIT

ListReviewPolicyResultsForHITPages

func (c *MTurk) ListReviewPolicyResultsForHITPages(input *ListReviewPolicyResultsForHITInput, fn func(*ListReviewPolicyResultsForHITOutput, bool) bool) error

ListReviewPolicyResultsForHITPages iterates over the pages of a ListReviewPolicyResultsForHIT operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListReviewPolicyResultsForHIT method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListReviewPolicyResultsForHIT operation. pageNum := 0 err := client.ListReviewPolicyResultsForHITPages(params, func(page *ListReviewPolicyResultsForHITOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListReviewPolicyResultsForHITPagesWithContext

func (c *MTurk) ListReviewPolicyResultsForHITPagesWithContext(ctx aws.Context, input *ListReviewPolicyResultsForHITInput, fn func(*ListReviewPolicyResultsForHITOutput, bool) bool, opts ...request.Option) error

ListReviewPolicyResultsForHITPagesWithContext same as ListReviewPolicyResultsForHITPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListReviewPolicyResultsForHITRequest

func (c *MTurk) ListReviewPolicyResultsForHITRequest(input *ListReviewPolicyResultsForHITInput) (req *request.Request, output *ListReviewPolicyResultsForHITOutput)

ListReviewPolicyResultsForHITRequest generates a "aws/request.Request" representing the client's request for the ListReviewPolicyResultsForHIT operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListReviewPolicyResultsForHIT for more information on using the ListReviewPolicyResultsForHIT API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListReviewPolicyResultsForHITRequest method. req, resp := client.ListReviewPolicyResultsForHITRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHIT

ListReviewPolicyResultsForHITWithContext

func (c *MTurk) ListReviewPolicyResultsForHITWithContext(ctx aws.Context, input *ListReviewPolicyResultsForHITInput, opts ...request.Option) (*ListReviewPolicyResultsForHITOutput, error)

ListReviewPolicyResultsForHITWithContext is the same as ListReviewPolicyResultsForHIT with the addition of the ability to pass a context and additional request options.

See ListReviewPolicyResultsForHIT for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListReviewableHITs

func (c *MTurk) ListReviewableHITs(input *ListReviewableHITsInput) (*ListReviewableHITsOutput, error)

ListReviewableHITs 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListReviewableHITs for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITs

ListReviewableHITsPages

func (c *MTurk) ListReviewableHITsPages(input *ListReviewableHITsInput, fn func(*ListReviewableHITsOutput, bool) bool) error

ListReviewableHITsPages iterates over the pages of a ListReviewableHITs operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListReviewableHITs method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListReviewableHITs operation. pageNum := 0 err := client.ListReviewableHITsPages(params, func(page *ListReviewableHITsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListReviewableHITsPagesWithContext

func (c *MTurk) ListReviewableHITsPagesWithContext(ctx aws.Context, input *ListReviewableHITsInput, fn func(*ListReviewableHITsOutput, bool) bool, opts ...request.Option) error

ListReviewableHITsPagesWithContext same as ListReviewableHITsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListReviewableHITsRequest

func (c *MTurk) ListReviewableHITsRequest(input *ListReviewableHITsInput) (req *request.Request, output *ListReviewableHITsOutput)

ListReviewableHITsRequest generates a "aws/request.Request" representing the client's request for the ListReviewableHITs operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListReviewableHITs for more information on using the ListReviewableHITs API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListReviewableHITsRequest method. req, resp := client.ListReviewableHITsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITs

ListReviewableHITsWithContext

func (c *MTurk) ListReviewableHITsWithContext(ctx aws.Context, input *ListReviewableHITsInput, opts ...request.Option) (*ListReviewableHITsOutput, error)

ListReviewableHITsWithContext is the same as ListReviewableHITs with the addition of the ability to pass a context and additional request options.

See ListReviewableHITs for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListWorkerBlocks

func (c *MTurk) ListWorkerBlocks(input *ListWorkerBlocksInput) (*ListWorkerBlocksOutput, error)

ListWorkerBlocks API operation for Amazon Mechanical Turk.

The ListWorkersBlocks operation retrieves a list of Workers who are blocked from working on your HITs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListWorkerBlocks for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocks

ListWorkerBlocksPages

func (c *MTurk) ListWorkerBlocksPages(input *ListWorkerBlocksInput, fn func(*ListWorkerBlocksOutput, bool) bool) error

ListWorkerBlocksPages iterates over the pages of a ListWorkerBlocks operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListWorkerBlocks method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListWorkerBlocks operation. pageNum := 0 err := client.ListWorkerBlocksPages(params, func(page *ListWorkerBlocksOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListWorkerBlocksPagesWithContext

func (c *MTurk) ListWorkerBlocksPagesWithContext(ctx aws.Context, input *ListWorkerBlocksInput, fn func(*ListWorkerBlocksOutput, bool) bool, opts ...request.Option) error

ListWorkerBlocksPagesWithContext same as ListWorkerBlocksPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListWorkerBlocksRequest

func (c *MTurk) ListWorkerBlocksRequest(input *ListWorkerBlocksInput) (req *request.Request, output *ListWorkerBlocksOutput)

ListWorkerBlocksRequest generates a "aws/request.Request" representing the client's request for the ListWorkerBlocks operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListWorkerBlocks for more information on using the ListWorkerBlocks API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListWorkerBlocksRequest method. req, resp := client.ListWorkerBlocksRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocks

ListWorkerBlocksWithContext

func (c *MTurk) ListWorkerBlocksWithContext(ctx aws.Context, input *ListWorkerBlocksInput, opts ...request.Option) (*ListWorkerBlocksOutput, error)

ListWorkerBlocksWithContext is the same as ListWorkerBlocks with the addition of the ability to pass a context and additional request options.

See ListWorkerBlocks for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListWorkersWithQualificationType

func (c *MTurk) ListWorkersWithQualificationType(input *ListWorkersWithQualificationTypeInput) (*ListWorkersWithQualificationTypeOutput, error)

ListWorkersWithQualificationType API operation for Amazon Mechanical Turk.

The ListWorkersWithQualificationType operation returns all of the Workers that have been associated with a given Qualification type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation ListWorkersWithQualificationType for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationType

ListWorkersWithQualificationTypePages

func (c *MTurk) ListWorkersWithQualificationTypePages(input *ListWorkersWithQualificationTypeInput, fn func(*ListWorkersWithQualificationTypeOutput, bool) bool) error

ListWorkersWithQualificationTypePages iterates over the pages of a ListWorkersWithQualificationType operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListWorkersWithQualificationType method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListWorkersWithQualificationType operation. pageNum := 0 err := client.ListWorkersWithQualificationTypePages(params, func(page *ListWorkersWithQualificationTypeOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })

See Also

For more information about using this API, see AWS API Documentation.

ListWorkersWithQualificationTypePagesWithContext

func (c *MTurk) ListWorkersWithQualificationTypePagesWithContext(ctx aws.Context, input *ListWorkersWithQualificationTypeInput, fn func(*ListWorkersWithQualificationTypeOutput, bool) bool, opts ...request.Option) error

ListWorkersWithQualificationTypePagesWithContext same as ListWorkersWithQualificationTypePages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

ListWorkersWithQualificationTypeRequest

func (c *MTurk) ListWorkersWithQualificationTypeRequest(input *ListWorkersWithQualificationTypeInput) (req *request.Request, output *ListWorkersWithQualificationTypeOutput)

ListWorkersWithQualificationTypeRequest generates a "aws/request.Request" representing the client's request for the ListWorkersWithQualificationType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListWorkersWithQualificationType for more information on using the ListWorkersWithQualificationType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListWorkersWithQualificationTypeRequest method. req, resp := client.ListWorkersWithQualificationTypeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationType

ListWorkersWithQualificationTypeWithContext

func (c *MTurk) ListWorkersWithQualificationTypeWithContext(ctx aws.Context, input *ListWorkersWithQualificationTypeInput, opts ...request.Option) (*ListWorkersWithQualificationTypeOutput, error)

ListWorkersWithQualificationTypeWithContext is the same as ListWorkersWithQualificationType with the addition of the ability to pass a context and additional request options.

See ListWorkersWithQualificationType for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

NotifyWorkers

func (c *MTurk) NotifyWorkers(input *NotifyWorkersInput) (*NotifyWorkersOutput, error)

NotifyWorkers 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation NotifyWorkers for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkers

NotifyWorkersRequest

func (c *MTurk) NotifyWorkersRequest(input *NotifyWorkersInput) (req *request.Request, output *NotifyWorkersOutput)

NotifyWorkersRequest generates a "aws/request.Request" representing the client's request for the NotifyWorkers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See NotifyWorkers for more information on using the NotifyWorkers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the NotifyWorkersRequest method. req, resp := client.NotifyWorkersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkers

NotifyWorkersWithContext

func (c *MTurk) NotifyWorkersWithContext(ctx aws.Context, input *NotifyWorkersInput, opts ...request.Option) (*NotifyWorkersOutput, error)

NotifyWorkersWithContext is the same as NotifyWorkers with the addition of the ability to pass a context and additional request options.

See NotifyWorkers for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RejectAssignment

func (c *MTurk) RejectAssignment(input *RejectAssignmentInput) (*RejectAssignmentOutput, error)

RejectAssignment 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation RejectAssignment for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignment

RejectAssignmentRequest

func (c *MTurk) RejectAssignmentRequest(input *RejectAssignmentInput) (req *request.Request, output *RejectAssignmentOutput)

RejectAssignmentRequest generates a "aws/request.Request" representing the client's request for the RejectAssignment operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RejectAssignment for more information on using the RejectAssignment API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RejectAssignmentRequest method. req, resp := client.RejectAssignmentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignment

RejectAssignmentWithContext

func (c *MTurk) RejectAssignmentWithContext(ctx aws.Context, input *RejectAssignmentInput, opts ...request.Option) (*RejectAssignmentOutput, error)

RejectAssignmentWithContext is the same as RejectAssignment with the addition of the ability to pass a context and additional request options.

See RejectAssignment for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

RejectQualificationRequest

func (c *MTurk) RejectQualificationRequest(input *RejectQualificationRequestInput) (*RejectQualificationRequestOutput, error)

RejectQualificationRequest 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation RejectQualificationRequest for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequest

RejectQualificationRequestRequest

func (c *MTurk) RejectQualificationRequestRequest(input *RejectQualificationRequestInput) (req *request.Request, output *RejectQualificationRequestOutput)

RejectQualificationRequestRequest generates a "aws/request.Request" representing the client's request for the RejectQualificationRequest operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RejectQualificationRequest for more information on using the RejectQualificationRequest API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RejectQualificationRequestRequest method. req, resp := client.RejectQualificationRequestRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequest

RejectQualificationRequestWithContext

func (c *MTurk) RejectQualificationRequestWithContext(ctx aws.Context, input *RejectQualificationRequestInput, opts ...request.Option) (*RejectQualificationRequestOutput, error)

RejectQualificationRequestWithContext is the same as RejectQualificationRequest with the addition of the ability to pass a context and additional request options.

See RejectQualificationRequest for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

SendBonus

func (c *MTurk) SendBonus(input *SendBonusInput) (*SendBonusOutput, error)

SendBonus 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation SendBonus for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonus

SendBonusRequest

func (c *MTurk) SendBonusRequest(input *SendBonusInput) (req *request.Request, output *SendBonusOutput)

SendBonusRequest generates a "aws/request.Request" representing the client's request for the SendBonus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SendBonus for more information on using the SendBonus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the SendBonusRequest method. req, resp := client.SendBonusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonus

SendBonusWithContext

func (c *MTurk) SendBonusWithContext(ctx aws.Context, input *SendBonusInput, opts ...request.Option) (*SendBonusOutput, error)

SendBonusWithContext is the same as SendBonus with the addition of the ability to pass a context and additional request options.

See SendBonus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

SendTestEventNotification

func (c *MTurk) SendTestEventNotification(input *SendTestEventNotificationInput) (*SendTestEventNotificationOutput, error)

SendTestEventNotification 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation SendTestEventNotification for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotification

SendTestEventNotificationRequest

func (c *MTurk) SendTestEventNotificationRequest(input *SendTestEventNotificationInput) (req *request.Request, output *SendTestEventNotificationOutput)

SendTestEventNotificationRequest generates a "aws/request.Request" representing the client's request for the SendTestEventNotification operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SendTestEventNotification for more information on using the SendTestEventNotification API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the SendTestEventNotificationRequest method. req, resp := client.SendTestEventNotificationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotification

SendTestEventNotificationWithContext

func (c *MTurk) SendTestEventNotificationWithContext(ctx aws.Context, input *SendTestEventNotificationInput, opts ...request.Option) (*SendTestEventNotificationOutput, error)

SendTestEventNotificationWithContext is the same as SendTestEventNotification with the addition of the ability to pass a context and additional request options.

See SendTestEventNotification for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateExpirationForHIT

func (c *MTurk) UpdateExpirationForHIT(input *UpdateExpirationForHITInput) (*UpdateExpirationForHITOutput, error)

UpdateExpirationForHIT 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation UpdateExpirationForHIT for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHIT

UpdateExpirationForHITRequest

func (c *MTurk) UpdateExpirationForHITRequest(input *UpdateExpirationForHITInput) (req *request.Request, output *UpdateExpirationForHITOutput)

UpdateExpirationForHITRequest generates a "aws/request.Request" representing the client's request for the UpdateExpirationForHIT operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateExpirationForHIT for more information on using the UpdateExpirationForHIT API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateExpirationForHITRequest method. req, resp := client.UpdateExpirationForHITRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHIT

UpdateExpirationForHITWithContext

func (c *MTurk) UpdateExpirationForHITWithContext(ctx aws.Context, input *UpdateExpirationForHITInput, opts ...request.Option) (*UpdateExpirationForHITOutput, error)

UpdateExpirationForHITWithContext is the same as UpdateExpirationForHIT with the addition of the ability to pass a context and additional request options.

See UpdateExpirationForHIT for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateHITReviewStatus

func (c *MTurk) UpdateHITReviewStatus(input *UpdateHITReviewStatusInput) (*UpdateHITReviewStatusOutput, error)

UpdateHITReviewStatus 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation UpdateHITReviewStatus for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatus

UpdateHITReviewStatusRequest

func (c *MTurk) UpdateHITReviewStatusRequest(input *UpdateHITReviewStatusInput) (req *request.Request, output *UpdateHITReviewStatusOutput)

UpdateHITReviewStatusRequest generates a "aws/request.Request" representing the client's request for the UpdateHITReviewStatus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateHITReviewStatus for more information on using the UpdateHITReviewStatus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateHITReviewStatusRequest method. req, resp := client.UpdateHITReviewStatusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatus

UpdateHITReviewStatusWithContext

func (c *MTurk) UpdateHITReviewStatusWithContext(ctx aws.Context, input *UpdateHITReviewStatusInput, opts ...request.Option) (*UpdateHITReviewStatusOutput, error)

UpdateHITReviewStatusWithContext is the same as UpdateHITReviewStatus with the addition of the ability to pass a context and additional request options.

See UpdateHITReviewStatus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateHITTypeOfHIT

func (c *MTurk) UpdateHITTypeOfHIT(input *UpdateHITTypeOfHITInput) (*UpdateHITTypeOfHITOutput, error)

UpdateHITTypeOfHIT 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation UpdateHITTypeOfHIT for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHIT

UpdateHITTypeOfHITRequest

func (c *MTurk) UpdateHITTypeOfHITRequest(input *UpdateHITTypeOfHITInput) (req *request.Request, output *UpdateHITTypeOfHITOutput)

UpdateHITTypeOfHITRequest generates a "aws/request.Request" representing the client's request for the UpdateHITTypeOfHIT operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateHITTypeOfHIT for more information on using the UpdateHITTypeOfHIT API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateHITTypeOfHITRequest method. req, resp := client.UpdateHITTypeOfHITRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHIT

UpdateHITTypeOfHITWithContext

func (c *MTurk) UpdateHITTypeOfHITWithContext(ctx aws.Context, input *UpdateHITTypeOfHITInput, opts ...request.Option) (*UpdateHITTypeOfHITOutput, error)

UpdateHITTypeOfHITWithContext is the same as UpdateHITTypeOfHIT with the addition of the ability to pass a context and additional request options.

See UpdateHITTypeOfHIT for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateNotificationSettings

func (c *MTurk) UpdateNotificationSettings(input *UpdateNotificationSettingsInput) (*UpdateNotificationSettingsOutput, error)

UpdateNotificationSettings 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation UpdateNotificationSettings for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettings

UpdateNotificationSettingsRequest

func (c *MTurk) UpdateNotificationSettingsRequest(input *UpdateNotificationSettingsInput) (req *request.Request, output *UpdateNotificationSettingsOutput)

UpdateNotificationSettingsRequest generates a "aws/request.Request" representing the client's request for the UpdateNotificationSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateNotificationSettings for more information on using the UpdateNotificationSettings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateNotificationSettingsRequest method. req, resp := client.UpdateNotificationSettingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettings

UpdateNotificationSettingsWithContext

func (c *MTurk) UpdateNotificationSettingsWithContext(ctx aws.Context, input *UpdateNotificationSettingsInput, opts ...request.Option) (*UpdateNotificationSettingsOutput, error)

UpdateNotificationSettingsWithContext is the same as UpdateNotificationSettings with the addition of the ability to pass a context and additional request options.

See UpdateNotificationSettings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

UpdateQualificationType

func (c *MTurk) UpdateQualificationType(input *UpdateQualificationTypeInput) (*UpdateQualificationTypeOutput, error)

UpdateQualificationType 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Mechanical Turk's API operation UpdateQualificationType for usage and error information.

Returned Error Codes:

  • ErrCodeServiceFault "ServiceFault" Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

  • ErrCodeRequestError "RequestError" Your request is invalid.

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationType

UpdateQualificationTypeRequest

func (c *MTurk) UpdateQualificationTypeRequest(input *UpdateQualificationTypeInput) (req *request.Request, output *UpdateQualificationTypeOutput)

UpdateQualificationTypeRequest generates a "aws/request.Request" representing the client's request for the UpdateQualificationType operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateQualificationType for more information on using the UpdateQualificationType API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateQualificationTypeRequest method. req, resp := client.UpdateQualificationTypeRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }

See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationType

UpdateQualificationTypeWithContext

func (c *MTurk) UpdateQualificationTypeWithContext(ctx aws.Context, input *UpdateQualificationTypeInput, opts ...request.Option) (*UpdateQualificationTypeOutput, error)

UpdateQualificationTypeWithContext is the same as UpdateQualificationType with the addition of the ability to pass a context and additional request options.

See UpdateQualificationType for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

See Also

For more information about using this API, see AWS API Documentation.

On this page: