Struct aws_sdk_workdocs::client::fluent_builders::InitiateDocumentVersionUpload [−][src]
pub struct InitiateDocumentVersionUpload<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to InitiateDocumentVersionUpload
.
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.
Implementations
impl<C, M, R> InitiateDocumentVersionUpload<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> InitiateDocumentVersionUpload<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<InitiateDocumentVersionUploadOutput, SdkError<InitiateDocumentVersionUploadError>> where
R::Policy: SmithyRetryPolicy<InitiateDocumentVersionUploadInputOperationOutputAlias, InitiateDocumentVersionUploadOutput, InitiateDocumentVersionUploadError, InitiateDocumentVersionUploadInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<InitiateDocumentVersionUploadOutput, SdkError<InitiateDocumentVersionUploadError>> where
R::Policy: SmithyRetryPolicy<InitiateDocumentVersionUploadInputOperationOutputAlias, InitiateDocumentVersionUploadOutput, InitiateDocumentVersionUploadError, InitiateDocumentVersionUploadInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
The timestamp when the content of the document was originally created.
The timestamp when the content of the document was originally created.
The timestamp when the content of the document was modified.
The timestamp when the content of the document was modified.
The content type of the document.
The content type of the document.
The size of the document, in bytes.
The size of the document, in bytes.
The ID of the parent folder.
The ID of the parent folder.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for InitiateDocumentVersionUpload<C, M, R>
impl<C, M, R> Send for InitiateDocumentVersionUpload<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for InitiateDocumentVersionUpload<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for InitiateDocumentVersionUpload<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for InitiateDocumentVersionUpload<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more