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