untag_resource
async
¶
untag_resource(
resource_id: ResourceId,
tag_key_list: TagKeyList,
*,
config_overrides: Optional[AsyncCloudHSMV2ClientConfig] = None,
) -> UntagResourceResponse
Removes the specified tag or tags from the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.
Parameters:
-
resource_id(ResourceId) –The cluster identifier (ID) for the cluster whose tags you are removing. To find the cluster ID, use DescribeClusters.
-
tag_key_list(TagKeyList) –A list of one or more tag keys for the tags that you are removing. Specify only the tag keys, not the tag values.
Raises:
-
CloudHsmAccessDeniedException–The request was rejected because the requester does not have permission to perform the requested operation.
-
CloudHsmInternalFailureException–The request was rejected because of an CloudHSM internal failure. The request can be retried.
-
CloudHsmInvalidRequestException–The request was rejected because it is not a valid request.
-
CloudHsmResourceNotFoundException–The request was rejected because it refers to a resource that cannot be found.
-
CloudHsmServiceException–The request was rejected because an error occurred.
-
CloudHsmTagException–The request was rejected because of a tagging failure. Verify the tag conditions in all applicable policies, and then retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudhsm_v2/_services/async_cloud_hsmv2.py
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 | |