Copyright | (c) 2013-2021 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 |
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_parentFolderId :: Lens' UpdateDocument (Maybe Text)
- updateDocument_authenticationToken :: Lens' UpdateDocument (Maybe Text)
- updateDocument_name :: 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.
UpdateDocument' | |
|
Instances
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:parentFolderId:UpdateDocument'
, updateDocument_parentFolderId
- The ID of the parent folder.
$sel:authenticationToken:UpdateDocument'
, updateDocument_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:name:UpdateDocument'
, updateDocument_name
- The name of the document.
$sel:resourceState: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_parentFolderId :: Lens' UpdateDocument (Maybe Text) Source #
The ID of the parent folder.
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_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.
Instances
Eq UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument | |
Read UpdateDocumentResponse Source # | |
Show UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument showsPrec :: Int -> UpdateDocumentResponse -> ShowS # show :: UpdateDocumentResponse -> String # showList :: [UpdateDocumentResponse] -> ShowS # | |
Generic UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument type Rep UpdateDocumentResponse :: Type -> Type # | |
NFData UpdateDocumentResponse Source # | |
Defined in Amazonka.WorkDocs.UpdateDocument rnf :: UpdateDocumentResponse -> () # | |
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.