Skip to content

describe_limits

describe_limits(
    *, config_overrides: Optional[KinesisClientConfig] = None
) -> DescribeLimitsOutput

Describes the shard limits and usage for the account.

If you update your account limits, the old limits might be returned for a few minutes.

This operation has a limit of one transaction per second per account.

Raises:

  • LimitExceededException –

    The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_kinesis/_services/kinesis.py
def describe_limits(
    self, *, config_overrides: Optional[KinesisClientConfig] = None
) -> "capo_kinesis.types.describe_limits_output.DescribeLimitsOutput":
    """<p>Describes the shard limits and usage for the account.</p> <p>If you update your account limits, the old limits might be returned for a few minutes.</p> <p>This operation has a limit of one transaction per second per account.</p>

    Raises:
        capo_kinesis.errors.limit_exceeded_exception.LimitExceededException: <p>The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed. </p>
        capo_kinesis.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_kinesis.types.describe_limits_input.DescribeLimitsInput]",
    ) -> OperationResponse[
        "capo_kinesis.types.describe_limits_output.DescribeLimitsOutput"
    ]:
        import capo_kinesis._operations.kinesis_20131202.describe_limits

        output, http_response = (
            capo_kinesis._operations.kinesis_20131202.describe_limits.describe_limits(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeLimits")
    )
    input_: capo_kinesis.types.describe_limits_input.DescribeLimitsInput = {}

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output