async def remove_tags(
self,
pipeline_id: "capo_data_pipeline.types.id.id",
tag_keys: "capo_data_pipeline.types.string_list.stringList",
*,
config_overrides: Optional[AsyncDataPipelineClientConfig] = None,
) -> "capo_data_pipeline.types.remove_tags_output.RemoveTagsOutput":
"""<p>Removes existing tags from the specified pipeline.</p>
Args:
pipeline_id: <p>The ID of the pipeline.</p>
tag_keys: <p>The keys of the tags to remove.</p>
Raises:
capo_data_pipeline.errors.internal_service_error.InternalServiceError: <p>An internal service error occurred.</p>
capo_data_pipeline.errors.invalid_request_exception.InvalidRequestException: <p>The request was not valid. Verify that your request was properly formatted, that the signature was generated with the correct credentials, and that you haven't exceeded any of the service limits for your account.</p>
capo_data_pipeline.errors.pipeline_deleted_exception.PipelineDeletedException: <p>The specified pipeline has been deleted.</p>
capo_data_pipeline.errors.pipeline_not_found_exception.PipelineNotFoundException: <p>The specified pipeline was not found. Verify that you used the correct user and account identifiers.</p>
capo_data_pipeline.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_data_pipeline.types.remove_tags_input.RemoveTagsInput]",
) -> AsyncOperationResponse[
"capo_data_pipeline.types.remove_tags_output.RemoveTagsOutput"
]:
import capo_data_pipeline._operations.data_pipeline.remove_tags
(
output,
http_response,
) = await capo_data_pipeline._operations.data_pipeline.remove_tags.async_remove_tags(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("RemoveTags")
)
input_: capo_data_pipeline.types.remove_tags_input.RemoveTagsInput = {
"pipeline_id": pipeline_id,
"tag_keys": tag_keys,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output