Removes one or more tags from the specified pipes.
Parameters:
-
resource_arn
(PipeArn)
–
-
tag_keys
(TagKeyList)
–
The list of tag keys to remove from the pipe.
Raises:
Source code in docs_src/capo_pipes/_services/pipes.py
| def untag_resource(
self,
resource_arn: "capo_pipes.types.pipe_arn.PipeArn",
tag_keys: "capo_pipes.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[PipesClientConfig] = None,
) -> "capo_pipes.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes one or more tags from the specified pipes.</p>
Args:
resource_arn: <p>The ARN of the pipe.</p>
tag_keys: <p>The list of tag keys to remove from the pipe.</p>
Raises:
capo_pipes.errors.internal_exception.InternalException: <p>This exception occurs due to unexpected causes.</p>
capo_pipes.errors.not_found_exception.NotFoundException: <p>An entity that you specified does not exist.</p>
capo_pipes.errors.validation_exception.ValidationException: <p>Indicates that an error has occurred while performing a validate operation.</p>
capo_pipes.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_pipes.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_pipes.types.untag_resource_response.UntagResourceResponse"
]:
import capo_pipes._operations.pipes.untag_resource
output, http_response = (
capo_pipes._operations.pipes.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_pipes.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
|