Skip to content

delete_recipe_version async

delete_recipe_version(
    name: RecipeName,
    recipe_version: RecipeVersion,
    *,
    config_overrides: Optional[AsyncDataBrewClientConfig] = None,
) -> DeleteRecipeVersionResponse

Deletes a single version of a DataBrew recipe.

Parameters:

  • name (RecipeName) –

    The name of the recipe.

  • 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/async_data_brew.py
async def delete_recipe_version(
    self,
    name: "capo_databrew.types.recipe_name.RecipeName",
    recipe_version: "capo_databrew.types.recipe_version.RecipeVersion",
    *,
    config_overrides: Optional[AsyncDataBrewClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_databrew.types.delete_recipe_version_request.DeleteRecipeVersionRequest]",
    ) -> AsyncOperationResponse[
        "capo_databrew.types.delete_recipe_version_response.DeleteRecipeVersionResponse"
    ]:
        import capo_databrew._operations.aws_glue_data_brew.delete_recipe_version

        (
            output,
            http_response,
        ) = await capo_databrew._operations.aws_glue_data_brew.delete_recipe_version.async_delete_recipe_version(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output