Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-autoscaling-common/lib/test-utils.d.ts
2026-05-06 18:55:16 -05:00

22 lines
830 B
TypeScript

import type * as appscaling from '../lib';
/**
* Arbitrary (valid) array of intervals
*
* There are many invalid combinations of interval arrays, so we have
* to be very specific about generating arrays that are valid. We do this
* by taking a full, valid interval schedule and progressively stripping parts
* away from it.
*
* Some of the changes may change its meaning, but we take care to never leave
* a schedule with insufficient information so that the parser will error out.
*/
export declare function generateArbitraryIntervals(mrng: IRandomGenerator): ArbitraryIntervals;
export interface IRandomGenerator {
nextBoolean(): boolean;
nextInt(min: number, max: number): number;
}
export interface ArbitraryIntervals {
readonly absolute: boolean;
readonly intervals: appscaling.ScalingInterval[];
}