@aws-sdk/client-application-auto-scaling 3.693.0 → 3.698.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.
- package/README.md +8 -0
- package/dist-cjs/index.js +151 -0
- package/dist-es/ApplicationAutoScaling.js +2 -0
- package/dist-es/commands/GetPredictiveScalingForecastCommand.js +22 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/protocols/Aws_json1_1.js +131 -0
- package/dist-types/ApplicationAutoScaling.d.ts +7 -0
- package/dist-types/ApplicationAutoScalingClient.d.ts +3 -2
- package/dist-types/commands/DescribeScalableTargetsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeScalingPoliciesCommand.d.ts +96 -1
- package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +194 -0
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +96 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +537 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/ApplicationAutoScaling.d.ts +17 -0
- package/dist-types/ts3.4/ApplicationAutoScalingClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetPredictiveScalingForecastCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +108 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +35 -35
|
@@ -57,7 +57,7 @@ declare const DescribeScalingPoliciesCommand_base: {
|
|
|
57
57
|
* // ServiceNamespace: "ecs" || "elasticmapreduce" || "ec2" || "appstream" || "dynamodb" || "rds" || "sagemaker" || "custom-resource" || "comprehend" || "lambda" || "cassandra" || "kafka" || "elasticache" || "neptune" || "workspaces", // required
|
|
58
58
|
* // ResourceId: "STRING_VALUE", // required
|
|
59
59
|
* // ScalableDimension: "ecs:service:DesiredCount" || "ec2:spot-fleet-request:TargetCapacity" || "elasticmapreduce:instancegroup:InstanceCount" || "appstream:fleet:DesiredCapacity" || "dynamodb:table:ReadCapacityUnits" || "dynamodb:table:WriteCapacityUnits" || "dynamodb:index:ReadCapacityUnits" || "dynamodb:index:WriteCapacityUnits" || "rds:cluster:ReadReplicaCount" || "sagemaker:variant:DesiredInstanceCount" || "custom-resource:ResourceType:Property" || "comprehend:document-classifier-endpoint:DesiredInferenceUnits" || "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" || "lambda:function:ProvisionedConcurrency" || "cassandra:table:ReadCapacityUnits" || "cassandra:table:WriteCapacityUnits" || "kafka:broker-storage:VolumeSize" || "elasticache:replication-group:NodeGroups" || "elasticache:replication-group:Replicas" || "neptune:cluster:ReadReplicaCount" || "sagemaker:variant:DesiredProvisionedConcurrency" || "sagemaker:inference-component:DesiredCopyCount" || "workspaces:workspacespool:DesiredUserSessions", // required
|
|
60
|
-
* // PolicyType: "StepScaling" || "TargetTrackingScaling", // required
|
|
60
|
+
* // PolicyType: "StepScaling" || "TargetTrackingScaling" || "PredictiveScaling", // required
|
|
61
61
|
* // StepScalingPolicyConfiguration: { // StepScalingPolicyConfiguration
|
|
62
62
|
* // AdjustmentType: "ChangeInCapacity" || "PercentChangeInCapacity" || "ExactCapacity",
|
|
63
63
|
* // StepAdjustments: [ // StepAdjustments
|
|
@@ -115,6 +115,101 @@ declare const DescribeScalingPoliciesCommand_base: {
|
|
|
115
115
|
* // ScaleInCooldown: Number("int"),
|
|
116
116
|
* // DisableScaleIn: true || false,
|
|
117
117
|
* // },
|
|
118
|
+
* // PredictiveScalingPolicyConfiguration: { // PredictiveScalingPolicyConfiguration
|
|
119
|
+
* // MetricSpecifications: [ // PredictiveScalingMetricSpecifications // required
|
|
120
|
+
* // { // PredictiveScalingMetricSpecification
|
|
121
|
+
* // TargetValue: Number("double"), // required
|
|
122
|
+
* // PredefinedMetricPairSpecification: { // PredictiveScalingPredefinedMetricPairSpecification
|
|
123
|
+
* // PredefinedMetricType: "STRING_VALUE", // required
|
|
124
|
+
* // ResourceLabel: "STRING_VALUE",
|
|
125
|
+
* // },
|
|
126
|
+
* // PredefinedScalingMetricSpecification: { // PredictiveScalingPredefinedScalingMetricSpecification
|
|
127
|
+
* // PredefinedMetricType: "STRING_VALUE", // required
|
|
128
|
+
* // ResourceLabel: "STRING_VALUE",
|
|
129
|
+
* // },
|
|
130
|
+
* // PredefinedLoadMetricSpecification: { // PredictiveScalingPredefinedLoadMetricSpecification
|
|
131
|
+
* // PredefinedMetricType: "STRING_VALUE", // required
|
|
132
|
+
* // ResourceLabel: "STRING_VALUE",
|
|
133
|
+
* // },
|
|
134
|
+
* // CustomizedScalingMetricSpecification: { // PredictiveScalingCustomizedMetricSpecification
|
|
135
|
+
* // MetricDataQueries: [ // PredictiveScalingMetricDataQueries // required
|
|
136
|
+
* // { // PredictiveScalingMetricDataQuery
|
|
137
|
+
* // Id: "STRING_VALUE", // required
|
|
138
|
+
* // Expression: "STRING_VALUE",
|
|
139
|
+
* // MetricStat: { // PredictiveScalingMetricStat
|
|
140
|
+
* // Metric: { // PredictiveScalingMetric
|
|
141
|
+
* // Dimensions: [ // PredictiveScalingMetricDimensions
|
|
142
|
+
* // { // PredictiveScalingMetricDimension
|
|
143
|
+
* // Name: "STRING_VALUE", // required
|
|
144
|
+
* // Value: "STRING_VALUE", // required
|
|
145
|
+
* // },
|
|
146
|
+
* // ],
|
|
147
|
+
* // MetricName: "STRING_VALUE",
|
|
148
|
+
* // Namespace: "STRING_VALUE",
|
|
149
|
+
* // },
|
|
150
|
+
* // Stat: "STRING_VALUE", // required
|
|
151
|
+
* // Unit: "STRING_VALUE",
|
|
152
|
+
* // },
|
|
153
|
+
* // Label: "STRING_VALUE",
|
|
154
|
+
* // ReturnData: true || false,
|
|
155
|
+
* // },
|
|
156
|
+
* // ],
|
|
157
|
+
* // },
|
|
158
|
+
* // CustomizedLoadMetricSpecification: {
|
|
159
|
+
* // MetricDataQueries: [ // required
|
|
160
|
+
* // {
|
|
161
|
+
* // Id: "STRING_VALUE", // required
|
|
162
|
+
* // Expression: "STRING_VALUE",
|
|
163
|
+
* // MetricStat: {
|
|
164
|
+
* // Metric: {
|
|
165
|
+
* // Dimensions: [
|
|
166
|
+
* // {
|
|
167
|
+
* // Name: "STRING_VALUE", // required
|
|
168
|
+
* // Value: "STRING_VALUE", // required
|
|
169
|
+
* // },
|
|
170
|
+
* // ],
|
|
171
|
+
* // MetricName: "STRING_VALUE",
|
|
172
|
+
* // Namespace: "STRING_VALUE",
|
|
173
|
+
* // },
|
|
174
|
+
* // Stat: "STRING_VALUE", // required
|
|
175
|
+
* // Unit: "STRING_VALUE",
|
|
176
|
+
* // },
|
|
177
|
+
* // Label: "STRING_VALUE",
|
|
178
|
+
* // ReturnData: true || false,
|
|
179
|
+
* // },
|
|
180
|
+
* // ],
|
|
181
|
+
* // },
|
|
182
|
+
* // CustomizedCapacityMetricSpecification: {
|
|
183
|
+
* // MetricDataQueries: [ // required
|
|
184
|
+
* // {
|
|
185
|
+
* // Id: "STRING_VALUE", // required
|
|
186
|
+
* // Expression: "STRING_VALUE",
|
|
187
|
+
* // MetricStat: {
|
|
188
|
+
* // Metric: {
|
|
189
|
+
* // Dimensions: [
|
|
190
|
+
* // {
|
|
191
|
+
* // Name: "STRING_VALUE", // required
|
|
192
|
+
* // Value: "STRING_VALUE", // required
|
|
193
|
+
* // },
|
|
194
|
+
* // ],
|
|
195
|
+
* // MetricName: "STRING_VALUE",
|
|
196
|
+
* // Namespace: "STRING_VALUE",
|
|
197
|
+
* // },
|
|
198
|
+
* // Stat: "STRING_VALUE", // required
|
|
199
|
+
* // Unit: "STRING_VALUE",
|
|
200
|
+
* // },
|
|
201
|
+
* // Label: "STRING_VALUE",
|
|
202
|
+
* // ReturnData: true || false,
|
|
203
|
+
* // },
|
|
204
|
+
* // ],
|
|
205
|
+
* // },
|
|
206
|
+
* // },
|
|
207
|
+
* // ],
|
|
208
|
+
* // Mode: "ForecastOnly" || "ForecastAndScale",
|
|
209
|
+
* // SchedulingBufferTime: Number("int"),
|
|
210
|
+
* // MaxCapacityBreachBehavior: "HonorMaxCapacity" || "IncreaseMaxCapacity",
|
|
211
|
+
* // MaxCapacityBuffer: Number("int"),
|
|
212
|
+
* // },
|
|
118
213
|
* // Alarms: [ // Alarms
|
|
119
214
|
* // { // Alarm
|
|
120
215
|
* // AlarmName: "STRING_VALUE", // required
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApplicationAutoScalingClient";
|
|
4
|
+
import { GetPredictiveScalingForecastRequest, GetPredictiveScalingForecastResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPredictiveScalingForecastCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPredictiveScalingForecastCommandInput extends GetPredictiveScalingForecastRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPredictiveScalingForecastCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPredictiveScalingForecastCommandOutput extends GetPredictiveScalingForecastResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPredictiveScalingForecastCommand_base: {
|
|
25
|
+
new (input: GetPredictiveScalingForecastCommandInput): import("@smithy/smithy-client").CommandImpl<GetPredictiveScalingForecastCommandInput, GetPredictiveScalingForecastCommandOutput, ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetPredictiveScalingForecastCommandInput): import("@smithy/smithy-client").CommandImpl<GetPredictiveScalingForecastCommandInput, GetPredictiveScalingForecastCommandOutput, ApplicationAutoScalingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the forecast data for a predictive scaling policy.</p>
|
|
31
|
+
* <p>Load forecasts are predictions of the hourly load values using historical load data
|
|
32
|
+
* from CloudWatch and an analysis of historical trends. Capacity forecasts are represented as
|
|
33
|
+
* predicted values for the minimum capacity that is needed on an hourly basis, based on
|
|
34
|
+
* the hourly load forecast.</p>
|
|
35
|
+
* <p>A minimum of 24 hours of data is required to create the initial forecasts. However,
|
|
36
|
+
* having a full 14 days of historical data results in more accurate forecasts.</p>
|
|
37
|
+
* @example
|
|
38
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
+
* ```javascript
|
|
40
|
+
* import { ApplicationAutoScalingClient, GetPredictiveScalingForecastCommand } from "@aws-sdk/client-application-auto-scaling"; // ES Modules import
|
|
41
|
+
* // const { ApplicationAutoScalingClient, GetPredictiveScalingForecastCommand } = require("@aws-sdk/client-application-auto-scaling"); // CommonJS import
|
|
42
|
+
* const client = new ApplicationAutoScalingClient(config);
|
|
43
|
+
* const input = { // GetPredictiveScalingForecastRequest
|
|
44
|
+
* ServiceNamespace: "ecs" || "elasticmapreduce" || "ec2" || "appstream" || "dynamodb" || "rds" || "sagemaker" || "custom-resource" || "comprehend" || "lambda" || "cassandra" || "kafka" || "elasticache" || "neptune" || "workspaces", // required
|
|
45
|
+
* ResourceId: "STRING_VALUE", // required
|
|
46
|
+
* ScalableDimension: "ecs:service:DesiredCount" || "ec2:spot-fleet-request:TargetCapacity" || "elasticmapreduce:instancegroup:InstanceCount" || "appstream:fleet:DesiredCapacity" || "dynamodb:table:ReadCapacityUnits" || "dynamodb:table:WriteCapacityUnits" || "dynamodb:index:ReadCapacityUnits" || "dynamodb:index:WriteCapacityUnits" || "rds:cluster:ReadReplicaCount" || "sagemaker:variant:DesiredInstanceCount" || "custom-resource:ResourceType:Property" || "comprehend:document-classifier-endpoint:DesiredInferenceUnits" || "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" || "lambda:function:ProvisionedConcurrency" || "cassandra:table:ReadCapacityUnits" || "cassandra:table:WriteCapacityUnits" || "kafka:broker-storage:VolumeSize" || "elasticache:replication-group:NodeGroups" || "elasticache:replication-group:Replicas" || "neptune:cluster:ReadReplicaCount" || "sagemaker:variant:DesiredProvisionedConcurrency" || "sagemaker:inference-component:DesiredCopyCount" || "workspaces:workspacespool:DesiredUserSessions", // required
|
|
47
|
+
* PolicyName: "STRING_VALUE", // required
|
|
48
|
+
* StartTime: new Date("TIMESTAMP"), // required
|
|
49
|
+
* EndTime: new Date("TIMESTAMP"), // required
|
|
50
|
+
* };
|
|
51
|
+
* const command = new GetPredictiveScalingForecastCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // GetPredictiveScalingForecastResponse
|
|
54
|
+
* // LoadForecast: [ // LoadForecasts
|
|
55
|
+
* // { // LoadForecast
|
|
56
|
+
* // Timestamps: [ // PredictiveScalingForecastTimestamps // required
|
|
57
|
+
* // new Date("TIMESTAMP"),
|
|
58
|
+
* // ],
|
|
59
|
+
* // Values: [ // PredictiveScalingForecastValues // required
|
|
60
|
+
* // Number("double"),
|
|
61
|
+
* // ],
|
|
62
|
+
* // MetricSpecification: { // PredictiveScalingMetricSpecification
|
|
63
|
+
* // TargetValue: Number("double"), // required
|
|
64
|
+
* // PredefinedMetricPairSpecification: { // PredictiveScalingPredefinedMetricPairSpecification
|
|
65
|
+
* // PredefinedMetricType: "STRING_VALUE", // required
|
|
66
|
+
* // ResourceLabel: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // PredefinedScalingMetricSpecification: { // PredictiveScalingPredefinedScalingMetricSpecification
|
|
69
|
+
* // PredefinedMetricType: "STRING_VALUE", // required
|
|
70
|
+
* // ResourceLabel: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // PredefinedLoadMetricSpecification: { // PredictiveScalingPredefinedLoadMetricSpecification
|
|
73
|
+
* // PredefinedMetricType: "STRING_VALUE", // required
|
|
74
|
+
* // ResourceLabel: "STRING_VALUE",
|
|
75
|
+
* // },
|
|
76
|
+
* // CustomizedScalingMetricSpecification: { // PredictiveScalingCustomizedMetricSpecification
|
|
77
|
+
* // MetricDataQueries: [ // PredictiveScalingMetricDataQueries // required
|
|
78
|
+
* // { // PredictiveScalingMetricDataQuery
|
|
79
|
+
* // Id: "STRING_VALUE", // required
|
|
80
|
+
* // Expression: "STRING_VALUE",
|
|
81
|
+
* // MetricStat: { // PredictiveScalingMetricStat
|
|
82
|
+
* // Metric: { // PredictiveScalingMetric
|
|
83
|
+
* // Dimensions: [ // PredictiveScalingMetricDimensions
|
|
84
|
+
* // { // PredictiveScalingMetricDimension
|
|
85
|
+
* // Name: "STRING_VALUE", // required
|
|
86
|
+
* // Value: "STRING_VALUE", // required
|
|
87
|
+
* // },
|
|
88
|
+
* // ],
|
|
89
|
+
* // MetricName: "STRING_VALUE",
|
|
90
|
+
* // Namespace: "STRING_VALUE",
|
|
91
|
+
* // },
|
|
92
|
+
* // Stat: "STRING_VALUE", // required
|
|
93
|
+
* // Unit: "STRING_VALUE",
|
|
94
|
+
* // },
|
|
95
|
+
* // Label: "STRING_VALUE",
|
|
96
|
+
* // ReturnData: true || false,
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // },
|
|
100
|
+
* // CustomizedLoadMetricSpecification: {
|
|
101
|
+
* // MetricDataQueries: [ // required
|
|
102
|
+
* // {
|
|
103
|
+
* // Id: "STRING_VALUE", // required
|
|
104
|
+
* // Expression: "STRING_VALUE",
|
|
105
|
+
* // MetricStat: {
|
|
106
|
+
* // Metric: {
|
|
107
|
+
* // Dimensions: [
|
|
108
|
+
* // {
|
|
109
|
+
* // Name: "STRING_VALUE", // required
|
|
110
|
+
* // Value: "STRING_VALUE", // required
|
|
111
|
+
* // },
|
|
112
|
+
* // ],
|
|
113
|
+
* // MetricName: "STRING_VALUE",
|
|
114
|
+
* // Namespace: "STRING_VALUE",
|
|
115
|
+
* // },
|
|
116
|
+
* // Stat: "STRING_VALUE", // required
|
|
117
|
+
* // Unit: "STRING_VALUE",
|
|
118
|
+
* // },
|
|
119
|
+
* // Label: "STRING_VALUE",
|
|
120
|
+
* // ReturnData: true || false,
|
|
121
|
+
* // },
|
|
122
|
+
* // ],
|
|
123
|
+
* // },
|
|
124
|
+
* // CustomizedCapacityMetricSpecification: {
|
|
125
|
+
* // MetricDataQueries: [ // required
|
|
126
|
+
* // {
|
|
127
|
+
* // Id: "STRING_VALUE", // required
|
|
128
|
+
* // Expression: "STRING_VALUE",
|
|
129
|
+
* // MetricStat: {
|
|
130
|
+
* // Metric: {
|
|
131
|
+
* // Dimensions: [
|
|
132
|
+
* // {
|
|
133
|
+
* // Name: "STRING_VALUE", // required
|
|
134
|
+
* // Value: "STRING_VALUE", // required
|
|
135
|
+
* // },
|
|
136
|
+
* // ],
|
|
137
|
+
* // MetricName: "STRING_VALUE",
|
|
138
|
+
* // Namespace: "STRING_VALUE",
|
|
139
|
+
* // },
|
|
140
|
+
* // Stat: "STRING_VALUE", // required
|
|
141
|
+
* // Unit: "STRING_VALUE",
|
|
142
|
+
* // },
|
|
143
|
+
* // Label: "STRING_VALUE",
|
|
144
|
+
* // ReturnData: true || false,
|
|
145
|
+
* // },
|
|
146
|
+
* // ],
|
|
147
|
+
* // },
|
|
148
|
+
* // },
|
|
149
|
+
* // },
|
|
150
|
+
* // ],
|
|
151
|
+
* // CapacityForecast: { // CapacityForecast
|
|
152
|
+
* // Timestamps: [ // required
|
|
153
|
+
* // new Date("TIMESTAMP"),
|
|
154
|
+
* // ],
|
|
155
|
+
* // Values: [ // required
|
|
156
|
+
* // Number("double"),
|
|
157
|
+
* // ],
|
|
158
|
+
* // },
|
|
159
|
+
* // UpdateTime: new Date("TIMESTAMP"),
|
|
160
|
+
* // };
|
|
161
|
+
*
|
|
162
|
+
* ```
|
|
163
|
+
*
|
|
164
|
+
* @param GetPredictiveScalingForecastCommandInput - {@link GetPredictiveScalingForecastCommandInput}
|
|
165
|
+
* @returns {@link GetPredictiveScalingForecastCommandOutput}
|
|
166
|
+
* @see {@link GetPredictiveScalingForecastCommandInput} for command's `input` shape.
|
|
167
|
+
* @see {@link GetPredictiveScalingForecastCommandOutput} for command's `response` shape.
|
|
168
|
+
* @see {@link ApplicationAutoScalingClientResolvedConfig | config} for ApplicationAutoScalingClient's `config` shape.
|
|
169
|
+
*
|
|
170
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
171
|
+
* <p>The service encountered an internal error.</p>
|
|
172
|
+
*
|
|
173
|
+
* @throws {@link ValidationException} (client fault)
|
|
174
|
+
* <p>An exception was thrown for a validation issue. Review the available parameters for the
|
|
175
|
+
* API request.</p>
|
|
176
|
+
*
|
|
177
|
+
* @throws {@link ApplicationAutoScalingServiceException}
|
|
178
|
+
* <p>Base exception class for all service exceptions from ApplicationAutoScaling service.</p>
|
|
179
|
+
*
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
export declare class GetPredictiveScalingForecastCommand extends GetPredictiveScalingForecastCommand_base {
|
|
183
|
+
/** @internal type navigation helper, not in runtime. */
|
|
184
|
+
protected static __types: {
|
|
185
|
+
api: {
|
|
186
|
+
input: GetPredictiveScalingForecastRequest;
|
|
187
|
+
output: GetPredictiveScalingForecastResponse;
|
|
188
|
+
};
|
|
189
|
+
sdk: {
|
|
190
|
+
input: GetPredictiveScalingForecastCommandInput;
|
|
191
|
+
output: GetPredictiveScalingForecastCommandOutput;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
}
|
|
@@ -63,7 +63,7 @@ declare const PutScalingPolicyCommand_base: {
|
|
|
63
63
|
* ServiceNamespace: "ecs" || "elasticmapreduce" || "ec2" || "appstream" || "dynamodb" || "rds" || "sagemaker" || "custom-resource" || "comprehend" || "lambda" || "cassandra" || "kafka" || "elasticache" || "neptune" || "workspaces", // required
|
|
64
64
|
* ResourceId: "STRING_VALUE", // required
|
|
65
65
|
* ScalableDimension: "ecs:service:DesiredCount" || "ec2:spot-fleet-request:TargetCapacity" || "elasticmapreduce:instancegroup:InstanceCount" || "appstream:fleet:DesiredCapacity" || "dynamodb:table:ReadCapacityUnits" || "dynamodb:table:WriteCapacityUnits" || "dynamodb:index:ReadCapacityUnits" || "dynamodb:index:WriteCapacityUnits" || "rds:cluster:ReadReplicaCount" || "sagemaker:variant:DesiredInstanceCount" || "custom-resource:ResourceType:Property" || "comprehend:document-classifier-endpoint:DesiredInferenceUnits" || "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" || "lambda:function:ProvisionedConcurrency" || "cassandra:table:ReadCapacityUnits" || "cassandra:table:WriteCapacityUnits" || "kafka:broker-storage:VolumeSize" || "elasticache:replication-group:NodeGroups" || "elasticache:replication-group:Replicas" || "neptune:cluster:ReadReplicaCount" || "sagemaker:variant:DesiredProvisionedConcurrency" || "sagemaker:inference-component:DesiredCopyCount" || "workspaces:workspacespool:DesiredUserSessions", // required
|
|
66
|
-
* PolicyType: "StepScaling" || "TargetTrackingScaling",
|
|
66
|
+
* PolicyType: "StepScaling" || "TargetTrackingScaling" || "PredictiveScaling",
|
|
67
67
|
* StepScalingPolicyConfiguration: { // StepScalingPolicyConfiguration
|
|
68
68
|
* AdjustmentType: "ChangeInCapacity" || "PercentChangeInCapacity" || "ExactCapacity",
|
|
69
69
|
* StepAdjustments: [ // StepAdjustments
|
|
@@ -121,6 +121,101 @@ declare const PutScalingPolicyCommand_base: {
|
|
|
121
121
|
* ScaleInCooldown: Number("int"),
|
|
122
122
|
* DisableScaleIn: true || false,
|
|
123
123
|
* },
|
|
124
|
+
* PredictiveScalingPolicyConfiguration: { // PredictiveScalingPolicyConfiguration
|
|
125
|
+
* MetricSpecifications: [ // PredictiveScalingMetricSpecifications // required
|
|
126
|
+
* { // PredictiveScalingMetricSpecification
|
|
127
|
+
* TargetValue: Number("double"), // required
|
|
128
|
+
* PredefinedMetricPairSpecification: { // PredictiveScalingPredefinedMetricPairSpecification
|
|
129
|
+
* PredefinedMetricType: "STRING_VALUE", // required
|
|
130
|
+
* ResourceLabel: "STRING_VALUE",
|
|
131
|
+
* },
|
|
132
|
+
* PredefinedScalingMetricSpecification: { // PredictiveScalingPredefinedScalingMetricSpecification
|
|
133
|
+
* PredefinedMetricType: "STRING_VALUE", // required
|
|
134
|
+
* ResourceLabel: "STRING_VALUE",
|
|
135
|
+
* },
|
|
136
|
+
* PredefinedLoadMetricSpecification: { // PredictiveScalingPredefinedLoadMetricSpecification
|
|
137
|
+
* PredefinedMetricType: "STRING_VALUE", // required
|
|
138
|
+
* ResourceLabel: "STRING_VALUE",
|
|
139
|
+
* },
|
|
140
|
+
* CustomizedScalingMetricSpecification: { // PredictiveScalingCustomizedMetricSpecification
|
|
141
|
+
* MetricDataQueries: [ // PredictiveScalingMetricDataQueries // required
|
|
142
|
+
* { // PredictiveScalingMetricDataQuery
|
|
143
|
+
* Id: "STRING_VALUE", // required
|
|
144
|
+
* Expression: "STRING_VALUE",
|
|
145
|
+
* MetricStat: { // PredictiveScalingMetricStat
|
|
146
|
+
* Metric: { // PredictiveScalingMetric
|
|
147
|
+
* Dimensions: [ // PredictiveScalingMetricDimensions
|
|
148
|
+
* { // PredictiveScalingMetricDimension
|
|
149
|
+
* Name: "STRING_VALUE", // required
|
|
150
|
+
* Value: "STRING_VALUE", // required
|
|
151
|
+
* },
|
|
152
|
+
* ],
|
|
153
|
+
* MetricName: "STRING_VALUE",
|
|
154
|
+
* Namespace: "STRING_VALUE",
|
|
155
|
+
* },
|
|
156
|
+
* Stat: "STRING_VALUE", // required
|
|
157
|
+
* Unit: "STRING_VALUE",
|
|
158
|
+
* },
|
|
159
|
+
* Label: "STRING_VALUE",
|
|
160
|
+
* ReturnData: true || false,
|
|
161
|
+
* },
|
|
162
|
+
* ],
|
|
163
|
+
* },
|
|
164
|
+
* CustomizedLoadMetricSpecification: {
|
|
165
|
+
* MetricDataQueries: [ // required
|
|
166
|
+
* {
|
|
167
|
+
* Id: "STRING_VALUE", // required
|
|
168
|
+
* Expression: "STRING_VALUE",
|
|
169
|
+
* MetricStat: {
|
|
170
|
+
* Metric: {
|
|
171
|
+
* Dimensions: [
|
|
172
|
+
* {
|
|
173
|
+
* Name: "STRING_VALUE", // required
|
|
174
|
+
* Value: "STRING_VALUE", // required
|
|
175
|
+
* },
|
|
176
|
+
* ],
|
|
177
|
+
* MetricName: "STRING_VALUE",
|
|
178
|
+
* Namespace: "STRING_VALUE",
|
|
179
|
+
* },
|
|
180
|
+
* Stat: "STRING_VALUE", // required
|
|
181
|
+
* Unit: "STRING_VALUE",
|
|
182
|
+
* },
|
|
183
|
+
* Label: "STRING_VALUE",
|
|
184
|
+
* ReturnData: true || false,
|
|
185
|
+
* },
|
|
186
|
+
* ],
|
|
187
|
+
* },
|
|
188
|
+
* CustomizedCapacityMetricSpecification: {
|
|
189
|
+
* MetricDataQueries: [ // required
|
|
190
|
+
* {
|
|
191
|
+
* Id: "STRING_VALUE", // required
|
|
192
|
+
* Expression: "STRING_VALUE",
|
|
193
|
+
* MetricStat: {
|
|
194
|
+
* Metric: {
|
|
195
|
+
* Dimensions: [
|
|
196
|
+
* {
|
|
197
|
+
* Name: "STRING_VALUE", // required
|
|
198
|
+
* Value: "STRING_VALUE", // required
|
|
199
|
+
* },
|
|
200
|
+
* ],
|
|
201
|
+
* MetricName: "STRING_VALUE",
|
|
202
|
+
* Namespace: "STRING_VALUE",
|
|
203
|
+
* },
|
|
204
|
+
* Stat: "STRING_VALUE", // required
|
|
205
|
+
* Unit: "STRING_VALUE",
|
|
206
|
+
* },
|
|
207
|
+
* Label: "STRING_VALUE",
|
|
208
|
+
* ReturnData: true || false,
|
|
209
|
+
* },
|
|
210
|
+
* ],
|
|
211
|
+
* },
|
|
212
|
+
* },
|
|
213
|
+
* ],
|
|
214
|
+
* Mode: "ForecastOnly" || "ForecastAndScale",
|
|
215
|
+
* SchedulingBufferTime: Number("int"),
|
|
216
|
+
* MaxCapacityBreachBehavior: "HonorMaxCapacity" || "IncreaseMaxCapacity",
|
|
217
|
+
* MaxCapacityBuffer: Number("int"),
|
|
218
|
+
* },
|
|
124
219
|
* };
|
|
125
220
|
* const command = new PutScalingPolicyCommand(input);
|
|
126
221
|
* const response = await client.send(command);
|
|
@@ -5,6 +5,7 @@ export * from "./DescribeScalableTargetsCommand";
|
|
|
5
5
|
export * from "./DescribeScalingActivitiesCommand";
|
|
6
6
|
export * from "./DescribeScalingPoliciesCommand";
|
|
7
7
|
export * from "./DescribeScheduledActionsCommand";
|
|
8
|
+
export * from "./GetPredictiveScalingForecastCommand";
|
|
8
9
|
export * from "./ListTagsForResourceCommand";
|
|
9
10
|
export * from "./PutScalingPolicyCommand";
|
|
10
11
|
export * from "./PutScheduledActionCommand";
|