sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ DevOpsGuru/ StartCostEstimation.ts

import type * as devopsguru from "@distilled.cloud/aws/devops-guru";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `devops-guru:StartCostEstimation`.
 *
 * Starts estimating the monthly cost of DevOps Guru analyzing a candidate resource collection. Poll the result with `GetCostEstimation`.
 * Provide the implementation with
 * `Effect.provide(AWS.DevOpsGuru.StartCostEstimationHttp)`.
 * ### Cost Estimation
 * **Example:** Estimate the Cost of Coverage
 * ```typescript
 * // init — account-level binding, no resource argument
 * const startCostEstimation = yield* AWS.DevOpsGuru.StartCostEstimation();
 *
 * // runtime
 * yield* startCostEstimation({
 *   ResourceCollection: { CloudFormation: { StackNames: ["my-app-prod"] } },
 * });
 * ```
 *
 * @binding
 */
export interface StartCostEstimation extends Binding.Service<
  StartCostEstimation,
  "AWS.DevOpsGuru.StartCostEstimation",
  () => Effect.Effect<
    (
      request: devopsguru.StartCostEstimationRequest,
    ) => Effect.Effect<devopsguru.StartCostEstimationResponse, devopsguru.StartCostEstimationError>
  >
> {}
export const StartCostEstimation = Binding.Service<StartCostEstimation>(
  "AWS.DevOpsGuru.StartCostEstimation",
);