delete_labels
¶
delete_labels(
resource_id: ResourceIdType,
*,
config_overrides: Optional[WorkDocsClientConfig] = None,
authentication_token: Optional[AuthenticationHeaderType] = None,
labels: Optional[SharedLabels] = None,
delete_all: Optional[BooleanType] = None,
) -> DeleteLabelsResponse
Deletes the specified list of labels from a resource.
Parameters:
-
resource_id(ResourceIdType) –The ID of the resource.
-
authentication_token(Optional[AuthenticationHeaderType], default:None) –Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
labels(Optional[SharedLabels], default:None) –List of labels to delete from the resource.
-
delete_all(Optional[BooleanType], default:None) –Flag to request removal of all labels from the specified resource.
Raises:
-
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.
Source code in docs_src/capo_workdocs/_services/work_docs.py
1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 | |