delete_document_version
async
¶
delete_document_version(
document_id: ResourceIdType,
version_id: DocumentVersionIdType,
delete_prior_versions: BooleanType,
*,
config_overrides: Optional[AsyncWorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
) -> None
Deletes a specific version of a document.
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 associated with the version being deleted.
-
version_id(DocumentVersionIdType) –The ID of the version being deleted.
-
delete_prior_versions(BooleanType) –Deletes all versions of a document prior to the current version.
Raises:
-
ConcurrentModificationException–The resource hierarchy is changing.
-
ConflictingOperationException–Another operation is in progress on the resource that conflicts with the current operation.
-
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.
-
InvalidOperationException–The operation is invalid.
-
ProhibitedStateException–The specified document version is not in the INITIALIZED state.
-
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.
Source code in docs_src/capo_workdocs/_services/async_work_docs.py
1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 | |