Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
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.
- getFileUploadURL :: Text -> Text -> GetFileUploadURL
- data GetFileUploadURL
- gfuuAssignmentId :: Lens' GetFileUploadURL Text
- gfuuQuestionIdentifier :: Lens' GetFileUploadURL Text
- getFileUploadURLResponse :: Int -> GetFileUploadURLResponse
- data GetFileUploadURLResponse
- gfuursFileUploadURL :: Lens' GetFileUploadURLResponse (Maybe Text)
- gfuursResponseStatus :: Lens' GetFileUploadURLResponse Int
Creating a Request
Creates a value of GetFileUploadURL
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gfuuAssignmentId
- The ID of the assignment that contains the question with a FileUploadAnswer.gfuuQuestionIdentifier
- The identifier of the question with a FileUploadAnswer, as specified in the QuestionForm of the HIT.
data GetFileUploadURL Source #
See: getFileUploadURL
smart constructor.
Request Lenses
gfuuAssignmentId :: Lens' GetFileUploadURL Text Source #
The ID of the assignment that contains the question with a FileUploadAnswer.
gfuuQuestionIdentifier :: Lens' GetFileUploadURL Text Source #
The identifier of the question with a FileUploadAnswer, as specified in the QuestionForm of the HIT.
Destructuring the Response
getFileUploadURLResponse Source #
Creates a value of GetFileUploadURLResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gfuursFileUploadURL
- A temporary URL for the file that the Worker uploaded for the answer.gfuursResponseStatus
- -- | The response status code.
data GetFileUploadURLResponse Source #
See: getFileUploadURLResponse
smart constructor.
Response Lenses
gfuursFileUploadURL :: Lens' GetFileUploadURLResponse (Maybe Text) Source #
A temporary URL for the file that the Worker uploaded for the answer.
gfuursResponseStatus :: Lens' GetFileUploadURLResponse Int Source #
- - | The response status code.