Skip to content

list_proxy_updates async

list_proxy_updates(
    proxy_identifier: ProxyIdentifier,
    *,
    config_overrides: Optional[AsyncELBProxyClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> ListProxyUpdatesResponse

Lists the updates for the specified proxy, most recently submitted first.

Parameters:

  • proxy_identifier (ProxyIdentifier) –

    The Amazon Resource Name (ARN) of the 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 updates for a proxy The following example lists the updates for the specified proxy.

>>> await client.list_proxy_updates(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef')
Source code in docs_src/capo_elb_proxy/_services/async_elb_proxy.py
async def list_proxy_updates(
    self,
    proxy_identifier: "capo_elb_proxy.types.proxy_identifier.ProxyIdentifier",
    *,
    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_updates_response.ListProxyUpdatesResponse":
    """Lists the updates for the specified proxy, most recently submitted first.

    Args:
        proxy_identifier: The Amazon Resource Name (ARN) of the 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.access_denied_exception.AccessDeniedException: The user does not have sufficient access to perform this action.
        capo_elb_proxy.errors.resource_not_found_exception.ResourceNotFoundException: The request references a resource that does not exist.
        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 updates for a proxy
        The following example lists the updates for the specified proxy.

        >>> await client.list_proxy_updates(proxy_identifier='arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_elb_proxy.types.list_proxy_updates_request.ListProxyUpdatesRequest]",
    ) -> AsyncOperationResponse[
        "capo_elb_proxy.types.list_proxy_updates_response.ListProxyUpdatesResponse"
    ]:
        import capo_elb_proxy._operations.elb_proxy.list_proxy_updates

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListProxyUpdates")
    )
    input_: capo_elb_proxy.types.list_proxy_updates_request.ListProxyUpdatesRequest = {
        "proxy_identifier": proxy_identifier
    }
    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