amazonka-workdocs-1.6.0: Amazon WorkDocs 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.WorkDocs.UpdateDocumentVersion

Contents

Description

Changes the status of the document version to ACTIVE.

Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by InitiateDocumentVersionUpload .

Synopsis

Creating a Request

updateDocumentVersion Source #

Creates a value of UpdateDocumentVersion with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UpdateDocumentVersion Source #

See: updateDocumentVersion smart constructor.

Instances

Eq UpdateDocumentVersion Source # 
Data UpdateDocumentVersion Source # 

Methods

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

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

toConstr :: UpdateDocumentVersion -> Constr #

dataTypeOf :: UpdateDocumentVersion -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateDocumentVersion Source # 
Generic UpdateDocumentVersion Source # 
Hashable UpdateDocumentVersion Source # 
ToJSON UpdateDocumentVersion Source # 
NFData UpdateDocumentVersion Source # 

Methods

rnf :: UpdateDocumentVersion -> () #

AWSRequest UpdateDocumentVersion Source # 
ToHeaders UpdateDocumentVersion Source # 
ToPath UpdateDocumentVersion Source # 
ToQuery UpdateDocumentVersion Source # 
type Rep UpdateDocumentVersion Source # 
type Rep UpdateDocumentVersion = D1 * (MetaData "UpdateDocumentVersion" "Network.AWS.WorkDocs.UpdateDocumentVersion" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" False) (C1 * (MetaCons "UpdateDocumentVersion'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_udvAuthenticationToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe (Sensitive Text)))) (S1 * (MetaSel (Just Symbol "_udvVersionStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DocumentVersionStatus)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_udvDocumentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_udvVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdateDocumentVersion Source # 

Request Lenses

udvAuthenticationToken :: Lens' UpdateDocumentVersion (Maybe Text) Source #

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

udvVersionId :: Lens' UpdateDocumentVersion Text Source #

The version ID of the document.

Destructuring the Response

updateDocumentVersionResponse :: UpdateDocumentVersionResponse Source #

Creates a value of UpdateDocumentVersionResponse with the minimum fields required to make a request.

data UpdateDocumentVersionResponse Source #

See: updateDocumentVersionResponse smart constructor.

Instances

Eq UpdateDocumentVersionResponse Source # 
Data UpdateDocumentVersionResponse Source # 

Methods

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

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

toConstr :: UpdateDocumentVersionResponse -> Constr #

dataTypeOf :: UpdateDocumentVersionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateDocumentVersionResponse Source # 
Show UpdateDocumentVersionResponse Source # 
Generic UpdateDocumentVersionResponse Source # 
NFData UpdateDocumentVersionResponse Source # 
type Rep UpdateDocumentVersionResponse Source # 
type Rep UpdateDocumentVersionResponse = D1 * (MetaData "UpdateDocumentVersionResponse" "Network.AWS.WorkDocs.UpdateDocumentVersion" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" False) (C1 * (MetaCons "UpdateDocumentVersionResponse'" PrefixI False) (U1 *))