sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ EMR/ GetManagedScalingPolicy.ts

import type * as SVC from "@distilled.cloud/aws/emr";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { Cluster } from "./Cluster.ts";

/**
 * Runtime binding for `elasticmapreduce:GetManagedScalingPolicy` — reads the bound cluster's managed scaling policy (compute limits), if one is attached.
 * ### Scaling the Cluster
 * **Example:** Read the Scaling Limits
 * ```typescript
 * const getScalingPolicy = yield* AWS.EMR.GetManagedScalingPolicy(cluster);
 *
 * const { ManagedScalingPolicy } = yield* getScalingPolicy();
 * ```
 *
 * @binding
 */
export interface GetManagedScalingPolicy extends Binding.Service<
  GetManagedScalingPolicy,
  "AWS.EMR.GetManagedScalingPolicy",
  <C extends Cluster>(
    cluster: C,
  ) => Effect.Effect<
    (
      request?: Omit<SVC.GetManagedScalingPolicyInput, "ClusterId">,
    ) => Effect.Effect<SVC.GetManagedScalingPolicyOutput, SVC.GetManagedScalingPolicyError>
  >
> {}
export const GetManagedScalingPolicy = Binding.Service<GetManagedScalingPolicy>(
  "AWS.EMR.GetManagedScalingPolicy",
);