amazonka-mechanicalturk-1.6.0: Amazon Mechanical Turk SDK.

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

Network.AWS.MechanicalTurk.GetFileUploadURL

Contents

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

getFileUploadURL Source #

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.

Instances

Eq GetFileUploadURL Source # 
Data GetFileUploadURL Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetFileUploadURL -> c GetFileUploadURL #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetFileUploadURL #

toConstr :: GetFileUploadURL -> Constr #

dataTypeOf :: GetFileUploadURL -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetFileUploadURL) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetFileUploadURL) #

gmapT :: (forall b. Data b => b -> b) -> GetFileUploadURL -> GetFileUploadURL #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetFileUploadURL -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetFileUploadURL -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetFileUploadURL -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetFileUploadURL -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetFileUploadURL -> m GetFileUploadURL #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFileUploadURL -> m GetFileUploadURL #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFileUploadURL -> m GetFileUploadURL #

Read GetFileUploadURL Source # 
Show GetFileUploadURL Source # 
Generic GetFileUploadURL Source # 
Hashable GetFileUploadURL Source # 
ToJSON GetFileUploadURL Source # 
NFData GetFileUploadURL Source # 

Methods

rnf :: GetFileUploadURL -> () #

AWSRequest GetFileUploadURL Source # 
ToHeaders GetFileUploadURL Source # 
ToPath GetFileUploadURL Source # 
ToQuery GetFileUploadURL Source # 
type Rep GetFileUploadURL Source # 
type Rep GetFileUploadURL = D1 * (MetaData "GetFileUploadURL" "Network.AWS.MechanicalTurk.GetFileUploadURL" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" False) (C1 * (MetaCons "GetFileUploadURL'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gfuuAssignmentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_gfuuQuestionIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs GetFileUploadURL Source # 

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:

data GetFileUploadURLResponse Source #

See: getFileUploadURLResponse smart constructor.

Instances

Eq GetFileUploadURLResponse Source # 
Data GetFileUploadURLResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetFileUploadURLResponse -> c GetFileUploadURLResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetFileUploadURLResponse #

toConstr :: GetFileUploadURLResponse -> Constr #

dataTypeOf :: GetFileUploadURLResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetFileUploadURLResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetFileUploadURLResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetFileUploadURLResponse -> GetFileUploadURLResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetFileUploadURLResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetFileUploadURLResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetFileUploadURLResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetFileUploadURLResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetFileUploadURLResponse -> m GetFileUploadURLResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFileUploadURLResponse -> m GetFileUploadURLResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetFileUploadURLResponse -> m GetFileUploadURLResponse #

Read GetFileUploadURLResponse Source # 
Show GetFileUploadURLResponse Source # 
Generic GetFileUploadURLResponse Source # 
NFData GetFileUploadURLResponse Source # 
type Rep GetFileUploadURLResponse Source # 
type Rep GetFileUploadURLResponse = D1 * (MetaData "GetFileUploadURLResponse" "Network.AWS.MechanicalTurk.GetFileUploadURL" "amazonka-mechanicalturk-1.6.0-LJdO7bIweE9BcCI1YoYmug" False) (C1 * (MetaCons "GetFileUploadURLResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_gfuursFileUploadURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_gfuursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

gfuursFileUploadURL :: Lens' GetFileUploadURLResponse (Maybe Text) Source #

A temporary URL for the file that the Worker uploaded for the answer.