Removes a tag from an associated repository.
Parameters:
-
resource_arn
(AssociationArn)
–
-
tag_keys
(TagKeyList)
–
A list of the keys for each tag you want to remove from an associated repository.
Raises:
Source code in docs_src/capo_codeguru_reviewer/_services/code_guru_reviewer.py
| def untag_resource(
self,
resource_arn: "capo_codeguru_reviewer.types.association_arn.AssociationArn",
tag_keys: "capo_codeguru_reviewer.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[CodeGuruReviewerClientConfig] = None,
) -> "capo_codeguru_reviewer.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes a tag from an associated repository.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html">RepositoryAssociation</a> object. You can retrieve this ARN by calling <a href="https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html">ListRepositoryAssociations</a>.</p>
tag_keys: <p>A list of the keys for each tag you want to remove from an associated repository.</p>
Raises:
capo_codeguru_reviewer.errors.internal_server_exception.InternalServerException: <p>The server encountered an internal error and is unable to complete the request.</p>
capo_codeguru_reviewer.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource specified in the request was not found. </p>
capo_codeguru_reviewer.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
capo_codeguru_reviewer.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_codeguru_reviewer.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_codeguru_reviewer.types.untag_resource_response.UntagResourceResponse"
]:
import capo_codeguru_reviewer._operations.aws_guru_frontend_service.untag_resource
output, http_response = (
capo_codeguru_reviewer._operations.aws_guru_frontend_service.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_codeguru_reviewer.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
|