Lists all the versions for the specified application, including versions that were rolled back. The response also includes a summary of the configuration associated with each version.
To get the complete description of a specific application version, invoke the DescribeApplicationVersion operation.
This operation is supported only for Managed Service for Apache Flink.
Parameters:
Raises:
Source code in docs_src/capo_kinesis_analytics_v2/_services/async_kinesis_analytics_v2.py
| async def list_application_versions(
self,
application_name: "capo_kinesis_analytics_v2.types.application_name.ApplicationName",
*,
config_overrides: Optional[AsyncKinesisAnalyticsV2ClientConfig] = None,
limit: Optional[
"capo_kinesis_analytics_v2.types.list_application_versions_input_limit.ListApplicationVersionsInputLimit"
] = None,
next_token: Optional[
"capo_kinesis_analytics_v2.types.next_token.NextToken"
] = None,
) -> "capo_kinesis_analytics_v2.types.list_application_versions_response.ListApplicationVersionsResponse":
"""<p>Lists all the versions for the specified application, including versions that were rolled back. The response also includes a summary of the configuration associated with each version.</p> <p>To get the complete description of a specific application version, invoke the <a>DescribeApplicationVersion</a> operation.</p> <note> <p>This operation is supported only for Managed Service for Apache Flink.</p> </note>
Args:
application_name: <p>The name of the application for which you want to list all versions.</p>
limit: <p>The maximum number of versions to list in this invocation of the operation.</p>
next_token: <p>If a previous invocation of this operation returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/pagination.html">Using the Amazon Command Line Interface's Pagination Options</a>.</p>
Raises:
capo_kinesis_analytics_v2.errors.invalid_argument_exception.InvalidArgumentException: <p>The specified input parameter value is not valid.</p>
capo_kinesis_analytics_v2.errors.resource_not_found_exception.ResourceNotFoundException: <p>Specified application can't be found.</p>
capo_kinesis_analytics_v2.errors.unsupported_operation_exception.UnsupportedOperationException: <p>The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation. </p>
capo_kinesis_analytics_v2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_kinesis_analytics_v2.types.list_application_versions_request.ListApplicationVersionsRequest]",
) -> AsyncOperationResponse[
"capo_kinesis_analytics_v2.types.list_application_versions_response.ListApplicationVersionsResponse"
]:
import capo_kinesis_analytics_v2._operations.kinesis_analytics_20180523.list_application_versions
(
output,
http_response,
) = await capo_kinesis_analytics_v2._operations.kinesis_analytics_20180523.list_application_versions.async_list_application_versions(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListApplicationVersions")
)
input_: capo_kinesis_analytics_v2.types.list_application_versions_request.ListApplicationVersionsRequest = {
"application_name": application_name
}
if limit is not None:
input_["limit"] = limit
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
|