import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateHITTypeRequest, CreateHITTypeResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateHITTypeCommand}. */ export interface CreateHITTypeCommandInput extends CreateHITTypeRequest { } /** * @public * * The output of {@link CreateHITTypeCommand}. */ export interface CreateHITTypeCommandOutput extends CreateHITTypeResponse, __MetadataBearer { } declare const CreateHITTypeCommand_base: { new (input: CreateHITTypeCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateHITTypeCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MTurkClient, CreateHITTypeCommand } from "@aws-sdk/client-mturk"; // ES Modules import * // const { MTurkClient, CreateHITTypeCommand } = 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 = { // CreateHITTypeRequest * AutoApprovalDelayInSeconds: Number("long"), * AssignmentDurationInSeconds: Number("long"), // required * Reward: "STRING_VALUE", // required * Title: "STRING_VALUE", // required * Keywords: "STRING_VALUE", * Description: "STRING_VALUE", // required * QualificationRequirements: [ // QualificationRequirementList * { // QualificationRequirement * QualificationTypeId: "STRING_VALUE", // required * Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required * IntegerValues: [ // IntegerList * Number("int"), * ], * LocaleValues: [ // LocaleList * { // Locale * Country: "STRING_VALUE", // required * Subdivision: "STRING_VALUE", * }, * ], * RequiredToPreview: true || false, * ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept", * }, * ], * }; * const command = new CreateHITTypeCommand(input); * const response = await client.send(command); * // { // CreateHITTypeResponse * // HITTypeId: "STRING_VALUE", * // }; * * ``` * * @param CreateHITTypeCommandInput - {@link CreateHITTypeCommandInput} * @returns {@link CreateHITTypeCommandOutput} * @see {@link CreateHITTypeCommandInput} for command's `input` shape. * @see {@link CreateHITTypeCommandOutput} 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 CreateHITTypeCommand extends CreateHITTypeCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateHITTypeRequest; output: CreateHITTypeResponse; }; sdk: { input: CreateHITTypeCommandInput; output: CreateHITTypeCommandOutput; }; }; }