Struct aws_sdk_mturk::client::fluent_builders::GetFileUploadURL [−][src]
pub struct GetFileUploadURL<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to GetFileUploadURL
.
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.
Implementations
impl<C, M, R> GetFileUploadURL<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetFileUploadURL<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetFileUploadUrlOutput, SdkError<GetFileUploadURLError>> where
R::Policy: SmithyRetryPolicy<GetFileUploadUrlInputOperationOutputAlias, GetFileUploadUrlOutput, GetFileUploadURLError, GetFileUploadUrlInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetFileUploadUrlOutput, SdkError<GetFileUploadURLError>> where
R::Policy: SmithyRetryPolicy<GetFileUploadUrlInputOperationOutputAlias, GetFileUploadUrlOutput, GetFileUploadURLError, GetFileUploadUrlInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The ID of the assignment that contains the question with a FileUploadAnswer.
The ID of the assignment that contains the question with a FileUploadAnswer.
The identifier of the question with a FileUploadAnswer, as specified in the QuestionForm of the HIT.
The identifier of the question with a FileUploadAnswer, as specified in the QuestionForm of the HIT.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for GetFileUploadURL<C, M, R>
impl<C, M, R> Send for GetFileUploadURL<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetFileUploadURL<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetFileUploadURL<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for GetFileUploadURL<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more