Copyright | (c) 2013-2018 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 |
Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.
Synopsis
- updateDocument :: Text -> UpdateDocument
- data UpdateDocument
- udParentFolderId :: Lens' UpdateDocument (Maybe Text)
- udAuthenticationToken :: Lens' UpdateDocument (Maybe Text)
- udName :: Lens' UpdateDocument (Maybe Text)
- udResourceState :: Lens' UpdateDocument (Maybe ResourceStateType)
- udDocumentId :: Lens' UpdateDocument Text
- updateDocumentResponse :: UpdateDocumentResponse
- data UpdateDocumentResponse
Creating a Request
Creates a value of UpdateDocument
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
udParentFolderId
- The ID of the parent folder.udAuthenticationToken
- Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.udName
- The name of the document.udResourceState
- The resource state of the document. Only ACTIVE and RECYCLED are supported.udDocumentId
- The ID of the document.
data UpdateDocument Source #
See: updateDocument
smart constructor.
Instances
Request Lenses
udParentFolderId :: Lens' UpdateDocument (Maybe Text) Source #
The ID of the parent folder.
udAuthenticationToken :: Lens' UpdateDocument (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.
udResourceState :: Lens' UpdateDocument (Maybe ResourceStateType) Source #
The resource state of the document. Only ACTIVE and RECYCLED are supported.
udDocumentId :: Lens' UpdateDocument Text Source #
The ID of the document.
Destructuring the Response
updateDocumentResponse :: UpdateDocumentResponse Source #
Creates a value of UpdateDocumentResponse
with the minimum fields required to make a request.
data UpdateDocumentResponse Source #
See: updateDocumentResponse
smart constructor.