| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WorkDocs.UpdateDocument
Description
Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.
Synopsis
- data UpdateDocument = UpdateDocument' {}
- newUpdateDocument :: Text -> UpdateDocument
- updateDocument_authenticationToken :: Lens' UpdateDocument (Maybe Text)
- updateDocument_name :: Lens' UpdateDocument (Maybe Text)
- updateDocument_parentFolderId :: Lens' UpdateDocument (Maybe Text)
- updateDocument_resourceState :: Lens' UpdateDocument (Maybe ResourceStateType)
- updateDocument_documentId :: Lens' UpdateDocument Text
- data UpdateDocumentResponse = UpdateDocumentResponse' {
- newUpdateDocumentResponse :: UpdateDocumentResponse
Creating a Request
data UpdateDocument Source #
See: newUpdateDocument smart constructor.
Constructors
| UpdateDocument' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateDocument |
Create a value of UpdateDocument 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:authenticationToken:UpdateDocument', updateDocument_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
UpdateDocument, updateDocument_name - The name of the document.
UpdateDocument, updateDocument_parentFolderId - The ID of the parent folder.
UpdateDocument, updateDocument_resourceState - The resource state of the document. Only ACTIVE and RECYCLED are
supported.
$sel:documentId:UpdateDocument', updateDocument_documentId - The ID of the document.
Request Lenses
updateDocument_authenticationToken :: Lens' UpdateDocument (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
updateDocument_name :: Lens' UpdateDocument (Maybe Text) Source #
The name of the document.
updateDocument_parentFolderId :: Lens' UpdateDocument (Maybe Text) Source #
The ID of the parent folder.
updateDocument_resourceState :: Lens' UpdateDocument (Maybe ResourceStateType) Source #
The resource state of the document. Only ACTIVE and RECYCLED are supported.
updateDocument_documentId :: Lens' UpdateDocument Text Source #
The ID of the document.
Destructuring the Response
data UpdateDocumentResponse Source #
See: newUpdateDocumentResponse smart constructor.
Constructors
| UpdateDocumentResponse' | |
Instances
| Generic UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument Associated Types type Rep UpdateDocumentResponse :: Type -> Type # Methods from :: UpdateDocumentResponse -> Rep UpdateDocumentResponse x # to :: Rep UpdateDocumentResponse x -> UpdateDocumentResponse # | |
| Read UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument | |
| Show UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument Methods showsPrec :: Int -> UpdateDocumentResponse -> ShowS # show :: UpdateDocumentResponse -> String # showList :: [UpdateDocumentResponse] -> ShowS # | |
| NFData UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument Methods rnf :: UpdateDocumentResponse -> () # | |
| Eq UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument Methods (==) :: UpdateDocumentResponse -> UpdateDocumentResponse -> Bool # (/=) :: UpdateDocumentResponse -> UpdateDocumentResponse -> Bool # | |
| type Rep UpdateDocumentResponse Source # | |
newUpdateDocumentResponse :: UpdateDocumentResponse Source #
Create a value of UpdateDocumentResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.