untag_resource
¶
untag_resource(
resource_id: ResourceId,
tag_key_list: TagKeyList,
*,
config_overrides: Optional[CloudHSMV2ClientConfig] = 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/cloud_hsmv2.py
1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 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 | |