import type * as ds from "@distilled.cloud/aws/directory-service"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; /** * Runtime binding for the `GetDirectoryLimits` operation (IAM action * `ds:GetDirectoryLimits`). * * Reads the account's directory limits for the current region — how many * cloud directories exist versus the allowed maximum — so an ops function * can alert before directory creation starts failing. The action does not * support resource-level permissions, so the grant is account-wide. Provide * the implementation with * `Effect.provide(AWS.DirectoryService.GetDirectoryLimitsHttp)`. * ### Reading Account Limits * **Example:** Alert When the Directory Limit Is Near * ```typescript * // init — request the account-level capability * const getDirectoryLimits = yield* AWS.DirectoryService.GetDirectoryLimits(); * * // runtime * const { DirectoryLimits } = yield* getDirectoryLimits(); * if (DirectoryLimits?.CloudOnlyDirectoriesLimitReached) { * yield* Effect.logWarning("directory limit reached"); * } * ``` * * @binding */ export interface GetDirectoryLimits extends Binding.Service Effect.Effect<() => Effect.Effect>> { } export declare const GetDirectoryLimits: GetDirectoryLimits; //# sourceMappingURL=GetDirectoryLimits.d.ts.map