@aws-sdk/client-auto-scaling-plans 3.301.0 → 3.303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,72 +16,64 @@ class ConcurrentUpdateException extends AutoScalingPlansServiceException_1.AutoS
16
16
  }
17
17
  }
18
18
  exports.ConcurrentUpdateException = ConcurrentUpdateException;
19
- var MetricStatistic;
20
- (function (MetricStatistic) {
21
- MetricStatistic["Average"] = "Average";
22
- MetricStatistic["Maximum"] = "Maximum";
23
- MetricStatistic["Minimum"] = "Minimum";
24
- MetricStatistic["SampleCount"] = "SampleCount";
25
- MetricStatistic["Sum"] = "Sum";
26
- })(MetricStatistic = exports.MetricStatistic || (exports.MetricStatistic = {}));
27
- var LoadMetricType;
28
- (function (LoadMetricType) {
29
- LoadMetricType["ALBTargetGroupRequestCount"] = "ALBTargetGroupRequestCount";
30
- LoadMetricType["ASGTotalCPUUtilization"] = "ASGTotalCPUUtilization";
31
- LoadMetricType["ASGTotalNetworkIn"] = "ASGTotalNetworkIn";
32
- LoadMetricType["ASGTotalNetworkOut"] = "ASGTotalNetworkOut";
33
- })(LoadMetricType = exports.LoadMetricType || (exports.LoadMetricType = {}));
34
- var PredictiveScalingMaxCapacityBehavior;
35
- (function (PredictiveScalingMaxCapacityBehavior) {
36
- PredictiveScalingMaxCapacityBehavior["SetForecastCapacityToMaxCapacity"] = "SetForecastCapacityToMaxCapacity";
37
- PredictiveScalingMaxCapacityBehavior["SetMaxCapacityAboveForecastCapacity"] = "SetMaxCapacityAboveForecastCapacity";
38
- PredictiveScalingMaxCapacityBehavior["SetMaxCapacityToForecastCapacity"] = "SetMaxCapacityToForecastCapacity";
39
- })(PredictiveScalingMaxCapacityBehavior = exports.PredictiveScalingMaxCapacityBehavior || (exports.PredictiveScalingMaxCapacityBehavior = {}));
40
- var PredictiveScalingMode;
41
- (function (PredictiveScalingMode) {
42
- PredictiveScalingMode["ForecastAndScale"] = "ForecastAndScale";
43
- PredictiveScalingMode["ForecastOnly"] = "ForecastOnly";
44
- })(PredictiveScalingMode = exports.PredictiveScalingMode || (exports.PredictiveScalingMode = {}));
45
- var ScalableDimension;
46
- (function (ScalableDimension) {
47
- ScalableDimension["AutoScalingGroupDesiredCapacity"] = "autoscaling:autoScalingGroup:DesiredCapacity";
48
- ScalableDimension["DynamoDBIndexReadCapacityUnits"] = "dynamodb:index:ReadCapacityUnits";
49
- ScalableDimension["DynamoDBIndexWriteCapacityUnits"] = "dynamodb:index:WriteCapacityUnits";
50
- ScalableDimension["DynamoDBTableReadCapacityUnits"] = "dynamodb:table:ReadCapacityUnits";
51
- ScalableDimension["DynamoDBTableWriteCapacityUnits"] = "dynamodb:table:WriteCapacityUnits";
52
- ScalableDimension["EC2SpotFleetRequestTargetCapacity"] = "ec2:spot-fleet-request:TargetCapacity";
53
- ScalableDimension["ECSServiceDesiredCount"] = "ecs:service:DesiredCount";
54
- ScalableDimension["RDSClusterReadReplicaCount"] = "rds:cluster:ReadReplicaCount";
55
- })(ScalableDimension = exports.ScalableDimension || (exports.ScalableDimension = {}));
56
- var ScalingPolicyUpdateBehavior;
57
- (function (ScalingPolicyUpdateBehavior) {
58
- ScalingPolicyUpdateBehavior["KeepExternalPolicies"] = "KeepExternalPolicies";
59
- ScalingPolicyUpdateBehavior["ReplaceExternalPolicies"] = "ReplaceExternalPolicies";
60
- })(ScalingPolicyUpdateBehavior = exports.ScalingPolicyUpdateBehavior || (exports.ScalingPolicyUpdateBehavior = {}));
61
- var ServiceNamespace;
62
- (function (ServiceNamespace) {
63
- ServiceNamespace["AUTOSCALING"] = "autoscaling";
64
- ServiceNamespace["DYNAMODB"] = "dynamodb";
65
- ServiceNamespace["EC2"] = "ec2";
66
- ServiceNamespace["ECS"] = "ecs";
67
- ServiceNamespace["RDS"] = "rds";
68
- })(ServiceNamespace = exports.ServiceNamespace || (exports.ServiceNamespace = {}));
69
- var ScalingMetricType;
70
- (function (ScalingMetricType) {
71
- ScalingMetricType["ALBRequestCountPerTarget"] = "ALBRequestCountPerTarget";
72
- ScalingMetricType["ASGAverageCPUUtilization"] = "ASGAverageCPUUtilization";
73
- ScalingMetricType["ASGAverageNetworkIn"] = "ASGAverageNetworkIn";
74
- ScalingMetricType["ASGAverageNetworkOut"] = "ASGAverageNetworkOut";
75
- ScalingMetricType["DynamoDBReadCapacityUtilization"] = "DynamoDBReadCapacityUtilization";
76
- ScalingMetricType["DynamoDBWriteCapacityUtilization"] = "DynamoDBWriteCapacityUtilization";
77
- ScalingMetricType["EC2SpotFleetRequestAverageCPUUtilization"] = "EC2SpotFleetRequestAverageCPUUtilization";
78
- ScalingMetricType["EC2SpotFleetRequestAverageNetworkIn"] = "EC2SpotFleetRequestAverageNetworkIn";
79
- ScalingMetricType["EC2SpotFleetRequestAverageNetworkOut"] = "EC2SpotFleetRequestAverageNetworkOut";
80
- ScalingMetricType["ECSServiceAverageCPUUtilization"] = "ECSServiceAverageCPUUtilization";
81
- ScalingMetricType["ECSServiceAverageMemoryUtilization"] = "ECSServiceAverageMemoryUtilization";
82
- ScalingMetricType["RDSReaderAverageCPUUtilization"] = "RDSReaderAverageCPUUtilization";
83
- ScalingMetricType["RDSReaderAverageDatabaseConnections"] = "RDSReaderAverageDatabaseConnections";
84
- })(ScalingMetricType = exports.ScalingMetricType || (exports.ScalingMetricType = {}));
19
+ exports.MetricStatistic = {
20
+ Average: "Average",
21
+ Maximum: "Maximum",
22
+ Minimum: "Minimum",
23
+ SampleCount: "SampleCount",
24
+ Sum: "Sum",
25
+ };
26
+ exports.LoadMetricType = {
27
+ ALBTargetGroupRequestCount: "ALBTargetGroupRequestCount",
28
+ ASGTotalCPUUtilization: "ASGTotalCPUUtilization",
29
+ ASGTotalNetworkIn: "ASGTotalNetworkIn",
30
+ ASGTotalNetworkOut: "ASGTotalNetworkOut",
31
+ };
32
+ exports.PredictiveScalingMaxCapacityBehavior = {
33
+ SetForecastCapacityToMaxCapacity: "SetForecastCapacityToMaxCapacity",
34
+ SetMaxCapacityAboveForecastCapacity: "SetMaxCapacityAboveForecastCapacity",
35
+ SetMaxCapacityToForecastCapacity: "SetMaxCapacityToForecastCapacity",
36
+ };
37
+ exports.PredictiveScalingMode = {
38
+ ForecastAndScale: "ForecastAndScale",
39
+ ForecastOnly: "ForecastOnly",
40
+ };
41
+ exports.ScalableDimension = {
42
+ AutoScalingGroupDesiredCapacity: "autoscaling:autoScalingGroup:DesiredCapacity",
43
+ DynamoDBIndexReadCapacityUnits: "dynamodb:index:ReadCapacityUnits",
44
+ DynamoDBIndexWriteCapacityUnits: "dynamodb:index:WriteCapacityUnits",
45
+ DynamoDBTableReadCapacityUnits: "dynamodb:table:ReadCapacityUnits",
46
+ DynamoDBTableWriteCapacityUnits: "dynamodb:table:WriteCapacityUnits",
47
+ EC2SpotFleetRequestTargetCapacity: "ec2:spot-fleet-request:TargetCapacity",
48
+ ECSServiceDesiredCount: "ecs:service:DesiredCount",
49
+ RDSClusterReadReplicaCount: "rds:cluster:ReadReplicaCount",
50
+ };
51
+ exports.ScalingPolicyUpdateBehavior = {
52
+ KeepExternalPolicies: "KeepExternalPolicies",
53
+ ReplaceExternalPolicies: "ReplaceExternalPolicies",
54
+ };
55
+ exports.ServiceNamespace = {
56
+ AUTOSCALING: "autoscaling",
57
+ DYNAMODB: "dynamodb",
58
+ EC2: "ec2",
59
+ ECS: "ecs",
60
+ RDS: "rds",
61
+ };
62
+ exports.ScalingMetricType = {
63
+ ALBRequestCountPerTarget: "ALBRequestCountPerTarget",
64
+ ASGAverageCPUUtilization: "ASGAverageCPUUtilization",
65
+ ASGAverageNetworkIn: "ASGAverageNetworkIn",
66
+ ASGAverageNetworkOut: "ASGAverageNetworkOut",
67
+ DynamoDBReadCapacityUtilization: "DynamoDBReadCapacityUtilization",
68
+ DynamoDBWriteCapacityUtilization: "DynamoDBWriteCapacityUtilization",
69
+ EC2SpotFleetRequestAverageCPUUtilization: "EC2SpotFleetRequestAverageCPUUtilization",
70
+ EC2SpotFleetRequestAverageNetworkIn: "EC2SpotFleetRequestAverageNetworkIn",
71
+ EC2SpotFleetRequestAverageNetworkOut: "EC2SpotFleetRequestAverageNetworkOut",
72
+ ECSServiceAverageCPUUtilization: "ECSServiceAverageCPUUtilization",
73
+ ECSServiceAverageMemoryUtilization: "ECSServiceAverageMemoryUtilization",
74
+ RDSReaderAverageCPUUtilization: "RDSReaderAverageCPUUtilization",
75
+ RDSReaderAverageDatabaseConnections: "RDSReaderAverageDatabaseConnections",
76
+ };
85
77
  class InternalServiceException extends AutoScalingPlansServiceException_1.AutoScalingPlansServiceException {
86
78
  constructor(opts) {
87
79
  super({
@@ -138,16 +130,14 @@ class ObjectNotFoundException extends AutoScalingPlansServiceException_1.AutoSca
138
130
  }
139
131
  }
140
132
  exports.ObjectNotFoundException = ObjectNotFoundException;
141
- var PolicyType;
142
- (function (PolicyType) {
143
- PolicyType["TargetTrackingScaling"] = "TargetTrackingScaling";
144
- })(PolicyType = exports.PolicyType || (exports.PolicyType = {}));
145
- var ScalingStatusCode;
146
- (function (ScalingStatusCode) {
147
- ScalingStatusCode["Active"] = "Active";
148
- ScalingStatusCode["Inactive"] = "Inactive";
149
- ScalingStatusCode["PartiallyActive"] = "PartiallyActive";
150
- })(ScalingStatusCode = exports.ScalingStatusCode || (exports.ScalingStatusCode = {}));
133
+ exports.PolicyType = {
134
+ TargetTrackingScaling: "TargetTrackingScaling",
135
+ };
136
+ exports.ScalingStatusCode = {
137
+ Active: "Active",
138
+ Inactive: "Inactive",
139
+ PartiallyActive: "PartiallyActive",
140
+ };
151
141
  class InvalidNextTokenException extends AutoScalingPlansServiceException_1.AutoScalingPlansServiceException {
152
142
  constructor(opts) {
153
143
  super({
@@ -162,21 +152,19 @@ class InvalidNextTokenException extends AutoScalingPlansServiceException_1.AutoS
162
152
  }
163
153
  }
164
154
  exports.InvalidNextTokenException = InvalidNextTokenException;
165
- var ScalingPlanStatusCode;
166
- (function (ScalingPlanStatusCode) {
167
- ScalingPlanStatusCode["Active"] = "Active";
168
- ScalingPlanStatusCode["ActiveWithProblems"] = "ActiveWithProblems";
169
- ScalingPlanStatusCode["CreationFailed"] = "CreationFailed";
170
- ScalingPlanStatusCode["CreationInProgress"] = "CreationInProgress";
171
- ScalingPlanStatusCode["DeletionFailed"] = "DeletionFailed";
172
- ScalingPlanStatusCode["DeletionInProgress"] = "DeletionInProgress";
173
- ScalingPlanStatusCode["UpdateFailed"] = "UpdateFailed";
174
- ScalingPlanStatusCode["UpdateInProgress"] = "UpdateInProgress";
175
- })(ScalingPlanStatusCode = exports.ScalingPlanStatusCode || (exports.ScalingPlanStatusCode = {}));
176
- var ForecastDataType;
177
- (function (ForecastDataType) {
178
- ForecastDataType["CapacityForecast"] = "CapacityForecast";
179
- ForecastDataType["LoadForecast"] = "LoadForecast";
180
- ForecastDataType["ScheduledActionMaxCapacity"] = "ScheduledActionMaxCapacity";
181
- ForecastDataType["ScheduledActionMinCapacity"] = "ScheduledActionMinCapacity";
182
- })(ForecastDataType = exports.ForecastDataType || (exports.ForecastDataType = {}));
155
+ exports.ScalingPlanStatusCode = {
156
+ Active: "Active",
157
+ ActiveWithProblems: "ActiveWithProblems",
158
+ CreationFailed: "CreationFailed",
159
+ CreationInProgress: "CreationInProgress",
160
+ DeletionFailed: "DeletionFailed",
161
+ DeletionInProgress: "DeletionInProgress",
162
+ UpdateFailed: "UpdateFailed",
163
+ UpdateInProgress: "UpdateInProgress",
164
+ };
165
+ exports.ForecastDataType = {
166
+ CapacityForecast: "CapacityForecast",
167
+ LoadForecast: "LoadForecast",
168
+ ScheduledActionMaxCapacity: "ScheduledActionMaxCapacity",
169
+ ScheduledActionMinCapacity: "ScheduledActionMinCapacity",
170
+ };
@@ -12,72 +12,64 @@ export class ConcurrentUpdateException extends __BaseException {
12
12
  this.Message = opts.Message;
13
13
  }
14
14
  }
15
- export var MetricStatistic;
16
- (function (MetricStatistic) {
17
- MetricStatistic["Average"] = "Average";
18
- MetricStatistic["Maximum"] = "Maximum";
19
- MetricStatistic["Minimum"] = "Minimum";
20
- MetricStatistic["SampleCount"] = "SampleCount";
21
- MetricStatistic["Sum"] = "Sum";
22
- })(MetricStatistic || (MetricStatistic = {}));
23
- export var LoadMetricType;
24
- (function (LoadMetricType) {
25
- LoadMetricType["ALBTargetGroupRequestCount"] = "ALBTargetGroupRequestCount";
26
- LoadMetricType["ASGTotalCPUUtilization"] = "ASGTotalCPUUtilization";
27
- LoadMetricType["ASGTotalNetworkIn"] = "ASGTotalNetworkIn";
28
- LoadMetricType["ASGTotalNetworkOut"] = "ASGTotalNetworkOut";
29
- })(LoadMetricType || (LoadMetricType = {}));
30
- export var PredictiveScalingMaxCapacityBehavior;
31
- (function (PredictiveScalingMaxCapacityBehavior) {
32
- PredictiveScalingMaxCapacityBehavior["SetForecastCapacityToMaxCapacity"] = "SetForecastCapacityToMaxCapacity";
33
- PredictiveScalingMaxCapacityBehavior["SetMaxCapacityAboveForecastCapacity"] = "SetMaxCapacityAboveForecastCapacity";
34
- PredictiveScalingMaxCapacityBehavior["SetMaxCapacityToForecastCapacity"] = "SetMaxCapacityToForecastCapacity";
35
- })(PredictiveScalingMaxCapacityBehavior || (PredictiveScalingMaxCapacityBehavior = {}));
36
- export var PredictiveScalingMode;
37
- (function (PredictiveScalingMode) {
38
- PredictiveScalingMode["ForecastAndScale"] = "ForecastAndScale";
39
- PredictiveScalingMode["ForecastOnly"] = "ForecastOnly";
40
- })(PredictiveScalingMode || (PredictiveScalingMode = {}));
41
- export var ScalableDimension;
42
- (function (ScalableDimension) {
43
- ScalableDimension["AutoScalingGroupDesiredCapacity"] = "autoscaling:autoScalingGroup:DesiredCapacity";
44
- ScalableDimension["DynamoDBIndexReadCapacityUnits"] = "dynamodb:index:ReadCapacityUnits";
45
- ScalableDimension["DynamoDBIndexWriteCapacityUnits"] = "dynamodb:index:WriteCapacityUnits";
46
- ScalableDimension["DynamoDBTableReadCapacityUnits"] = "dynamodb:table:ReadCapacityUnits";
47
- ScalableDimension["DynamoDBTableWriteCapacityUnits"] = "dynamodb:table:WriteCapacityUnits";
48
- ScalableDimension["EC2SpotFleetRequestTargetCapacity"] = "ec2:spot-fleet-request:TargetCapacity";
49
- ScalableDimension["ECSServiceDesiredCount"] = "ecs:service:DesiredCount";
50
- ScalableDimension["RDSClusterReadReplicaCount"] = "rds:cluster:ReadReplicaCount";
51
- })(ScalableDimension || (ScalableDimension = {}));
52
- export var ScalingPolicyUpdateBehavior;
53
- (function (ScalingPolicyUpdateBehavior) {
54
- ScalingPolicyUpdateBehavior["KeepExternalPolicies"] = "KeepExternalPolicies";
55
- ScalingPolicyUpdateBehavior["ReplaceExternalPolicies"] = "ReplaceExternalPolicies";
56
- })(ScalingPolicyUpdateBehavior || (ScalingPolicyUpdateBehavior = {}));
57
- export var ServiceNamespace;
58
- (function (ServiceNamespace) {
59
- ServiceNamespace["AUTOSCALING"] = "autoscaling";
60
- ServiceNamespace["DYNAMODB"] = "dynamodb";
61
- ServiceNamespace["EC2"] = "ec2";
62
- ServiceNamespace["ECS"] = "ecs";
63
- ServiceNamespace["RDS"] = "rds";
64
- })(ServiceNamespace || (ServiceNamespace = {}));
65
- export var ScalingMetricType;
66
- (function (ScalingMetricType) {
67
- ScalingMetricType["ALBRequestCountPerTarget"] = "ALBRequestCountPerTarget";
68
- ScalingMetricType["ASGAverageCPUUtilization"] = "ASGAverageCPUUtilization";
69
- ScalingMetricType["ASGAverageNetworkIn"] = "ASGAverageNetworkIn";
70
- ScalingMetricType["ASGAverageNetworkOut"] = "ASGAverageNetworkOut";
71
- ScalingMetricType["DynamoDBReadCapacityUtilization"] = "DynamoDBReadCapacityUtilization";
72
- ScalingMetricType["DynamoDBWriteCapacityUtilization"] = "DynamoDBWriteCapacityUtilization";
73
- ScalingMetricType["EC2SpotFleetRequestAverageCPUUtilization"] = "EC2SpotFleetRequestAverageCPUUtilization";
74
- ScalingMetricType["EC2SpotFleetRequestAverageNetworkIn"] = "EC2SpotFleetRequestAverageNetworkIn";
75
- ScalingMetricType["EC2SpotFleetRequestAverageNetworkOut"] = "EC2SpotFleetRequestAverageNetworkOut";
76
- ScalingMetricType["ECSServiceAverageCPUUtilization"] = "ECSServiceAverageCPUUtilization";
77
- ScalingMetricType["ECSServiceAverageMemoryUtilization"] = "ECSServiceAverageMemoryUtilization";
78
- ScalingMetricType["RDSReaderAverageCPUUtilization"] = "RDSReaderAverageCPUUtilization";
79
- ScalingMetricType["RDSReaderAverageDatabaseConnections"] = "RDSReaderAverageDatabaseConnections";
80
- })(ScalingMetricType || (ScalingMetricType = {}));
15
+ export const MetricStatistic = {
16
+ Average: "Average",
17
+ Maximum: "Maximum",
18
+ Minimum: "Minimum",
19
+ SampleCount: "SampleCount",
20
+ Sum: "Sum",
21
+ };
22
+ export const LoadMetricType = {
23
+ ALBTargetGroupRequestCount: "ALBTargetGroupRequestCount",
24
+ ASGTotalCPUUtilization: "ASGTotalCPUUtilization",
25
+ ASGTotalNetworkIn: "ASGTotalNetworkIn",
26
+ ASGTotalNetworkOut: "ASGTotalNetworkOut",
27
+ };
28
+ export const PredictiveScalingMaxCapacityBehavior = {
29
+ SetForecastCapacityToMaxCapacity: "SetForecastCapacityToMaxCapacity",
30
+ SetMaxCapacityAboveForecastCapacity: "SetMaxCapacityAboveForecastCapacity",
31
+ SetMaxCapacityToForecastCapacity: "SetMaxCapacityToForecastCapacity",
32
+ };
33
+ export const PredictiveScalingMode = {
34
+ ForecastAndScale: "ForecastAndScale",
35
+ ForecastOnly: "ForecastOnly",
36
+ };
37
+ export const ScalableDimension = {
38
+ AutoScalingGroupDesiredCapacity: "autoscaling:autoScalingGroup:DesiredCapacity",
39
+ DynamoDBIndexReadCapacityUnits: "dynamodb:index:ReadCapacityUnits",
40
+ DynamoDBIndexWriteCapacityUnits: "dynamodb:index:WriteCapacityUnits",
41
+ DynamoDBTableReadCapacityUnits: "dynamodb:table:ReadCapacityUnits",
42
+ DynamoDBTableWriteCapacityUnits: "dynamodb:table:WriteCapacityUnits",
43
+ EC2SpotFleetRequestTargetCapacity: "ec2:spot-fleet-request:TargetCapacity",
44
+ ECSServiceDesiredCount: "ecs:service:DesiredCount",
45
+ RDSClusterReadReplicaCount: "rds:cluster:ReadReplicaCount",
46
+ };
47
+ export const ScalingPolicyUpdateBehavior = {
48
+ KeepExternalPolicies: "KeepExternalPolicies",
49
+ ReplaceExternalPolicies: "ReplaceExternalPolicies",
50
+ };
51
+ export const ServiceNamespace = {
52
+ AUTOSCALING: "autoscaling",
53
+ DYNAMODB: "dynamodb",
54
+ EC2: "ec2",
55
+ ECS: "ecs",
56
+ RDS: "rds",
57
+ };
58
+ export const ScalingMetricType = {
59
+ ALBRequestCountPerTarget: "ALBRequestCountPerTarget",
60
+ ASGAverageCPUUtilization: "ASGAverageCPUUtilization",
61
+ ASGAverageNetworkIn: "ASGAverageNetworkIn",
62
+ ASGAverageNetworkOut: "ASGAverageNetworkOut",
63
+ DynamoDBReadCapacityUtilization: "DynamoDBReadCapacityUtilization",
64
+ DynamoDBWriteCapacityUtilization: "DynamoDBWriteCapacityUtilization",
65
+ EC2SpotFleetRequestAverageCPUUtilization: "EC2SpotFleetRequestAverageCPUUtilization",
66
+ EC2SpotFleetRequestAverageNetworkIn: "EC2SpotFleetRequestAverageNetworkIn",
67
+ EC2SpotFleetRequestAverageNetworkOut: "EC2SpotFleetRequestAverageNetworkOut",
68
+ ECSServiceAverageCPUUtilization: "ECSServiceAverageCPUUtilization",
69
+ ECSServiceAverageMemoryUtilization: "ECSServiceAverageMemoryUtilization",
70
+ RDSReaderAverageCPUUtilization: "RDSReaderAverageCPUUtilization",
71
+ RDSReaderAverageDatabaseConnections: "RDSReaderAverageDatabaseConnections",
72
+ };
81
73
  export class InternalServiceException extends __BaseException {
82
74
  constructor(opts) {
83
75
  super({
@@ -130,16 +122,14 @@ export class ObjectNotFoundException extends __BaseException {
130
122
  this.Message = opts.Message;
131
123
  }
132
124
  }
133
- export var PolicyType;
134
- (function (PolicyType) {
135
- PolicyType["TargetTrackingScaling"] = "TargetTrackingScaling";
136
- })(PolicyType || (PolicyType = {}));
137
- export var ScalingStatusCode;
138
- (function (ScalingStatusCode) {
139
- ScalingStatusCode["Active"] = "Active";
140
- ScalingStatusCode["Inactive"] = "Inactive";
141
- ScalingStatusCode["PartiallyActive"] = "PartiallyActive";
142
- })(ScalingStatusCode || (ScalingStatusCode = {}));
125
+ export const PolicyType = {
126
+ TargetTrackingScaling: "TargetTrackingScaling",
127
+ };
128
+ export const ScalingStatusCode = {
129
+ Active: "Active",
130
+ Inactive: "Inactive",
131
+ PartiallyActive: "PartiallyActive",
132
+ };
143
133
  export class InvalidNextTokenException extends __BaseException {
144
134
  constructor(opts) {
145
135
  super({
@@ -153,21 +143,19 @@ export class InvalidNextTokenException extends __BaseException {
153
143
  this.Message = opts.Message;
154
144
  }
155
145
  }
156
- export var ScalingPlanStatusCode;
157
- (function (ScalingPlanStatusCode) {
158
- ScalingPlanStatusCode["Active"] = "Active";
159
- ScalingPlanStatusCode["ActiveWithProblems"] = "ActiveWithProblems";
160
- ScalingPlanStatusCode["CreationFailed"] = "CreationFailed";
161
- ScalingPlanStatusCode["CreationInProgress"] = "CreationInProgress";
162
- ScalingPlanStatusCode["DeletionFailed"] = "DeletionFailed";
163
- ScalingPlanStatusCode["DeletionInProgress"] = "DeletionInProgress";
164
- ScalingPlanStatusCode["UpdateFailed"] = "UpdateFailed";
165
- ScalingPlanStatusCode["UpdateInProgress"] = "UpdateInProgress";
166
- })(ScalingPlanStatusCode || (ScalingPlanStatusCode = {}));
167
- export var ForecastDataType;
168
- (function (ForecastDataType) {
169
- ForecastDataType["CapacityForecast"] = "CapacityForecast";
170
- ForecastDataType["LoadForecast"] = "LoadForecast";
171
- ForecastDataType["ScheduledActionMaxCapacity"] = "ScheduledActionMaxCapacity";
172
- ForecastDataType["ScheduledActionMinCapacity"] = "ScheduledActionMinCapacity";
173
- })(ForecastDataType || (ForecastDataType = {}));
146
+ export const ScalingPlanStatusCode = {
147
+ Active: "Active",
148
+ ActiveWithProblems: "ActiveWithProblems",
149
+ CreationFailed: "CreationFailed",
150
+ CreationInProgress: "CreationInProgress",
151
+ DeletionFailed: "DeletionFailed",
152
+ DeletionInProgress: "DeletionInProgress",
153
+ UpdateFailed: "UpdateFailed",
154
+ UpdateInProgress: "UpdateInProgress",
155
+ };
156
+ export const ForecastDataType = {
157
+ CapacityForecast: "CapacityForecast",
158
+ LoadForecast: "LoadForecast",
159
+ ScheduledActionMaxCapacity: "ScheduledActionMaxCapacity",
160
+ ScheduledActionMinCapacity: "ScheduledActionMinCapacity",
161
+ };
@@ -58,14 +58,19 @@ export interface MetricDimension {
58
58
  }
59
59
  /**
60
60
  * @public
61
+ * @enum
61
62
  */
62
- export declare enum MetricStatistic {
63
- Average = "Average",
64
- Maximum = "Maximum",
65
- Minimum = "Minimum",
66
- SampleCount = "SampleCount",
67
- Sum = "Sum"
68
- }
63
+ export declare const MetricStatistic: {
64
+ readonly Average: "Average";
65
+ readonly Maximum: "Maximum";
66
+ readonly Minimum: "Minimum";
67
+ readonly SampleCount: "SampleCount";
68
+ readonly Sum: "Sum";
69
+ };
70
+ /**
71
+ * @public
72
+ */
73
+ export type MetricStatistic = (typeof MetricStatistic)[keyof typeof MetricStatistic];
69
74
  /**
70
75
  * @public
71
76
  * <p>Represents a CloudWatch metric of your choosing that can be used for predictive scaling. </p>
@@ -119,13 +124,18 @@ export interface CustomizedLoadMetricSpecification {
119
124
  }
120
125
  /**
121
126
  * @public
127
+ * @enum
122
128
  */
123
- export declare enum LoadMetricType {
124
- ALBTargetGroupRequestCount = "ALBTargetGroupRequestCount",
125
- ASGTotalCPUUtilization = "ASGTotalCPUUtilization",
126
- ASGTotalNetworkIn = "ASGTotalNetworkIn",
127
- ASGTotalNetworkOut = "ASGTotalNetworkOut"
128
- }
129
+ export declare const LoadMetricType: {
130
+ readonly ALBTargetGroupRequestCount: "ALBTargetGroupRequestCount";
131
+ readonly ASGTotalCPUUtilization: "ASGTotalCPUUtilization";
132
+ readonly ASGTotalNetworkIn: "ASGTotalNetworkIn";
133
+ readonly ASGTotalNetworkOut: "ASGTotalNetworkOut";
134
+ };
135
+ /**
136
+ * @public
137
+ */
138
+ export type LoadMetricType = (typeof LoadMetricType)[keyof typeof LoadMetricType];
129
139
  /**
130
140
  * @public
131
141
  * <p>Represents a predefined metric that can be used for predictive scaling.</p>
@@ -167,49 +177,74 @@ export interface PredefinedLoadMetricSpecification {
167
177
  }
168
178
  /**
169
179
  * @public
180
+ * @enum
170
181
  */
171
- export declare enum PredictiveScalingMaxCapacityBehavior {
172
- SetForecastCapacityToMaxCapacity = "SetForecastCapacityToMaxCapacity",
173
- SetMaxCapacityAboveForecastCapacity = "SetMaxCapacityAboveForecastCapacity",
174
- SetMaxCapacityToForecastCapacity = "SetMaxCapacityToForecastCapacity"
175
- }
182
+ export declare const PredictiveScalingMaxCapacityBehavior: {
183
+ readonly SetForecastCapacityToMaxCapacity: "SetForecastCapacityToMaxCapacity";
184
+ readonly SetMaxCapacityAboveForecastCapacity: "SetMaxCapacityAboveForecastCapacity";
185
+ readonly SetMaxCapacityToForecastCapacity: "SetMaxCapacityToForecastCapacity";
186
+ };
176
187
  /**
177
188
  * @public
178
189
  */
179
- export declare enum PredictiveScalingMode {
180
- ForecastAndScale = "ForecastAndScale",
181
- ForecastOnly = "ForecastOnly"
182
- }
190
+ export type PredictiveScalingMaxCapacityBehavior = (typeof PredictiveScalingMaxCapacityBehavior)[keyof typeof PredictiveScalingMaxCapacityBehavior];
183
191
  /**
184
192
  * @public
193
+ * @enum
185
194
  */
186
- export declare enum ScalableDimension {
187
- AutoScalingGroupDesiredCapacity = "autoscaling:autoScalingGroup:DesiredCapacity",
188
- DynamoDBIndexReadCapacityUnits = "dynamodb:index:ReadCapacityUnits",
189
- DynamoDBIndexWriteCapacityUnits = "dynamodb:index:WriteCapacityUnits",
190
- DynamoDBTableReadCapacityUnits = "dynamodb:table:ReadCapacityUnits",
191
- DynamoDBTableWriteCapacityUnits = "dynamodb:table:WriteCapacityUnits",
192
- EC2SpotFleetRequestTargetCapacity = "ec2:spot-fleet-request:TargetCapacity",
193
- ECSServiceDesiredCount = "ecs:service:DesiredCount",
194
- RDSClusterReadReplicaCount = "rds:cluster:ReadReplicaCount"
195
- }
195
+ export declare const PredictiveScalingMode: {
196
+ readonly ForecastAndScale: "ForecastAndScale";
197
+ readonly ForecastOnly: "ForecastOnly";
198
+ };
196
199
  /**
197
200
  * @public
198
201
  */
199
- export declare enum ScalingPolicyUpdateBehavior {
200
- KeepExternalPolicies = "KeepExternalPolicies",
201
- ReplaceExternalPolicies = "ReplaceExternalPolicies"
202
- }
202
+ export type PredictiveScalingMode = (typeof PredictiveScalingMode)[keyof typeof PredictiveScalingMode];
203
203
  /**
204
204
  * @public
205
+ * @enum
205
206
  */
206
- export declare enum ServiceNamespace {
207
- AUTOSCALING = "autoscaling",
208
- DYNAMODB = "dynamodb",
209
- EC2 = "ec2",
210
- ECS = "ecs",
211
- RDS = "rds"
212
- }
207
+ export declare const ScalableDimension: {
208
+ readonly AutoScalingGroupDesiredCapacity: "autoscaling:autoScalingGroup:DesiredCapacity";
209
+ readonly DynamoDBIndexReadCapacityUnits: "dynamodb:index:ReadCapacityUnits";
210
+ readonly DynamoDBIndexWriteCapacityUnits: "dynamodb:index:WriteCapacityUnits";
211
+ readonly DynamoDBTableReadCapacityUnits: "dynamodb:table:ReadCapacityUnits";
212
+ readonly DynamoDBTableWriteCapacityUnits: "dynamodb:table:WriteCapacityUnits";
213
+ readonly EC2SpotFleetRequestTargetCapacity: "ec2:spot-fleet-request:TargetCapacity";
214
+ readonly ECSServiceDesiredCount: "ecs:service:DesiredCount";
215
+ readonly RDSClusterReadReplicaCount: "rds:cluster:ReadReplicaCount";
216
+ };
217
+ /**
218
+ * @public
219
+ */
220
+ export type ScalableDimension = (typeof ScalableDimension)[keyof typeof ScalableDimension];
221
+ /**
222
+ * @public
223
+ * @enum
224
+ */
225
+ export declare const ScalingPolicyUpdateBehavior: {
226
+ readonly KeepExternalPolicies: "KeepExternalPolicies";
227
+ readonly ReplaceExternalPolicies: "ReplaceExternalPolicies";
228
+ };
229
+ /**
230
+ * @public
231
+ */
232
+ export type ScalingPolicyUpdateBehavior = (typeof ScalingPolicyUpdateBehavior)[keyof typeof ScalingPolicyUpdateBehavior];
233
+ /**
234
+ * @public
235
+ * @enum
236
+ */
237
+ export declare const ServiceNamespace: {
238
+ readonly AUTOSCALING: "autoscaling";
239
+ readonly DYNAMODB: "dynamodb";
240
+ readonly EC2: "ec2";
241
+ readonly ECS: "ecs";
242
+ readonly RDS: "rds";
243
+ };
244
+ /**
245
+ * @public
246
+ */
247
+ export type ServiceNamespace = (typeof ServiceNamespace)[keyof typeof ServiceNamespace];
213
248
  /**
214
249
  * @public
215
250
  * <p>Represents a CloudWatch metric of your choosing that can be used for dynamic scaling as part
@@ -258,22 +293,27 @@ export interface CustomizedScalingMetricSpecification {
258
293
  }
259
294
  /**
260
295
  * @public
296
+ * @enum
261
297
  */
262
- export declare enum ScalingMetricType {
263
- ALBRequestCountPerTarget = "ALBRequestCountPerTarget",
264
- ASGAverageCPUUtilization = "ASGAverageCPUUtilization",
265
- ASGAverageNetworkIn = "ASGAverageNetworkIn",
266
- ASGAverageNetworkOut = "ASGAverageNetworkOut",
267
- DynamoDBReadCapacityUtilization = "DynamoDBReadCapacityUtilization",
268
- DynamoDBWriteCapacityUtilization = "DynamoDBWriteCapacityUtilization",
269
- EC2SpotFleetRequestAverageCPUUtilization = "EC2SpotFleetRequestAverageCPUUtilization",
270
- EC2SpotFleetRequestAverageNetworkIn = "EC2SpotFleetRequestAverageNetworkIn",
271
- EC2SpotFleetRequestAverageNetworkOut = "EC2SpotFleetRequestAverageNetworkOut",
272
- ECSServiceAverageCPUUtilization = "ECSServiceAverageCPUUtilization",
273
- ECSServiceAverageMemoryUtilization = "ECSServiceAverageMemoryUtilization",
274
- RDSReaderAverageCPUUtilization = "RDSReaderAverageCPUUtilization",
275
- RDSReaderAverageDatabaseConnections = "RDSReaderAverageDatabaseConnections"
276
- }
298
+ export declare const ScalingMetricType: {
299
+ readonly ALBRequestCountPerTarget: "ALBRequestCountPerTarget";
300
+ readonly ASGAverageCPUUtilization: "ASGAverageCPUUtilization";
301
+ readonly ASGAverageNetworkIn: "ASGAverageNetworkIn";
302
+ readonly ASGAverageNetworkOut: "ASGAverageNetworkOut";
303
+ readonly DynamoDBReadCapacityUtilization: "DynamoDBReadCapacityUtilization";
304
+ readonly DynamoDBWriteCapacityUtilization: "DynamoDBWriteCapacityUtilization";
305
+ readonly EC2SpotFleetRequestAverageCPUUtilization: "EC2SpotFleetRequestAverageCPUUtilization";
306
+ readonly EC2SpotFleetRequestAverageNetworkIn: "EC2SpotFleetRequestAverageNetworkIn";
307
+ readonly EC2SpotFleetRequestAverageNetworkOut: "EC2SpotFleetRequestAverageNetworkOut";
308
+ readonly ECSServiceAverageCPUUtilization: "ECSServiceAverageCPUUtilization";
309
+ readonly ECSServiceAverageMemoryUtilization: "ECSServiceAverageMemoryUtilization";
310
+ readonly RDSReaderAverageCPUUtilization: "RDSReaderAverageCPUUtilization";
311
+ readonly RDSReaderAverageDatabaseConnections: "RDSReaderAverageDatabaseConnections";
312
+ };
313
+ /**
314
+ * @public
315
+ */
316
+ export type ScalingMetricType = (typeof ScalingMetricType)[keyof typeof ScalingMetricType];
277
317
  /**
278
318
  * @public
279
319
  * <p>Represents a predefined metric that can be used for dynamic scaling as part of a target
@@ -694,10 +734,15 @@ export interface DescribeScalingPlanResourcesRequest {
694
734
  }
695
735
  /**
696
736
  * @public
737
+ * @enum
697
738
  */
698
- export declare enum PolicyType {
699
- TargetTrackingScaling = "TargetTrackingScaling"
700
- }
739
+ export declare const PolicyType: {
740
+ readonly TargetTrackingScaling: "TargetTrackingScaling";
741
+ };
742
+ /**
743
+ * @public
744
+ */
745
+ export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
701
746
  /**
702
747
  * @public
703
748
  * <p>Represents a scaling policy.</p>
@@ -719,12 +764,17 @@ export interface ScalingPolicy {
719
764
  }
720
765
  /**
721
766
  * @public
767
+ * @enum
722
768
  */
723
- export declare enum ScalingStatusCode {
724
- Active = "Active",
725
- Inactive = "Inactive",
726
- PartiallyActive = "PartiallyActive"
727
- }
769
+ export declare const ScalingStatusCode: {
770
+ readonly Active: "Active";
771
+ readonly Inactive: "Inactive";
772
+ readonly PartiallyActive: "PartiallyActive";
773
+ };
774
+ /**
775
+ * @public
776
+ */
777
+ export type ScalingStatusCode = (typeof ScalingStatusCode)[keyof typeof ScalingStatusCode];
728
778
  /**
729
779
  * @public
730
780
  * <p>Represents a scalable resource.</p>
@@ -904,17 +954,22 @@ export interface DescribeScalingPlansRequest {
904
954
  }
905
955
  /**
906
956
  * @public
957
+ * @enum
907
958
  */
908
- export declare enum ScalingPlanStatusCode {
909
- Active = "Active",
910
- ActiveWithProblems = "ActiveWithProblems",
911
- CreationFailed = "CreationFailed",
912
- CreationInProgress = "CreationInProgress",
913
- DeletionFailed = "DeletionFailed",
914
- DeletionInProgress = "DeletionInProgress",
915
- UpdateFailed = "UpdateFailed",
916
- UpdateInProgress = "UpdateInProgress"
917
- }
959
+ export declare const ScalingPlanStatusCode: {
960
+ readonly Active: "Active";
961
+ readonly ActiveWithProblems: "ActiveWithProblems";
962
+ readonly CreationFailed: "CreationFailed";
963
+ readonly CreationInProgress: "CreationInProgress";
964
+ readonly DeletionFailed: "DeletionFailed";
965
+ readonly DeletionInProgress: "DeletionInProgress";
966
+ readonly UpdateFailed: "UpdateFailed";
967
+ readonly UpdateInProgress: "UpdateInProgress";
968
+ };
969
+ /**
970
+ * @public
971
+ */
972
+ export type ScalingPlanStatusCode = (typeof ScalingPlanStatusCode)[keyof typeof ScalingPlanStatusCode];
918
973
  /**
919
974
  * @public
920
975
  * <p>Represents a scaling plan.</p>
@@ -1005,13 +1060,18 @@ export interface DescribeScalingPlansResponse {
1005
1060
  }
1006
1061
  /**
1007
1062
  * @public
1063
+ * @enum
1008
1064
  */
1009
- export declare enum ForecastDataType {
1010
- CapacityForecast = "CapacityForecast",
1011
- LoadForecast = "LoadForecast",
1012
- ScheduledActionMaxCapacity = "ScheduledActionMaxCapacity",
1013
- ScheduledActionMinCapacity = "ScheduledActionMinCapacity"
1014
- }
1065
+ export declare const ForecastDataType: {
1066
+ readonly CapacityForecast: "CapacityForecast";
1067
+ readonly LoadForecast: "LoadForecast";
1068
+ readonly ScheduledActionMaxCapacity: "ScheduledActionMaxCapacity";
1069
+ readonly ScheduledActionMinCapacity: "ScheduledActionMinCapacity";
1070
+ };
1071
+ /**
1072
+ * @public
1073
+ */
1074
+ export type ForecastDataType = (typeof ForecastDataType)[keyof typeof ForecastDataType];
1015
1075
  /**
1016
1076
  * @public
1017
1077
  */
@@ -20,13 +20,15 @@ export interface MetricDimension {
20
20
  Name: string | undefined;
21
21
  Value: string | undefined;
22
22
  }
23
- export declare enum MetricStatistic {
24
- Average = "Average",
25
- Maximum = "Maximum",
26
- Minimum = "Minimum",
27
- SampleCount = "SampleCount",
28
- Sum = "Sum",
29
- }
23
+ export declare const MetricStatistic: {
24
+ readonly Average: "Average";
25
+ readonly Maximum: "Maximum";
26
+ readonly Minimum: "Minimum";
27
+ readonly SampleCount: "SampleCount";
28
+ readonly Sum: "Sum";
29
+ };
30
+ export type MetricStatistic =
31
+ (typeof MetricStatistic)[keyof typeof MetricStatistic];
30
32
  export interface CustomizedLoadMetricSpecification {
31
33
  MetricName: string | undefined;
32
34
  Namespace: string | undefined;
@@ -34,46 +36,58 @@ export interface CustomizedLoadMetricSpecification {
34
36
  Statistic: MetricStatistic | string | undefined;
35
37
  Unit?: string;
36
38
  }
37
- export declare enum LoadMetricType {
38
- ALBTargetGroupRequestCount = "ALBTargetGroupRequestCount",
39
- ASGTotalCPUUtilization = "ASGTotalCPUUtilization",
40
- ASGTotalNetworkIn = "ASGTotalNetworkIn",
41
- ASGTotalNetworkOut = "ASGTotalNetworkOut",
42
- }
39
+ export declare const LoadMetricType: {
40
+ readonly ALBTargetGroupRequestCount: "ALBTargetGroupRequestCount";
41
+ readonly ASGTotalCPUUtilization: "ASGTotalCPUUtilization";
42
+ readonly ASGTotalNetworkIn: "ASGTotalNetworkIn";
43
+ readonly ASGTotalNetworkOut: "ASGTotalNetworkOut";
44
+ };
45
+ export type LoadMetricType =
46
+ (typeof LoadMetricType)[keyof typeof LoadMetricType];
43
47
  export interface PredefinedLoadMetricSpecification {
44
48
  PredefinedLoadMetricType: LoadMetricType | string | undefined;
45
49
  ResourceLabel?: string;
46
50
  }
47
- export declare enum PredictiveScalingMaxCapacityBehavior {
48
- SetForecastCapacityToMaxCapacity = "SetForecastCapacityToMaxCapacity",
49
- SetMaxCapacityAboveForecastCapacity = "SetMaxCapacityAboveForecastCapacity",
50
- SetMaxCapacityToForecastCapacity = "SetMaxCapacityToForecastCapacity",
51
- }
52
- export declare enum PredictiveScalingMode {
53
- ForecastAndScale = "ForecastAndScale",
54
- ForecastOnly = "ForecastOnly",
55
- }
56
- export declare enum ScalableDimension {
57
- AutoScalingGroupDesiredCapacity = "autoscaling:autoScalingGroup:DesiredCapacity",
58
- DynamoDBIndexReadCapacityUnits = "dynamodb:index:ReadCapacityUnits",
59
- DynamoDBIndexWriteCapacityUnits = "dynamodb:index:WriteCapacityUnits",
60
- DynamoDBTableReadCapacityUnits = "dynamodb:table:ReadCapacityUnits",
61
- DynamoDBTableWriteCapacityUnits = "dynamodb:table:WriteCapacityUnits",
62
- EC2SpotFleetRequestTargetCapacity = "ec2:spot-fleet-request:TargetCapacity",
63
- ECSServiceDesiredCount = "ecs:service:DesiredCount",
64
- RDSClusterReadReplicaCount = "rds:cluster:ReadReplicaCount",
65
- }
66
- export declare enum ScalingPolicyUpdateBehavior {
67
- KeepExternalPolicies = "KeepExternalPolicies",
68
- ReplaceExternalPolicies = "ReplaceExternalPolicies",
69
- }
70
- export declare enum ServiceNamespace {
71
- AUTOSCALING = "autoscaling",
72
- DYNAMODB = "dynamodb",
73
- EC2 = "ec2",
74
- ECS = "ecs",
75
- RDS = "rds",
76
- }
51
+ export declare const PredictiveScalingMaxCapacityBehavior: {
52
+ readonly SetForecastCapacityToMaxCapacity: "SetForecastCapacityToMaxCapacity";
53
+ readonly SetMaxCapacityAboveForecastCapacity: "SetMaxCapacityAboveForecastCapacity";
54
+ readonly SetMaxCapacityToForecastCapacity: "SetMaxCapacityToForecastCapacity";
55
+ };
56
+ export type PredictiveScalingMaxCapacityBehavior =
57
+ (typeof PredictiveScalingMaxCapacityBehavior)[keyof typeof PredictiveScalingMaxCapacityBehavior];
58
+ export declare const PredictiveScalingMode: {
59
+ readonly ForecastAndScale: "ForecastAndScale";
60
+ readonly ForecastOnly: "ForecastOnly";
61
+ };
62
+ export type PredictiveScalingMode =
63
+ (typeof PredictiveScalingMode)[keyof typeof PredictiveScalingMode];
64
+ export declare const ScalableDimension: {
65
+ readonly AutoScalingGroupDesiredCapacity: "autoscaling:autoScalingGroup:DesiredCapacity";
66
+ readonly DynamoDBIndexReadCapacityUnits: "dynamodb:index:ReadCapacityUnits";
67
+ readonly DynamoDBIndexWriteCapacityUnits: "dynamodb:index:WriteCapacityUnits";
68
+ readonly DynamoDBTableReadCapacityUnits: "dynamodb:table:ReadCapacityUnits";
69
+ readonly DynamoDBTableWriteCapacityUnits: "dynamodb:table:WriteCapacityUnits";
70
+ readonly EC2SpotFleetRequestTargetCapacity: "ec2:spot-fleet-request:TargetCapacity";
71
+ readonly ECSServiceDesiredCount: "ecs:service:DesiredCount";
72
+ readonly RDSClusterReadReplicaCount: "rds:cluster:ReadReplicaCount";
73
+ };
74
+ export type ScalableDimension =
75
+ (typeof ScalableDimension)[keyof typeof ScalableDimension];
76
+ export declare const ScalingPolicyUpdateBehavior: {
77
+ readonly KeepExternalPolicies: "KeepExternalPolicies";
78
+ readonly ReplaceExternalPolicies: "ReplaceExternalPolicies";
79
+ };
80
+ export type ScalingPolicyUpdateBehavior =
81
+ (typeof ScalingPolicyUpdateBehavior)[keyof typeof ScalingPolicyUpdateBehavior];
82
+ export declare const ServiceNamespace: {
83
+ readonly AUTOSCALING: "autoscaling";
84
+ readonly DYNAMODB: "dynamodb";
85
+ readonly EC2: "ec2";
86
+ readonly ECS: "ecs";
87
+ readonly RDS: "rds";
88
+ };
89
+ export type ServiceNamespace =
90
+ (typeof ServiceNamespace)[keyof typeof ServiceNamespace];
77
91
  export interface CustomizedScalingMetricSpecification {
78
92
  MetricName: string | undefined;
79
93
  Namespace: string | undefined;
@@ -81,21 +95,23 @@ export interface CustomizedScalingMetricSpecification {
81
95
  Statistic: MetricStatistic | string | undefined;
82
96
  Unit?: string;
83
97
  }
84
- export declare enum ScalingMetricType {
85
- ALBRequestCountPerTarget = "ALBRequestCountPerTarget",
86
- ASGAverageCPUUtilization = "ASGAverageCPUUtilization",
87
- ASGAverageNetworkIn = "ASGAverageNetworkIn",
88
- ASGAverageNetworkOut = "ASGAverageNetworkOut",
89
- DynamoDBReadCapacityUtilization = "DynamoDBReadCapacityUtilization",
90
- DynamoDBWriteCapacityUtilization = "DynamoDBWriteCapacityUtilization",
91
- EC2SpotFleetRequestAverageCPUUtilization = "EC2SpotFleetRequestAverageCPUUtilization",
92
- EC2SpotFleetRequestAverageNetworkIn = "EC2SpotFleetRequestAverageNetworkIn",
93
- EC2SpotFleetRequestAverageNetworkOut = "EC2SpotFleetRequestAverageNetworkOut",
94
- ECSServiceAverageCPUUtilization = "ECSServiceAverageCPUUtilization",
95
- ECSServiceAverageMemoryUtilization = "ECSServiceAverageMemoryUtilization",
96
- RDSReaderAverageCPUUtilization = "RDSReaderAverageCPUUtilization",
97
- RDSReaderAverageDatabaseConnections = "RDSReaderAverageDatabaseConnections",
98
- }
98
+ export declare const ScalingMetricType: {
99
+ readonly ALBRequestCountPerTarget: "ALBRequestCountPerTarget";
100
+ readonly ASGAverageCPUUtilization: "ASGAverageCPUUtilization";
101
+ readonly ASGAverageNetworkIn: "ASGAverageNetworkIn";
102
+ readonly ASGAverageNetworkOut: "ASGAverageNetworkOut";
103
+ readonly DynamoDBReadCapacityUtilization: "DynamoDBReadCapacityUtilization";
104
+ readonly DynamoDBWriteCapacityUtilization: "DynamoDBWriteCapacityUtilization";
105
+ readonly EC2SpotFleetRequestAverageCPUUtilization: "EC2SpotFleetRequestAverageCPUUtilization";
106
+ readonly EC2SpotFleetRequestAverageNetworkIn: "EC2SpotFleetRequestAverageNetworkIn";
107
+ readonly EC2SpotFleetRequestAverageNetworkOut: "EC2SpotFleetRequestAverageNetworkOut";
108
+ readonly ECSServiceAverageCPUUtilization: "ECSServiceAverageCPUUtilization";
109
+ readonly ECSServiceAverageMemoryUtilization: "ECSServiceAverageMemoryUtilization";
110
+ readonly RDSReaderAverageCPUUtilization: "RDSReaderAverageCPUUtilization";
111
+ readonly RDSReaderAverageDatabaseConnections: "RDSReaderAverageDatabaseConnections";
112
+ };
113
+ export type ScalingMetricType =
114
+ (typeof ScalingMetricType)[keyof typeof ScalingMetricType];
99
115
  export interface PredefinedScalingMetricSpecification {
100
116
  PredefinedScalingMetricType: ScalingMetricType | string | undefined;
101
117
  ResourceLabel?: string;
@@ -178,19 +194,22 @@ export interface DescribeScalingPlanResourcesRequest {
178
194
  MaxResults?: number;
179
195
  NextToken?: string;
180
196
  }
181
- export declare enum PolicyType {
182
- TargetTrackingScaling = "TargetTrackingScaling",
183
- }
197
+ export declare const PolicyType: {
198
+ readonly TargetTrackingScaling: "TargetTrackingScaling";
199
+ };
200
+ export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
184
201
  export interface ScalingPolicy {
185
202
  PolicyName: string | undefined;
186
203
  PolicyType: PolicyType | string | undefined;
187
204
  TargetTrackingConfiguration?: TargetTrackingConfiguration;
188
205
  }
189
- export declare enum ScalingStatusCode {
190
- Active = "Active",
191
- Inactive = "Inactive",
192
- PartiallyActive = "PartiallyActive",
193
- }
206
+ export declare const ScalingStatusCode: {
207
+ readonly Active: "Active";
208
+ readonly Inactive: "Inactive";
209
+ readonly PartiallyActive: "PartiallyActive";
210
+ };
211
+ export type ScalingStatusCode =
212
+ (typeof ScalingStatusCode)[keyof typeof ScalingStatusCode];
194
213
  export interface ScalingPlanResource {
195
214
  ScalingPlanName: string | undefined;
196
215
  ScalingPlanVersion: number | undefined;
@@ -220,16 +239,18 @@ export interface DescribeScalingPlansRequest {
220
239
  MaxResults?: number;
221
240
  NextToken?: string;
222
241
  }
223
- export declare enum ScalingPlanStatusCode {
224
- Active = "Active",
225
- ActiveWithProblems = "ActiveWithProblems",
226
- CreationFailed = "CreationFailed",
227
- CreationInProgress = "CreationInProgress",
228
- DeletionFailed = "DeletionFailed",
229
- DeletionInProgress = "DeletionInProgress",
230
- UpdateFailed = "UpdateFailed",
231
- UpdateInProgress = "UpdateInProgress",
232
- }
242
+ export declare const ScalingPlanStatusCode: {
243
+ readonly Active: "Active";
244
+ readonly ActiveWithProblems: "ActiveWithProblems";
245
+ readonly CreationFailed: "CreationFailed";
246
+ readonly CreationInProgress: "CreationInProgress";
247
+ readonly DeletionFailed: "DeletionFailed";
248
+ readonly DeletionInProgress: "DeletionInProgress";
249
+ readonly UpdateFailed: "UpdateFailed";
250
+ readonly UpdateInProgress: "UpdateInProgress";
251
+ };
252
+ export type ScalingPlanStatusCode =
253
+ (typeof ScalingPlanStatusCode)[keyof typeof ScalingPlanStatusCode];
233
254
  export interface ScalingPlan {
234
255
  ScalingPlanName: string | undefined;
235
256
  ScalingPlanVersion: number | undefined;
@@ -244,12 +265,14 @@ export interface DescribeScalingPlansResponse {
244
265
  ScalingPlans?: ScalingPlan[];
245
266
  NextToken?: string;
246
267
  }
247
- export declare enum ForecastDataType {
248
- CapacityForecast = "CapacityForecast",
249
- LoadForecast = "LoadForecast",
250
- ScheduledActionMaxCapacity = "ScheduledActionMaxCapacity",
251
- ScheduledActionMinCapacity = "ScheduledActionMinCapacity",
252
- }
268
+ export declare const ForecastDataType: {
269
+ readonly CapacityForecast: "CapacityForecast";
270
+ readonly LoadForecast: "LoadForecast";
271
+ readonly ScheduledActionMaxCapacity: "ScheduledActionMaxCapacity";
272
+ readonly ScheduledActionMinCapacity: "ScheduledActionMinCapacity";
273
+ };
274
+ export type ForecastDataType =
275
+ (typeof ForecastDataType)[keyof typeof ForecastDataType];
253
276
  export interface GetScalingPlanResourceForecastDataRequest {
254
277
  ScalingPlanName: string | undefined;
255
278
  ScalingPlanVersion: number | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auto-scaling-plans",
3
3
  "description": "AWS SDK for JavaScript Auto Scaling Plans Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",