@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 50 lines 1.75 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 GetSavingsPlansPurchaseRecommendation}.
7 */
8 export interface GetSavingsPlansPurchaseRecommendationRequest
9 extends ce.GetSavingsPlansPurchaseRecommendationRequest {}
10
11 /**
12 * Runtime binding for `ce:GetSavingsPlansPurchaseRecommendation`.
13 *
14 * Retrieve Savings Plans purchase recommendations. Generate a fresh
15 * set first with {@link StartSavingsPlansPurchaseRecommendationGeneration}. Provide the implementation with
16 * `Effect.provide(AWS.CostExplorer.GetSavingsPlansPurchaseRecommendationHttp)`.
17 * ### Savings Plans
18 * **Example:** Get Savings Plans Recommendations
19 * ```typescript
20 * // init — account-level binding takes no resource
21 * const getSavingsPlansPurchaseRecommendation = yield* AWS.CostExplorer.GetSavingsPlansPurchaseRecommendation();
22 *
23 * // runtime
24 * const result = yield* getSavingsPlansPurchaseRecommendation({
25 * SavingsPlansType: "COMPUTE_SP",
26 * TermInYears: "ONE_YEAR",
27 * PaymentOption: "NO_UPFRONT",
28 * LookbackPeriodInDays: "THIRTY_DAYS",
29 * });
30 * ```
31 *
32 * @binding
33 */
34 export interface GetSavingsPlansPurchaseRecommendation extends Binding.Service<
35 GetSavingsPlansPurchaseRecommendation,
36 "AWS.CostExplorer.GetSavingsPlansPurchaseRecommendation",
37 () => Effect.Effect<
38 (
39 request: GetSavingsPlansPurchaseRecommendationRequest,
40 ) => Effect.Effect<
41 ce.GetSavingsPlansPurchaseRecommendationResponse,
42 ce.GetSavingsPlansPurchaseRecommendationError
43 >
44 >
45 > {}
46
47 export const GetSavingsPlansPurchaseRecommendation =
48 Binding.Service<GetSavingsPlansPurchaseRecommendation>(
49 "AWS.CostExplorer.GetSavingsPlansPurchaseRecommendation",
50 );