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 |
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
- data InitiateDocumentVersionUpload = InitiateDocumentVersionUpload' {}
- newInitiateDocumentVersionUpload :: Text -> InitiateDocumentVersionUpload
- initiateDocumentVersionUpload_documentSizeInBytes :: Lens' InitiateDocumentVersionUpload (Maybe Integer)
- initiateDocumentVersionUpload_contentCreatedTimestamp :: Lens' InitiateDocumentVersionUpload (Maybe UTCTime)
- initiateDocumentVersionUpload_authenticationToken :: Lens' InitiateDocumentVersionUpload (Maybe Text)
- initiateDocumentVersionUpload_name :: Lens' InitiateDocumentVersionUpload (Maybe Text)
- initiateDocumentVersionUpload_id :: Lens' InitiateDocumentVersionUpload (Maybe Text)
- initiateDocumentVersionUpload_contentModifiedTimestamp :: Lens' InitiateDocumentVersionUpload (Maybe UTCTime)
- initiateDocumentVersionUpload_contentType :: Lens' InitiateDocumentVersionUpload (Maybe Text)
- initiateDocumentVersionUpload_parentFolderId :: Lens' InitiateDocumentVersionUpload Text
- data InitiateDocumentVersionUploadResponse = InitiateDocumentVersionUploadResponse' {}
- newInitiateDocumentVersionUploadResponse :: Int -> InitiateDocumentVersionUploadResponse
- initiateDocumentVersionUploadResponse_metadata :: Lens' InitiateDocumentVersionUploadResponse (Maybe DocumentMetadata)
- initiateDocumentVersionUploadResponse_uploadMetadata :: Lens' InitiateDocumentVersionUploadResponse (Maybe UploadMetadata)
- initiateDocumentVersionUploadResponse_httpStatus :: Lens' InitiateDocumentVersionUploadResponse Int
Creating a Request
data InitiateDocumentVersionUpload Source #
See: newInitiateDocumentVersionUpload
smart constructor.
InitiateDocumentVersionUpload' | |
|
Instances
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_documentSizeInBytes :: Lens' InitiateDocumentVersionUpload (Maybe Integer) Source #
The size of the document, in bytes.
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.
initiateDocumentVersionUpload_name :: Lens' InitiateDocumentVersionUpload (Maybe Text) Source #
The name of the document.
initiateDocumentVersionUpload_id :: Lens' InitiateDocumentVersionUpload (Maybe Text) Source #
The ID of the document.
initiateDocumentVersionUpload_contentModifiedTimestamp :: Lens' InitiateDocumentVersionUpload (Maybe UTCTime) Source #
The timestamp when the content of the document was modified.
initiateDocumentVersionUpload_contentType :: Lens' InitiateDocumentVersionUpload (Maybe Text) Source #
The content type of the document.
initiateDocumentVersionUpload_parentFolderId :: Lens' InitiateDocumentVersionUpload Text Source #
The ID of the parent folder.
Destructuring the Response
data InitiateDocumentVersionUploadResponse Source #
See: newInitiateDocumentVersionUploadResponse
smart constructor.
InitiateDocumentVersionUploadResponse' | |
|
Instances
newInitiateDocumentVersionUploadResponse Source #
Create a value of InitiateDocumentVersionUploadResponse
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:metadata:InitiateDocumentVersionUploadResponse'
, initiateDocumentVersionUploadResponse_metadata
- The document metadata.
$sel:uploadMetadata:InitiateDocumentVersionUploadResponse'
, initiateDocumentVersionUploadResponse_uploadMetadata
- The upload metadata.
$sel:httpStatus:InitiateDocumentVersionUploadResponse'
, initiateDocumentVersionUploadResponse_httpStatus
- The response's http status code.
Response Lenses
initiateDocumentVersionUploadResponse_metadata :: Lens' InitiateDocumentVersionUploadResponse (Maybe DocumentMetadata) Source #
The document metadata.
initiateDocumentVersionUploadResponse_uploadMetadata :: Lens' InitiateDocumentVersionUploadResponse (Maybe UploadMetadata) Source #
The upload metadata.
initiateDocumentVersionUploadResponse_httpStatus :: Lens' InitiateDocumentVersionUploadResponse Int Source #
The response's http status code.