Skip to content

PutAutoScalingPolicy

Source: src/AWS/EMR/PutAutoScalingPolicy.ts

Runtime binding for elasticmapreduce:PutAutoScalingPolicy — attaches a CloudWatch-driven automatic scaling policy to an instance group of the bound cluster.

const putAutoScaling = yield* AWS.EMR.PutAutoScalingPolicy(cluster);
yield* putAutoScaling({
InstanceGroupId: taskGroupId,
AutoScalingPolicy: {
Constraints: { MinCapacity: 0, MaxCapacity: 8 },
Rules: [], // CloudWatch alarm-driven rules
},
});