abort_document_version_upload
¶
abort_document_version_upload(
document_id: ResourceIdType,
version_id: DocumentVersionIdType,
*,
config_overrides: Optional[WorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
) -> None
Aborts the upload of the specified document version that was previously initiated by InitiateDocumentVersionUpload. The client should make this call only when it no longer intends to upload the document version, or fails to do so.
Parameters:
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
document_id(ResourceIdType) –The ID of the document.
-
version_id(DocumentVersionIdType) –The ID of the version.
Raises:
-
ConcurrentModificationException–The resource hierarchy is changing.
-
EntityNotExistsException–The resource does not exist.
-
FailedDependencyException–The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.
-
ProhibitedStateException–The specified document version is not in the INITIALIZED state.
-
ServiceUnavailableException–One or more of the dependencies is unavailable.
-
UnauthorizedOperationException–The operation is not permitted.
-
UnauthorizedResourceAccessException–The caller does not have access to perform the action on the resource.
-
UnknownServiceError–The service returned an error code this client does not model.