import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { NotifyWorkersRequest, NotifyWorkersResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link NotifyWorkersCommand}. */ export interface NotifyWorkersCommandInput extends NotifyWorkersRequest { } /** * @public * * The output of {@link NotifyWorkersCommand}. */ export interface NotifyWorkersCommandOutput extends NotifyWorkersResponse, __MetadataBearer { } declare const NotifyWorkersCommand_base: { new (input: NotifyWorkersCommandInput): import("@smithy/core/client").CommandImpl; new (input: NotifyWorkersCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

* The * NotifyWorkers * operation sends an email to one or more Workers that you specify with * the Worker ID. You can specify up to 100 Worker IDs to send the same * message with a single call to the NotifyWorkers operation. The * NotifyWorkers operation will send a notification email to a Worker * only if you have previously approved or rejected work from the * Worker. *

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MTurkClient, NotifyWorkersCommand } from "@aws-sdk/client-mturk"; // ES Modules import * // const { MTurkClient, NotifyWorkersCommand } = 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 = { // NotifyWorkersRequest * Subject: "STRING_VALUE", // required * MessageText: "STRING_VALUE", // required * WorkerIds: [ // CustomerIdList // required * "STRING_VALUE", * ], * }; * const command = new NotifyWorkersCommand(input); * const response = await client.send(command); * // { // NotifyWorkersResponse * // NotifyWorkersFailureStatuses: [ // NotifyWorkersFailureStatusList * // { // NotifyWorkersFailureStatus * // NotifyWorkersFailureCode: "SoftFailure" || "HardFailure", * // NotifyWorkersFailureMessage: "STRING_VALUE", * // WorkerId: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param NotifyWorkersCommandInput - {@link NotifyWorkersCommandInput} * @returns {@link NotifyWorkersCommandOutput} * @see {@link NotifyWorkersCommandInput} for command's `input` shape. * @see {@link NotifyWorkersCommandOutput} 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 NotifyWorkersCommand extends NotifyWorkersCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: NotifyWorkersRequest; output: NotifyWorkersResponse; }; sdk: { input: NotifyWorkersCommandInput; output: NotifyWorkersCommandOutput; }; }; }