import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ApproveAssignmentRequest, ApproveAssignmentResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ApproveAssignmentCommand}. */ export interface ApproveAssignmentCommandInput extends ApproveAssignmentRequest { } /** * @public * * The output of {@link ApproveAssignmentCommand}. */ export interface ApproveAssignmentCommandOutput extends ApproveAssignmentResponse, __MetadataBearer { } declare const ApproveAssignmentCommand_base: { new (input: ApproveAssignmentCommandInput): import("@smithy/core/client").CommandImpl; new (input: ApproveAssignmentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

* The ApproveAssignment operation approves the results of a completed assignment. *

*

* Approving an assignment initiates two payments from the Requester's Amazon.com account *

* *

* If the Requester's account does not have adequate funds for these payments, * the call to ApproveAssignment returns an exception, and the approval is not processed. * You can include an optional feedback message with the approval, * which the Worker can see in the Status section of the web site. *

*

* You can also call this operation for assignments that were previous rejected * and approve them by explicitly overriding the previous rejection. * This only works on rejected assignments that were submitted within the previous 30 days * and only if the assignment's related HIT has not been deleted. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MTurkClient, ApproveAssignmentCommand } from "@aws-sdk/client-mturk"; // ES Modules import * // const { MTurkClient, ApproveAssignmentCommand } = require("@aws-sdk/client-mturk"); // CommonJS import * // import type { MTurkClientConfig } from "@aws-sdk/client-mturk"; * const config = {}; // type is MTurkClientConfig * const client = new MTurkClient(config); * const input = { // ApproveAssignmentRequest * AssignmentId: "STRING_VALUE", // required * RequesterFeedback: "STRING_VALUE", * OverrideRejection: true || false, * }; * const command = new ApproveAssignmentCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param ApproveAssignmentCommandInput - {@link ApproveAssignmentCommandInput} * @returns {@link ApproveAssignmentCommandOutput} * @see {@link ApproveAssignmentCommandInput} for command's `input` shape. * @see {@link ApproveAssignmentCommandOutput} for command's `response` shape. * @see {@link MTurkClientResolvedConfig | config} for MTurkClient's `config` shape. * * @throws {@link RequestError} (client fault) *

Your request is invalid.

* * @throws {@link ServiceFault} (server fault) *

Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.

* * @throws {@link MTurkServiceException} *

Base exception class for all service exceptions from MTurk service.

* * * @public */ export declare class ApproveAssignmentCommand extends ApproveAssignmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ApproveAssignmentRequest; output: {}; }; sdk: { input: ApproveAssignmentCommandInput; output: ApproveAssignmentCommandOutput; }; }; }