libZSservicesZSamazonka-workdocsZSamazonka-workdocs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data UpdateDocument Source #

See: newUpdateDocument smart constructor.

Constructors

UpdateDocument' 

Fields

Instances

Instances details
Eq UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Show UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Generic UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Associated Types

type Rep UpdateDocument :: Type -> Type #

NFData UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Methods

rnf :: UpdateDocument -> () #

Hashable UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

ToJSON UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

AWSRequest UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Associated Types

type AWSResponse UpdateDocument #

ToHeaders UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

ToPath UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

ToQuery UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

type Rep UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

type Rep UpdateDocument = D1 ('MetaData "UpdateDocument" "Amazonka.WorkDocs.UpdateDocument" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "UpdateDocument'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "parentFolderId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resourceState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceStateType)) :*: S1 ('MetaSel ('Just "documentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateDocument Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

newUpdateDocument Source #

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

Destructuring the Response

data UpdateDocumentResponse Source #

See: newUpdateDocumentResponse smart constructor.

Instances

Instances details
Eq UpdateDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Read UpdateDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Show UpdateDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Generic UpdateDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Associated Types

type Rep UpdateDocumentResponse :: Type -> Type #

NFData UpdateDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

Methods

rnf :: UpdateDocumentResponse -> () #

type Rep UpdateDocumentResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.UpdateDocument

type Rep UpdateDocumentResponse = D1 ('MetaData "UpdateDocumentResponse" "Amazonka.WorkDocs.UpdateDocument" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "UpdateDocumentResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newUpdateDocumentResponse :: UpdateDocumentResponse Source #

Create a value of UpdateDocumentResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.