UNPKG

880 BTypeScriptView Raw
1import * as appscaling from '@aws-cdk/aws-applicationautoscaling';
2import { UtilizationScalingProps } from './scalable-attribute-api';
3/**
4 * A scalable table attribute
5 */
6export declare class ScalableTableAttribute extends appscaling.BaseScalableAttribute {
7 private scalingPolicyCreated;
8 /**
9 * Scale out or in based on time
10 */
11 scaleOnSchedule(id: string, action: appscaling.ScalingSchedule): void;
12 /**
13 * Scale out or in to keep utilization at a given level
14 */
15 scaleOnUtilization(props: UtilizationScalingProps): void;
16 /** @internal */
17 get _scalingPolicyCreated(): boolean;
18}
19/**
20 * Properties for enabling DynamoDB capacity scaling
21 */
22export interface EnableScalingProps {
23 /**
24 * Minimum capacity to scale to
25 */
26 minCapacity: number;
27 /**
28 * Maximum capacity to scale to
29 */
30 maxCapacity: number;
31}