@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 47 lines 1.73 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 GetSavingsPlanPurchaseRecommendationDetails}.
7 */
8 export interface GetSavingsPlanPurchaseRecommendationDetailsRequest
9 extends ce.GetSavingsPlanPurchaseRecommendationDetailsRequest {}
10
11 /**
12 * Runtime binding for `ce:GetSavingsPlanPurchaseRecommendationDetails`.
13 *
14 * Retrieve the hourly data points behind one Savings Plans
15 * recommendation — the cost, coverage, and utilization charts. Provide the implementation with
16 * `Effect.provide(AWS.CostExplorer.GetSavingsPlanPurchaseRecommendationDetailsHttp)`.
17 * ### Savings Plans
18 * **Example:** Read One Recommendation's Details
19 * ```typescript
20 * // init — account-level binding takes no resource
21 * const getSavingsPlanPurchaseRecommendationDetails = yield* AWS.CostExplorer.GetSavingsPlanPurchaseRecommendationDetails();
22 *
23 * // runtime
24 * const result = yield* getSavingsPlanPurchaseRecommendationDetails({
25 * RecommendationDetailId: detailId,
26 * });
27 * ```
28 *
29 * @binding
30 */
31 export interface GetSavingsPlanPurchaseRecommendationDetails extends Binding.Service<
32 GetSavingsPlanPurchaseRecommendationDetails,
33 "AWS.CostExplorer.GetSavingsPlanPurchaseRecommendationDetails",
34 () => Effect.Effect<
35 (
36 request: GetSavingsPlanPurchaseRecommendationDetailsRequest,
37 ) => Effect.Effect<
38 ce.GetSavingsPlanPurchaseRecommendationDetailsResponse,
39 ce.GetSavingsPlanPurchaseRecommendationDetailsError
40 >
41 >
42 > {}
43
44 export const GetSavingsPlanPurchaseRecommendationDetails =
45 Binding.Service<GetSavingsPlanPurchaseRecommendationDetails>(
46 "AWS.CostExplorer.GetSavingsPlanPurchaseRecommendationDetails",
47 );