import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteWorkerBlockRequest, DeleteWorkerBlockResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeleteWorkerBlockCommand}. */ export interface DeleteWorkerBlockCommandInput extends DeleteWorkerBlockRequest { } /** * @public * * The output of {@link DeleteWorkerBlockCommand}. */ export interface DeleteWorkerBlockCommandOutput extends DeleteWorkerBlockResponse, __MetadataBearer { } declare const DeleteWorkerBlockCommand_base: { new (input: DeleteWorkerBlockCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteWorkerBlockCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

The DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MTurkClient, DeleteWorkerBlockCommand } from "@aws-sdk/client-mturk"; // ES Modules import * // const { MTurkClient, DeleteWorkerBlockCommand } = 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 = { // DeleteWorkerBlockRequest * WorkerId: "STRING_VALUE", // required * Reason: "STRING_VALUE", * }; * const command = new DeleteWorkerBlockCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteWorkerBlockCommandInput - {@link DeleteWorkerBlockCommandInput} * @returns {@link DeleteWorkerBlockCommandOutput} * @see {@link DeleteWorkerBlockCommandInput} for command's `input` shape. * @see {@link DeleteWorkerBlockCommandOutput} 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 DeleteWorkerBlockCommand extends DeleteWorkerBlockCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteWorkerBlockRequest; output: {}; }; sdk: { input: DeleteWorkerBlockCommandInput; output: DeleteWorkerBlockCommandOutput; }; }; }