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.DeleteDocument

Contents

Description

Permanently deletes the specified document and its associated metadata.

Synopsis

Creating a Request

deleteDocument Source #

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

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

  • ddAuthenticationToken - Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
  • ddDocumentId - The ID of the document.

data DeleteDocument Source #

See: deleteDocument smart constructor.

Instances

Eq DeleteDocument Source # 
Data DeleteDocument Source # 

Methods

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

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

toConstr :: DeleteDocument -> Constr #

dataTypeOf :: DeleteDocument -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DeleteDocument Source # 
Generic DeleteDocument Source # 

Associated Types

type Rep DeleteDocument :: * -> * #

Hashable DeleteDocument Source # 
NFData DeleteDocument Source # 

Methods

rnf :: DeleteDocument -> () #

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

Request Lenses

ddAuthenticationToken :: Lens' DeleteDocument (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.

ddDocumentId :: Lens' DeleteDocument Text Source #

The ID of the document.

Destructuring the Response

deleteDocumentResponse :: DeleteDocumentResponse Source #

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

data DeleteDocumentResponse Source #

See: deleteDocumentResponse smart constructor.

Instances

Eq DeleteDocumentResponse Source # 
Data DeleteDocumentResponse Source # 

Methods

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

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

toConstr :: DeleteDocumentResponse -> Constr #

dataTypeOf :: DeleteDocumentResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteDocumentResponse Source # 
Show DeleteDocumentResponse Source # 
Generic DeleteDocumentResponse Source # 
NFData DeleteDocumentResponse Source # 

Methods

rnf :: DeleteDocumentResponse -> () #

type Rep DeleteDocumentResponse Source # 
type Rep DeleteDocumentResponse = D1 * (MetaData "DeleteDocumentResponse" "Network.AWS.WorkDocs.DeleteDocument" "amazonka-workdocs-1.6.0-1U8VphMWtKAbdAmu8y8qj" False) (C1 * (MetaCons "DeleteDocumentResponse'" PrefixI False) (U1 *))