@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 42 lines 1.36 KB
Raw
1 import type * as ce from "@distilled.cloud/aws/cost-explorer";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link GetSavingsPlansCoverage}.
7 */
8 export interface GetSavingsPlansCoverageRequest extends ce.GetSavingsPlansCoverageRequest {}
9
10 /**
11 * Runtime binding for `ce:GetSavingsPlansCoverage`.
12 *
13 * Retrieve how much of your eligible spend was covered by Savings
14 * Plans over a time period. Provide the implementation with
15 * `Effect.provide(AWS.CostExplorer.GetSavingsPlansCoverageHttp)`.
16 * ### Savings Plans
17 * **Example:** Check Savings Plans Coverage
18 * ```typescript
19 * // init — account-level binding takes no resource
20 * const getSavingsPlansCoverage = yield* AWS.CostExplorer.GetSavingsPlansCoverage();
21 *
22 * // runtime
23 * const result = yield* getSavingsPlansCoverage({
24 * TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
25 * });
26 * ```
27 *
28 * @binding
29 */
30 export interface GetSavingsPlansCoverage extends Binding.Service<
31 GetSavingsPlansCoverage,
32 "AWS.CostExplorer.GetSavingsPlansCoverage",
33 () => Effect.Effect<
34 (
35 request: GetSavingsPlansCoverageRequest,
36 ) => Effect.Effect<ce.GetSavingsPlansCoverageResponse, ce.GetSavingsPlansCoverageError>
37 >
38 > {}
39
40 export const GetSavingsPlansCoverage = Binding.Service<GetSavingsPlansCoverage>(
41 "AWS.CostExplorer.GetSavingsPlansCoverage",
42 );