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

main
ts 45 lines 1.46 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 GetDimensionValues}.
7 */
8 export interface GetDimensionValuesRequest extends ce.GetDimensionValuesRequest {}
9
10 /**
11 * Runtime binding for `ce:GetDimensionValues`.
12 *
13 * Retrieve the available values for a Cost Explorer dimension
14 * (services, linked accounts, regions, usage types, …) — the building
15 * blocks of query filter expressions. Provide the implementation with
16 * `Effect.provide(AWS.CostExplorer.GetDimensionValuesHttp)`.
17 * ### Exploring Dimensions and Tags
18 * **Example:** List Available Services
19 * ```typescript
20 * // init — account-level binding takes no resource
21 * const getDimensionValues = yield* AWS.CostExplorer.GetDimensionValues();
22 *
23 * // runtime
24 * const result = yield* getDimensionValues({
25 * TimePeriod: { Start: "2026-06-01", End: "2026-07-01" },
26 * Dimension: "SERVICE",
27 * });
28 * const services = (result.DimensionValues ?? []).map((v) => v.Value);
29 * ```
30 *
31 * @binding
32 */
33 export interface GetDimensionValues extends Binding.Service<
34 GetDimensionValues,
35 "AWS.CostExplorer.GetDimensionValues",
36 () => Effect.Effect<
37 (
38 request: GetDimensionValuesRequest,
39 ) => Effect.Effect<ce.GetDimensionValuesResponse, ce.GetDimensionValuesError>
40 >
41 > {}
42
43 export const GetDimensionValues = Binding.Service<GetDimensionValues>(
44 "AWS.CostExplorer.GetDimensionValues",
45 );