Skip to content

list_proxy_versions async

list_proxy_versions(
    type: ProxyType,
    *,
    config_overrides: Optional[AsyncELBProxyClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> ListProxyVersionsResponse

Lists the available proxy versions.

Parameters:

  • type (ProxyType) –

    The type of proxy.

  • max_results (Optional[int], default: None ) –

    The maximum number of results to return.

  • next_token (Optional[NextToken], default: None ) –

    A pagination token for the next page of results.

Raises:

Examples:

To list the proxy versions The following example lists the Envoy versions that you can specify when you create a proxy or update its version.

>>> await client.list_proxy_versions(type='envoy')
Source code in docs_src/capo_elb_proxy/_services/async_elb_proxy.py
async def list_proxy_versions(
    self,
    type: "capo_elb_proxy.types.proxy_type.ProxyType",
    *,
    config_overrides: Optional[AsyncELBProxyClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_elb_proxy.types.next_token.NextToken"] = None,
) -> "capo_elb_proxy.types.list_proxy_versions_response.ListProxyVersionsResponse":
    """Lists the available proxy versions.

    Args:
        type: The type of proxy.
        max_results: The maximum number of results to return.
        next_token: A pagination token for the next page of results.

    Raises:
        capo_elb_proxy.errors.internal_server_exception.InternalServerException: An unexpected error occurred while processing the request.
        capo_elb_proxy.errors.throttling_exception.ThrottlingException: The limit on the number of requests per second was exceeded.
        capo_elb_proxy.errors.validation_exception.ValidationException: The input does not satisfy the constraints specified by an AWS service.
        capo_elb_proxy.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To list the proxy versions
        The following example lists the Envoy versions that you can specify when you create a proxy or update its version.

        >>> await client.list_proxy_versions(type='envoy')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_elb_proxy.types.list_proxy_versions_request.ListProxyVersionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_elb_proxy.types.list_proxy_versions_response.ListProxyVersionsResponse"
    ]:
        import capo_elb_proxy._operations.elb_proxy.list_proxy_versions

        (
            output,
            http_response,
        ) = await capo_elb_proxy._operations.elb_proxy.list_proxy_versions.async_list_proxy_versions(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListProxyVersions")
    )
    input_: capo_elb_proxy.types.list_proxy_versions_request.ListProxyVersionsRequest = {
        "type": type
    }
    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