@aws-sdk/client-application-auto-scaling 3.899.0 → 3.906.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1360 -1502
  2. package/package.json +37 -37
package/dist-cjs/index.js CHANGED
@@ -1,1554 +1,1412 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AdjustmentType: () => AdjustmentType,
25
- ApplicationAutoScaling: () => ApplicationAutoScaling,
26
- ApplicationAutoScalingClient: () => ApplicationAutoScalingClient,
27
- ApplicationAutoScalingServiceException: () => ApplicationAutoScalingServiceException,
28
- ConcurrentUpdateException: () => ConcurrentUpdateException,
29
- DeleteScalingPolicyCommand: () => DeleteScalingPolicyCommand,
30
- DeleteScheduledActionCommand: () => DeleteScheduledActionCommand,
31
- DeregisterScalableTargetCommand: () => DeregisterScalableTargetCommand,
32
- DescribeScalableTargetsCommand: () => DescribeScalableTargetsCommand,
33
- DescribeScalingActivitiesCommand: () => DescribeScalingActivitiesCommand,
34
- DescribeScalingPoliciesCommand: () => DescribeScalingPoliciesCommand,
35
- DescribeScheduledActionsCommand: () => DescribeScheduledActionsCommand,
36
- FailedResourceAccessException: () => FailedResourceAccessException,
37
- GetPredictiveScalingForecastCommand: () => GetPredictiveScalingForecastCommand,
38
- InternalServiceException: () => InternalServiceException,
39
- InvalidNextTokenException: () => InvalidNextTokenException,
40
- LimitExceededException: () => LimitExceededException,
41
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
42
- MetricAggregationType: () => MetricAggregationType,
43
- MetricStatistic: () => MetricStatistic,
44
- MetricType: () => MetricType,
45
- ObjectNotFoundException: () => ObjectNotFoundException,
46
- PolicyType: () => PolicyType,
47
- PredictiveScalingMaxCapacityBreachBehavior: () => PredictiveScalingMaxCapacityBreachBehavior,
48
- PredictiveScalingMode: () => PredictiveScalingMode,
49
- PutScalingPolicyCommand: () => PutScalingPolicyCommand,
50
- PutScheduledActionCommand: () => PutScheduledActionCommand,
51
- RegisterScalableTargetCommand: () => RegisterScalableTargetCommand,
52
- ResourceNotFoundException: () => ResourceNotFoundException,
53
- ScalableDimension: () => ScalableDimension,
54
- ScalingActivityStatusCode: () => ScalingActivityStatusCode,
55
- ServiceNamespace: () => ServiceNamespace,
56
- TagResourceCommand: () => TagResourceCommand,
57
- TooManyTagsException: () => TooManyTagsException,
58
- UntagResourceCommand: () => UntagResourceCommand,
59
- ValidationException: () => ValidationException,
60
- __Client: () => import_smithy_client.Client,
61
- paginateDescribeScalableTargets: () => paginateDescribeScalableTargets,
62
- paginateDescribeScalingActivities: () => paginateDescribeScalingActivities,
63
- paginateDescribeScalingPolicies: () => paginateDescribeScalingPolicies,
64
- paginateDescribeScheduledActions: () => paginateDescribeScheduledActions
65
- });
66
- module.exports = __toCommonJS(index_exports);
67
-
68
- // src/ApplicationAutoScalingClient.ts
69
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
70
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
71
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
72
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
73
- var import_config_resolver = require("@smithy/config-resolver");
74
- var import_core = require("@smithy/core");
75
- var import_middleware_content_length = require("@smithy/middleware-content-length");
76
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
77
- var import_middleware_retry = require("@smithy/middleware-retry");
78
-
79
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
80
-
81
- // src/endpoint/EndpointParameters.ts
82
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
83
- return Object.assign(options, {
84
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
85
- useFipsEndpoint: options.useFipsEndpoint ?? false,
86
- defaultSigningName: "application-autoscaling"
87
- });
88
- }, "resolveClientEndpointParameters");
89
- var commonParams = {
90
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
91
- Endpoint: { type: "builtInParams", name: "endpoint" },
92
- Region: { type: "builtInParams", name: "region" },
93
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "application-autoscaling",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
94
32
  };
95
33
 
96
- // src/ApplicationAutoScalingClient.ts
97
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
98
72
 
99
- // src/runtimeExtensions.ts
100
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
101
- var import_protocol_http = require("@smithy/protocol-http");
102
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
103
78
 
104
- // src/auth/httpAuthExtensionConfiguration.ts
105
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
106
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
107
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
108
- let _credentials = runtimeConfig.credentials;
109
- return {
110
- setHttpAuthScheme(httpAuthScheme) {
111
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
112
- if (index === -1) {
113
- _httpAuthSchemes.push(httpAuthScheme);
114
- } else {
115
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
116
- }
117
- },
118
- httpAuthSchemes() {
119
- return _httpAuthSchemes;
120
- },
121
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
122
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
123
- },
124
- httpAuthSchemeProvider() {
125
- return _httpAuthSchemeProvider;
126
- },
127
- setCredentials(credentials) {
128
- _credentials = credentials;
129
- },
130
- credentials() {
131
- return _credentials;
79
+ class ApplicationAutoScalingClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultApplicationAutoScalingHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
132
107
  }
133
- };
134
- }, "getHttpAuthExtensionConfiguration");
135
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
136
- return {
137
- httpAuthSchemes: config.httpAuthSchemes(),
138
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
139
- credentials: config.credentials()
140
- };
141
- }, "resolveHttpAuthRuntimeConfig");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
142
112
 
143
- // src/runtimeExtensions.ts
144
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
145
- const extensionConfiguration = Object.assign(
146
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
147
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
148
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
149
- getHttpAuthExtensionConfiguration(runtimeConfig)
150
- );
151
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
152
- return Object.assign(
153
- runtimeConfig,
154
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
155
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
156
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
157
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
158
- );
159
- }, "resolveRuntimeExtensions");
113
+ class ApplicationAutoScalingServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, ApplicationAutoScalingServiceException.prototype);
117
+ }
118
+ }
160
119
 
161
- // src/ApplicationAutoScalingClient.ts
162
- var ApplicationAutoScalingClient = class extends import_smithy_client.Client {
163
- static {
164
- __name(this, "ApplicationAutoScalingClient");
165
- }
166
- /**
167
- * The resolved configuration of ApplicationAutoScalingClient class. This is resolved and normalized from the {@link ApplicationAutoScalingClientConfig | constructor configuration interface}.
168
- */
169
- config;
170
- constructor(...[configuration]) {
171
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
172
- super(_config_0);
173
- this.initConfig = _config_0;
174
- const _config_1 = resolveClientEndpointParameters(_config_0);
175
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
176
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
177
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
178
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
179
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
180
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
181
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
182
- this.config = _config_8;
183
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
184
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
185
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
186
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
187
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
188
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
189
- this.middlewareStack.use(
190
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
191
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultApplicationAutoScalingHttpAuthSchemeParametersProvider,
192
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
193
- "aws.auth#sigv4": config.credentials
194
- }), "identityProviderConfigProvider")
195
- })
196
- );
197
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
198
- }
199
- /**
200
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
201
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
202
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
203
- */
204
- destroy() {
205
- super.destroy();
206
- }
120
+ const AdjustmentType = {
121
+ ChangeInCapacity: "ChangeInCapacity",
122
+ ExactCapacity: "ExactCapacity",
123
+ PercentChangeInCapacity: "PercentChangeInCapacity",
207
124
  };
208
-
209
- // src/ApplicationAutoScaling.ts
210
-
211
-
212
- // src/commands/DeleteScalingPolicyCommand.ts
213
-
214
- var import_middleware_serde = require("@smithy/middleware-serde");
215
-
216
-
217
- // src/protocols/Aws_json1_1.ts
218
- var import_core2 = require("@aws-sdk/core");
219
-
220
-
221
-
222
- // src/models/ApplicationAutoScalingServiceException.ts
223
-
224
- var ApplicationAutoScalingServiceException = class _ApplicationAutoScalingServiceException extends import_smithy_client.ServiceException {
225
- static {
226
- __name(this, "ApplicationAutoScalingServiceException");
227
- }
228
- /**
229
- * @internal
230
- */
231
- constructor(options) {
232
- super(options);
233
- Object.setPrototypeOf(this, _ApplicationAutoScalingServiceException.prototype);
234
- }
125
+ class ConcurrentUpdateException extends ApplicationAutoScalingServiceException {
126
+ name = "ConcurrentUpdateException";
127
+ $fault = "server";
128
+ Message;
129
+ constructor(opts) {
130
+ super({
131
+ name: "ConcurrentUpdateException",
132
+ $fault: "server",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, ConcurrentUpdateException.prototype);
136
+ this.Message = opts.Message;
137
+ }
138
+ }
139
+ const ScalableDimension = {
140
+ AppstreamFleetDesiredCapacity: "appstream:fleet:DesiredCapacity",
141
+ CassandraTableReadCapacityUnits: "cassandra:table:ReadCapacityUnits",
142
+ CassandraTableWriteCapacityUnits: "cassandra:table:WriteCapacityUnits",
143
+ ComprehendDocClassifierEndpointInferenceUnits: "comprehend:document-classifier-endpoint:DesiredInferenceUnits",
144
+ ComprehendEntityRecognizerEndpointInferenceUnits: "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits",
145
+ CustomResourceScalableDimension: "custom-resource:ResourceType:Property",
146
+ DynamoDBIndexReadCapacityUnits: "dynamodb:index:ReadCapacityUnits",
147
+ DynamoDBIndexWriteCapacityUnits: "dynamodb:index:WriteCapacityUnits",
148
+ DynamoDBTableReadCapacityUnits: "dynamodb:table:ReadCapacityUnits",
149
+ DynamoDBTableWriteCapacityUnits: "dynamodb:table:WriteCapacityUnits",
150
+ EC2SpotFleetRequestTargetCapacity: "ec2:spot-fleet-request:TargetCapacity",
151
+ ECSServiceDesiredCount: "ecs:service:DesiredCount",
152
+ EMRInstanceGroupInstanceCount: "elasticmapreduce:instancegroup:InstanceCount",
153
+ ElastiCacheCacheClusterNodes: "elasticache:cache-cluster:Nodes",
154
+ ElastiCacheReplicationGroupNodeGroups: "elasticache:replication-group:NodeGroups",
155
+ ElastiCacheReplicationGroupReplicas: "elasticache:replication-group:Replicas",
156
+ KafkaBrokerStorageVolumeSize: "kafka:broker-storage:VolumeSize",
157
+ LambdaFunctionProvisionedConcurrency: "lambda:function:ProvisionedConcurrency",
158
+ NeptuneClusterReadReplicaCount: "neptune:cluster:ReadReplicaCount",
159
+ RDSClusterReadReplicaCount: "rds:cluster:ReadReplicaCount",
160
+ SageMakerInferenceComponentDesiredCopyCount: "sagemaker:inference-component:DesiredCopyCount",
161
+ SageMakerVariantDesiredInstanceCount: "sagemaker:variant:DesiredInstanceCount",
162
+ SageMakerVariantDesiredProvisionedConcurrency: "sagemaker:variant:DesiredProvisionedConcurrency",
163
+ WorkSpacesWorkSpacesPoolDesiredUserSessions: "workspaces:workspacespool:DesiredUserSessions",
164
+ };
165
+ const ServiceNamespace = {
166
+ APPSTREAM: "appstream",
167
+ CASSANDRA: "cassandra",
168
+ COMPREHEND: "comprehend",
169
+ CUSTOM_RESOURCE: "custom-resource",
170
+ DYNAMODB: "dynamodb",
171
+ EC2: "ec2",
172
+ ECS: "ecs",
173
+ ELASTICACHE: "elasticache",
174
+ EMR: "elasticmapreduce",
175
+ KAFKA: "kafka",
176
+ LAMBDA: "lambda",
177
+ NEPTUNE: "neptune",
178
+ RDS: "rds",
179
+ SAGEMAKER: "sagemaker",
180
+ WORKSPACES: "workspaces",
235
181
  };
182
+ class InternalServiceException extends ApplicationAutoScalingServiceException {
183
+ name = "InternalServiceException";
184
+ $fault = "server";
185
+ Message;
186
+ constructor(opts) {
187
+ super({
188
+ name: "InternalServiceException",
189
+ $fault: "server",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ }
196
+ class ObjectNotFoundException extends ApplicationAutoScalingServiceException {
197
+ name = "ObjectNotFoundException";
198
+ $fault = "client";
199
+ Message;
200
+ constructor(opts) {
201
+ super({
202
+ name: "ObjectNotFoundException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, ObjectNotFoundException.prototype);
207
+ this.Message = opts.Message;
208
+ }
209
+ }
210
+ class ValidationException extends ApplicationAutoScalingServiceException {
211
+ name = "ValidationException";
212
+ $fault = "client";
213
+ Message;
214
+ constructor(opts) {
215
+ super({
216
+ name: "ValidationException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, ValidationException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ }
224
+ class InvalidNextTokenException extends ApplicationAutoScalingServiceException {
225
+ name = "InvalidNextTokenException";
226
+ $fault = "client";
227
+ Message;
228
+ constructor(opts) {
229
+ super({
230
+ name: "InvalidNextTokenException",
231
+ $fault: "client",
232
+ ...opts,
233
+ });
234
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
235
+ this.Message = opts.Message;
236
+ }
237
+ }
238
+ const ScalingActivityStatusCode = {
239
+ Failed: "Failed",
240
+ InProgress: "InProgress",
241
+ Overridden: "Overridden",
242
+ Pending: "Pending",
243
+ Successful: "Successful",
244
+ Unfulfilled: "Unfulfilled",
245
+ };
246
+ const PolicyType = {
247
+ PredictiveScaling: "PredictiveScaling",
248
+ StepScaling: "StepScaling",
249
+ TargetTrackingScaling: "TargetTrackingScaling",
250
+ };
251
+ const PredictiveScalingMaxCapacityBreachBehavior = {
252
+ HonorMaxCapacity: "HonorMaxCapacity",
253
+ IncreaseMaxCapacity: "IncreaseMaxCapacity",
254
+ };
255
+ const PredictiveScalingMode = {
256
+ ForecastAndScale: "ForecastAndScale",
257
+ ForecastOnly: "ForecastOnly",
258
+ };
259
+ const MetricAggregationType = {
260
+ Average: "Average",
261
+ Maximum: "Maximum",
262
+ Minimum: "Minimum",
263
+ };
264
+ const MetricStatistic = {
265
+ Average: "Average",
266
+ Maximum: "Maximum",
267
+ Minimum: "Minimum",
268
+ SampleCount: "SampleCount",
269
+ Sum: "Sum",
270
+ };
271
+ const MetricType = {
272
+ ALBRequestCountPerTarget: "ALBRequestCountPerTarget",
273
+ AppStreamAverageCapacityUtilization: "AppStreamAverageCapacityUtilization",
274
+ CassandraReadCapacityUtilization: "CassandraReadCapacityUtilization",
275
+ CassandraWriteCapacityUtilization: "CassandraWriteCapacityUtilization",
276
+ ComprehendInferenceUtilization: "ComprehendInferenceUtilization",
277
+ DynamoDBReadCapacityUtilization: "DynamoDBReadCapacityUtilization",
278
+ DynamoDBWriteCapacityUtilization: "DynamoDBWriteCapacityUtilization",
279
+ EC2SpotFleetRequestAverageCPUUtilization: "EC2SpotFleetRequestAverageCPUUtilization",
280
+ EC2SpotFleetRequestAverageNetworkIn: "EC2SpotFleetRequestAverageNetworkIn",
281
+ EC2SpotFleetRequestAverageNetworkOut: "EC2SpotFleetRequestAverageNetworkOut",
282
+ ECSServiceAverageCPUUtilization: "ECSServiceAverageCPUUtilization",
283
+ ECSServiceAverageMemoryUtilization: "ECSServiceAverageMemoryUtilization",
284
+ ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage: "ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage",
285
+ ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage: "ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage",
286
+ ElastiCacheDatabaseMemoryUsagePercentage: "ElastiCacheDatabaseMemoryUsagePercentage",
287
+ ElastiCacheEngineCPUUtilization: "ElastiCacheEngineCPUUtilization",
288
+ ElastiCachePrimaryEngineCPUUtilization: "ElastiCachePrimaryEngineCPUUtilization",
289
+ ElastiCacheReplicaEngineCPUUtilization: "ElastiCacheReplicaEngineCPUUtilization",
290
+ KafkaBrokerStorageUtilization: "KafkaBrokerStorageUtilization",
291
+ LambdaProvisionedConcurrencyUtilization: "LambdaProvisionedConcurrencyUtilization",
292
+ NeptuneReaderAverageCPUUtilization: "NeptuneReaderAverageCPUUtilization",
293
+ RDSReaderAverageCPUUtilization: "RDSReaderAverageCPUUtilization",
294
+ RDSReaderAverageDatabaseConnections: "RDSReaderAverageDatabaseConnections",
295
+ SageMakerInferenceComponentConcurrentRequestsPerCopyHighResolution: "SageMakerInferenceComponentConcurrentRequestsPerCopyHighResolution",
296
+ SageMakerInferenceComponentInvocationsPerCopy: "SageMakerInferenceComponentInvocationsPerCopy",
297
+ SageMakerVariantConcurrentRequestsPerModelHighResolution: "SageMakerVariantConcurrentRequestsPerModelHighResolution",
298
+ SageMakerVariantInvocationsPerInstance: "SageMakerVariantInvocationsPerInstance",
299
+ SageMakerVariantProvisionedConcurrencyUtilization: "SageMakerVariantProvisionedConcurrencyUtilization",
300
+ WorkSpacesAverageUserSessionsCapacityUtilization: "WorkSpacesAverageUserSessionsCapacityUtilization",
301
+ };
302
+ class FailedResourceAccessException extends ApplicationAutoScalingServiceException {
303
+ name = "FailedResourceAccessException";
304
+ $fault = "client";
305
+ Message;
306
+ constructor(opts) {
307
+ super({
308
+ name: "FailedResourceAccessException",
309
+ $fault: "client",
310
+ ...opts,
311
+ });
312
+ Object.setPrototypeOf(this, FailedResourceAccessException.prototype);
313
+ this.Message = opts.Message;
314
+ }
315
+ }
316
+ class ResourceNotFoundException extends ApplicationAutoScalingServiceException {
317
+ name = "ResourceNotFoundException";
318
+ $fault = "client";
319
+ Message;
320
+ ResourceName;
321
+ constructor(opts) {
322
+ super({
323
+ name: "ResourceNotFoundException",
324
+ $fault: "client",
325
+ ...opts,
326
+ });
327
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
328
+ this.Message = opts.Message;
329
+ this.ResourceName = opts.ResourceName;
330
+ }
331
+ }
332
+ class LimitExceededException extends ApplicationAutoScalingServiceException {
333
+ name = "LimitExceededException";
334
+ $fault = "client";
335
+ Message;
336
+ constructor(opts) {
337
+ super({
338
+ name: "LimitExceededException",
339
+ $fault: "client",
340
+ ...opts,
341
+ });
342
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
343
+ this.Message = opts.Message;
344
+ }
345
+ }
346
+ class TooManyTagsException extends ApplicationAutoScalingServiceException {
347
+ name = "TooManyTagsException";
348
+ $fault = "client";
349
+ Message;
350
+ ResourceName;
351
+ constructor(opts) {
352
+ super({
353
+ name: "TooManyTagsException",
354
+ $fault: "client",
355
+ ...opts,
356
+ });
357
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
358
+ this.Message = opts.Message;
359
+ this.ResourceName = opts.ResourceName;
360
+ }
361
+ }
236
362
 
237
- // src/models/models_0.ts
238
- var AdjustmentType = {
239
- ChangeInCapacity: "ChangeInCapacity",
240
- ExactCapacity: "ExactCapacity",
241
- PercentChangeInCapacity: "PercentChangeInCapacity"
242
- };
243
- var ConcurrentUpdateException = class _ConcurrentUpdateException extends ApplicationAutoScalingServiceException {
244
- static {
245
- __name(this, "ConcurrentUpdateException");
246
- }
247
- name = "ConcurrentUpdateException";
248
- $fault = "server";
249
- Message;
250
- /**
251
- * @internal
252
- */
253
- constructor(opts) {
254
- super({
255
- name: "ConcurrentUpdateException",
256
- $fault: "server",
257
- ...opts
363
+ const se_DeleteScalingPolicyCommand = async (input, context) => {
364
+ const headers = sharedHeaders("DeleteScalingPolicy");
365
+ let body;
366
+ body = JSON.stringify(smithyClient._json(input));
367
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
368
+ };
369
+ const se_DeleteScheduledActionCommand = async (input, context) => {
370
+ const headers = sharedHeaders("DeleteScheduledAction");
371
+ let body;
372
+ body = JSON.stringify(smithyClient._json(input));
373
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
374
+ };
375
+ const se_DeregisterScalableTargetCommand = async (input, context) => {
376
+ const headers = sharedHeaders("DeregisterScalableTarget");
377
+ let body;
378
+ body = JSON.stringify(smithyClient._json(input));
379
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
380
+ };
381
+ const se_DescribeScalableTargetsCommand = async (input, context) => {
382
+ const headers = sharedHeaders("DescribeScalableTargets");
383
+ let body;
384
+ body = JSON.stringify(smithyClient._json(input));
385
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
386
+ };
387
+ const se_DescribeScalingActivitiesCommand = async (input, context) => {
388
+ const headers = sharedHeaders("DescribeScalingActivities");
389
+ let body;
390
+ body = JSON.stringify(smithyClient._json(input));
391
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
392
+ };
393
+ const se_DescribeScalingPoliciesCommand = async (input, context) => {
394
+ const headers = sharedHeaders("DescribeScalingPolicies");
395
+ let body;
396
+ body = JSON.stringify(smithyClient._json(input));
397
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
398
+ };
399
+ const se_DescribeScheduledActionsCommand = async (input, context) => {
400
+ const headers = sharedHeaders("DescribeScheduledActions");
401
+ let body;
402
+ body = JSON.stringify(smithyClient._json(input));
403
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
404
+ };
405
+ const se_GetPredictiveScalingForecastCommand = async (input, context) => {
406
+ const headers = sharedHeaders("GetPredictiveScalingForecast");
407
+ let body;
408
+ body = JSON.stringify(se_GetPredictiveScalingForecastRequest(input));
409
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
410
+ };
411
+ const se_ListTagsForResourceCommand = async (input, context) => {
412
+ const headers = sharedHeaders("ListTagsForResource");
413
+ let body;
414
+ body = JSON.stringify(smithyClient._json(input));
415
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
416
+ };
417
+ const se_PutScalingPolicyCommand = async (input, context) => {
418
+ const headers = sharedHeaders("PutScalingPolicy");
419
+ let body;
420
+ body = JSON.stringify(se_PutScalingPolicyRequest(input));
421
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
422
+ };
423
+ const se_PutScheduledActionCommand = async (input, context) => {
424
+ const headers = sharedHeaders("PutScheduledAction");
425
+ let body;
426
+ body = JSON.stringify(se_PutScheduledActionRequest(input));
427
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
+ };
429
+ const se_RegisterScalableTargetCommand = async (input, context) => {
430
+ const headers = sharedHeaders("RegisterScalableTarget");
431
+ let body;
432
+ body = JSON.stringify(smithyClient._json(input));
433
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
434
+ };
435
+ const se_TagResourceCommand = async (input, context) => {
436
+ const headers = sharedHeaders("TagResource");
437
+ let body;
438
+ body = JSON.stringify(smithyClient._json(input));
439
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
440
+ };
441
+ const se_UntagResourceCommand = async (input, context) => {
442
+ const headers = sharedHeaders("UntagResource");
443
+ let body;
444
+ body = JSON.stringify(smithyClient._json(input));
445
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
446
+ };
447
+ const de_DeleteScalingPolicyCommand = async (output, context) => {
448
+ if (output.statusCode >= 300) {
449
+ return de_CommandError(output, context);
450
+ }
451
+ const data = await core$1.parseJsonBody(output.body, context);
452
+ let contents = {};
453
+ contents = smithyClient._json(data);
454
+ const response = {
455
+ $metadata: deserializeMetadata(output),
456
+ ...contents,
457
+ };
458
+ return response;
459
+ };
460
+ const de_DeleteScheduledActionCommand = async (output, context) => {
461
+ if (output.statusCode >= 300) {
462
+ return de_CommandError(output, context);
463
+ }
464
+ const data = await core$1.parseJsonBody(output.body, context);
465
+ let contents = {};
466
+ contents = smithyClient._json(data);
467
+ const response = {
468
+ $metadata: deserializeMetadata(output),
469
+ ...contents,
470
+ };
471
+ return response;
472
+ };
473
+ const de_DeregisterScalableTargetCommand = async (output, context) => {
474
+ if (output.statusCode >= 300) {
475
+ return de_CommandError(output, context);
476
+ }
477
+ const data = await core$1.parseJsonBody(output.body, context);
478
+ let contents = {};
479
+ contents = smithyClient._json(data);
480
+ const response = {
481
+ $metadata: deserializeMetadata(output),
482
+ ...contents,
483
+ };
484
+ return response;
485
+ };
486
+ const de_DescribeScalableTargetsCommand = async (output, context) => {
487
+ if (output.statusCode >= 300) {
488
+ return de_CommandError(output, context);
489
+ }
490
+ const data = await core$1.parseJsonBody(output.body, context);
491
+ let contents = {};
492
+ contents = de_DescribeScalableTargetsResponse(data);
493
+ const response = {
494
+ $metadata: deserializeMetadata(output),
495
+ ...contents,
496
+ };
497
+ return response;
498
+ };
499
+ const de_DescribeScalingActivitiesCommand = async (output, context) => {
500
+ if (output.statusCode >= 300) {
501
+ return de_CommandError(output, context);
502
+ }
503
+ const data = await core$1.parseJsonBody(output.body, context);
504
+ let contents = {};
505
+ contents = de_DescribeScalingActivitiesResponse(data);
506
+ const response = {
507
+ $metadata: deserializeMetadata(output),
508
+ ...contents,
509
+ };
510
+ return response;
511
+ };
512
+ const de_DescribeScalingPoliciesCommand = async (output, context) => {
513
+ if (output.statusCode >= 300) {
514
+ return de_CommandError(output, context);
515
+ }
516
+ const data = await core$1.parseJsonBody(output.body, context);
517
+ let contents = {};
518
+ contents = de_DescribeScalingPoliciesResponse(data);
519
+ const response = {
520
+ $metadata: deserializeMetadata(output),
521
+ ...contents,
522
+ };
523
+ return response;
524
+ };
525
+ const de_DescribeScheduledActionsCommand = async (output, context) => {
526
+ if (output.statusCode >= 300) {
527
+ return de_CommandError(output, context);
528
+ }
529
+ const data = await core$1.parseJsonBody(output.body, context);
530
+ let contents = {};
531
+ contents = de_DescribeScheduledActionsResponse(data);
532
+ const response = {
533
+ $metadata: deserializeMetadata(output),
534
+ ...contents,
535
+ };
536
+ return response;
537
+ };
538
+ const de_GetPredictiveScalingForecastCommand = async (output, context) => {
539
+ if (output.statusCode >= 300) {
540
+ return de_CommandError(output, context);
541
+ }
542
+ const data = await core$1.parseJsonBody(output.body, context);
543
+ let contents = {};
544
+ contents = de_GetPredictiveScalingForecastResponse(data);
545
+ const response = {
546
+ $metadata: deserializeMetadata(output),
547
+ ...contents,
548
+ };
549
+ return response;
550
+ };
551
+ const de_ListTagsForResourceCommand = async (output, context) => {
552
+ if (output.statusCode >= 300) {
553
+ return de_CommandError(output, context);
554
+ }
555
+ const data = await core$1.parseJsonBody(output.body, context);
556
+ let contents = {};
557
+ contents = smithyClient._json(data);
558
+ const response = {
559
+ $metadata: deserializeMetadata(output),
560
+ ...contents,
561
+ };
562
+ return response;
563
+ };
564
+ const de_PutScalingPolicyCommand = async (output, context) => {
565
+ if (output.statusCode >= 300) {
566
+ return de_CommandError(output, context);
567
+ }
568
+ const data = await core$1.parseJsonBody(output.body, context);
569
+ let contents = {};
570
+ contents = smithyClient._json(data);
571
+ const response = {
572
+ $metadata: deserializeMetadata(output),
573
+ ...contents,
574
+ };
575
+ return response;
576
+ };
577
+ const de_PutScheduledActionCommand = async (output, context) => {
578
+ if (output.statusCode >= 300) {
579
+ return de_CommandError(output, context);
580
+ }
581
+ const data = await core$1.parseJsonBody(output.body, context);
582
+ let contents = {};
583
+ contents = smithyClient._json(data);
584
+ const response = {
585
+ $metadata: deserializeMetadata(output),
586
+ ...contents,
587
+ };
588
+ return response;
589
+ };
590
+ const de_RegisterScalableTargetCommand = async (output, context) => {
591
+ if (output.statusCode >= 300) {
592
+ return de_CommandError(output, context);
593
+ }
594
+ const data = await core$1.parseJsonBody(output.body, context);
595
+ let contents = {};
596
+ contents = smithyClient._json(data);
597
+ const response = {
598
+ $metadata: deserializeMetadata(output),
599
+ ...contents,
600
+ };
601
+ return response;
602
+ };
603
+ const de_TagResourceCommand = async (output, context) => {
604
+ if (output.statusCode >= 300) {
605
+ return de_CommandError(output, context);
606
+ }
607
+ const data = await core$1.parseJsonBody(output.body, context);
608
+ let contents = {};
609
+ contents = smithyClient._json(data);
610
+ const response = {
611
+ $metadata: deserializeMetadata(output),
612
+ ...contents,
613
+ };
614
+ return response;
615
+ };
616
+ const de_UntagResourceCommand = async (output, context) => {
617
+ if (output.statusCode >= 300) {
618
+ return de_CommandError(output, context);
619
+ }
620
+ const data = await core$1.parseJsonBody(output.body, context);
621
+ let contents = {};
622
+ contents = smithyClient._json(data);
623
+ const response = {
624
+ $metadata: deserializeMetadata(output),
625
+ ...contents,
626
+ };
627
+ return response;
628
+ };
629
+ const de_CommandError = async (output, context) => {
630
+ const parsedOutput = {
631
+ ...output,
632
+ body: await core$1.parseJsonErrorBody(output.body, context),
633
+ };
634
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
635
+ switch (errorCode) {
636
+ case "ConcurrentUpdateException":
637
+ case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
638
+ throw await de_ConcurrentUpdateExceptionRes(parsedOutput);
639
+ case "InternalServiceException":
640
+ case "com.amazonaws.applicationautoscaling#InternalServiceException":
641
+ throw await de_InternalServiceExceptionRes(parsedOutput);
642
+ case "ObjectNotFoundException":
643
+ case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
644
+ throw await de_ObjectNotFoundExceptionRes(parsedOutput);
645
+ case "ValidationException":
646
+ case "com.amazonaws.applicationautoscaling#ValidationException":
647
+ throw await de_ValidationExceptionRes(parsedOutput);
648
+ case "InvalidNextTokenException":
649
+ case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
650
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput);
651
+ case "FailedResourceAccessException":
652
+ case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
653
+ throw await de_FailedResourceAccessExceptionRes(parsedOutput);
654
+ case "ResourceNotFoundException":
655
+ case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
656
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
657
+ case "LimitExceededException":
658
+ case "com.amazonaws.applicationautoscaling#LimitExceededException":
659
+ throw await de_LimitExceededExceptionRes(parsedOutput);
660
+ case "TooManyTagsException":
661
+ case "com.amazonaws.applicationautoscaling#TooManyTagsException":
662
+ throw await de_TooManyTagsExceptionRes(parsedOutput);
663
+ default:
664
+ const parsedBody = parsedOutput.body;
665
+ return throwDefaultError({
666
+ output,
667
+ parsedBody,
668
+ errorCode,
669
+ });
670
+ }
671
+ };
672
+ const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
673
+ const body = parsedOutput.body;
674
+ const deserialized = smithyClient._json(body);
675
+ const exception = new ConcurrentUpdateException({
676
+ $metadata: deserializeMetadata(parsedOutput),
677
+ ...deserialized,
258
678
  });
259
- Object.setPrototypeOf(this, _ConcurrentUpdateException.prototype);
260
- this.Message = opts.Message;
261
- }
262
- };
263
- var ScalableDimension = {
264
- AppstreamFleetDesiredCapacity: "appstream:fleet:DesiredCapacity",
265
- CassandraTableReadCapacityUnits: "cassandra:table:ReadCapacityUnits",
266
- CassandraTableWriteCapacityUnits: "cassandra:table:WriteCapacityUnits",
267
- ComprehendDocClassifierEndpointInferenceUnits: "comprehend:document-classifier-endpoint:DesiredInferenceUnits",
268
- ComprehendEntityRecognizerEndpointInferenceUnits: "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits",
269
- CustomResourceScalableDimension: "custom-resource:ResourceType:Property",
270
- DynamoDBIndexReadCapacityUnits: "dynamodb:index:ReadCapacityUnits",
271
- DynamoDBIndexWriteCapacityUnits: "dynamodb:index:WriteCapacityUnits",
272
- DynamoDBTableReadCapacityUnits: "dynamodb:table:ReadCapacityUnits",
273
- DynamoDBTableWriteCapacityUnits: "dynamodb:table:WriteCapacityUnits",
274
- EC2SpotFleetRequestTargetCapacity: "ec2:spot-fleet-request:TargetCapacity",
275
- ECSServiceDesiredCount: "ecs:service:DesiredCount",
276
- EMRInstanceGroupInstanceCount: "elasticmapreduce:instancegroup:InstanceCount",
277
- ElastiCacheCacheClusterNodes: "elasticache:cache-cluster:Nodes",
278
- ElastiCacheReplicationGroupNodeGroups: "elasticache:replication-group:NodeGroups",
279
- ElastiCacheReplicationGroupReplicas: "elasticache:replication-group:Replicas",
280
- KafkaBrokerStorageVolumeSize: "kafka:broker-storage:VolumeSize",
281
- LambdaFunctionProvisionedConcurrency: "lambda:function:ProvisionedConcurrency",
282
- NeptuneClusterReadReplicaCount: "neptune:cluster:ReadReplicaCount",
283
- RDSClusterReadReplicaCount: "rds:cluster:ReadReplicaCount",
284
- SageMakerInferenceComponentDesiredCopyCount: "sagemaker:inference-component:DesiredCopyCount",
285
- SageMakerVariantDesiredInstanceCount: "sagemaker:variant:DesiredInstanceCount",
286
- SageMakerVariantDesiredProvisionedConcurrency: "sagemaker:variant:DesiredProvisionedConcurrency",
287
- WorkSpacesWorkSpacesPoolDesiredUserSessions: "workspaces:workspacespool:DesiredUserSessions"
288
- };
289
- var ServiceNamespace = {
290
- APPSTREAM: "appstream",
291
- CASSANDRA: "cassandra",
292
- COMPREHEND: "comprehend",
293
- CUSTOM_RESOURCE: "custom-resource",
294
- DYNAMODB: "dynamodb",
295
- EC2: "ec2",
296
- ECS: "ecs",
297
- ELASTICACHE: "elasticache",
298
- EMR: "elasticmapreduce",
299
- KAFKA: "kafka",
300
- LAMBDA: "lambda",
301
- NEPTUNE: "neptune",
302
- RDS: "rds",
303
- SAGEMAKER: "sagemaker",
304
- WORKSPACES: "workspaces"
305
- };
306
- var InternalServiceException = class _InternalServiceException extends ApplicationAutoScalingServiceException {
307
- static {
308
- __name(this, "InternalServiceException");
309
- }
310
- name = "InternalServiceException";
311
- $fault = "server";
312
- Message;
313
- /**
314
- * @internal
315
- */
316
- constructor(opts) {
317
- super({
318
- name: "InternalServiceException",
319
- $fault: "server",
320
- ...opts
679
+ return smithyClient.decorateServiceException(exception, body);
680
+ };
681
+ const de_FailedResourceAccessExceptionRes = async (parsedOutput, context) => {
682
+ const body = parsedOutput.body;
683
+ const deserialized = smithyClient._json(body);
684
+ const exception = new FailedResourceAccessException({
685
+ $metadata: deserializeMetadata(parsedOutput),
686
+ ...deserialized,
321
687
  });
322
- Object.setPrototypeOf(this, _InternalServiceException.prototype);
323
- this.Message = opts.Message;
324
- }
325
- };
326
- var ObjectNotFoundException = class _ObjectNotFoundException extends ApplicationAutoScalingServiceException {
327
- static {
328
- __name(this, "ObjectNotFoundException");
329
- }
330
- name = "ObjectNotFoundException";
331
- $fault = "client";
332
- Message;
333
- /**
334
- * @internal
335
- */
336
- constructor(opts) {
337
- super({
338
- name: "ObjectNotFoundException",
339
- $fault: "client",
340
- ...opts
688
+ return smithyClient.decorateServiceException(exception, body);
689
+ };
690
+ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
691
+ const body = parsedOutput.body;
692
+ const deserialized = smithyClient._json(body);
693
+ const exception = new InternalServiceException({
694
+ $metadata: deserializeMetadata(parsedOutput),
695
+ ...deserialized,
341
696
  });
342
- Object.setPrototypeOf(this, _ObjectNotFoundException.prototype);
343
- this.Message = opts.Message;
344
- }
345
- };
346
- var ValidationException = class _ValidationException extends ApplicationAutoScalingServiceException {
347
- static {
348
- __name(this, "ValidationException");
349
- }
350
- name = "ValidationException";
351
- $fault = "client";
352
- Message;
353
- /**
354
- * @internal
355
- */
356
- constructor(opts) {
357
- super({
358
- name: "ValidationException",
359
- $fault: "client",
360
- ...opts
697
+ return smithyClient.decorateServiceException(exception, body);
698
+ };
699
+ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
700
+ const body = parsedOutput.body;
701
+ const deserialized = smithyClient._json(body);
702
+ const exception = new InvalidNextTokenException({
703
+ $metadata: deserializeMetadata(parsedOutput),
704
+ ...deserialized,
361
705
  });
362
- Object.setPrototypeOf(this, _ValidationException.prototype);
363
- this.Message = opts.Message;
364
- }
365
- };
366
- var InvalidNextTokenException = class _InvalidNextTokenException extends ApplicationAutoScalingServiceException {
367
- static {
368
- __name(this, "InvalidNextTokenException");
369
- }
370
- name = "InvalidNextTokenException";
371
- $fault = "client";
372
- Message;
373
- /**
374
- * @internal
375
- */
376
- constructor(opts) {
377
- super({
378
- name: "InvalidNextTokenException",
379
- $fault: "client",
380
- ...opts
706
+ return smithyClient.decorateServiceException(exception, body);
707
+ };
708
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
709
+ const body = parsedOutput.body;
710
+ const deserialized = smithyClient._json(body);
711
+ const exception = new LimitExceededException({
712
+ $metadata: deserializeMetadata(parsedOutput),
713
+ ...deserialized,
381
714
  });
382
- Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
383
- this.Message = opts.Message;
384
- }
385
- };
386
- var ScalingActivityStatusCode = {
387
- Failed: "Failed",
388
- InProgress: "InProgress",
389
- Overridden: "Overridden",
390
- Pending: "Pending",
391
- Successful: "Successful",
392
- Unfulfilled: "Unfulfilled"
393
- };
394
- var PolicyType = {
395
- PredictiveScaling: "PredictiveScaling",
396
- StepScaling: "StepScaling",
397
- TargetTrackingScaling: "TargetTrackingScaling"
398
- };
399
- var PredictiveScalingMaxCapacityBreachBehavior = {
400
- HonorMaxCapacity: "HonorMaxCapacity",
401
- IncreaseMaxCapacity: "IncreaseMaxCapacity"
402
- };
403
- var PredictiveScalingMode = {
404
- ForecastAndScale: "ForecastAndScale",
405
- ForecastOnly: "ForecastOnly"
406
- };
407
- var MetricAggregationType = {
408
- Average: "Average",
409
- Maximum: "Maximum",
410
- Minimum: "Minimum"
411
- };
412
- var MetricStatistic = {
413
- Average: "Average",
414
- Maximum: "Maximum",
415
- Minimum: "Minimum",
416
- SampleCount: "SampleCount",
417
- Sum: "Sum"
418
- };
419
- var MetricType = {
420
- ALBRequestCountPerTarget: "ALBRequestCountPerTarget",
421
- AppStreamAverageCapacityUtilization: "AppStreamAverageCapacityUtilization",
422
- CassandraReadCapacityUtilization: "CassandraReadCapacityUtilization",
423
- CassandraWriteCapacityUtilization: "CassandraWriteCapacityUtilization",
424
- ComprehendInferenceUtilization: "ComprehendInferenceUtilization",
425
- DynamoDBReadCapacityUtilization: "DynamoDBReadCapacityUtilization",
426
- DynamoDBWriteCapacityUtilization: "DynamoDBWriteCapacityUtilization",
427
- EC2SpotFleetRequestAverageCPUUtilization: "EC2SpotFleetRequestAverageCPUUtilization",
428
- EC2SpotFleetRequestAverageNetworkIn: "EC2SpotFleetRequestAverageNetworkIn",
429
- EC2SpotFleetRequestAverageNetworkOut: "EC2SpotFleetRequestAverageNetworkOut",
430
- ECSServiceAverageCPUUtilization: "ECSServiceAverageCPUUtilization",
431
- ECSServiceAverageMemoryUtilization: "ECSServiceAverageMemoryUtilization",
432
- ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage: "ElastiCacheDatabaseCapacityUsageCountedForEvictPercentage",
433
- ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage: "ElastiCacheDatabaseMemoryUsageCountedForEvictPercentage",
434
- ElastiCacheDatabaseMemoryUsagePercentage: "ElastiCacheDatabaseMemoryUsagePercentage",
435
- ElastiCacheEngineCPUUtilization: "ElastiCacheEngineCPUUtilization",
436
- ElastiCachePrimaryEngineCPUUtilization: "ElastiCachePrimaryEngineCPUUtilization",
437
- ElastiCacheReplicaEngineCPUUtilization: "ElastiCacheReplicaEngineCPUUtilization",
438
- KafkaBrokerStorageUtilization: "KafkaBrokerStorageUtilization",
439
- LambdaProvisionedConcurrencyUtilization: "LambdaProvisionedConcurrencyUtilization",
440
- NeptuneReaderAverageCPUUtilization: "NeptuneReaderAverageCPUUtilization",
441
- RDSReaderAverageCPUUtilization: "RDSReaderAverageCPUUtilization",
442
- RDSReaderAverageDatabaseConnections: "RDSReaderAverageDatabaseConnections",
443
- SageMakerInferenceComponentConcurrentRequestsPerCopyHighResolution: "SageMakerInferenceComponentConcurrentRequestsPerCopyHighResolution",
444
- SageMakerInferenceComponentInvocationsPerCopy: "SageMakerInferenceComponentInvocationsPerCopy",
445
- SageMakerVariantConcurrentRequestsPerModelHighResolution: "SageMakerVariantConcurrentRequestsPerModelHighResolution",
446
- SageMakerVariantInvocationsPerInstance: "SageMakerVariantInvocationsPerInstance",
447
- SageMakerVariantProvisionedConcurrencyUtilization: "SageMakerVariantProvisionedConcurrencyUtilization",
448
- WorkSpacesAverageUserSessionsCapacityUtilization: "WorkSpacesAverageUserSessionsCapacityUtilization"
449
- };
450
- var FailedResourceAccessException = class _FailedResourceAccessException extends ApplicationAutoScalingServiceException {
451
- static {
452
- __name(this, "FailedResourceAccessException");
453
- }
454
- name = "FailedResourceAccessException";
455
- $fault = "client";
456
- Message;
457
- /**
458
- * @internal
459
- */
460
- constructor(opts) {
461
- super({
462
- name: "FailedResourceAccessException",
463
- $fault: "client",
464
- ...opts
715
+ return smithyClient.decorateServiceException(exception, body);
716
+ };
717
+ const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
718
+ const body = parsedOutput.body;
719
+ const deserialized = smithyClient._json(body);
720
+ const exception = new ObjectNotFoundException({
721
+ $metadata: deserializeMetadata(parsedOutput),
722
+ ...deserialized,
465
723
  });
466
- Object.setPrototypeOf(this, _FailedResourceAccessException.prototype);
467
- this.Message = opts.Message;
468
- }
469
- };
470
- var ResourceNotFoundException = class _ResourceNotFoundException extends ApplicationAutoScalingServiceException {
471
- static {
472
- __name(this, "ResourceNotFoundException");
473
- }
474
- name = "ResourceNotFoundException";
475
- $fault = "client";
476
- Message;
477
- /**
478
- * <p>The name of the Application Auto Scaling resource. This value is an Amazon Resource Name (ARN).</p>
479
- * @public
480
- */
481
- ResourceName;
482
- /**
483
- * @internal
484
- */
485
- constructor(opts) {
486
- super({
487
- name: "ResourceNotFoundException",
488
- $fault: "client",
489
- ...opts
724
+ return smithyClient.decorateServiceException(exception, body);
725
+ };
726
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
727
+ const body = parsedOutput.body;
728
+ const deserialized = smithyClient._json(body);
729
+ const exception = new ResourceNotFoundException({
730
+ $metadata: deserializeMetadata(parsedOutput),
731
+ ...deserialized,
490
732
  });
491
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
492
- this.Message = opts.Message;
493
- this.ResourceName = opts.ResourceName;
494
- }
495
- };
496
- var LimitExceededException = class _LimitExceededException extends ApplicationAutoScalingServiceException {
497
- static {
498
- __name(this, "LimitExceededException");
499
- }
500
- name = "LimitExceededException";
501
- $fault = "client";
502
- Message;
503
- /**
504
- * @internal
505
- */
506
- constructor(opts) {
507
- super({
508
- name: "LimitExceededException",
509
- $fault: "client",
510
- ...opts
733
+ return smithyClient.decorateServiceException(exception, body);
734
+ };
735
+ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
736
+ const body = parsedOutput.body;
737
+ const deserialized = smithyClient._json(body);
738
+ const exception = new TooManyTagsException({
739
+ $metadata: deserializeMetadata(parsedOutput),
740
+ ...deserialized,
511
741
  });
512
- Object.setPrototypeOf(this, _LimitExceededException.prototype);
513
- this.Message = opts.Message;
514
- }
515
- };
516
- var TooManyTagsException = class _TooManyTagsException extends ApplicationAutoScalingServiceException {
517
- static {
518
- __name(this, "TooManyTagsException");
519
- }
520
- name = "TooManyTagsException";
521
- $fault = "client";
522
- Message;
523
- /**
524
- * <p>The name of the Application Auto Scaling resource. This value is an Amazon Resource Name (ARN).</p>
525
- * @public
526
- */
527
- ResourceName;
528
- /**
529
- * @internal
530
- */
531
- constructor(opts) {
532
- super({
533
- name: "TooManyTagsException",
534
- $fault: "client",
535
- ...opts
742
+ return smithyClient.decorateServiceException(exception, body);
743
+ };
744
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
745
+ const body = parsedOutput.body;
746
+ const deserialized = smithyClient._json(body);
747
+ const exception = new ValidationException({
748
+ $metadata: deserializeMetadata(parsedOutput),
749
+ ...deserialized,
536
750
  });
537
- Object.setPrototypeOf(this, _TooManyTagsException.prototype);
538
- this.Message = opts.Message;
539
- this.ResourceName = opts.ResourceName;
540
- }
751
+ return smithyClient.decorateServiceException(exception, body);
541
752
  };
542
-
543
- // src/protocols/Aws_json1_1.ts
544
- var se_DeleteScalingPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
545
- const headers = sharedHeaders("DeleteScalingPolicy");
546
- let body;
547
- body = JSON.stringify((0, import_smithy_client._json)(input));
548
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
549
- }, "se_DeleteScalingPolicyCommand");
550
- var se_DeleteScheduledActionCommand = /* @__PURE__ */ __name(async (input, context) => {
551
- const headers = sharedHeaders("DeleteScheduledAction");
552
- let body;
553
- body = JSON.stringify((0, import_smithy_client._json)(input));
554
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
555
- }, "se_DeleteScheduledActionCommand");
556
- var se_DeregisterScalableTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
557
- const headers = sharedHeaders("DeregisterScalableTarget");
558
- let body;
559
- body = JSON.stringify((0, import_smithy_client._json)(input));
560
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
561
- }, "se_DeregisterScalableTargetCommand");
562
- var se_DescribeScalableTargetsCommand = /* @__PURE__ */ __name(async (input, context) => {
563
- const headers = sharedHeaders("DescribeScalableTargets");
564
- let body;
565
- body = JSON.stringify((0, import_smithy_client._json)(input));
566
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
567
- }, "se_DescribeScalableTargetsCommand");
568
- var se_DescribeScalingActivitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
569
- const headers = sharedHeaders("DescribeScalingActivities");
570
- let body;
571
- body = JSON.stringify((0, import_smithy_client._json)(input));
572
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
573
- }, "se_DescribeScalingActivitiesCommand");
574
- var se_DescribeScalingPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
575
- const headers = sharedHeaders("DescribeScalingPolicies");
576
- let body;
577
- body = JSON.stringify((0, import_smithy_client._json)(input));
578
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
579
- }, "se_DescribeScalingPoliciesCommand");
580
- var se_DescribeScheduledActionsCommand = /* @__PURE__ */ __name(async (input, context) => {
581
- const headers = sharedHeaders("DescribeScheduledActions");
582
- let body;
583
- body = JSON.stringify((0, import_smithy_client._json)(input));
584
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
585
- }, "se_DescribeScheduledActionsCommand");
586
- var se_GetPredictiveScalingForecastCommand = /* @__PURE__ */ __name(async (input, context) => {
587
- const headers = sharedHeaders("GetPredictiveScalingForecast");
588
- let body;
589
- body = JSON.stringify(se_GetPredictiveScalingForecastRequest(input, context));
590
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
591
- }, "se_GetPredictiveScalingForecastCommand");
592
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
593
- const headers = sharedHeaders("ListTagsForResource");
594
- let body;
595
- body = JSON.stringify((0, import_smithy_client._json)(input));
596
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
597
- }, "se_ListTagsForResourceCommand");
598
- var se_PutScalingPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
599
- const headers = sharedHeaders("PutScalingPolicy");
600
- let body;
601
- body = JSON.stringify(se_PutScalingPolicyRequest(input, context));
602
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
603
- }, "se_PutScalingPolicyCommand");
604
- var se_PutScheduledActionCommand = /* @__PURE__ */ __name(async (input, context) => {
605
- const headers = sharedHeaders("PutScheduledAction");
606
- let body;
607
- body = JSON.stringify(se_PutScheduledActionRequest(input, context));
608
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
609
- }, "se_PutScheduledActionCommand");
610
- var se_RegisterScalableTargetCommand = /* @__PURE__ */ __name(async (input, context) => {
611
- const headers = sharedHeaders("RegisterScalableTarget");
612
- let body;
613
- body = JSON.stringify((0, import_smithy_client._json)(input));
614
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
615
- }, "se_RegisterScalableTargetCommand");
616
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
617
- const headers = sharedHeaders("TagResource");
618
- let body;
619
- body = JSON.stringify((0, import_smithy_client._json)(input));
620
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
621
- }, "se_TagResourceCommand");
622
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
623
- const headers = sharedHeaders("UntagResource");
624
- let body;
625
- body = JSON.stringify((0, import_smithy_client._json)(input));
626
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
627
- }, "se_UntagResourceCommand");
628
- var de_DeleteScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
629
- if (output.statusCode >= 300) {
630
- return de_CommandError(output, context);
631
- }
632
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
633
- let contents = {};
634
- contents = (0, import_smithy_client._json)(data);
635
- const response = {
636
- $metadata: deserializeMetadata(output),
637
- ...contents
638
- };
639
- return response;
640
- }, "de_DeleteScalingPolicyCommand");
641
- var de_DeleteScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
642
- if (output.statusCode >= 300) {
643
- return de_CommandError(output, context);
644
- }
645
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
646
- let contents = {};
647
- contents = (0, import_smithy_client._json)(data);
648
- const response = {
649
- $metadata: deserializeMetadata(output),
650
- ...contents
651
- };
652
- return response;
653
- }, "de_DeleteScheduledActionCommand");
654
- var de_DeregisterScalableTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
655
- if (output.statusCode >= 300) {
656
- return de_CommandError(output, context);
657
- }
658
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
659
- let contents = {};
660
- contents = (0, import_smithy_client._json)(data);
661
- const response = {
662
- $metadata: deserializeMetadata(output),
663
- ...contents
664
- };
665
- return response;
666
- }, "de_DeregisterScalableTargetCommand");
667
- var de_DescribeScalableTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
668
- if (output.statusCode >= 300) {
669
- return de_CommandError(output, context);
670
- }
671
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
672
- let contents = {};
673
- contents = de_DescribeScalableTargetsResponse(data, context);
674
- const response = {
675
- $metadata: deserializeMetadata(output),
676
- ...contents
677
- };
678
- return response;
679
- }, "de_DescribeScalableTargetsCommand");
680
- var de_DescribeScalingActivitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
681
- if (output.statusCode >= 300) {
682
- return de_CommandError(output, context);
683
- }
684
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
685
- let contents = {};
686
- contents = de_DescribeScalingActivitiesResponse(data, context);
687
- const response = {
688
- $metadata: deserializeMetadata(output),
689
- ...contents
690
- };
691
- return response;
692
- }, "de_DescribeScalingActivitiesCommand");
693
- var de_DescribeScalingPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
694
- if (output.statusCode >= 300) {
695
- return de_CommandError(output, context);
696
- }
697
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
698
- let contents = {};
699
- contents = de_DescribeScalingPoliciesResponse(data, context);
700
- const response = {
701
- $metadata: deserializeMetadata(output),
702
- ...contents
703
- };
704
- return response;
705
- }, "de_DescribeScalingPoliciesCommand");
706
- var de_DescribeScheduledActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
707
- if (output.statusCode >= 300) {
708
- return de_CommandError(output, context);
709
- }
710
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
711
- let contents = {};
712
- contents = de_DescribeScheduledActionsResponse(data, context);
713
- const response = {
714
- $metadata: deserializeMetadata(output),
715
- ...contents
716
- };
717
- return response;
718
- }, "de_DescribeScheduledActionsCommand");
719
- var de_GetPredictiveScalingForecastCommand = /* @__PURE__ */ __name(async (output, context) => {
720
- if (output.statusCode >= 300) {
721
- return de_CommandError(output, context);
722
- }
723
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
724
- let contents = {};
725
- contents = de_GetPredictiveScalingForecastResponse(data, context);
726
- const response = {
727
- $metadata: deserializeMetadata(output),
728
- ...contents
729
- };
730
- return response;
731
- }, "de_GetPredictiveScalingForecastCommand");
732
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
733
- if (output.statusCode >= 300) {
734
- return de_CommandError(output, context);
735
- }
736
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
737
- let contents = {};
738
- contents = (0, import_smithy_client._json)(data);
739
- const response = {
740
- $metadata: deserializeMetadata(output),
741
- ...contents
742
- };
743
- return response;
744
- }, "de_ListTagsForResourceCommand");
745
- var de_PutScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
746
- if (output.statusCode >= 300) {
747
- return de_CommandError(output, context);
748
- }
749
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
750
- let contents = {};
751
- contents = (0, import_smithy_client._json)(data);
752
- const response = {
753
- $metadata: deserializeMetadata(output),
754
- ...contents
755
- };
756
- return response;
757
- }, "de_PutScalingPolicyCommand");
758
- var de_PutScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
759
- if (output.statusCode >= 300) {
760
- return de_CommandError(output, context);
761
- }
762
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
763
- let contents = {};
764
- contents = (0, import_smithy_client._json)(data);
765
- const response = {
766
- $metadata: deserializeMetadata(output),
767
- ...contents
768
- };
769
- return response;
770
- }, "de_PutScheduledActionCommand");
771
- var de_RegisterScalableTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
772
- if (output.statusCode >= 300) {
773
- return de_CommandError(output, context);
774
- }
775
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
776
- let contents = {};
777
- contents = (0, import_smithy_client._json)(data);
778
- const response = {
779
- $metadata: deserializeMetadata(output),
780
- ...contents
781
- };
782
- return response;
783
- }, "de_RegisterScalableTargetCommand");
784
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
785
- if (output.statusCode >= 300) {
786
- return de_CommandError(output, context);
787
- }
788
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
789
- let contents = {};
790
- contents = (0, import_smithy_client._json)(data);
791
- const response = {
792
- $metadata: deserializeMetadata(output),
793
- ...contents
794
- };
795
- return response;
796
- }, "de_TagResourceCommand");
797
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
798
- if (output.statusCode >= 300) {
799
- return de_CommandError(output, context);
800
- }
801
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
802
- let contents = {};
803
- contents = (0, import_smithy_client._json)(data);
804
- const response = {
805
- $metadata: deserializeMetadata(output),
806
- ...contents
807
- };
808
- return response;
809
- }, "de_UntagResourceCommand");
810
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
811
- const parsedOutput = {
812
- ...output,
813
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
814
- };
815
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
816
- switch (errorCode) {
817
- case "ConcurrentUpdateException":
818
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
819
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
820
- case "InternalServiceException":
821
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
822
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
823
- case "ObjectNotFoundException":
824
- case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
825
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
826
- case "ValidationException":
827
- case "com.amazonaws.applicationautoscaling#ValidationException":
828
- throw await de_ValidationExceptionRes(parsedOutput, context);
829
- case "InvalidNextTokenException":
830
- case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
831
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
832
- case "FailedResourceAccessException":
833
- case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
834
- throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
835
- case "ResourceNotFoundException":
836
- case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
837
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
838
- case "LimitExceededException":
839
- case "com.amazonaws.applicationautoscaling#LimitExceededException":
840
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
841
- case "TooManyTagsException":
842
- case "com.amazonaws.applicationautoscaling#TooManyTagsException":
843
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
844
- default:
845
- const parsedBody = parsedOutput.body;
846
- return throwDefaultError({
847
- output,
848
- parsedBody,
849
- errorCode
850
- });
851
- }
852
- }, "de_CommandError");
853
- var de_ConcurrentUpdateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
854
- const body = parsedOutput.body;
855
- const deserialized = (0, import_smithy_client._json)(body);
856
- const exception = new ConcurrentUpdateException({
857
- $metadata: deserializeMetadata(parsedOutput),
858
- ...deserialized
859
- });
860
- return (0, import_smithy_client.decorateServiceException)(exception, body);
861
- }, "de_ConcurrentUpdateExceptionRes");
862
- var de_FailedResourceAccessExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
863
- const body = parsedOutput.body;
864
- const deserialized = (0, import_smithy_client._json)(body);
865
- const exception = new FailedResourceAccessException({
866
- $metadata: deserializeMetadata(parsedOutput),
867
- ...deserialized
868
- });
869
- return (0, import_smithy_client.decorateServiceException)(exception, body);
870
- }, "de_FailedResourceAccessExceptionRes");
871
- var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
872
- const body = parsedOutput.body;
873
- const deserialized = (0, import_smithy_client._json)(body);
874
- const exception = new InternalServiceException({
875
- $metadata: deserializeMetadata(parsedOutput),
876
- ...deserialized
877
- });
878
- return (0, import_smithy_client.decorateServiceException)(exception, body);
879
- }, "de_InternalServiceExceptionRes");
880
- var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
881
- const body = parsedOutput.body;
882
- const deserialized = (0, import_smithy_client._json)(body);
883
- const exception = new InvalidNextTokenException({
884
- $metadata: deserializeMetadata(parsedOutput),
885
- ...deserialized
886
- });
887
- return (0, import_smithy_client.decorateServiceException)(exception, body);
888
- }, "de_InvalidNextTokenExceptionRes");
889
- var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
890
- const body = parsedOutput.body;
891
- const deserialized = (0, import_smithy_client._json)(body);
892
- const exception = new LimitExceededException({
893
- $metadata: deserializeMetadata(parsedOutput),
894
- ...deserialized
895
- });
896
- return (0, import_smithy_client.decorateServiceException)(exception, body);
897
- }, "de_LimitExceededExceptionRes");
898
- var de_ObjectNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
899
- const body = parsedOutput.body;
900
- const deserialized = (0, import_smithy_client._json)(body);
901
- const exception = new ObjectNotFoundException({
902
- $metadata: deserializeMetadata(parsedOutput),
903
- ...deserialized
904
- });
905
- return (0, import_smithy_client.decorateServiceException)(exception, body);
906
- }, "de_ObjectNotFoundExceptionRes");
907
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
908
- const body = parsedOutput.body;
909
- const deserialized = (0, import_smithy_client._json)(body);
910
- const exception = new ResourceNotFoundException({
911
- $metadata: deserializeMetadata(parsedOutput),
912
- ...deserialized
913
- });
914
- return (0, import_smithy_client.decorateServiceException)(exception, body);
915
- }, "de_ResourceNotFoundExceptionRes");
916
- var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
917
- const body = parsedOutput.body;
918
- const deserialized = (0, import_smithy_client._json)(body);
919
- const exception = new TooManyTagsException({
920
- $metadata: deserializeMetadata(parsedOutput),
921
- ...deserialized
922
- });
923
- return (0, import_smithy_client.decorateServiceException)(exception, body);
924
- }, "de_TooManyTagsExceptionRes");
925
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
926
- const body = parsedOutput.body;
927
- const deserialized = (0, import_smithy_client._json)(body);
928
- const exception = new ValidationException({
929
- $metadata: deserializeMetadata(parsedOutput),
930
- ...deserialized
931
- });
932
- return (0, import_smithy_client.decorateServiceException)(exception, body);
933
- }, "de_ValidationExceptionRes");
934
- var se_GetPredictiveScalingForecastRequest = /* @__PURE__ */ __name((input, context) => {
935
- return (0, import_smithy_client.take)(input, {
936
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
937
- PolicyName: [],
938
- ResourceId: [],
939
- ScalableDimension: [],
940
- ServiceNamespace: [],
941
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
942
- });
943
- }, "se_GetPredictiveScalingForecastRequest");
944
- var se_PredictiveScalingMetricSpecification = /* @__PURE__ */ __name((input, context) => {
945
- return (0, import_smithy_client.take)(input, {
946
- CustomizedCapacityMetricSpecification: import_smithy_client._json,
947
- CustomizedLoadMetricSpecification: import_smithy_client._json,
948
- CustomizedScalingMetricSpecification: import_smithy_client._json,
949
- PredefinedLoadMetricSpecification: import_smithy_client._json,
950
- PredefinedMetricPairSpecification: import_smithy_client._json,
951
- PredefinedScalingMetricSpecification: import_smithy_client._json,
952
- TargetValue: import_smithy_client.serializeFloat
953
- });
954
- }, "se_PredictiveScalingMetricSpecification");
955
- var se_PredictiveScalingMetricSpecifications = /* @__PURE__ */ __name((input, context) => {
956
- return input.filter((e) => e != null).map((entry) => {
957
- return se_PredictiveScalingMetricSpecification(entry, context);
958
- });
959
- }, "se_PredictiveScalingMetricSpecifications");
960
- var se_PredictiveScalingPolicyConfiguration = /* @__PURE__ */ __name((input, context) => {
961
- return (0, import_smithy_client.take)(input, {
962
- MaxCapacityBreachBehavior: [],
963
- MaxCapacityBuffer: [],
964
- MetricSpecifications: /* @__PURE__ */ __name((_) => se_PredictiveScalingMetricSpecifications(_, context), "MetricSpecifications"),
965
- Mode: [],
966
- SchedulingBufferTime: []
967
- });
968
- }, "se_PredictiveScalingPolicyConfiguration");
969
- var se_PutScalingPolicyRequest = /* @__PURE__ */ __name((input, context) => {
970
- return (0, import_smithy_client.take)(input, {
971
- PolicyName: [],
972
- PolicyType: [],
973
- PredictiveScalingPolicyConfiguration: /* @__PURE__ */ __name((_) => se_PredictiveScalingPolicyConfiguration(_, context), "PredictiveScalingPolicyConfiguration"),
974
- ResourceId: [],
975
- ScalableDimension: [],
976
- ServiceNamespace: [],
977
- StepScalingPolicyConfiguration: /* @__PURE__ */ __name((_) => se_StepScalingPolicyConfiguration(_, context), "StepScalingPolicyConfiguration"),
978
- TargetTrackingScalingPolicyConfiguration: /* @__PURE__ */ __name((_) => se_TargetTrackingScalingPolicyConfiguration(_, context), "TargetTrackingScalingPolicyConfiguration")
979
- });
980
- }, "se_PutScalingPolicyRequest");
981
- var se_PutScheduledActionRequest = /* @__PURE__ */ __name((input, context) => {
982
- return (0, import_smithy_client.take)(input, {
983
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
984
- ResourceId: [],
985
- ScalableDimension: [],
986
- ScalableTargetAction: import_smithy_client._json,
987
- Schedule: [],
988
- ScheduledActionName: [],
989
- ServiceNamespace: [],
990
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime"),
991
- Timezone: []
992
- });
993
- }, "se_PutScheduledActionRequest");
994
- var se_StepAdjustment = /* @__PURE__ */ __name((input, context) => {
995
- return (0, import_smithy_client.take)(input, {
996
- MetricIntervalLowerBound: import_smithy_client.serializeFloat,
997
- MetricIntervalUpperBound: import_smithy_client.serializeFloat,
998
- ScalingAdjustment: []
999
- });
1000
- }, "se_StepAdjustment");
1001
- var se_StepAdjustments = /* @__PURE__ */ __name((input, context) => {
1002
- return input.filter((e) => e != null).map((entry) => {
1003
- return se_StepAdjustment(entry, context);
1004
- });
1005
- }, "se_StepAdjustments");
1006
- var se_StepScalingPolicyConfiguration = /* @__PURE__ */ __name((input, context) => {
1007
- return (0, import_smithy_client.take)(input, {
1008
- AdjustmentType: [],
1009
- Cooldown: [],
1010
- MetricAggregationType: [],
1011
- MinAdjustmentMagnitude: [],
1012
- StepAdjustments: /* @__PURE__ */ __name((_) => se_StepAdjustments(_, context), "StepAdjustments")
1013
- });
1014
- }, "se_StepScalingPolicyConfiguration");
1015
- var se_TargetTrackingScalingPolicyConfiguration = /* @__PURE__ */ __name((input, context) => {
1016
- return (0, import_smithy_client.take)(input, {
1017
- CustomizedMetricSpecification: import_smithy_client._json,
1018
- DisableScaleIn: [],
1019
- PredefinedMetricSpecification: import_smithy_client._json,
1020
- ScaleInCooldown: [],
1021
- ScaleOutCooldown: [],
1022
- TargetValue: import_smithy_client.serializeFloat
1023
- });
1024
- }, "se_TargetTrackingScalingPolicyConfiguration");
1025
- var de_CapacityForecast = /* @__PURE__ */ __name((output, context) => {
1026
- return (0, import_smithy_client.take)(output, {
1027
- Timestamps: /* @__PURE__ */ __name((_) => de_PredictiveScalingForecastTimestamps(_, context), "Timestamps"),
1028
- Values: /* @__PURE__ */ __name((_) => de_PredictiveScalingForecastValues(_, context), "Values")
1029
- });
1030
- }, "de_CapacityForecast");
1031
- var de_DescribeScalableTargetsResponse = /* @__PURE__ */ __name((output, context) => {
1032
- return (0, import_smithy_client.take)(output, {
1033
- NextToken: import_smithy_client.expectString,
1034
- ScalableTargets: /* @__PURE__ */ __name((_) => de_ScalableTargets(_, context), "ScalableTargets")
1035
- });
1036
- }, "de_DescribeScalableTargetsResponse");
1037
- var de_DescribeScalingActivitiesResponse = /* @__PURE__ */ __name((output, context) => {
1038
- return (0, import_smithy_client.take)(output, {
1039
- NextToken: import_smithy_client.expectString,
1040
- ScalingActivities: /* @__PURE__ */ __name((_) => de_ScalingActivities(_, context), "ScalingActivities")
1041
- });
1042
- }, "de_DescribeScalingActivitiesResponse");
1043
- var de_DescribeScalingPoliciesResponse = /* @__PURE__ */ __name((output, context) => {
1044
- return (0, import_smithy_client.take)(output, {
1045
- NextToken: import_smithy_client.expectString,
1046
- ScalingPolicies: /* @__PURE__ */ __name((_) => de_ScalingPolicies(_, context), "ScalingPolicies")
1047
- });
1048
- }, "de_DescribeScalingPoliciesResponse");
1049
- var de_DescribeScheduledActionsResponse = /* @__PURE__ */ __name((output, context) => {
1050
- return (0, import_smithy_client.take)(output, {
1051
- NextToken: import_smithy_client.expectString,
1052
- ScheduledActions: /* @__PURE__ */ __name((_) => de_ScheduledActions(_, context), "ScheduledActions")
1053
- });
1054
- }, "de_DescribeScheduledActionsResponse");
1055
- var de_GetPredictiveScalingForecastResponse = /* @__PURE__ */ __name((output, context) => {
1056
- return (0, import_smithy_client.take)(output, {
1057
- CapacityForecast: /* @__PURE__ */ __name((_) => de_CapacityForecast(_, context), "CapacityForecast"),
1058
- LoadForecast: /* @__PURE__ */ __name((_) => de_LoadForecasts(_, context), "LoadForecast"),
1059
- UpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "UpdateTime")
1060
- });
1061
- }, "de_GetPredictiveScalingForecastResponse");
1062
- var de_LoadForecast = /* @__PURE__ */ __name((output, context) => {
1063
- return (0, import_smithy_client.take)(output, {
1064
- MetricSpecification: /* @__PURE__ */ __name((_) => de_PredictiveScalingMetricSpecification(_, context), "MetricSpecification"),
1065
- Timestamps: /* @__PURE__ */ __name((_) => de_PredictiveScalingForecastTimestamps(_, context), "Timestamps"),
1066
- Values: /* @__PURE__ */ __name((_) => de_PredictiveScalingForecastValues(_, context), "Values")
1067
- });
1068
- }, "de_LoadForecast");
1069
- var de_LoadForecasts = /* @__PURE__ */ __name((output, context) => {
1070
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1071
- return de_LoadForecast(entry, context);
1072
- });
1073
- return retVal;
1074
- }, "de_LoadForecasts");
1075
- var de_PredictiveScalingForecastTimestamps = /* @__PURE__ */ __name((output, context) => {
1076
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1077
- return (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(entry)));
1078
- });
1079
- return retVal;
1080
- }, "de_PredictiveScalingForecastTimestamps");
1081
- var de_PredictiveScalingForecastValues = /* @__PURE__ */ __name((output, context) => {
1082
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1083
- return (0, import_smithy_client.limitedParseDouble)(entry);
1084
- });
1085
- return retVal;
1086
- }, "de_PredictiveScalingForecastValues");
1087
- var de_PredictiveScalingMetricSpecification = /* @__PURE__ */ __name((output, context) => {
1088
- return (0, import_smithy_client.take)(output, {
1089
- CustomizedCapacityMetricSpecification: import_smithy_client._json,
1090
- CustomizedLoadMetricSpecification: import_smithy_client._json,
1091
- CustomizedScalingMetricSpecification: import_smithy_client._json,
1092
- PredefinedLoadMetricSpecification: import_smithy_client._json,
1093
- PredefinedMetricPairSpecification: import_smithy_client._json,
1094
- PredefinedScalingMetricSpecification: import_smithy_client._json,
1095
- TargetValue: import_smithy_client.limitedParseDouble
1096
- });
1097
- }, "de_PredictiveScalingMetricSpecification");
1098
- var de_PredictiveScalingMetricSpecifications = /* @__PURE__ */ __name((output, context) => {
1099
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1100
- return de_PredictiveScalingMetricSpecification(entry, context);
1101
- });
1102
- return retVal;
1103
- }, "de_PredictiveScalingMetricSpecifications");
1104
- var de_PredictiveScalingPolicyConfiguration = /* @__PURE__ */ __name((output, context) => {
1105
- return (0, import_smithy_client.take)(output, {
1106
- MaxCapacityBreachBehavior: import_smithy_client.expectString,
1107
- MaxCapacityBuffer: import_smithy_client.expectInt32,
1108
- MetricSpecifications: /* @__PURE__ */ __name((_) => de_PredictiveScalingMetricSpecifications(_, context), "MetricSpecifications"),
1109
- Mode: import_smithy_client.expectString,
1110
- SchedulingBufferTime: import_smithy_client.expectInt32
1111
- });
1112
- }, "de_PredictiveScalingPolicyConfiguration");
1113
- var de_ScalableTarget = /* @__PURE__ */ __name((output, context) => {
1114
- return (0, import_smithy_client.take)(output, {
1115
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1116
- MaxCapacity: import_smithy_client.expectInt32,
1117
- MinCapacity: import_smithy_client.expectInt32,
1118
- PredictedCapacity: import_smithy_client.expectInt32,
1119
- ResourceId: import_smithy_client.expectString,
1120
- RoleARN: import_smithy_client.expectString,
1121
- ScalableDimension: import_smithy_client.expectString,
1122
- ScalableTargetARN: import_smithy_client.expectString,
1123
- ServiceNamespace: import_smithy_client.expectString,
1124
- SuspendedState: import_smithy_client._json
1125
- });
1126
- }, "de_ScalableTarget");
1127
- var de_ScalableTargets = /* @__PURE__ */ __name((output, context) => {
1128
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1129
- return de_ScalableTarget(entry, context);
1130
- });
1131
- return retVal;
1132
- }, "de_ScalableTargets");
1133
- var de_ScalingActivities = /* @__PURE__ */ __name((output, context) => {
1134
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1135
- return de_ScalingActivity(entry, context);
1136
- });
1137
- return retVal;
1138
- }, "de_ScalingActivities");
1139
- var de_ScalingActivity = /* @__PURE__ */ __name((output, context) => {
1140
- return (0, import_smithy_client.take)(output, {
1141
- ActivityId: import_smithy_client.expectString,
1142
- Cause: import_smithy_client.expectString,
1143
- Description: import_smithy_client.expectString,
1144
- Details: import_smithy_client.expectString,
1145
- EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
1146
- NotScaledReasons: import_smithy_client._json,
1147
- ResourceId: import_smithy_client.expectString,
1148
- ScalableDimension: import_smithy_client.expectString,
1149
- ServiceNamespace: import_smithy_client.expectString,
1150
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1151
- StatusCode: import_smithy_client.expectString,
1152
- StatusMessage: import_smithy_client.expectString
1153
- });
1154
- }, "de_ScalingActivity");
1155
- var de_ScalingPolicies = /* @__PURE__ */ __name((output, context) => {
1156
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1157
- return de_ScalingPolicy(entry, context);
1158
- });
1159
- return retVal;
1160
- }, "de_ScalingPolicies");
1161
- var de_ScalingPolicy = /* @__PURE__ */ __name((output, context) => {
1162
- return (0, import_smithy_client.take)(output, {
1163
- Alarms: import_smithy_client._json,
1164
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1165
- PolicyARN: import_smithy_client.expectString,
1166
- PolicyName: import_smithy_client.expectString,
1167
- PolicyType: import_smithy_client.expectString,
1168
- PredictiveScalingPolicyConfiguration: /* @__PURE__ */ __name((_) => de_PredictiveScalingPolicyConfiguration(_, context), "PredictiveScalingPolicyConfiguration"),
1169
- ResourceId: import_smithy_client.expectString,
1170
- ScalableDimension: import_smithy_client.expectString,
1171
- ServiceNamespace: import_smithy_client.expectString,
1172
- StepScalingPolicyConfiguration: /* @__PURE__ */ __name((_) => de_StepScalingPolicyConfiguration(_, context), "StepScalingPolicyConfiguration"),
1173
- TargetTrackingScalingPolicyConfiguration: /* @__PURE__ */ __name((_) => de_TargetTrackingScalingPolicyConfiguration(_, context), "TargetTrackingScalingPolicyConfiguration")
1174
- });
1175
- }, "de_ScalingPolicy");
1176
- var de_ScheduledAction = /* @__PURE__ */ __name((output, context) => {
1177
- return (0, import_smithy_client.take)(output, {
1178
- CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1179
- EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
1180
- ResourceId: import_smithy_client.expectString,
1181
- ScalableDimension: import_smithy_client.expectString,
1182
- ScalableTargetAction: import_smithy_client._json,
1183
- Schedule: import_smithy_client.expectString,
1184
- ScheduledActionARN: import_smithy_client.expectString,
1185
- ScheduledActionName: import_smithy_client.expectString,
1186
- ServiceNamespace: import_smithy_client.expectString,
1187
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1188
- Timezone: import_smithy_client.expectString
1189
- });
1190
- }, "de_ScheduledAction");
1191
- var de_ScheduledActions = /* @__PURE__ */ __name((output, context) => {
1192
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1193
- return de_ScheduledAction(entry, context);
1194
- });
1195
- return retVal;
1196
- }, "de_ScheduledActions");
1197
- var de_StepAdjustment = /* @__PURE__ */ __name((output, context) => {
1198
- return (0, import_smithy_client.take)(output, {
1199
- MetricIntervalLowerBound: import_smithy_client.limitedParseDouble,
1200
- MetricIntervalUpperBound: import_smithy_client.limitedParseDouble,
1201
- ScalingAdjustment: import_smithy_client.expectInt32
1202
- });
1203
- }, "de_StepAdjustment");
1204
- var de_StepAdjustments = /* @__PURE__ */ __name((output, context) => {
1205
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1206
- return de_StepAdjustment(entry, context);
1207
- });
1208
- return retVal;
1209
- }, "de_StepAdjustments");
1210
- var de_StepScalingPolicyConfiguration = /* @__PURE__ */ __name((output, context) => {
1211
- return (0, import_smithy_client.take)(output, {
1212
- AdjustmentType: import_smithy_client.expectString,
1213
- Cooldown: import_smithy_client.expectInt32,
1214
- MetricAggregationType: import_smithy_client.expectString,
1215
- MinAdjustmentMagnitude: import_smithy_client.expectInt32,
1216
- StepAdjustments: /* @__PURE__ */ __name((_) => de_StepAdjustments(_, context), "StepAdjustments")
1217
- });
1218
- }, "de_StepScalingPolicyConfiguration");
1219
- var de_TargetTrackingScalingPolicyConfiguration = /* @__PURE__ */ __name((output, context) => {
1220
- return (0, import_smithy_client.take)(output, {
1221
- CustomizedMetricSpecification: import_smithy_client._json,
1222
- DisableScaleIn: import_smithy_client.expectBoolean,
1223
- PredefinedMetricSpecification: import_smithy_client._json,
1224
- ScaleInCooldown: import_smithy_client.expectInt32,
1225
- ScaleOutCooldown: import_smithy_client.expectInt32,
1226
- TargetValue: import_smithy_client.limitedParseDouble
1227
- });
1228
- }, "de_TargetTrackingScalingPolicyConfiguration");
1229
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1230
- httpStatusCode: output.statusCode,
1231
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1232
- extendedRequestId: output.headers["x-amz-id-2"],
1233
- cfId: output.headers["x-amz-cf-id"]
1234
- }), "deserializeMetadata");
1235
- var throwDefaultError = (0, import_smithy_client.withBaseException)(ApplicationAutoScalingServiceException);
1236
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1237
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1238
- const contents = {
1239
- protocol,
1240
- hostname,
1241
- port,
1242
- method: "POST",
1243
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1244
- headers
1245
- };
1246
- if (resolvedHostname !== void 0) {
1247
- contents.hostname = resolvedHostname;
1248
- }
1249
- if (body !== void 0) {
1250
- contents.body = body;
1251
- }
1252
- return new import_protocol_http.HttpRequest(contents);
1253
- }, "buildHttpRpcRequest");
1254
- function sharedHeaders(operation) {
1255
- return {
1256
- "content-type": "application/x-amz-json-1.1",
1257
- "x-amz-target": `AnyScaleFrontendService.${operation}`
1258
- };
1259
- }
1260
- __name(sharedHeaders, "sharedHeaders");
1261
-
1262
- // src/commands/DeleteScalingPolicyCommand.ts
1263
- var DeleteScalingPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1264
- return [
1265
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1266
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1267
- ];
1268
- }).s("AnyScaleFrontendService", "DeleteScalingPolicy", {}).n("ApplicationAutoScalingClient", "DeleteScalingPolicyCommand").f(void 0, void 0).ser(se_DeleteScalingPolicyCommand).de(de_DeleteScalingPolicyCommand).build() {
1269
- static {
1270
- __name(this, "DeleteScalingPolicyCommand");
1271
- }
753
+ const se_GetPredictiveScalingForecastRequest = (input, context) => {
754
+ return smithyClient.take(input, {
755
+ EndTime: (_) => _.getTime() / 1_000,
756
+ PolicyName: [],
757
+ ResourceId: [],
758
+ ScalableDimension: [],
759
+ ServiceNamespace: [],
760
+ StartTime: (_) => _.getTime() / 1_000,
761
+ });
1272
762
  };
1273
-
1274
- // src/commands/DeleteScheduledActionCommand.ts
1275
-
1276
-
1277
-
1278
- var DeleteScheduledActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1279
- return [
1280
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1281
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1282
- ];
1283
- }).s("AnyScaleFrontendService", "DeleteScheduledAction", {}).n("ApplicationAutoScalingClient", "DeleteScheduledActionCommand").f(void 0, void 0).ser(se_DeleteScheduledActionCommand).de(de_DeleteScheduledActionCommand).build() {
1284
- static {
1285
- __name(this, "DeleteScheduledActionCommand");
1286
- }
763
+ const se_PredictiveScalingMetricSpecification = (input, context) => {
764
+ return smithyClient.take(input, {
765
+ CustomizedCapacityMetricSpecification: smithyClient._json,
766
+ CustomizedLoadMetricSpecification: smithyClient._json,
767
+ CustomizedScalingMetricSpecification: smithyClient._json,
768
+ PredefinedLoadMetricSpecification: smithyClient._json,
769
+ PredefinedMetricPairSpecification: smithyClient._json,
770
+ PredefinedScalingMetricSpecification: smithyClient._json,
771
+ TargetValue: smithyClient.serializeFloat,
772
+ });
1287
773
  };
1288
-
1289
- // src/commands/DeregisterScalableTargetCommand.ts
1290
-
1291
-
1292
-
1293
- var DeregisterScalableTargetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1294
- return [
1295
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1296
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1297
- ];
1298
- }).s("AnyScaleFrontendService", "DeregisterScalableTarget", {}).n("ApplicationAutoScalingClient", "DeregisterScalableTargetCommand").f(void 0, void 0).ser(se_DeregisterScalableTargetCommand).de(de_DeregisterScalableTargetCommand).build() {
1299
- static {
1300
- __name(this, "DeregisterScalableTargetCommand");
1301
- }
774
+ const se_PredictiveScalingMetricSpecifications = (input, context) => {
775
+ return input
776
+ .filter((e) => e != null)
777
+ .map((entry) => {
778
+ return se_PredictiveScalingMetricSpecification(entry);
779
+ });
1302
780
  };
1303
-
1304
- // src/commands/DescribeScalableTargetsCommand.ts
1305
-
1306
-
1307
-
1308
- var DescribeScalableTargetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1309
- return [
1310
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1311
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1312
- ];
1313
- }).s("AnyScaleFrontendService", "DescribeScalableTargets", {}).n("ApplicationAutoScalingClient", "DescribeScalableTargetsCommand").f(void 0, void 0).ser(se_DescribeScalableTargetsCommand).de(de_DescribeScalableTargetsCommand).build() {
1314
- static {
1315
- __name(this, "DescribeScalableTargetsCommand");
1316
- }
781
+ const se_PredictiveScalingPolicyConfiguration = (input, context) => {
782
+ return smithyClient.take(input, {
783
+ MaxCapacityBreachBehavior: [],
784
+ MaxCapacityBuffer: [],
785
+ MetricSpecifications: (_) => se_PredictiveScalingMetricSpecifications(_),
786
+ Mode: [],
787
+ SchedulingBufferTime: [],
788
+ });
1317
789
  };
1318
-
1319
- // src/commands/DescribeScalingActivitiesCommand.ts
1320
-
1321
-
1322
-
1323
- var DescribeScalingActivitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1324
- return [
1325
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1326
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1327
- ];
1328
- }).s("AnyScaleFrontendService", "DescribeScalingActivities", {}).n("ApplicationAutoScalingClient", "DescribeScalingActivitiesCommand").f(void 0, void 0).ser(se_DescribeScalingActivitiesCommand).de(de_DescribeScalingActivitiesCommand).build() {
1329
- static {
1330
- __name(this, "DescribeScalingActivitiesCommand");
1331
- }
790
+ const se_PutScalingPolicyRequest = (input, context) => {
791
+ return smithyClient.take(input, {
792
+ PolicyName: [],
793
+ PolicyType: [],
794
+ PredictiveScalingPolicyConfiguration: (_) => se_PredictiveScalingPolicyConfiguration(_),
795
+ ResourceId: [],
796
+ ScalableDimension: [],
797
+ ServiceNamespace: [],
798
+ StepScalingPolicyConfiguration: (_) => se_StepScalingPolicyConfiguration(_),
799
+ TargetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_),
800
+ });
1332
801
  };
1333
-
1334
- // src/commands/DescribeScalingPoliciesCommand.ts
1335
-
1336
-
1337
-
1338
- var DescribeScalingPoliciesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1339
- return [
1340
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1341
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1342
- ];
1343
- }).s("AnyScaleFrontendService", "DescribeScalingPolicies", {}).n("ApplicationAutoScalingClient", "DescribeScalingPoliciesCommand").f(void 0, void 0).ser(se_DescribeScalingPoliciesCommand).de(de_DescribeScalingPoliciesCommand).build() {
1344
- static {
1345
- __name(this, "DescribeScalingPoliciesCommand");
1346
- }
802
+ const se_PutScheduledActionRequest = (input, context) => {
803
+ return smithyClient.take(input, {
804
+ EndTime: (_) => _.getTime() / 1_000,
805
+ ResourceId: [],
806
+ ScalableDimension: [],
807
+ ScalableTargetAction: smithyClient._json,
808
+ Schedule: [],
809
+ ScheduledActionName: [],
810
+ ServiceNamespace: [],
811
+ StartTime: (_) => _.getTime() / 1_000,
812
+ Timezone: [],
813
+ });
1347
814
  };
1348
-
1349
- // src/commands/DescribeScheduledActionsCommand.ts
1350
-
1351
-
1352
-
1353
- var DescribeScheduledActionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1354
- return [
1355
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1356
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1357
- ];
1358
- }).s("AnyScaleFrontendService", "DescribeScheduledActions", {}).n("ApplicationAutoScalingClient", "DescribeScheduledActionsCommand").f(void 0, void 0).ser(se_DescribeScheduledActionsCommand).de(de_DescribeScheduledActionsCommand).build() {
1359
- static {
1360
- __name(this, "DescribeScheduledActionsCommand");
1361
- }
815
+ const se_StepAdjustment = (input, context) => {
816
+ return smithyClient.take(input, {
817
+ MetricIntervalLowerBound: smithyClient.serializeFloat,
818
+ MetricIntervalUpperBound: smithyClient.serializeFloat,
819
+ ScalingAdjustment: [],
820
+ });
1362
821
  };
1363
-
1364
- // src/commands/GetPredictiveScalingForecastCommand.ts
1365
-
1366
-
1367
-
1368
- var GetPredictiveScalingForecastCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1369
- return [
1370
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1371
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1372
- ];
1373
- }).s("AnyScaleFrontendService", "GetPredictiveScalingForecast", {}).n("ApplicationAutoScalingClient", "GetPredictiveScalingForecastCommand").f(void 0, void 0).ser(se_GetPredictiveScalingForecastCommand).de(de_GetPredictiveScalingForecastCommand).build() {
1374
- static {
1375
- __name(this, "GetPredictiveScalingForecastCommand");
1376
- }
822
+ const se_StepAdjustments = (input, context) => {
823
+ return input
824
+ .filter((e) => e != null)
825
+ .map((entry) => {
826
+ return se_StepAdjustment(entry);
827
+ });
1377
828
  };
1378
-
1379
- // src/commands/ListTagsForResourceCommand.ts
1380
-
1381
-
1382
-
1383
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1384
- return [
1385
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1386
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1387
- ];
1388
- }).s("AnyScaleFrontendService", "ListTagsForResource", {}).n("ApplicationAutoScalingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1389
- static {
1390
- __name(this, "ListTagsForResourceCommand");
1391
- }
829
+ const se_StepScalingPolicyConfiguration = (input, context) => {
830
+ return smithyClient.take(input, {
831
+ AdjustmentType: [],
832
+ Cooldown: [],
833
+ MetricAggregationType: [],
834
+ MinAdjustmentMagnitude: [],
835
+ StepAdjustments: (_) => se_StepAdjustments(_),
836
+ });
1392
837
  };
1393
-
1394
- // src/commands/PutScalingPolicyCommand.ts
1395
-
1396
-
1397
-
1398
- var PutScalingPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1399
- return [
1400
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1401
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1402
- ];
1403
- }).s("AnyScaleFrontendService", "PutScalingPolicy", {}).n("ApplicationAutoScalingClient", "PutScalingPolicyCommand").f(void 0, void 0).ser(se_PutScalingPolicyCommand).de(de_PutScalingPolicyCommand).build() {
1404
- static {
1405
- __name(this, "PutScalingPolicyCommand");
1406
- }
838
+ const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
839
+ return smithyClient.take(input, {
840
+ CustomizedMetricSpecification: smithyClient._json,
841
+ DisableScaleIn: [],
842
+ PredefinedMetricSpecification: smithyClient._json,
843
+ ScaleInCooldown: [],
844
+ ScaleOutCooldown: [],
845
+ TargetValue: smithyClient.serializeFloat,
846
+ });
1407
847
  };
1408
-
1409
- // src/commands/PutScheduledActionCommand.ts
1410
-
1411
-
1412
-
1413
- var PutScheduledActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1414
- return [
1415
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1416
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1417
- ];
1418
- }).s("AnyScaleFrontendService", "PutScheduledAction", {}).n("ApplicationAutoScalingClient", "PutScheduledActionCommand").f(void 0, void 0).ser(se_PutScheduledActionCommand).de(de_PutScheduledActionCommand).build() {
1419
- static {
1420
- __name(this, "PutScheduledActionCommand");
1421
- }
848
+ const de_CapacityForecast = (output, context) => {
849
+ return smithyClient.take(output, {
850
+ Timestamps: (_) => de_PredictiveScalingForecastTimestamps(_),
851
+ Values: (_) => de_PredictiveScalingForecastValues(_),
852
+ });
1422
853
  };
854
+ const de_DescribeScalableTargetsResponse = (output, context) => {
855
+ return smithyClient.take(output, {
856
+ NextToken: smithyClient.expectString,
857
+ ScalableTargets: (_) => de_ScalableTargets(_),
858
+ });
859
+ };
860
+ const de_DescribeScalingActivitiesResponse = (output, context) => {
861
+ return smithyClient.take(output, {
862
+ NextToken: smithyClient.expectString,
863
+ ScalingActivities: (_) => de_ScalingActivities(_),
864
+ });
865
+ };
866
+ const de_DescribeScalingPoliciesResponse = (output, context) => {
867
+ return smithyClient.take(output, {
868
+ NextToken: smithyClient.expectString,
869
+ ScalingPolicies: (_) => de_ScalingPolicies(_),
870
+ });
871
+ };
872
+ const de_DescribeScheduledActionsResponse = (output, context) => {
873
+ return smithyClient.take(output, {
874
+ NextToken: smithyClient.expectString,
875
+ ScheduledActions: (_) => de_ScheduledActions(_),
876
+ });
877
+ };
878
+ const de_GetPredictiveScalingForecastResponse = (output, context) => {
879
+ return smithyClient.take(output, {
880
+ CapacityForecast: (_) => de_CapacityForecast(_),
881
+ LoadForecast: (_) => de_LoadForecasts(_),
882
+ UpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
883
+ });
884
+ };
885
+ const de_LoadForecast = (output, context) => {
886
+ return smithyClient.take(output, {
887
+ MetricSpecification: (_) => de_PredictiveScalingMetricSpecification(_),
888
+ Timestamps: (_) => de_PredictiveScalingForecastTimestamps(_),
889
+ Values: (_) => de_PredictiveScalingForecastValues(_),
890
+ });
891
+ };
892
+ const de_LoadForecasts = (output, context) => {
893
+ const retVal = (output || [])
894
+ .filter((e) => e != null)
895
+ .map((entry) => {
896
+ return de_LoadForecast(entry);
897
+ });
898
+ return retVal;
899
+ };
900
+ const de_PredictiveScalingForecastTimestamps = (output, context) => {
901
+ const retVal = (output || [])
902
+ .filter((e) => e != null)
903
+ .map((entry) => {
904
+ return smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(entry)));
905
+ });
906
+ return retVal;
907
+ };
908
+ const de_PredictiveScalingForecastValues = (output, context) => {
909
+ const retVal = (output || [])
910
+ .filter((e) => e != null)
911
+ .map((entry) => {
912
+ return smithyClient.limitedParseDouble(entry);
913
+ });
914
+ return retVal;
915
+ };
916
+ const de_PredictiveScalingMetricSpecification = (output, context) => {
917
+ return smithyClient.take(output, {
918
+ CustomizedCapacityMetricSpecification: smithyClient._json,
919
+ CustomizedLoadMetricSpecification: smithyClient._json,
920
+ CustomizedScalingMetricSpecification: smithyClient._json,
921
+ PredefinedLoadMetricSpecification: smithyClient._json,
922
+ PredefinedMetricPairSpecification: smithyClient._json,
923
+ PredefinedScalingMetricSpecification: smithyClient._json,
924
+ TargetValue: smithyClient.limitedParseDouble,
925
+ });
926
+ };
927
+ const de_PredictiveScalingMetricSpecifications = (output, context) => {
928
+ const retVal = (output || [])
929
+ .filter((e) => e != null)
930
+ .map((entry) => {
931
+ return de_PredictiveScalingMetricSpecification(entry);
932
+ });
933
+ return retVal;
934
+ };
935
+ const de_PredictiveScalingPolicyConfiguration = (output, context) => {
936
+ return smithyClient.take(output, {
937
+ MaxCapacityBreachBehavior: smithyClient.expectString,
938
+ MaxCapacityBuffer: smithyClient.expectInt32,
939
+ MetricSpecifications: (_) => de_PredictiveScalingMetricSpecifications(_),
940
+ Mode: smithyClient.expectString,
941
+ SchedulingBufferTime: smithyClient.expectInt32,
942
+ });
943
+ };
944
+ const de_ScalableTarget = (output, context) => {
945
+ return smithyClient.take(output, {
946
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
947
+ MaxCapacity: smithyClient.expectInt32,
948
+ MinCapacity: smithyClient.expectInt32,
949
+ PredictedCapacity: smithyClient.expectInt32,
950
+ ResourceId: smithyClient.expectString,
951
+ RoleARN: smithyClient.expectString,
952
+ ScalableDimension: smithyClient.expectString,
953
+ ScalableTargetARN: smithyClient.expectString,
954
+ ServiceNamespace: smithyClient.expectString,
955
+ SuspendedState: smithyClient._json,
956
+ });
957
+ };
958
+ const de_ScalableTargets = (output, context) => {
959
+ const retVal = (output || [])
960
+ .filter((e) => e != null)
961
+ .map((entry) => {
962
+ return de_ScalableTarget(entry);
963
+ });
964
+ return retVal;
965
+ };
966
+ const de_ScalingActivities = (output, context) => {
967
+ const retVal = (output || [])
968
+ .filter((e) => e != null)
969
+ .map((entry) => {
970
+ return de_ScalingActivity(entry);
971
+ });
972
+ return retVal;
973
+ };
974
+ const de_ScalingActivity = (output, context) => {
975
+ return smithyClient.take(output, {
976
+ ActivityId: smithyClient.expectString,
977
+ Cause: smithyClient.expectString,
978
+ Description: smithyClient.expectString,
979
+ Details: smithyClient.expectString,
980
+ EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
981
+ NotScaledReasons: smithyClient._json,
982
+ ResourceId: smithyClient.expectString,
983
+ ScalableDimension: smithyClient.expectString,
984
+ ServiceNamespace: smithyClient.expectString,
985
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
986
+ StatusCode: smithyClient.expectString,
987
+ StatusMessage: smithyClient.expectString,
988
+ });
989
+ };
990
+ const de_ScalingPolicies = (output, context) => {
991
+ const retVal = (output || [])
992
+ .filter((e) => e != null)
993
+ .map((entry) => {
994
+ return de_ScalingPolicy(entry);
995
+ });
996
+ return retVal;
997
+ };
998
+ const de_ScalingPolicy = (output, context) => {
999
+ return smithyClient.take(output, {
1000
+ Alarms: smithyClient._json,
1001
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1002
+ PolicyARN: smithyClient.expectString,
1003
+ PolicyName: smithyClient.expectString,
1004
+ PolicyType: smithyClient.expectString,
1005
+ PredictiveScalingPolicyConfiguration: (_) => de_PredictiveScalingPolicyConfiguration(_),
1006
+ ResourceId: smithyClient.expectString,
1007
+ ScalableDimension: smithyClient.expectString,
1008
+ ServiceNamespace: smithyClient.expectString,
1009
+ StepScalingPolicyConfiguration: (_) => de_StepScalingPolicyConfiguration(_),
1010
+ TargetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_),
1011
+ });
1012
+ };
1013
+ const de_ScheduledAction = (output, context) => {
1014
+ return smithyClient.take(output, {
1015
+ CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1016
+ EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1017
+ ResourceId: smithyClient.expectString,
1018
+ ScalableDimension: smithyClient.expectString,
1019
+ ScalableTargetAction: smithyClient._json,
1020
+ Schedule: smithyClient.expectString,
1021
+ ScheduledActionARN: smithyClient.expectString,
1022
+ ScheduledActionName: smithyClient.expectString,
1023
+ ServiceNamespace: smithyClient.expectString,
1024
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1025
+ Timezone: smithyClient.expectString,
1026
+ });
1027
+ };
1028
+ const de_ScheduledActions = (output, context) => {
1029
+ const retVal = (output || [])
1030
+ .filter((e) => e != null)
1031
+ .map((entry) => {
1032
+ return de_ScheduledAction(entry);
1033
+ });
1034
+ return retVal;
1035
+ };
1036
+ const de_StepAdjustment = (output, context) => {
1037
+ return smithyClient.take(output, {
1038
+ MetricIntervalLowerBound: smithyClient.limitedParseDouble,
1039
+ MetricIntervalUpperBound: smithyClient.limitedParseDouble,
1040
+ ScalingAdjustment: smithyClient.expectInt32,
1041
+ });
1042
+ };
1043
+ const de_StepAdjustments = (output, context) => {
1044
+ const retVal = (output || [])
1045
+ .filter((e) => e != null)
1046
+ .map((entry) => {
1047
+ return de_StepAdjustment(entry);
1048
+ });
1049
+ return retVal;
1050
+ };
1051
+ const de_StepScalingPolicyConfiguration = (output, context) => {
1052
+ return smithyClient.take(output, {
1053
+ AdjustmentType: smithyClient.expectString,
1054
+ Cooldown: smithyClient.expectInt32,
1055
+ MetricAggregationType: smithyClient.expectString,
1056
+ MinAdjustmentMagnitude: smithyClient.expectInt32,
1057
+ StepAdjustments: (_) => de_StepAdjustments(_),
1058
+ });
1059
+ };
1060
+ const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
1061
+ return smithyClient.take(output, {
1062
+ CustomizedMetricSpecification: smithyClient._json,
1063
+ DisableScaleIn: smithyClient.expectBoolean,
1064
+ PredefinedMetricSpecification: smithyClient._json,
1065
+ ScaleInCooldown: smithyClient.expectInt32,
1066
+ ScaleOutCooldown: smithyClient.expectInt32,
1067
+ TargetValue: smithyClient.limitedParseDouble,
1068
+ });
1069
+ };
1070
+ const deserializeMetadata = (output) => ({
1071
+ httpStatusCode: output.statusCode,
1072
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1073
+ extendedRequestId: output.headers["x-amz-id-2"],
1074
+ cfId: output.headers["x-amz-cf-id"],
1075
+ });
1076
+ const throwDefaultError = smithyClient.withBaseException(ApplicationAutoScalingServiceException);
1077
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1078
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1079
+ const contents = {
1080
+ protocol,
1081
+ hostname,
1082
+ port,
1083
+ method: "POST",
1084
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1085
+ headers,
1086
+ };
1087
+ if (body !== undefined) {
1088
+ contents.body = body;
1089
+ }
1090
+ return new protocolHttp.HttpRequest(contents);
1091
+ };
1092
+ function sharedHeaders(operation) {
1093
+ return {
1094
+ "content-type": "application/x-amz-json-1.1",
1095
+ "x-amz-target": `AnyScaleFrontendService.${operation}`,
1096
+ };
1097
+ }
1423
1098
 
1424
- // src/commands/RegisterScalableTargetCommand.ts
1425
-
1426
-
1099
+ class DeleteScalingPolicyCommand extends smithyClient.Command
1100
+ .classBuilder()
1101
+ .ep(commonParams)
1102
+ .m(function (Command, cs, config, o) {
1103
+ return [
1104
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1105
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1106
+ ];
1107
+ })
1108
+ .s("AnyScaleFrontendService", "DeleteScalingPolicy", {})
1109
+ .n("ApplicationAutoScalingClient", "DeleteScalingPolicyCommand")
1110
+ .f(void 0, void 0)
1111
+ .ser(se_DeleteScalingPolicyCommand)
1112
+ .de(de_DeleteScalingPolicyCommand)
1113
+ .build() {
1114
+ }
1427
1115
 
1428
- var RegisterScalableTargetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1429
- return [
1430
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1431
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1432
- ];
1433
- }).s("AnyScaleFrontendService", "RegisterScalableTarget", {}).n("ApplicationAutoScalingClient", "RegisterScalableTargetCommand").f(void 0, void 0).ser(se_RegisterScalableTargetCommand).de(de_RegisterScalableTargetCommand).build() {
1434
- static {
1435
- __name(this, "RegisterScalableTargetCommand");
1436
- }
1437
- };
1116
+ class DeleteScheduledActionCommand extends smithyClient.Command
1117
+ .classBuilder()
1118
+ .ep(commonParams)
1119
+ .m(function (Command, cs, config, o) {
1120
+ return [
1121
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1122
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1123
+ ];
1124
+ })
1125
+ .s("AnyScaleFrontendService", "DeleteScheduledAction", {})
1126
+ .n("ApplicationAutoScalingClient", "DeleteScheduledActionCommand")
1127
+ .f(void 0, void 0)
1128
+ .ser(se_DeleteScheduledActionCommand)
1129
+ .de(de_DeleteScheduledActionCommand)
1130
+ .build() {
1131
+ }
1438
1132
 
1439
- // src/commands/TagResourceCommand.ts
1133
+ class DeregisterScalableTargetCommand extends smithyClient.Command
1134
+ .classBuilder()
1135
+ .ep(commonParams)
1136
+ .m(function (Command, cs, config, o) {
1137
+ return [
1138
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1139
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1140
+ ];
1141
+ })
1142
+ .s("AnyScaleFrontendService", "DeregisterScalableTarget", {})
1143
+ .n("ApplicationAutoScalingClient", "DeregisterScalableTargetCommand")
1144
+ .f(void 0, void 0)
1145
+ .ser(se_DeregisterScalableTargetCommand)
1146
+ .de(de_DeregisterScalableTargetCommand)
1147
+ .build() {
1148
+ }
1440
1149
 
1150
+ class DescribeScalableTargetsCommand extends smithyClient.Command
1151
+ .classBuilder()
1152
+ .ep(commonParams)
1153
+ .m(function (Command, cs, config, o) {
1154
+ return [
1155
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1156
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1157
+ ];
1158
+ })
1159
+ .s("AnyScaleFrontendService", "DescribeScalableTargets", {})
1160
+ .n("ApplicationAutoScalingClient", "DescribeScalableTargetsCommand")
1161
+ .f(void 0, void 0)
1162
+ .ser(se_DescribeScalableTargetsCommand)
1163
+ .de(de_DescribeScalableTargetsCommand)
1164
+ .build() {
1165
+ }
1441
1166
 
1167
+ class DescribeScalingActivitiesCommand extends smithyClient.Command
1168
+ .classBuilder()
1169
+ .ep(commonParams)
1170
+ .m(function (Command, cs, config, o) {
1171
+ return [
1172
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1173
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1174
+ ];
1175
+ })
1176
+ .s("AnyScaleFrontendService", "DescribeScalingActivities", {})
1177
+ .n("ApplicationAutoScalingClient", "DescribeScalingActivitiesCommand")
1178
+ .f(void 0, void 0)
1179
+ .ser(se_DescribeScalingActivitiesCommand)
1180
+ .de(de_DescribeScalingActivitiesCommand)
1181
+ .build() {
1182
+ }
1442
1183
 
1443
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1444
- return [
1445
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1446
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1447
- ];
1448
- }).s("AnyScaleFrontendService", "TagResource", {}).n("ApplicationAutoScalingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1449
- static {
1450
- __name(this, "TagResourceCommand");
1451
- }
1452
- };
1184
+ class DescribeScalingPoliciesCommand extends smithyClient.Command
1185
+ .classBuilder()
1186
+ .ep(commonParams)
1187
+ .m(function (Command, cs, config, o) {
1188
+ return [
1189
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1190
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1191
+ ];
1192
+ })
1193
+ .s("AnyScaleFrontendService", "DescribeScalingPolicies", {})
1194
+ .n("ApplicationAutoScalingClient", "DescribeScalingPoliciesCommand")
1195
+ .f(void 0, void 0)
1196
+ .ser(se_DescribeScalingPoliciesCommand)
1197
+ .de(de_DescribeScalingPoliciesCommand)
1198
+ .build() {
1199
+ }
1453
1200
 
1454
- // src/commands/UntagResourceCommand.ts
1201
+ class DescribeScheduledActionsCommand extends smithyClient.Command
1202
+ .classBuilder()
1203
+ .ep(commonParams)
1204
+ .m(function (Command, cs, config, o) {
1205
+ return [
1206
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1207
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1208
+ ];
1209
+ })
1210
+ .s("AnyScaleFrontendService", "DescribeScheduledActions", {})
1211
+ .n("ApplicationAutoScalingClient", "DescribeScheduledActionsCommand")
1212
+ .f(void 0, void 0)
1213
+ .ser(se_DescribeScheduledActionsCommand)
1214
+ .de(de_DescribeScheduledActionsCommand)
1215
+ .build() {
1216
+ }
1455
1217
 
1218
+ class GetPredictiveScalingForecastCommand extends smithyClient.Command
1219
+ .classBuilder()
1220
+ .ep(commonParams)
1221
+ .m(function (Command, cs, config, o) {
1222
+ return [
1223
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1224
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1225
+ ];
1226
+ })
1227
+ .s("AnyScaleFrontendService", "GetPredictiveScalingForecast", {})
1228
+ .n("ApplicationAutoScalingClient", "GetPredictiveScalingForecastCommand")
1229
+ .f(void 0, void 0)
1230
+ .ser(se_GetPredictiveScalingForecastCommand)
1231
+ .de(de_GetPredictiveScalingForecastCommand)
1232
+ .build() {
1233
+ }
1456
1234
 
1235
+ class ListTagsForResourceCommand extends smithyClient.Command
1236
+ .classBuilder()
1237
+ .ep(commonParams)
1238
+ .m(function (Command, cs, config, o) {
1239
+ return [
1240
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1241
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1242
+ ];
1243
+ })
1244
+ .s("AnyScaleFrontendService", "ListTagsForResource", {})
1245
+ .n("ApplicationAutoScalingClient", "ListTagsForResourceCommand")
1246
+ .f(void 0, void 0)
1247
+ .ser(se_ListTagsForResourceCommand)
1248
+ .de(de_ListTagsForResourceCommand)
1249
+ .build() {
1250
+ }
1457
1251
 
1458
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1459
- return [
1460
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1461
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1462
- ];
1463
- }).s("AnyScaleFrontendService", "UntagResource", {}).n("ApplicationAutoScalingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1464
- static {
1465
- __name(this, "UntagResourceCommand");
1466
- }
1467
- };
1252
+ class PutScalingPolicyCommand extends smithyClient.Command
1253
+ .classBuilder()
1254
+ .ep(commonParams)
1255
+ .m(function (Command, cs, config, o) {
1256
+ return [
1257
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1258
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1259
+ ];
1260
+ })
1261
+ .s("AnyScaleFrontendService", "PutScalingPolicy", {})
1262
+ .n("ApplicationAutoScalingClient", "PutScalingPolicyCommand")
1263
+ .f(void 0, void 0)
1264
+ .ser(se_PutScalingPolicyCommand)
1265
+ .de(de_PutScalingPolicyCommand)
1266
+ .build() {
1267
+ }
1468
1268
 
1469
- // src/ApplicationAutoScaling.ts
1470
- var commands = {
1471
- DeleteScalingPolicyCommand,
1472
- DeleteScheduledActionCommand,
1473
- DeregisterScalableTargetCommand,
1474
- DescribeScalableTargetsCommand,
1475
- DescribeScalingActivitiesCommand,
1476
- DescribeScalingPoliciesCommand,
1477
- DescribeScheduledActionsCommand,
1478
- GetPredictiveScalingForecastCommand,
1479
- ListTagsForResourceCommand,
1480
- PutScalingPolicyCommand,
1481
- PutScheduledActionCommand,
1482
- RegisterScalableTargetCommand,
1483
- TagResourceCommand,
1484
- UntagResourceCommand
1485
- };
1486
- var ApplicationAutoScaling = class extends ApplicationAutoScalingClient {
1487
- static {
1488
- __name(this, "ApplicationAutoScaling");
1489
- }
1490
- };
1491
- (0, import_smithy_client.createAggregatedClient)(commands, ApplicationAutoScaling);
1269
+ class PutScheduledActionCommand extends smithyClient.Command
1270
+ .classBuilder()
1271
+ .ep(commonParams)
1272
+ .m(function (Command, cs, config, o) {
1273
+ return [
1274
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1275
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1276
+ ];
1277
+ })
1278
+ .s("AnyScaleFrontendService", "PutScheduledAction", {})
1279
+ .n("ApplicationAutoScalingClient", "PutScheduledActionCommand")
1280
+ .f(void 0, void 0)
1281
+ .ser(se_PutScheduledActionCommand)
1282
+ .de(de_PutScheduledActionCommand)
1283
+ .build() {
1284
+ }
1492
1285
 
1493
- // src/pagination/DescribeScalableTargetsPaginator.ts
1286
+ class RegisterScalableTargetCommand extends smithyClient.Command
1287
+ .classBuilder()
1288
+ .ep(commonParams)
1289
+ .m(function (Command, cs, config, o) {
1290
+ return [
1291
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1292
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1293
+ ];
1294
+ })
1295
+ .s("AnyScaleFrontendService", "RegisterScalableTarget", {})
1296
+ .n("ApplicationAutoScalingClient", "RegisterScalableTargetCommand")
1297
+ .f(void 0, void 0)
1298
+ .ser(se_RegisterScalableTargetCommand)
1299
+ .de(de_RegisterScalableTargetCommand)
1300
+ .build() {
1301
+ }
1494
1302
 
1495
- var paginateDescribeScalableTargets = (0, import_core.createPaginator)(ApplicationAutoScalingClient, DescribeScalableTargetsCommand, "NextToken", "NextToken", "MaxResults");
1303
+ class TagResourceCommand extends smithyClient.Command
1304
+ .classBuilder()
1305
+ .ep(commonParams)
1306
+ .m(function (Command, cs, config, o) {
1307
+ return [
1308
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1309
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1310
+ ];
1311
+ })
1312
+ .s("AnyScaleFrontendService", "TagResource", {})
1313
+ .n("ApplicationAutoScalingClient", "TagResourceCommand")
1314
+ .f(void 0, void 0)
1315
+ .ser(se_TagResourceCommand)
1316
+ .de(de_TagResourceCommand)
1317
+ .build() {
1318
+ }
1496
1319
 
1497
- // src/pagination/DescribeScalingActivitiesPaginator.ts
1320
+ class UntagResourceCommand extends smithyClient.Command
1321
+ .classBuilder()
1322
+ .ep(commonParams)
1323
+ .m(function (Command, cs, config, o) {
1324
+ return [
1325
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1326
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1327
+ ];
1328
+ })
1329
+ .s("AnyScaleFrontendService", "UntagResource", {})
1330
+ .n("ApplicationAutoScalingClient", "UntagResourceCommand")
1331
+ .f(void 0, void 0)
1332
+ .ser(se_UntagResourceCommand)
1333
+ .de(de_UntagResourceCommand)
1334
+ .build() {
1335
+ }
1498
1336
 
1499
- var paginateDescribeScalingActivities = (0, import_core.createPaginator)(ApplicationAutoScalingClient, DescribeScalingActivitiesCommand, "NextToken", "NextToken", "MaxResults");
1337
+ const commands = {
1338
+ DeleteScalingPolicyCommand,
1339
+ DeleteScheduledActionCommand,
1340
+ DeregisterScalableTargetCommand,
1341
+ DescribeScalableTargetsCommand,
1342
+ DescribeScalingActivitiesCommand,
1343
+ DescribeScalingPoliciesCommand,
1344
+ DescribeScheduledActionsCommand,
1345
+ GetPredictiveScalingForecastCommand,
1346
+ ListTagsForResourceCommand,
1347
+ PutScalingPolicyCommand,
1348
+ PutScheduledActionCommand,
1349
+ RegisterScalableTargetCommand,
1350
+ TagResourceCommand,
1351
+ UntagResourceCommand,
1352
+ };
1353
+ class ApplicationAutoScaling extends ApplicationAutoScalingClient {
1354
+ }
1355
+ smithyClient.createAggregatedClient(commands, ApplicationAutoScaling);
1500
1356
 
1501
- // src/pagination/DescribeScalingPoliciesPaginator.ts
1357
+ const paginateDescribeScalableTargets = core.createPaginator(ApplicationAutoScalingClient, DescribeScalableTargetsCommand, "NextToken", "NextToken", "MaxResults");
1502
1358
 
1503
- var paginateDescribeScalingPolicies = (0, import_core.createPaginator)(ApplicationAutoScalingClient, DescribeScalingPoliciesCommand, "NextToken", "NextToken", "MaxResults");
1359
+ const paginateDescribeScalingActivities = core.createPaginator(ApplicationAutoScalingClient, DescribeScalingActivitiesCommand, "NextToken", "NextToken", "MaxResults");
1504
1360
 
1505
- // src/pagination/DescribeScheduledActionsPaginator.ts
1361
+ const paginateDescribeScalingPolicies = core.createPaginator(ApplicationAutoScalingClient, DescribeScalingPoliciesCommand, "NextToken", "NextToken", "MaxResults");
1506
1362
 
1507
- var paginateDescribeScheduledActions = (0, import_core.createPaginator)(ApplicationAutoScalingClient, DescribeScheduledActionsCommand, "NextToken", "NextToken", "MaxResults");
1508
- // Annotate the CommonJS export names for ESM import in node:
1363
+ const paginateDescribeScheduledActions = core.createPaginator(ApplicationAutoScalingClient, DescribeScheduledActionsCommand, "NextToken", "NextToken", "MaxResults");
1509
1364
 
1510
- 0 && (module.exports = {
1511
- ApplicationAutoScalingServiceException,
1512
- __Client,
1513
- ApplicationAutoScalingClient,
1514
- ApplicationAutoScaling,
1515
- $Command,
1516
- DeleteScalingPolicyCommand,
1517
- DeleteScheduledActionCommand,
1518
- DeregisterScalableTargetCommand,
1519
- DescribeScalableTargetsCommand,
1520
- DescribeScalingActivitiesCommand,
1521
- DescribeScalingPoliciesCommand,
1522
- DescribeScheduledActionsCommand,
1523
- GetPredictiveScalingForecastCommand,
1524
- ListTagsForResourceCommand,
1525
- PutScalingPolicyCommand,
1526
- PutScheduledActionCommand,
1527
- RegisterScalableTargetCommand,
1528
- TagResourceCommand,
1529
- UntagResourceCommand,
1530
- paginateDescribeScalableTargets,
1531
- paginateDescribeScalingActivities,
1532
- paginateDescribeScalingPolicies,
1533
- paginateDescribeScheduledActions,
1534
- AdjustmentType,
1535
- ConcurrentUpdateException,
1536
- ScalableDimension,
1537
- ServiceNamespace,
1538
- InternalServiceException,
1539
- ObjectNotFoundException,
1540
- ValidationException,
1541
- InvalidNextTokenException,
1542
- ScalingActivityStatusCode,
1543
- PolicyType,
1544
- PredictiveScalingMaxCapacityBreachBehavior,
1545
- PredictiveScalingMode,
1546
- MetricAggregationType,
1547
- MetricStatistic,
1548
- MetricType,
1549
- FailedResourceAccessException,
1550
- ResourceNotFoundException,
1551
- LimitExceededException,
1552
- TooManyTagsException
1365
+ Object.defineProperty(exports, "$Command", {
1366
+ enumerable: true,
1367
+ get: function () { return smithyClient.Command; }
1553
1368
  });
1554
-
1369
+ Object.defineProperty(exports, "__Client", {
1370
+ enumerable: true,
1371
+ get: function () { return smithyClient.Client; }
1372
+ });
1373
+ exports.AdjustmentType = AdjustmentType;
1374
+ exports.ApplicationAutoScaling = ApplicationAutoScaling;
1375
+ exports.ApplicationAutoScalingClient = ApplicationAutoScalingClient;
1376
+ exports.ApplicationAutoScalingServiceException = ApplicationAutoScalingServiceException;
1377
+ exports.ConcurrentUpdateException = ConcurrentUpdateException;
1378
+ exports.DeleteScalingPolicyCommand = DeleteScalingPolicyCommand;
1379
+ exports.DeleteScheduledActionCommand = DeleteScheduledActionCommand;
1380
+ exports.DeregisterScalableTargetCommand = DeregisterScalableTargetCommand;
1381
+ exports.DescribeScalableTargetsCommand = DescribeScalableTargetsCommand;
1382
+ exports.DescribeScalingActivitiesCommand = DescribeScalingActivitiesCommand;
1383
+ exports.DescribeScalingPoliciesCommand = DescribeScalingPoliciesCommand;
1384
+ exports.DescribeScheduledActionsCommand = DescribeScheduledActionsCommand;
1385
+ exports.FailedResourceAccessException = FailedResourceAccessException;
1386
+ exports.GetPredictiveScalingForecastCommand = GetPredictiveScalingForecastCommand;
1387
+ exports.InternalServiceException = InternalServiceException;
1388
+ exports.InvalidNextTokenException = InvalidNextTokenException;
1389
+ exports.LimitExceededException = LimitExceededException;
1390
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1391
+ exports.MetricAggregationType = MetricAggregationType;
1392
+ exports.MetricStatistic = MetricStatistic;
1393
+ exports.MetricType = MetricType;
1394
+ exports.ObjectNotFoundException = ObjectNotFoundException;
1395
+ exports.PolicyType = PolicyType;
1396
+ exports.PredictiveScalingMaxCapacityBreachBehavior = PredictiveScalingMaxCapacityBreachBehavior;
1397
+ exports.PredictiveScalingMode = PredictiveScalingMode;
1398
+ exports.PutScalingPolicyCommand = PutScalingPolicyCommand;
1399
+ exports.PutScheduledActionCommand = PutScheduledActionCommand;
1400
+ exports.RegisterScalableTargetCommand = RegisterScalableTargetCommand;
1401
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1402
+ exports.ScalableDimension = ScalableDimension;
1403
+ exports.ScalingActivityStatusCode = ScalingActivityStatusCode;
1404
+ exports.ServiceNamespace = ServiceNamespace;
1405
+ exports.TagResourceCommand = TagResourceCommand;
1406
+ exports.TooManyTagsException = TooManyTagsException;
1407
+ exports.UntagResourceCommand = UntagResourceCommand;
1408
+ exports.ValidationException = ValidationException;
1409
+ exports.paginateDescribeScalableTargets = paginateDescribeScalableTargets;
1410
+ exports.paginateDescribeScalingActivities = paginateDescribeScalingActivities;
1411
+ exports.paginateDescribeScalingPolicies = paginateDescribeScalingPolicies;
1412
+ exports.paginateDescribeScheduledActions = paginateDescribeScheduledActions;