Removes the association of tags from a DAX resource. You can call UntagResource up to 5 times per second, per account.
Parameters:
-
resource_name
(String)
–
The name of the DAX resource from which the tags should be removed.
-
tag_keys
(KeyList)
–
A list of tag keys. If the DAX cluster has any tags with these keys, then the tags are removed from the cluster.
Raises:
Source code in docs_src/capo_dax/_services/dax.py
| def untag_resource(
self,
resource_name: "capo_dax.types.string.String",
tag_keys: "capo_dax.types.key_list.KeyList",
*,
config_overrides: Optional[DAXClientConfig] = None,
) -> "capo_dax.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes the association of tags from a DAX resource. You can call <code>UntagResource</code> up to 5 times per second, per account. </p>
Args:
resource_name: <p>The name of the DAX resource from which the tags should be removed.</p>
tag_keys: <p>A list of tag keys. If the DAX cluster has any tags with these keys, then the tags are removed from the cluster.</p>
Raises:
capo_dax.errors.cluster_not_found_fault.ClusterNotFoundFault: <p>The requested cluster ID does not refer to an existing DAX cluster.</p>
capo_dax.errors.invalid_arn_fault.InvalidARNFault: <p>The Amazon Resource Name (ARN) supplied in the request is not valid.</p>
capo_dax.errors.invalid_cluster_state_fault.InvalidClusterStateFault: <p>The requested DAX cluster is not in the <i>available</i> state.</p>
capo_dax.errors.invalid_parameter_combination_exception.InvalidParameterCombinationException: <p>Two or more incompatible parameters were specified.</p>
capo_dax.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The value for a parameter is invalid.</p>
capo_dax.errors.service_linked_role_not_found_fault.ServiceLinkedRoleNotFoundFault: <p>The specified service linked role (SLR) was not found.</p>
capo_dax.errors.tag_not_found_fault.TagNotFoundFault: <p>The tag does not exist.</p>
capo_dax.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_dax.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_dax.types.untag_resource_response.UntagResourceResponse"
]:
import capo_dax._operations.amazon_daxv3.untag_resource
output, http_response = (
capo_dax._operations.amazon_daxv3.untag_resource.untag_resource(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_dax.types.untag_resource_request.UntagResourceRequest = {
"resource_name": resource_name,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|