Unassigns a tag from a retention rule.
Parameters:
-
resource_arn
(RuleArn)
–
The Amazon Resource Name (ARN) of the retention rule.
-
tag_keys
(TagKeyList)
–
The tag keys of the tags to unassign. All tags that have the specified tag key are unassigned.
Raises:
Source code in docs_src/capo_rbin/_services/rbin.py
| def untag_resource(
self,
resource_arn: "capo_rbin.types.rule_arn.RuleArn",
tag_keys: "capo_rbin.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[rbinClientConfig] = None,
) -> "capo_rbin.types.untag_resource_response.UntagResourceResponse":
"""<p>Unassigns a tag from a retention rule.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the retention rule.</p>
tag_keys: <p>The tag keys of the tags to unassign. All tags that have the specified tag key are unassigned.</p>
Raises:
capo_rbin.errors.internal_server_exception.InternalServerException: <p>The service could not respond to the request due to an internal problem.</p>
capo_rbin.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_rbin.errors.validation_exception.ValidationException: <p>One or more of the parameters in the request is not valid.</p>
capo_rbin.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_rbin.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_rbin.types.untag_resource_response.UntagResourceResponse"
]:
import capo_rbin._operations.amazon_recycle_bin.untag_resource
output, http_response = (
capo_rbin._operations.amazon_recycle_bin.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_rbin.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|