@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
|
@@ -1187,6 +1187,13 @@ export interface ScalableTarget {
|
|
|
1187
1187
|
* @public
|
|
1188
1188
|
*/
|
|
1189
1189
|
MaxCapacity: number | undefined;
|
|
1190
|
+
/**
|
|
1191
|
+
* <p>
|
|
1192
|
+
* The predicted capacity of the scalable target.
|
|
1193
|
+
* </p>
|
|
1194
|
+
* @public
|
|
1195
|
+
*/
|
|
1196
|
+
PredictedCapacity?: number | undefined;
|
|
1190
1197
|
/**
|
|
1191
1198
|
* <p>The ARN of an IAM role that allows Application Auto Scaling to modify the scalable target on your
|
|
1192
1199
|
* behalf.</p>
|
|
@@ -1993,6 +2000,7 @@ export interface DescribeScalingPoliciesRequest {
|
|
|
1993
2000
|
* @enum
|
|
1994
2001
|
*/
|
|
1995
2002
|
export declare const PolicyType: {
|
|
2003
|
+
readonly PredictiveScaling: "PredictiveScaling";
|
|
1996
2004
|
readonly StepScaling: "StepScaling";
|
|
1997
2005
|
readonly TargetTrackingScaling: "TargetTrackingScaling";
|
|
1998
2006
|
};
|
|
@@ -2000,6 +2008,391 @@ export declare const PolicyType: {
|
|
|
2000
2008
|
* @public
|
|
2001
2009
|
*/
|
|
2002
2010
|
export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
|
|
2011
|
+
/**
|
|
2012
|
+
* @public
|
|
2013
|
+
* @enum
|
|
2014
|
+
*/
|
|
2015
|
+
export declare const PredictiveScalingMaxCapacityBreachBehavior: {
|
|
2016
|
+
readonly HonorMaxCapacity: "HonorMaxCapacity";
|
|
2017
|
+
readonly IncreaseMaxCapacity: "IncreaseMaxCapacity";
|
|
2018
|
+
};
|
|
2019
|
+
/**
|
|
2020
|
+
* @public
|
|
2021
|
+
*/
|
|
2022
|
+
export type PredictiveScalingMaxCapacityBreachBehavior = (typeof PredictiveScalingMaxCapacityBreachBehavior)[keyof typeof PredictiveScalingMaxCapacityBreachBehavior];
|
|
2023
|
+
/**
|
|
2024
|
+
* <p>
|
|
2025
|
+
* Describes the dimension of a metric.
|
|
2026
|
+
* </p>
|
|
2027
|
+
* @public
|
|
2028
|
+
*/
|
|
2029
|
+
export interface PredictiveScalingMetricDimension {
|
|
2030
|
+
/**
|
|
2031
|
+
* <p>
|
|
2032
|
+
* The name of the dimension.
|
|
2033
|
+
* </p>
|
|
2034
|
+
* @public
|
|
2035
|
+
*/
|
|
2036
|
+
Name: string | undefined;
|
|
2037
|
+
/**
|
|
2038
|
+
* <p>
|
|
2039
|
+
* The value of the dimension.
|
|
2040
|
+
* </p>
|
|
2041
|
+
* @public
|
|
2042
|
+
*/
|
|
2043
|
+
Value: string | undefined;
|
|
2044
|
+
}
|
|
2045
|
+
/**
|
|
2046
|
+
* <p>
|
|
2047
|
+
* Describes the scaling metric.
|
|
2048
|
+
* </p>
|
|
2049
|
+
* @public
|
|
2050
|
+
*/
|
|
2051
|
+
export interface PredictiveScalingMetric {
|
|
2052
|
+
/**
|
|
2053
|
+
* <p>
|
|
2054
|
+
* Describes the dimensions of the metric.
|
|
2055
|
+
* </p>
|
|
2056
|
+
* @public
|
|
2057
|
+
*/
|
|
2058
|
+
Dimensions?: PredictiveScalingMetricDimension[] | undefined;
|
|
2059
|
+
/**
|
|
2060
|
+
* <p>
|
|
2061
|
+
* The name of the metric.
|
|
2062
|
+
* </p>
|
|
2063
|
+
* @public
|
|
2064
|
+
*/
|
|
2065
|
+
MetricName?: string | undefined;
|
|
2066
|
+
/**
|
|
2067
|
+
* <p>
|
|
2068
|
+
* The namespace of the metric.
|
|
2069
|
+
* </p>
|
|
2070
|
+
* @public
|
|
2071
|
+
*/
|
|
2072
|
+
Namespace?: string | undefined;
|
|
2073
|
+
}
|
|
2074
|
+
/**
|
|
2075
|
+
* <p>
|
|
2076
|
+
* This structure defines the CloudWatch metric to return, along with the statistic and unit.
|
|
2077
|
+
* </p>
|
|
2078
|
+
* @public
|
|
2079
|
+
*/
|
|
2080
|
+
export interface PredictiveScalingMetricStat {
|
|
2081
|
+
/**
|
|
2082
|
+
* <p>
|
|
2083
|
+
* The CloudWatch metric to return, including the metric name, namespace, and dimensions. To
|
|
2084
|
+
* get the exact metric name, namespace, and dimensions, inspect the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html">Metric</a> object that is returned by a call to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.
|
|
2085
|
+
* </p>
|
|
2086
|
+
* @public
|
|
2087
|
+
*/
|
|
2088
|
+
Metric: PredictiveScalingMetric | undefined;
|
|
2089
|
+
/**
|
|
2090
|
+
* <p>
|
|
2091
|
+
* The statistic to return. It can include any CloudWatch statistic or extended statistic. For
|
|
2092
|
+
* a list of valid values, see the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic">Statistics</a> in the <i>Amazon CloudWatch User Guide</i>.
|
|
2093
|
+
* </p>
|
|
2094
|
+
* <p>The most commonly used metrics for predictive scaling are <code>Average</code> and
|
|
2095
|
+
* <code>Sum</code>.</p>
|
|
2096
|
+
* @public
|
|
2097
|
+
*/
|
|
2098
|
+
Stat: string | undefined;
|
|
2099
|
+
/**
|
|
2100
|
+
* <p>
|
|
2101
|
+
* The unit to use for the returned data points. For a complete list of the units that
|
|
2102
|
+
* CloudWatch supports, see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum</a>
|
|
2103
|
+
* data type in the <i>Amazon CloudWatch API Reference</i>.
|
|
2104
|
+
* </p>
|
|
2105
|
+
* @public
|
|
2106
|
+
*/
|
|
2107
|
+
Unit?: string | undefined;
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* <p>
|
|
2111
|
+
* The metric data to return. Also defines whether this call is returning data for one
|
|
2112
|
+
* metric only, or whether it is performing a math expression on the values of returned
|
|
2113
|
+
* metric statistics to create a new time series. A time series is a series of data points,
|
|
2114
|
+
* each of which is associated with a timestamp.
|
|
2115
|
+
* </p>
|
|
2116
|
+
* @public
|
|
2117
|
+
*/
|
|
2118
|
+
export interface PredictiveScalingMetricDataQuery {
|
|
2119
|
+
/**
|
|
2120
|
+
* <p>
|
|
2121
|
+
* A short name that identifies the object's results in the response. This name must be
|
|
2122
|
+
* unique among all <code>MetricDataQuery</code> objects specified for a single scaling
|
|
2123
|
+
* policy. If you are performing math expressions on this set of data, this name represents
|
|
2124
|
+
* that data and can serve as a variable in the mathematical expression. The valid
|
|
2125
|
+
* characters are letters, numbers, and underscores. The first character must be a
|
|
2126
|
+
* lowercase letter.
|
|
2127
|
+
* </p>
|
|
2128
|
+
* @public
|
|
2129
|
+
*/
|
|
2130
|
+
Id: string | undefined;
|
|
2131
|
+
/**
|
|
2132
|
+
* <p>
|
|
2133
|
+
* The math expression to perform on the returned data, if this object is performing a
|
|
2134
|
+
* math expression. This expression can use the <code>Id</code> of the other metrics to
|
|
2135
|
+
* refer to those metrics, and can also use the <code>Id</code> of other expressions to use
|
|
2136
|
+
* the result of those expressions.
|
|
2137
|
+
* </p>
|
|
2138
|
+
* <p>Conditional: Within each <code>MetricDataQuery</code> object, you must specify either
|
|
2139
|
+
* <code>Expression</code> or <code>MetricStat</code>, but not both.</p>
|
|
2140
|
+
* @public
|
|
2141
|
+
*/
|
|
2142
|
+
Expression?: string | undefined;
|
|
2143
|
+
/**
|
|
2144
|
+
* <p>
|
|
2145
|
+
* Information about the metric data to return.
|
|
2146
|
+
* </p>
|
|
2147
|
+
* <p>Conditional: Within each <code>MetricDataQuery</code> object, you must specify either
|
|
2148
|
+
* <code>Expression</code> or <code>MetricStat</code>, but not both.</p>
|
|
2149
|
+
* @public
|
|
2150
|
+
*/
|
|
2151
|
+
MetricStat?: PredictiveScalingMetricStat | undefined;
|
|
2152
|
+
/**
|
|
2153
|
+
* <p>
|
|
2154
|
+
* A human-readable label for this metric or expression. This is especially useful if
|
|
2155
|
+
* this is a math expression, so that you know what the value represents.
|
|
2156
|
+
* </p>
|
|
2157
|
+
* @public
|
|
2158
|
+
*/
|
|
2159
|
+
Label?: string | undefined;
|
|
2160
|
+
/**
|
|
2161
|
+
* <p>
|
|
2162
|
+
* Indicates whether to return the timestamps and raw data values of this metric.
|
|
2163
|
+
* </p>
|
|
2164
|
+
* <p>If you use any math expressions, specify <code>true</code> for this value for only the
|
|
2165
|
+
* final math expression that the metric specification is based on. You must specify
|
|
2166
|
+
* <code>false</code> for <code>ReturnData</code> for all the other metrics and
|
|
2167
|
+
* expressions used in the metric specification.</p>
|
|
2168
|
+
* <p>If you are only retrieving metrics and not performing any math expressions, do not
|
|
2169
|
+
* specify anything for <code>ReturnData</code>. This sets it to its default
|
|
2170
|
+
* (<code>true</code>).</p>
|
|
2171
|
+
* @public
|
|
2172
|
+
*/
|
|
2173
|
+
ReturnData?: boolean | undefined;
|
|
2174
|
+
}
|
|
2175
|
+
/**
|
|
2176
|
+
* <p>
|
|
2177
|
+
* Represents a CloudWatch metric of your choosing for a predictive scaling policy.
|
|
2178
|
+
* </p>
|
|
2179
|
+
* @public
|
|
2180
|
+
*/
|
|
2181
|
+
export interface PredictiveScalingCustomizedMetricSpecification {
|
|
2182
|
+
/**
|
|
2183
|
+
* <p>
|
|
2184
|
+
* One or more metric data queries to provide data points for a metric specification.
|
|
2185
|
+
* </p>
|
|
2186
|
+
* @public
|
|
2187
|
+
*/
|
|
2188
|
+
MetricDataQueries: PredictiveScalingMetricDataQuery[] | undefined;
|
|
2189
|
+
}
|
|
2190
|
+
/**
|
|
2191
|
+
* <p>
|
|
2192
|
+
* Describes a load metric for a predictive scaling policy.
|
|
2193
|
+
* </p>
|
|
2194
|
+
* <p>When returned in the output of <code>DescribePolicies</code>, it indicates that a
|
|
2195
|
+
* predictive scaling policy uses individually specified load and scaling metrics instead
|
|
2196
|
+
* of a metric pair.</p>
|
|
2197
|
+
* @public
|
|
2198
|
+
*/
|
|
2199
|
+
export interface PredictiveScalingPredefinedLoadMetricSpecification {
|
|
2200
|
+
/**
|
|
2201
|
+
* <p>
|
|
2202
|
+
* The metric type.
|
|
2203
|
+
* </p>
|
|
2204
|
+
* @public
|
|
2205
|
+
*/
|
|
2206
|
+
PredefinedMetricType: string | undefined;
|
|
2207
|
+
/**
|
|
2208
|
+
* <p>
|
|
2209
|
+
* A label that uniquely identifies a target group.
|
|
2210
|
+
* </p>
|
|
2211
|
+
* @public
|
|
2212
|
+
*/
|
|
2213
|
+
ResourceLabel?: string | undefined;
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* <p>
|
|
2217
|
+
* Represents a metric pair for a predictive scaling policy.
|
|
2218
|
+
* </p>
|
|
2219
|
+
* @public
|
|
2220
|
+
*/
|
|
2221
|
+
export interface PredictiveScalingPredefinedMetricPairSpecification {
|
|
2222
|
+
/**
|
|
2223
|
+
* <p>
|
|
2224
|
+
* Indicates which metrics to use. There are two different types of metrics for each
|
|
2225
|
+
* metric type: one is a load metric and one is a scaling metric.
|
|
2226
|
+
* </p>
|
|
2227
|
+
* @public
|
|
2228
|
+
*/
|
|
2229
|
+
PredefinedMetricType: string | undefined;
|
|
2230
|
+
/**
|
|
2231
|
+
* <p>
|
|
2232
|
+
* A label that uniquely identifies a specific target group from which to determine
|
|
2233
|
+
* the total and average request count.
|
|
2234
|
+
* </p>
|
|
2235
|
+
* @public
|
|
2236
|
+
*/
|
|
2237
|
+
ResourceLabel?: string | undefined;
|
|
2238
|
+
}
|
|
2239
|
+
/**
|
|
2240
|
+
* <p>
|
|
2241
|
+
* Describes a scaling metric for a predictive scaling policy.
|
|
2242
|
+
* </p>
|
|
2243
|
+
* <p>When returned in the output of <code>DescribePolicies</code>, it indicates that a
|
|
2244
|
+
* predictive scaling policy uses individually specified load and scaling metrics instead
|
|
2245
|
+
* of a metric pair.</p>
|
|
2246
|
+
* @public
|
|
2247
|
+
*/
|
|
2248
|
+
export interface PredictiveScalingPredefinedScalingMetricSpecification {
|
|
2249
|
+
/**
|
|
2250
|
+
* <p>
|
|
2251
|
+
* The metric type.
|
|
2252
|
+
* </p>
|
|
2253
|
+
* @public
|
|
2254
|
+
*/
|
|
2255
|
+
PredefinedMetricType: string | undefined;
|
|
2256
|
+
/**
|
|
2257
|
+
* <p>
|
|
2258
|
+
* A label that uniquely identifies a specific target group from which to determine
|
|
2259
|
+
* the average request count.
|
|
2260
|
+
* </p>
|
|
2261
|
+
* @public
|
|
2262
|
+
*/
|
|
2263
|
+
ResourceLabel?: string | undefined;
|
|
2264
|
+
}
|
|
2265
|
+
/**
|
|
2266
|
+
* <p>
|
|
2267
|
+
* This structure specifies the metrics and target utilization settings for a predictive
|
|
2268
|
+
* scaling policy.
|
|
2269
|
+
* </p>
|
|
2270
|
+
* <p>You must specify either a metric pair, or a load metric and a scaling metric
|
|
2271
|
+
* individually. Specifying a metric pair instead of individual metrics provides a simpler
|
|
2272
|
+
* way to configure metrics for a scaling policy. You choose the metric pair, and the
|
|
2273
|
+
* policy automatically knows the correct sum and average statistics to use for the load
|
|
2274
|
+
* metric and the scaling metric.</p>
|
|
2275
|
+
* @public
|
|
2276
|
+
*/
|
|
2277
|
+
export interface PredictiveScalingMetricSpecification {
|
|
2278
|
+
/**
|
|
2279
|
+
* <p>
|
|
2280
|
+
* Specifies the target utilization.
|
|
2281
|
+
* </p>
|
|
2282
|
+
* @public
|
|
2283
|
+
*/
|
|
2284
|
+
TargetValue: number | undefined;
|
|
2285
|
+
/**
|
|
2286
|
+
* <p>
|
|
2287
|
+
* The predefined metric pair specification that determines the appropriate scaling metric and load metric to use.
|
|
2288
|
+
* </p>
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
PredefinedMetricPairSpecification?: PredictiveScalingPredefinedMetricPairSpecification | undefined;
|
|
2292
|
+
/**
|
|
2293
|
+
* <p>
|
|
2294
|
+
* The predefined scaling metric specification.
|
|
2295
|
+
* </p>
|
|
2296
|
+
* @public
|
|
2297
|
+
*/
|
|
2298
|
+
PredefinedScalingMetricSpecification?: PredictiveScalingPredefinedScalingMetricSpecification | undefined;
|
|
2299
|
+
/**
|
|
2300
|
+
* <p>
|
|
2301
|
+
* The predefined load metric specification.
|
|
2302
|
+
* </p>
|
|
2303
|
+
* @public
|
|
2304
|
+
*/
|
|
2305
|
+
PredefinedLoadMetricSpecification?: PredictiveScalingPredefinedLoadMetricSpecification | undefined;
|
|
2306
|
+
/**
|
|
2307
|
+
* <p>
|
|
2308
|
+
* The customized scaling metric specification.
|
|
2309
|
+
* </p>
|
|
2310
|
+
* @public
|
|
2311
|
+
*/
|
|
2312
|
+
CustomizedScalingMetricSpecification?: PredictiveScalingCustomizedMetricSpecification | undefined;
|
|
2313
|
+
/**
|
|
2314
|
+
* <p>
|
|
2315
|
+
* The customized load metric specification.
|
|
2316
|
+
* </p>
|
|
2317
|
+
* @public
|
|
2318
|
+
*/
|
|
2319
|
+
CustomizedLoadMetricSpecification?: PredictiveScalingCustomizedMetricSpecification | undefined;
|
|
2320
|
+
/**
|
|
2321
|
+
* <p>
|
|
2322
|
+
* The customized capacity metric specification.
|
|
2323
|
+
* </p>
|
|
2324
|
+
* @public
|
|
2325
|
+
*/
|
|
2326
|
+
CustomizedCapacityMetricSpecification?: PredictiveScalingCustomizedMetricSpecification | undefined;
|
|
2327
|
+
}
|
|
2328
|
+
/**
|
|
2329
|
+
* @public
|
|
2330
|
+
* @enum
|
|
2331
|
+
*/
|
|
2332
|
+
export declare const PredictiveScalingMode: {
|
|
2333
|
+
readonly ForecastAndScale: "ForecastAndScale";
|
|
2334
|
+
readonly ForecastOnly: "ForecastOnly";
|
|
2335
|
+
};
|
|
2336
|
+
/**
|
|
2337
|
+
* @public
|
|
2338
|
+
*/
|
|
2339
|
+
export type PredictiveScalingMode = (typeof PredictiveScalingMode)[keyof typeof PredictiveScalingMode];
|
|
2340
|
+
/**
|
|
2341
|
+
* <p>
|
|
2342
|
+
* Represents a predictive scaling policy configuration.
|
|
2343
|
+
* </p>
|
|
2344
|
+
* @public
|
|
2345
|
+
*/
|
|
2346
|
+
export interface PredictiveScalingPolicyConfiguration {
|
|
2347
|
+
/**
|
|
2348
|
+
* <p>
|
|
2349
|
+
* This structure includes the metrics and target utilization to use for predictive scaling.
|
|
2350
|
+
* </p>
|
|
2351
|
+
* <p>This is an array, but we currently only support a single metric specification. That
|
|
2352
|
+
* is, you can specify a target value and a single metric pair, or a target value and one
|
|
2353
|
+
* scaling metric and one load metric.</p>
|
|
2354
|
+
* @public
|
|
2355
|
+
*/
|
|
2356
|
+
MetricSpecifications: PredictiveScalingMetricSpecification[] | undefined;
|
|
2357
|
+
/**
|
|
2358
|
+
* <p>
|
|
2359
|
+
* The predictive scaling mode. Defaults to <code>ForecastOnly</code> if not specified.
|
|
2360
|
+
* </p>
|
|
2361
|
+
* @public
|
|
2362
|
+
*/
|
|
2363
|
+
Mode?: PredictiveScalingMode | undefined;
|
|
2364
|
+
/**
|
|
2365
|
+
* <p>
|
|
2366
|
+
* The amount of time, in seconds, that the start time can be advanced.
|
|
2367
|
+
* </p>
|
|
2368
|
+
* <p>The value must be less than the forecast interval duration of 3600 seconds (60
|
|
2369
|
+
* minutes). Defaults to 300 seconds if not specified. </p>
|
|
2370
|
+
* @public
|
|
2371
|
+
*/
|
|
2372
|
+
SchedulingBufferTime?: number | undefined;
|
|
2373
|
+
/**
|
|
2374
|
+
* <p>
|
|
2375
|
+
* Defines the behavior that should be applied if the forecast capacity approaches or
|
|
2376
|
+
* exceeds the maximum capacity. Defaults to
|
|
2377
|
+
* <code>HonorMaxCapacity</code> if not specified.
|
|
2378
|
+
* </p>
|
|
2379
|
+
* @public
|
|
2380
|
+
*/
|
|
2381
|
+
MaxCapacityBreachBehavior?: PredictiveScalingMaxCapacityBreachBehavior | undefined;
|
|
2382
|
+
/**
|
|
2383
|
+
* <p>
|
|
2384
|
+
* The size of the capacity buffer to use when the forecast capacity is close to or
|
|
2385
|
+
* exceeds the maximum capacity. The value is specified as a percentage relative to the
|
|
2386
|
+
* forecast capacity. For example, if the buffer is 10, this means a 10 percent buffer,
|
|
2387
|
+
* such that if the forecast capacity is 50, and the maximum capacity is 40, then the
|
|
2388
|
+
* effective maximum capacity is 55.
|
|
2389
|
+
* </p>
|
|
2390
|
+
* <p>Required if the <code>MaxCapacityBreachBehavior</code> property is set to
|
|
2391
|
+
* <code>IncreaseMaxCapacity</code>, and cannot be used otherwise.</p>
|
|
2392
|
+
* @public
|
|
2393
|
+
*/
|
|
2394
|
+
MaxCapacityBuffer?: number | undefined;
|
|
2395
|
+
}
|
|
2003
2396
|
/**
|
|
2004
2397
|
* @public
|
|
2005
2398
|
* @enum
|
|
@@ -2394,7 +2787,7 @@ export type MetricType = (typeof MetricType)[keyof typeof MetricType];
|
|
|
2394
2787
|
/**
|
|
2395
2788
|
* <p>Represents a predefined metric for a target tracking scaling policy to use with
|
|
2396
2789
|
* Application Auto Scaling.</p>
|
|
2397
|
-
* <p>For more information, <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/
|
|
2790
|
+
* <p>For more information, <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/monitoring-cloudwatch.html#predefined-metrics">Predefined metrics for target tracking scaling policies</a> in the
|
|
2398
2791
|
* <i>Application Auto Scaling User Guide</i>.</p>
|
|
2399
2792
|
* @public
|
|
2400
2793
|
*/
|
|
@@ -2713,6 +3106,13 @@ export interface ScalingPolicy {
|
|
|
2713
3106
|
* @public
|
|
2714
3107
|
*/
|
|
2715
3108
|
TargetTrackingScalingPolicyConfiguration?: TargetTrackingScalingPolicyConfiguration | undefined;
|
|
3109
|
+
/**
|
|
3110
|
+
* <p>
|
|
3111
|
+
* The predictive scaling policy configuration.
|
|
3112
|
+
* </p>
|
|
3113
|
+
* @public
|
|
3114
|
+
*/
|
|
3115
|
+
PredictiveScalingPolicyConfiguration?: PredictiveScalingPolicyConfiguration | undefined;
|
|
2716
3116
|
/**
|
|
2717
3117
|
* <p>The CloudWatch alarms associated with the scaling policy.</p>
|
|
2718
3118
|
* @public
|
|
@@ -3269,6 +3669,135 @@ export interface DescribeScheduledActionsResponse {
|
|
|
3269
3669
|
*/
|
|
3270
3670
|
NextToken?: string | undefined;
|
|
3271
3671
|
}
|
|
3672
|
+
/**
|
|
3673
|
+
* @public
|
|
3674
|
+
*/
|
|
3675
|
+
export interface GetPredictiveScalingForecastRequest {
|
|
3676
|
+
/**
|
|
3677
|
+
* <p>
|
|
3678
|
+
* The namespace of the Amazon Web Services service that provides the resource. For a resource provided
|
|
3679
|
+
* by your own application or service, use <code>custom-resource</code> instead.
|
|
3680
|
+
* </p>
|
|
3681
|
+
* @public
|
|
3682
|
+
*/
|
|
3683
|
+
ServiceNamespace: ServiceNamespace | undefined;
|
|
3684
|
+
/**
|
|
3685
|
+
* <p>
|
|
3686
|
+
* The identifier of the resource.
|
|
3687
|
+
* </p>
|
|
3688
|
+
* @public
|
|
3689
|
+
*/
|
|
3690
|
+
ResourceId: string | undefined;
|
|
3691
|
+
/**
|
|
3692
|
+
* <p>
|
|
3693
|
+
* The scalable dimension.
|
|
3694
|
+
* </p>
|
|
3695
|
+
* @public
|
|
3696
|
+
*/
|
|
3697
|
+
ScalableDimension: ScalableDimension | undefined;
|
|
3698
|
+
/**
|
|
3699
|
+
* <p>The name of the policy.</p>
|
|
3700
|
+
* @public
|
|
3701
|
+
*/
|
|
3702
|
+
PolicyName: string | undefined;
|
|
3703
|
+
/**
|
|
3704
|
+
* <p>
|
|
3705
|
+
* The inclusive start time of the time range for the forecast data to get. At most, the
|
|
3706
|
+
* date and time can be one year before the current date and time
|
|
3707
|
+
* </p>
|
|
3708
|
+
* @public
|
|
3709
|
+
*/
|
|
3710
|
+
StartTime: Date | undefined;
|
|
3711
|
+
/**
|
|
3712
|
+
* <p>
|
|
3713
|
+
* The exclusive end time of the time range for the forecast data to get. The maximum
|
|
3714
|
+
* time duration between the start and end time is 30 days.
|
|
3715
|
+
* </p>
|
|
3716
|
+
* @public
|
|
3717
|
+
*/
|
|
3718
|
+
EndTime: Date | undefined;
|
|
3719
|
+
}
|
|
3720
|
+
/**
|
|
3721
|
+
* <p>
|
|
3722
|
+
* A <code>GetPredictiveScalingForecast</code> call returns the capacity forecast for a
|
|
3723
|
+
* predictive scaling policy. This structure includes the data points for that capacity
|
|
3724
|
+
* forecast, along with the timestamps of those data points.
|
|
3725
|
+
* </p>
|
|
3726
|
+
* @public
|
|
3727
|
+
*/
|
|
3728
|
+
export interface CapacityForecast {
|
|
3729
|
+
/**
|
|
3730
|
+
* <p>
|
|
3731
|
+
* The timestamps for the data points, in UTC format.
|
|
3732
|
+
* </p>
|
|
3733
|
+
* @public
|
|
3734
|
+
*/
|
|
3735
|
+
Timestamps: Date[] | undefined;
|
|
3736
|
+
/**
|
|
3737
|
+
* <p>
|
|
3738
|
+
* The values of the data points.
|
|
3739
|
+
* </p>
|
|
3740
|
+
* @public
|
|
3741
|
+
*/
|
|
3742
|
+
Values: number[] | undefined;
|
|
3743
|
+
}
|
|
3744
|
+
/**
|
|
3745
|
+
* <p>
|
|
3746
|
+
* A <code>GetPredictiveScalingForecast</code> call returns the load forecast for a
|
|
3747
|
+
* predictive scaling policy. This structure includes the data points for that load
|
|
3748
|
+
* forecast, along with the timestamps of those data points and the metric specification.
|
|
3749
|
+
* </p>
|
|
3750
|
+
* @public
|
|
3751
|
+
*/
|
|
3752
|
+
export interface LoadForecast {
|
|
3753
|
+
/**
|
|
3754
|
+
* <p>
|
|
3755
|
+
* The timestamps for the data points, in UTC format.
|
|
3756
|
+
* </p>
|
|
3757
|
+
* @public
|
|
3758
|
+
*/
|
|
3759
|
+
Timestamps: Date[] | undefined;
|
|
3760
|
+
/**
|
|
3761
|
+
* <p>
|
|
3762
|
+
* The values of the data points.
|
|
3763
|
+
* </p>
|
|
3764
|
+
* @public
|
|
3765
|
+
*/
|
|
3766
|
+
Values: number[] | undefined;
|
|
3767
|
+
/**
|
|
3768
|
+
* <p>
|
|
3769
|
+
* The metric specification for the load forecast.
|
|
3770
|
+
* </p>
|
|
3771
|
+
* @public
|
|
3772
|
+
*/
|
|
3773
|
+
MetricSpecification: PredictiveScalingMetricSpecification | undefined;
|
|
3774
|
+
}
|
|
3775
|
+
/**
|
|
3776
|
+
* @public
|
|
3777
|
+
*/
|
|
3778
|
+
export interface GetPredictiveScalingForecastResponse {
|
|
3779
|
+
/**
|
|
3780
|
+
* <p>
|
|
3781
|
+
* The load forecast.
|
|
3782
|
+
* </p>
|
|
3783
|
+
* @public
|
|
3784
|
+
*/
|
|
3785
|
+
LoadForecast?: LoadForecast[] | undefined;
|
|
3786
|
+
/**
|
|
3787
|
+
* <p>
|
|
3788
|
+
* The capacity forecast.
|
|
3789
|
+
* </p>
|
|
3790
|
+
* @public
|
|
3791
|
+
*/
|
|
3792
|
+
CapacityForecast?: CapacityForecast | undefined;
|
|
3793
|
+
/**
|
|
3794
|
+
* <p>
|
|
3795
|
+
* The time the forecast was made.
|
|
3796
|
+
* </p>
|
|
3797
|
+
* @public
|
|
3798
|
+
*/
|
|
3799
|
+
UpdateTime?: Date | undefined;
|
|
3800
|
+
}
|
|
3272
3801
|
/**
|
|
3273
3802
|
* @public
|
|
3274
3803
|
*/
|
|
@@ -3551,6 +4080,13 @@ export interface PutScalingPolicyRequest {
|
|
|
3551
4080
|
* @public
|
|
3552
4081
|
*/
|
|
3553
4082
|
TargetTrackingScalingPolicyConfiguration?: TargetTrackingScalingPolicyConfiguration | undefined;
|
|
4083
|
+
/**
|
|
4084
|
+
* <p>
|
|
4085
|
+
* The configuration of the predictive scaling policy.
|
|
4086
|
+
* </p>
|
|
4087
|
+
* @public
|
|
4088
|
+
*/
|
|
4089
|
+
PredictiveScalingPolicyConfiguration?: PredictiveScalingPolicyConfiguration | undefined;
|
|
3554
4090
|
}
|
|
3555
4091
|
/**
|
|
3556
4092
|
* @public
|
|
@@ -7,6 +7,7 @@ import { DescribeScalableTargetsCommandInput, DescribeScalableTargetsCommandOutp
|
|
|
7
7
|
import { DescribeScalingActivitiesCommandInput, DescribeScalingActivitiesCommandOutput } from "../commands/DescribeScalingActivitiesCommand";
|
|
8
8
|
import { DescribeScalingPoliciesCommandInput, DescribeScalingPoliciesCommandOutput } from "../commands/DescribeScalingPoliciesCommand";
|
|
9
9
|
import { DescribeScheduledActionsCommandInput, DescribeScheduledActionsCommandOutput } from "../commands/DescribeScheduledActionsCommand";
|
|
10
|
+
import { GetPredictiveScalingForecastCommandInput, GetPredictiveScalingForecastCommandOutput } from "../commands/GetPredictiveScalingForecastCommand";
|
|
10
11
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
11
12
|
import { PutScalingPolicyCommandInput, PutScalingPolicyCommandOutput } from "../commands/PutScalingPolicyCommand";
|
|
12
13
|
import { PutScheduledActionCommandInput, PutScheduledActionCommandOutput } from "../commands/PutScheduledActionCommand";
|
|
@@ -41,6 +42,10 @@ export declare const se_DescribeScalingPoliciesCommand: (input: DescribeScalingP
|
|
|
41
42
|
* serializeAws_json1_1DescribeScheduledActionsCommand
|
|
42
43
|
*/
|
|
43
44
|
export declare const se_DescribeScheduledActionsCommand: (input: DescribeScheduledActionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
+
/**
|
|
46
|
+
* serializeAws_json1_1GetPredictiveScalingForecastCommand
|
|
47
|
+
*/
|
|
48
|
+
export declare const se_GetPredictiveScalingForecastCommand: (input: GetPredictiveScalingForecastCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
44
49
|
/**
|
|
45
50
|
* serializeAws_json1_1ListTagsForResourceCommand
|
|
46
51
|
*/
|
|
@@ -93,6 +98,10 @@ export declare const de_DescribeScalingPoliciesCommand: (output: __HttpResponse,
|
|
|
93
98
|
* deserializeAws_json1_1DescribeScheduledActionsCommand
|
|
94
99
|
*/
|
|
95
100
|
export declare const de_DescribeScheduledActionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeScheduledActionsCommandOutput>;
|
|
101
|
+
/**
|
|
102
|
+
* deserializeAws_json1_1GetPredictiveScalingForecastCommand
|
|
103
|
+
*/
|
|
104
|
+
export declare const de_GetPredictiveScalingForecastCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPredictiveScalingForecastCommandOutput>;
|
|
96
105
|
/**
|
|
97
106
|
* deserializeAws_json1_1ListTagsForResourceCommand
|
|
98
107
|
*/
|
|
@@ -28,6 +28,10 @@ import {
|
|
|
28
28
|
DescribeScheduledActionsCommandInput,
|
|
29
29
|
DescribeScheduledActionsCommandOutput,
|
|
30
30
|
} from "./commands/DescribeScheduledActionsCommand";
|
|
31
|
+
import {
|
|
32
|
+
GetPredictiveScalingForecastCommandInput,
|
|
33
|
+
GetPredictiveScalingForecastCommandOutput,
|
|
34
|
+
} from "./commands/GetPredictiveScalingForecastCommand";
|
|
31
35
|
import {
|
|
32
36
|
ListTagsForResourceCommandInput,
|
|
33
37
|
ListTagsForResourceCommandOutput,
|
|
@@ -144,6 +148,19 @@ export interface ApplicationAutoScaling {
|
|
|
144
148
|
options: __HttpHandlerOptions,
|
|
145
149
|
cb: (err: any, data?: DescribeScheduledActionsCommandOutput) => void
|
|
146
150
|
): void;
|
|
151
|
+
getPredictiveScalingForecast(
|
|
152
|
+
args: GetPredictiveScalingForecastCommandInput,
|
|
153
|
+
options?: __HttpHandlerOptions
|
|
154
|
+
): Promise<GetPredictiveScalingForecastCommandOutput>;
|
|
155
|
+
getPredictiveScalingForecast(
|
|
156
|
+
args: GetPredictiveScalingForecastCommandInput,
|
|
157
|
+
cb: (err: any, data?: GetPredictiveScalingForecastCommandOutput) => void
|
|
158
|
+
): void;
|
|
159
|
+
getPredictiveScalingForecast(
|
|
160
|
+
args: GetPredictiveScalingForecastCommandInput,
|
|
161
|
+
options: __HttpHandlerOptions,
|
|
162
|
+
cb: (err: any, data?: GetPredictiveScalingForecastCommandOutput) => void
|
|
163
|
+
): void;
|
|
147
164
|
listTagsForResource(
|
|
148
165
|
args: ListTagsForResourceCommandInput,
|
|
149
166
|
options?: __HttpHandlerOptions
|
|
@@ -73,6 +73,10 @@ import {
|
|
|
73
73
|
DescribeScheduledActionsCommandInput,
|
|
74
74
|
DescribeScheduledActionsCommandOutput,
|
|
75
75
|
} from "./commands/DescribeScheduledActionsCommand";
|
|
76
|
+
import {
|
|
77
|
+
GetPredictiveScalingForecastCommandInput,
|
|
78
|
+
GetPredictiveScalingForecastCommandOutput,
|
|
79
|
+
} from "./commands/GetPredictiveScalingForecastCommand";
|
|
76
80
|
import {
|
|
77
81
|
ListTagsForResourceCommandInput,
|
|
78
82
|
ListTagsForResourceCommandOutput,
|
|
@@ -112,6 +116,7 @@ export type ServiceInputTypes =
|
|
|
112
116
|
| DescribeScalingActivitiesCommandInput
|
|
113
117
|
| DescribeScalingPoliciesCommandInput
|
|
114
118
|
| DescribeScheduledActionsCommandInput
|
|
119
|
+
| GetPredictiveScalingForecastCommandInput
|
|
115
120
|
| ListTagsForResourceCommandInput
|
|
116
121
|
| PutScalingPolicyCommandInput
|
|
117
122
|
| PutScheduledActionCommandInput
|
|
@@ -126,6 +131,7 @@ export type ServiceOutputTypes =
|
|
|
126
131
|
| DescribeScalingActivitiesCommandOutput
|
|
127
132
|
| DescribeScalingPoliciesCommandOutput
|
|
128
133
|
| DescribeScheduledActionsCommandOutput
|
|
134
|
+
| GetPredictiveScalingForecastCommandOutput
|
|
129
135
|
| ListTagsForResourceCommandOutput
|
|
130
136
|
| PutScalingPolicyCommandOutput
|
|
131
137
|
| PutScheduledActionCommandOutput
|