Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data GetFileUploadURL = GetFileUploadURL' {}
- newGetFileUploadURL :: Text -> Text -> GetFileUploadURL
- getFileUploadURL_assignmentId :: Lens' GetFileUploadURL Text
- getFileUploadURL_questionIdentifier :: Lens' GetFileUploadURL Text
- data GetFileUploadURLResponse = GetFileUploadURLResponse' {
- fileUploadURL :: Maybe Text
- httpStatus :: Int
- newGetFileUploadURLResponse :: Int -> GetFileUploadURLResponse
- getFileUploadURLResponse_fileUploadURL :: Lens' GetFileUploadURLResponse (Maybe Text)
- getFileUploadURLResponse_httpStatus :: Lens' GetFileUploadURLResponse Int
Creating a Request
data GetFileUploadURL Source #
See: newGetFileUploadURL
smart constructor.
GetFileUploadURL' | |
|
Instances
:: Text | |
-> Text | |
-> GetFileUploadURL |
Create a value of GetFileUploadURL
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:assignmentId:GetFileUploadURL'
, getFileUploadURL_assignmentId
- The ID of the assignment that contains the question with a
FileUploadAnswer.
$sel:questionIdentifier:GetFileUploadURL'
, getFileUploadURL_questionIdentifier
- The identifier of the question with a FileUploadAnswer, as specified in
the QuestionForm of the HIT.
Request Lenses
getFileUploadURL_assignmentId :: Lens' GetFileUploadURL Text Source #
The ID of the assignment that contains the question with a FileUploadAnswer.
getFileUploadURL_questionIdentifier :: Lens' GetFileUploadURL Text Source #
The identifier of the question with a FileUploadAnswer, as specified in the QuestionForm of the HIT.
Destructuring the Response
data GetFileUploadURLResponse Source #
See: newGetFileUploadURLResponse
smart constructor.
GetFileUploadURLResponse' | |
|
Instances
newGetFileUploadURLResponse Source #
Create a value of GetFileUploadURLResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:fileUploadURL:GetFileUploadURLResponse'
, getFileUploadURLResponse_fileUploadURL
- A temporary URL for the file that the Worker uploaded for the answer.
$sel:httpStatus:GetFileUploadURLResponse'
, getFileUploadURLResponse_httpStatus
- The response's http status code.
Response Lenses
getFileUploadURLResponse_fileUploadURL :: Lens' GetFileUploadURLResponse (Maybe Text) Source #
A temporary URL for the file that the Worker uploaded for the answer.
getFileUploadURLResponse_httpStatus :: Lens' GetFileUploadURLResponse Int Source #
The response's http status code.