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

Description

Creates a new document object and version object.

The client specifies the parent folder ID and name of the document to upload. The ID is optionally specified when creating a new version of an existing document. This is the first step to upload a document. Next, upload the document to the URL returned from the call, and then call UpdateDocumentVersion.

To cancel the document upload, call AbortDocumentVersionUpload.

Synopsis

Creating a Request

data InitiateDocumentVersionUpload Source #

See: newInitiateDocumentVersionUpload smart constructor.

Constructors

InitiateDocumentVersionUpload' 

Fields

Instances

Instances details
Eq InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

Show InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

Generic InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

Associated Types

type Rep InitiateDocumentVersionUpload :: Type -> Type #

NFData InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

Hashable InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

ToJSON InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

AWSRequest InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

ToHeaders InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

ToPath InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

ToQuery InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

type Rep InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

type Rep InitiateDocumentVersionUpload = D1 ('MetaData "InitiateDocumentVersionUpload" "Amazonka.WorkDocs.InitiateDocumentVersionUpload" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "InitiateDocumentVersionUpload'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "documentSizeInBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "contentCreatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "authenticationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "contentModifiedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "parentFolderId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse InitiateDocumentVersionUpload Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

newInitiateDocumentVersionUpload Source #

Create a value of InitiateDocumentVersionUpload 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:documentSizeInBytes:InitiateDocumentVersionUpload', initiateDocumentVersionUpload_documentSizeInBytes - The size of the document, in bytes.

$sel:contentCreatedTimestamp:InitiateDocumentVersionUpload', initiateDocumentVersionUpload_contentCreatedTimestamp - The timestamp when the content of the document was originally created.

$sel:authenticationToken:InitiateDocumentVersionUpload', initiateDocumentVersionUpload_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

$sel:name:InitiateDocumentVersionUpload', initiateDocumentVersionUpload_name - The name of the document.

$sel:id:InitiateDocumentVersionUpload', initiateDocumentVersionUpload_id - The ID of the document.

$sel:contentModifiedTimestamp:InitiateDocumentVersionUpload', initiateDocumentVersionUpload_contentModifiedTimestamp - The timestamp when the content of the document was modified.

$sel:contentType:InitiateDocumentVersionUpload', initiateDocumentVersionUpload_contentType - The content type of the document.

$sel:parentFolderId:InitiateDocumentVersionUpload', initiateDocumentVersionUpload_parentFolderId - The ID of the parent folder.

Request Lenses

initiateDocumentVersionUpload_contentCreatedTimestamp :: Lens' InitiateDocumentVersionUpload (Maybe UTCTime) Source #

The timestamp when the content of the document was originally created.

initiateDocumentVersionUpload_authenticationToken :: Lens' InitiateDocumentVersionUpload (Maybe Text) Source #

Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.

Destructuring the Response

data InitiateDocumentVersionUploadResponse Source #

Constructors

InitiateDocumentVersionUploadResponse' 

Fields

Instances

Instances details
Eq InitiateDocumentVersionUploadResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

Show InitiateDocumentVersionUploadResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

Generic InitiateDocumentVersionUploadResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

NFData InitiateDocumentVersionUploadResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

type Rep InitiateDocumentVersionUploadResponse Source # 
Instance details

Defined in Amazonka.WorkDocs.InitiateDocumentVersionUpload

type Rep InitiateDocumentVersionUploadResponse = D1 ('MetaData "InitiateDocumentVersionUploadResponse" "Amazonka.WorkDocs.InitiateDocumentVersionUpload" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "InitiateDocumentVersionUploadResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DocumentMetadata)) :*: (S1 ('MetaSel ('Just "uploadMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UploadMetadata)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

Response Lenses