Skip to content

PutManagedScalingPolicy

Source: src/AWS/EMR/PutManagedScalingPolicy.ts

Runtime binding for elasticmapreduce:PutManagedScalingPolicy — attaches or replaces the bound cluster’s managed scaling policy — EMR then resizes the cluster within the configured compute limits.

const putScalingPolicy = yield* AWS.EMR.PutManagedScalingPolicy(cluster);
yield* putScalingPolicy({
ManagedScalingPolicy: {
ComputeLimits: {
UnitType: "Instances",
MinimumCapacityUnits: 1,
MaximumCapacityUnits: 10,
},
},
});