sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ EMR/ RemoveManagedScalingPolicy.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:RemoveManagedScalingPolicy` — detaches the bound cluster's managed scaling policy.
 * ### Scaling the Cluster
 * **Example:** Disable Managed Scaling
 * ```typescript
 * const removeScalingPolicy =
 *   yield* AWS.EMR.RemoveManagedScalingPolicy(cluster);
 *
 * yield* removeScalingPolicy();
 * ```
 *
 * @binding
 */
export interface RemoveManagedScalingPolicy extends Binding.Service<
  RemoveManagedScalingPolicy,
  "AWS.EMR.RemoveManagedScalingPolicy",
  <C extends Cluster>(
    cluster: C,
  ) => Effect.Effect<
    (
      request?: Omit<SVC.RemoveManagedScalingPolicyInput, "ClusterId">,
    ) => Effect.Effect<SVC.RemoveManagedScalingPolicyOutput, SVC.RemoveManagedScalingPolicyError>
  >
> {}
export const RemoveManagedScalingPolicy = Binding.Service<RemoveManagedScalingPolicy>(
  "AWS.EMR.RemoveManagedScalingPolicy",
);