libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MechanicalTurk.GetFileUploadURL

Description

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

Creating a Request

data GetFileUploadURL Source #

See: newGetFileUploadURL smart constructor.

Constructors

GetFileUploadURL' 

Fields

  • assignmentId :: Text

    The ID of the assignment that contains the question with a FileUploadAnswer.

  • questionIdentifier :: Text

    The identifier of the question with a FileUploadAnswer, as specified in the QuestionForm of the HIT.

Instances

Instances details
Eq GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Read GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Show GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Generic GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Associated Types

type Rep GetFileUploadURL :: Type -> Type #

NFData GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Methods

rnf :: GetFileUploadURL -> () #

Hashable GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

ToJSON GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

AWSRequest GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Associated Types

type AWSResponse GetFileUploadURL #

ToHeaders GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

ToPath GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

ToQuery GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

type Rep GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

type Rep GetFileUploadURL = D1 ('MetaData "GetFileUploadURL" "Amazonka.MechanicalTurk.GetFileUploadURL" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "GetFileUploadURL'" 'PrefixI 'True) (S1 ('MetaSel ('Just "assignmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "questionIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetFileUploadURL Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

newGetFileUploadURL Source #

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.

Constructors

GetFileUploadURLResponse' 

Fields

Instances

Instances details
Eq GetFileUploadURLResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Read GetFileUploadURLResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Show GetFileUploadURLResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Generic GetFileUploadURLResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

Associated Types

type Rep GetFileUploadURLResponse :: Type -> Type #

NFData GetFileUploadURLResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

type Rep GetFileUploadURLResponse Source # 
Instance details

Defined in Amazonka.MechanicalTurk.GetFileUploadURL

type Rep GetFileUploadURLResponse = D1 ('MetaData "GetFileUploadURLResponse" "Amazonka.MechanicalTurk.GetFileUploadURL" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "GetFileUploadURLResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fileUploadURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.