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

main
ts 45 lines 1.56 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 GetCostComparisonDrivers}.
7 */
8 export interface GetCostComparisonDriversRequest extends ce.GetCostComparisonDriversRequest {}
9
10 /**
11 * Runtime binding for `ce:GetCostComparisonDrivers`.
12 *
13 * Retrieve the top cost drivers explaining the change between two
14 * billing periods — which services, accounts, or usage types moved the
15 * bill. Provide the implementation with
16 * `Effect.provide(AWS.CostExplorer.GetCostComparisonDriversHttp)`.
17 * ### Querying Cost and Usage
18 * **Example:** Find What Drove a Cost Change
19 * ```typescript
20 * // init — account-level binding takes no resource
21 * const getCostComparisonDrivers = yield* AWS.CostExplorer.GetCostComparisonDrivers();
22 *
23 * // runtime
24 * const result = yield* getCostComparisonDrivers({
25 * BaselineTimePeriod: { Start: "2026-05-01", End: "2026-06-01" },
26 * ComparisonTimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
27 * MetricForComparison: "UnblendedCost",
28 * });
29 * ```
30 *
31 * @binding
32 */
33 export interface GetCostComparisonDrivers extends Binding.Service<
34 GetCostComparisonDrivers,
35 "AWS.CostExplorer.GetCostComparisonDrivers",
36 () => Effect.Effect<
37 (
38 request: GetCostComparisonDriversRequest,
39 ) => Effect.Effect<ce.GetCostComparisonDriversResponse, ce.GetCostComparisonDriversError>
40 >
41 > {}
42
43 export const GetCostComparisonDrivers = Binding.Service<GetCostComparisonDrivers>(
44 "AWS.CostExplorer.GetCostComparisonDrivers",
45 );