import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetFileUploadURLRequest, GetFileUploadURLResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetFileUploadURLCommand}. */ export interface GetFileUploadURLCommandInput extends GetFileUploadURLRequest { } /** * @public * * The output of {@link GetFileUploadURLCommand}. */ export interface GetFileUploadURLCommandOutput extends GetFileUploadURLResponse, __MetadataBearer { } declare const GetFileUploadURLCommand_base: { new (input: GetFileUploadURLCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetFileUploadURLCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

* The * GetFileUploadURL * operation generates and returns a temporary URL. You use the * temporary URL to retrieve a file uploaded by a Worker as an answer to * a FileUploadAnswer question for a HIT. The temporary URL is generated * the instant the GetFileUploadURL operation is called, and is valid * for 60 seconds. You can get a temporary file upload URL any time * until the HIT is disposed. After the HIT is disposed, any uploaded * files are deleted, and cannot be retrieved. * * Pending Deprecation on December 12, 2017. The Answer Specification * structure will no longer support the FileUploadAnswer * element to be used for the QuestionForm data structure. * Instead, we recommend that Requesters who want to create HITs asking * Workers to upload files to use Amazon S3. * *

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