SetDesiredCapacity
Source:
src/AWS/AutoScaling/SetDesiredCapacity.ts
Runtime binding for the SetDesiredCapacity operation (IAM action
autoscaling:SetDesiredCapacity scoped to the group ARN).
Manually sets the size of the bound Auto Scaling Group — e.g. a Lambda that
scales a fleet up ahead of a known traffic spike or down to zero overnight.
Provide the implementation with
Effect.provide(AWS.AutoScaling.SetDesiredCapacityHttp).
Manual Scaling
Section titled “Manual Scaling”// init — bind the operation to the groupconst setDesiredCapacity = yield* AWS.AutoScaling.SetDesiredCapacity(group);
// runtime — set the fleet size, honoring the group's cooldownyield* setDesiredCapacity({ DesiredCapacity: 4, HonorCooldown: true });