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, 04:45 UTC
| 1 | import type * as devopsguru from "@distilled.cloud/aws/devops-guru"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `devops-guru:GetCostEstimation`. |
| 7 | * |
| 8 | * Returns the result of the most recent cost estimation started with `StartCostEstimation` — the estimated monthly cost of DevOps Guru analyzing the candidate resource collection. |
| 9 | * Provide the implementation with |
| 10 | * `Effect.provide(AWS.DevOpsGuru.GetCostEstimationHttp)`. |
| 11 | * ### Cost Estimation |
| 12 | * **Example:** Read the Latest Estimate |
| 13 | * ```typescript |
| 14 | * // init — account-level binding, no resource argument |
| 15 | * const getCostEstimation = yield* AWS.DevOpsGuru.GetCostEstimation(); |
| 16 | * |
| 17 | * // runtime |
| 18 | * const estimate = yield* getCostEstimation(); |
| 19 | * yield* Effect.log(`estimated: ${estimate.TotalCost} (${estimate.Status})`); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface GetCostEstimation extends Binding.Service< |
| 25 | GetCostEstimation, |
| 26 | "AWS.DevOpsGuru.GetCostEstimation", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: devopsguru.GetCostEstimationRequest, |
| 30 | ) => Effect.Effect<devopsguru.GetCostEstimationResponse, devopsguru.GetCostEstimationError> |
| 31 | > |
| 32 | > {} |
| 33 | export const GetCostEstimation = Binding.Service<GetCostEstimation>( |
| 34 | "AWS.DevOpsGuru.GetCostEstimation", |
| 35 | ); |