Deletes a single version of a DataBrew recipe.
Parameters:
-
name
(RecipeName)
–
-
recipe_version
(RecipeVersion)
–
The version of the recipe to be deleted. You can specify a numeric versions (X.Y) or LATEST_WORKING. LATEST_PUBLISHED is not supported.
Raises:
Source code in docs_src/capo_databrew/_services/data_brew.py
| def delete_recipe_version(
self,
name: "capo_databrew.types.recipe_name.RecipeName",
recipe_version: "capo_databrew.types.recipe_version.RecipeVersion",
*,
config_overrides: Optional[DataBrewClientConfig] = None,
) -> (
"capo_databrew.types.delete_recipe_version_response.DeleteRecipeVersionResponse"
):
"""<p>Deletes a single version of a DataBrew recipe.</p>
Args:
name: <p>The name of the recipe.</p>
recipe_version: <p>The version of the recipe to be deleted. You can specify a numeric versions (<code>X.Y</code>) or <code>LATEST_WORKING</code>. <code>LATEST_PUBLISHED</code> is not supported.</p>
Raises:
capo_databrew.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
capo_databrew.errors.resource_not_found_exception.ResourceNotFoundException: <p>One or more resources can't be found.</p>
capo_databrew.errors.validation_exception.ValidationException: <p>The input parameters for this request failed validation.</p>
capo_databrew.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_databrew.types.delete_recipe_version_request.DeleteRecipeVersionRequest]",
) -> OperationResponse[
"capo_databrew.types.delete_recipe_version_response.DeleteRecipeVersionResponse"
]:
import capo_databrew._operations.aws_glue_data_brew.delete_recipe_version
output, http_response = (
capo_databrew._operations.aws_glue_data_brew.delete_recipe_version.delete_recipe_version(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteRecipeVersion")
)
input_: capo_databrew.types.delete_recipe_version_request.DeleteRecipeVersionRequest = {
"name": name,
"recipe_version": recipe_version,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|