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/async_kinesis.py
| async def describe_limits(
self, *, config_overrides: Optional[AsyncKinesisClientConfig] = 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_kinesis.types.describe_limits_input.DescribeLimitsInput]",
) -> AsyncOperationResponse[
"capo_kinesis.types.describe_limits_output.DescribeLimitsOutput"
]:
import capo_kinesis._operations.kinesis_20131202.describe_limits
(
output,
http_response,
) = await capo_kinesis._operations.kinesis_20131202.describe_limits.async_describe_limits(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeLimits")
)
input_: capo_kinesis.types.describe_limits_input.DescribeLimitsInput = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|