DescribeLimits
Source:
src/AWS/Kinesis/DescribeLimits.ts
Runtime binding for kinesis:DescribeLimits.
An account-level operation (no stream argument) that reports shard quotas
and current usage for the region. Provide the implementation with
Effect.provide(AWS.Kinesis.DescribeLimitsHttp).
Account Settings
Section titled “Account Settings”// init — account-level binding takes no resourceconst describeLimits = yield* AWS.Kinesis.DescribeLimits();
// runtimeconst limits = yield* describeLimits();const headroom = (limits.ShardLimit ?? 0) - (limits.OpenShardCount ?? 0);