1import type * as ce from "@distilled.cloud/aws/cost-explorer";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Request for {@link GetSavingsPlansUtilization}.
7 */
8export interface GetSavingsPlansUtilizationRequest
9 extends ce.GetSavingsPlansUtilizationRequest {}
10
11/**
12 * Runtime binding for `ce:GetSavingsPlansUtilization`.
13 *
14 * Retrieve aggregate Savings Plans utilization across a date range
15 * with daily or monthly granularity. Provide the implementation with
16 * `Effect.provide(AWS.CostExplorer.GetSavingsPlansUtilizationHttp)`.
17 * ### Savings Plans
18 * **Example:** Check Savings Plans Utilization
19 * ```typescript
20 * // init — account-level binding takes no resource
21 * const getSavingsPlansUtilization = yield* AWS.CostExplorer.GetSavingsPlansUtilization();
22 *
23 * // runtime
24 * const result = yield* getSavingsPlansUtilization({
25 * TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
26 * });
27 * ```
28 *
29 * @binding
30 */
31export interface GetSavingsPlansUtilization extends Binding.Service<
32 GetSavingsPlansUtilization,
33 "AWS.CostExplorer.GetSavingsPlansUtilization",
34 () => Effect.Effect<
35 (
36 request: GetSavingsPlansUtilizationRequest,
37 ) => Effect.Effect<
38 ce.GetSavingsPlansUtilizationResponse,
39 ce.GetSavingsPlansUtilizationError
40 >
41 >
42> {}
43
44export const GetSavingsPlansUtilization =
45 Binding.Service<GetSavingsPlansUtilization>(
46 "AWS.CostExplorer.GetSavingsPlansUtilization",
47 );