changeCapacity

It is an error to try to change the capacity directly via this method if the resource is using a capacity change schedule.

The changes are handled based on the specified capacity change rule for the resource.

Handles the start of a change in capacity. If the capacity is increased over its current value and there are no pending changes, then the capacity is immediately increased and requests that are waiting for the resource will be processed to receive allocations from the resource. If the capacity is decreased from its current value, then the amount of the decrease is first filled from idle units. If there are not enough idle units to complete the decrease, then the change is processes according to the capacity change rule.

Parameters

notice

the value to which the capacity should be set and the duration of the change