Lists the versions of a particular DataBrew recipe, except for LATEST_WORKING.
Parameters:
-
max_results
(Optional[MaxResults100], default:
None
)
–
The maximum number of results to return in this request.
-
next_token
(Optional[NextToken], default:
None
)
–
The token returned by a previous call to retrieve the next set of results.
-
name
(RecipeName)
–
The name of the recipe for which to return version information.
Raises:
Source code in docs_src/capo_databrew/_services/async_data_brew.py
| async def list_recipe_versions(
self,
name: "capo_databrew.types.recipe_name.RecipeName",
*,
config_overrides: Optional[AsyncDataBrewClientConfig] = None,
max_results: Optional[
"capo_databrew.types.max_results100.MaxResults100"
] = None,
next_token: Optional["capo_databrew.types.next_token.NextToken"] = None,
) -> "capo_databrew.types.list_recipe_versions_response.ListRecipeVersionsResponse":
"""<p>Lists the versions of a particular DataBrew recipe, except for <code>LATEST_WORKING</code>.</p>
Args:
max_results: <p>The maximum number of results to return in this request. </p>
next_token: <p>The token returned by a previous call to retrieve the next set of results.</p>
name: <p>The name of the recipe for which to return version information.</p>
Raises:
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.list_recipe_versions_request.ListRecipeVersionsRequest]",
) -> AsyncOperationResponse[
"capo_databrew.types.list_recipe_versions_response.ListRecipeVersionsResponse"
]:
import capo_databrew._operations.aws_glue_data_brew.list_recipe_versions
(
output,
http_response,
) = await capo_databrew._operations.aws_glue_data_brew.list_recipe_versions.async_list_recipe_versions(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListRecipeVersions")
)
input_: capo_databrew.types.list_recipe_versions_request.ListRecipeVersionsRequest = {
"name": name
}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|