| 1 | import type * as SVC from "@distilled.cloud/aws/emr"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Cluster } from "./Cluster.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `elasticmapreduce:GetManagedScalingPolicy` — reads the bound cluster's managed scaling policy (compute limits), if one is attached. |
| 8 | * ### Scaling the Cluster |
| 9 | * **Example:** Read the Scaling Limits |
| 10 | * ```typescript |
| 11 | * const getScalingPolicy = yield* AWS.EMR.GetManagedScalingPolicy(cluster); |
| 12 | * |
| 13 | * const { ManagedScalingPolicy } = yield* getScalingPolicy(); |
| 14 | * ``` |
| 15 | * |
| 16 | * @binding |
| 17 | */ |
| 18 | export interface GetManagedScalingPolicy extends Binding.Service< |
| 19 | GetManagedScalingPolicy, |
| 20 | "AWS.EMR.GetManagedScalingPolicy", |
| 21 | <C extends Cluster>( |
| 22 | cluster: C, |
| 23 | ) => Effect.Effect< |
| 24 | ( |
| 25 | request?: Omit<SVC.GetManagedScalingPolicyInput, "ClusterId">, |
| 26 | ) => Effect.Effect< |
| 27 | SVC.GetManagedScalingPolicyOutput, |
| 28 | SVC.GetManagedScalingPolicyError |
| 29 | > |
| 30 | > |
| 31 | > {} |
| 32 | export const GetManagedScalingPolicy = Binding.Service<GetManagedScalingPolicy>( |
| 33 | "AWS.EMR.GetManagedScalingPolicy", |
| 34 | ); |