import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateAdditionalAssignmentsForHITRequest, CreateAdditionalAssignmentsForHITResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateAdditionalAssignmentsForHITCommand}. */ export interface CreateAdditionalAssignmentsForHITCommandInput extends CreateAdditionalAssignmentsForHITRequest { } /** * @public * * The output of {@link CreateAdditionalAssignmentsForHITCommand}. */ export interface CreateAdditionalAssignmentsForHITCommandOutput extends CreateAdditionalAssignmentsForHITResponse, __MetadataBearer { } declare const CreateAdditionalAssignmentsForHITCommand_base: { new (input: CreateAdditionalAssignmentsForHITCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateAdditionalAssignmentsForHITCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

* The * CreateAdditionalAssignmentsForHIT * operation increases the maximum number of assignments of an existing HIT. *

*

* To extend the maximum number of assignments, specify the number of additional assignments.

* *
    *
  • *

    HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more * assignments will result in an * AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease * exception.

    *
  • *
  • *

    HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an * AWS.MechanicalTurk.HITTooOldForExtension * exception. *

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