Skip to content

describe_account_limits async

describe_account_limits(
    *,
    config_overrides: Optional[AsyncElasticLoadBalancingClientConfig] = None,
    marker: Optional[Marker] = None,
    page_size: Optional[PageSize] = None,
) -> DescribeAccountLimitsOutput

Describes the current Elastic Load Balancing resource limits for your AWS account.

For more information, see Limits for Your Classic Load Balancer in the Classic Load Balancers Guide.

Parameters:

  • marker (Optional[Marker], default: None ) –

    The marker for the next set of results. (You received this marker from a previous call.)

  • page_size (Optional[PageSize], default: None ) –

    The maximum number of results to return with this call.

Raises:

Source code in docs_src/capo_elastic_load_balancing/_services/async_elastic_load_balancing.py
async def describe_account_limits(
    self,
    *,
    config_overrides: Optional[AsyncElasticLoadBalancingClientConfig] = None,
    marker: Optional["capo_elastic_load_balancing.types.marker.Marker"] = None,
    page_size: Optional[
        "capo_elastic_load_balancing.types.page_size.PageSize"
    ] = None,
) -> "capo_elastic_load_balancing.types.describe_account_limits_output.DescribeAccountLimitsOutput":
    """<p>Describes the current Elastic Load Balancing resource limits for your AWS account.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html">Limits for Your Classic Load Balancer</a> in the <i>Classic Load Balancers Guide</i>.</p>

    Args:
        marker: <p>The marker for the next set of results. (You received this marker from a previous call.)</p>
        page_size: <p>The maximum number of results to return with this call.</p>

    Raises:
        capo_elastic_load_balancing.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_elastic_load_balancing.types.describe_account_limits_input.DescribeAccountLimitsInput]",
    ) -> AsyncOperationResponse[
        "capo_elastic_load_balancing.types.describe_account_limits_output.DescribeAccountLimitsOutput"
    ]:
        import capo_elastic_load_balancing._operations.elastic_load_balancing_v7.describe_account_limits

        (
            output,
            http_response,
        ) = await capo_elastic_load_balancing._operations.elastic_load_balancing_v7.describe_account_limits.async_describe_account_limits(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAccountLimits")
    )
    input_: capo_elastic_load_balancing.types.describe_account_limits_input.DescribeAccountLimitsInput = {}
    if marker is not None:
        input_["marker"] = marker
    if page_size is not None:
        input_["page_size"] = page_size

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output