Removes a tag or list of tags from a resource.
Parameters:
-
resource_arn
(CleanroomsArn)
–
The Amazon Resource Name (ARN) associated with the resource you want to remove the tag from.
-
tag_keys
(TagKeys)
–
A list of key names of tags to be removed.
Raises:
Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
| def untag_resource(
self,
resource_arn: "capo_cleanrooms.types.cleanrooms_arn.CleanroomsArn",
tag_keys: "capo_cleanrooms.types.tag_keys.TagKeys",
*,
config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.untag_resource_output.UntagResourceOutput":
"""<p>Removes a tag or list of tags from a resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) associated with the resource you want to remove the tag from.</p>
tag_keys: <p>A list of key names of tags to be removed.</p>
Raises:
capo_cleanrooms.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cleanrooms.types.untag_resource_input.UntagResourceInput]",
) -> OperationResponse[
"capo_cleanrooms.types.untag_resource_output.UntagResourceOutput"
]:
import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.untag_resource
output, http_response = (
capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.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_cleanrooms.types.untag_resource_input.UntagResourceInput = {
"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
|