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