@aws-sdk/client-auto-scaling-plans 3.118.1 → 3.121.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +30 -25
- package/dist-es/protocols/Aws_json1_1.js +30 -25
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-auto-scaling-plans
|
|
@@ -85,8 +85,7 @@ const deserializeAws_json1_1CreateScalingPlanCommandError = async (output, conte
|
|
|
85
85
|
body: await parseBody(output.body, context),
|
|
86
86
|
};
|
|
87
87
|
let response;
|
|
88
|
-
|
|
89
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
88
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
90
89
|
switch (errorCode) {
|
|
91
90
|
case "ConcurrentUpdateException":
|
|
92
91
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
@@ -102,10 +101,12 @@ const deserializeAws_json1_1CreateScalingPlanCommandError = async (output, conte
|
|
|
102
101
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
103
102
|
default:
|
|
104
103
|
const parsedBody = parsedOutput.body;
|
|
104
|
+
const $metadata = deserializeMetadata(output);
|
|
105
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
105
106
|
response = new AutoScalingPlansServiceException_1.AutoScalingPlansServiceException({
|
|
106
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
107
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
107
108
|
$fault: "client",
|
|
108
|
-
$metadata
|
|
109
|
+
$metadata,
|
|
109
110
|
});
|
|
110
111
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
111
112
|
}
|
|
@@ -130,8 +131,7 @@ const deserializeAws_json1_1DeleteScalingPlanCommandError = async (output, conte
|
|
|
130
131
|
body: await parseBody(output.body, context),
|
|
131
132
|
};
|
|
132
133
|
let response;
|
|
133
|
-
|
|
134
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
134
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
135
135
|
switch (errorCode) {
|
|
136
136
|
case "ConcurrentUpdateException":
|
|
137
137
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
@@ -147,10 +147,12 @@ const deserializeAws_json1_1DeleteScalingPlanCommandError = async (output, conte
|
|
|
147
147
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
148
148
|
default:
|
|
149
149
|
const parsedBody = parsedOutput.body;
|
|
150
|
+
const $metadata = deserializeMetadata(output);
|
|
151
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
150
152
|
response = new AutoScalingPlansServiceException_1.AutoScalingPlansServiceException({
|
|
151
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
153
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
152
154
|
$fault: "client",
|
|
153
|
-
$metadata
|
|
155
|
+
$metadata,
|
|
154
156
|
});
|
|
155
157
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
156
158
|
}
|
|
@@ -175,8 +177,7 @@ const deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = async (ou
|
|
|
175
177
|
body: await parseBody(output.body, context),
|
|
176
178
|
};
|
|
177
179
|
let response;
|
|
178
|
-
|
|
179
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
180
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
180
181
|
switch (errorCode) {
|
|
181
182
|
case "ConcurrentUpdateException":
|
|
182
183
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
@@ -192,10 +193,12 @@ const deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = async (ou
|
|
|
192
193
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
193
194
|
default:
|
|
194
195
|
const parsedBody = parsedOutput.body;
|
|
196
|
+
const $metadata = deserializeMetadata(output);
|
|
197
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
195
198
|
response = new AutoScalingPlansServiceException_1.AutoScalingPlansServiceException({
|
|
196
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
199
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
197
200
|
$fault: "client",
|
|
198
|
-
$metadata
|
|
201
|
+
$metadata,
|
|
199
202
|
});
|
|
200
203
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
201
204
|
}
|
|
@@ -220,8 +223,7 @@ const deserializeAws_json1_1DescribeScalingPlansCommandError = async (output, co
|
|
|
220
223
|
body: await parseBody(output.body, context),
|
|
221
224
|
};
|
|
222
225
|
let response;
|
|
223
|
-
|
|
224
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
226
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
225
227
|
switch (errorCode) {
|
|
226
228
|
case "ConcurrentUpdateException":
|
|
227
229
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
@@ -237,10 +239,12 @@ const deserializeAws_json1_1DescribeScalingPlansCommandError = async (output, co
|
|
|
237
239
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
238
240
|
default:
|
|
239
241
|
const parsedBody = parsedOutput.body;
|
|
242
|
+
const $metadata = deserializeMetadata(output);
|
|
243
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
240
244
|
response = new AutoScalingPlansServiceException_1.AutoScalingPlansServiceException({
|
|
241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
242
246
|
$fault: "client",
|
|
243
|
-
$metadata
|
|
247
|
+
$metadata,
|
|
244
248
|
});
|
|
245
249
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
246
250
|
}
|
|
@@ -265,8 +269,7 @@ const deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = asy
|
|
|
265
269
|
body: await parseBody(output.body, context),
|
|
266
270
|
};
|
|
267
271
|
let response;
|
|
268
|
-
|
|
269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
270
273
|
switch (errorCode) {
|
|
271
274
|
case "InternalServiceException":
|
|
272
275
|
case "com.amazonaws.autoscalingplans#InternalServiceException":
|
|
@@ -276,10 +279,12 @@ const deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = asy
|
|
|
276
279
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
277
280
|
default:
|
|
278
281
|
const parsedBody = parsedOutput.body;
|
|
282
|
+
const $metadata = deserializeMetadata(output);
|
|
283
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
279
284
|
response = new AutoScalingPlansServiceException_1.AutoScalingPlansServiceException({
|
|
280
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
285
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
281
286
|
$fault: "client",
|
|
282
|
-
$metadata
|
|
287
|
+
$metadata,
|
|
283
288
|
});
|
|
284
289
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
285
290
|
}
|
|
@@ -304,8 +309,7 @@ const deserializeAws_json1_1UpdateScalingPlanCommandError = async (output, conte
|
|
|
304
309
|
body: await parseBody(output.body, context),
|
|
305
310
|
};
|
|
306
311
|
let response;
|
|
307
|
-
|
|
308
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
312
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
309
313
|
switch (errorCode) {
|
|
310
314
|
case "ConcurrentUpdateException":
|
|
311
315
|
case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
|
|
@@ -321,10 +325,12 @@ const deserializeAws_json1_1UpdateScalingPlanCommandError = async (output, conte
|
|
|
321
325
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
322
326
|
default:
|
|
323
327
|
const parsedBody = parsedOutput.body;
|
|
328
|
+
const $metadata = deserializeMetadata(output);
|
|
329
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
324
330
|
response = new AutoScalingPlansServiceException_1.AutoScalingPlansServiceException({
|
|
325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
331
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
326
332
|
$fault: "client",
|
|
327
|
-
$metadata
|
|
333
|
+
$metadata,
|
|
328
334
|
});
|
|
329
335
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
330
336
|
}
|
|
@@ -1023,5 +1029,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1023
1029
|
if (data["__type"] !== undefined) {
|
|
1024
1030
|
return sanitizeErrorCode(data["__type"]);
|
|
1025
1031
|
}
|
|
1026
|
-
return "";
|
|
1027
1032
|
};
|
|
@@ -88,7 +88,7 @@ export var deserializeAws_json1_1CreateScalingPlanCommand = function (output, co
|
|
|
88
88
|
});
|
|
89
89
|
}); };
|
|
90
90
|
var deserializeAws_json1_1CreateScalingPlanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
91
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
91
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
92
92
|
var _c;
|
|
93
93
|
return __generator(this, function (_d) {
|
|
94
94
|
switch (_d.label) {
|
|
@@ -98,7 +98,6 @@ var deserializeAws_json1_1CreateScalingPlanCommandError = function (output, cont
|
|
|
98
98
|
return [4, parseBody(output.body, context)];
|
|
99
99
|
case 1:
|
|
100
100
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
101
|
-
errorCode = "UnknownError";
|
|
102
101
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
103
102
|
_b = errorCode;
|
|
104
103
|
switch (_b) {
|
|
@@ -122,10 +121,12 @@ var deserializeAws_json1_1CreateScalingPlanCommandError = function (output, cont
|
|
|
122
121
|
case 9: throw _d.sent();
|
|
123
122
|
case 10:
|
|
124
123
|
parsedBody = parsedOutput.body;
|
|
124
|
+
$metadata = deserializeMetadata(output);
|
|
125
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
125
126
|
response = new __BaseException({
|
|
126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
127
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
127
128
|
$fault: "client",
|
|
128
|
-
$metadata:
|
|
129
|
+
$metadata: $metadata,
|
|
129
130
|
});
|
|
130
131
|
throw __decorateServiceException(response, parsedBody);
|
|
131
132
|
}
|
|
@@ -150,7 +151,7 @@ export var deserializeAws_json1_1DeleteScalingPlanCommand = function (output, co
|
|
|
150
151
|
});
|
|
151
152
|
}); };
|
|
152
153
|
var deserializeAws_json1_1DeleteScalingPlanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
154
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
154
155
|
var _c;
|
|
155
156
|
return __generator(this, function (_d) {
|
|
156
157
|
switch (_d.label) {
|
|
@@ -160,7 +161,6 @@ var deserializeAws_json1_1DeleteScalingPlanCommandError = function (output, cont
|
|
|
160
161
|
return [4, parseBody(output.body, context)];
|
|
161
162
|
case 1:
|
|
162
163
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
163
|
-
errorCode = "UnknownError";
|
|
164
164
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
165
165
|
_b = errorCode;
|
|
166
166
|
switch (_b) {
|
|
@@ -184,10 +184,12 @@ var deserializeAws_json1_1DeleteScalingPlanCommandError = function (output, cont
|
|
|
184
184
|
case 9: throw _d.sent();
|
|
185
185
|
case 10:
|
|
186
186
|
parsedBody = parsedOutput.body;
|
|
187
|
+
$metadata = deserializeMetadata(output);
|
|
188
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
187
189
|
response = new __BaseException({
|
|
188
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
189
191
|
$fault: "client",
|
|
190
|
-
$metadata:
|
|
192
|
+
$metadata: $metadata,
|
|
191
193
|
});
|
|
192
194
|
throw __decorateServiceException(response, parsedBody);
|
|
193
195
|
}
|
|
@@ -212,7 +214,7 @@ export var deserializeAws_json1_1DescribeScalingPlanResourcesCommand = function
|
|
|
212
214
|
});
|
|
213
215
|
}); };
|
|
214
216
|
var deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
215
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
217
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
216
218
|
var _c;
|
|
217
219
|
return __generator(this, function (_d) {
|
|
218
220
|
switch (_d.label) {
|
|
@@ -222,7 +224,6 @@ var deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = function (o
|
|
|
222
224
|
return [4, parseBody(output.body, context)];
|
|
223
225
|
case 1:
|
|
224
226
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
225
|
-
errorCode = "UnknownError";
|
|
226
227
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
227
228
|
_b = errorCode;
|
|
228
229
|
switch (_b) {
|
|
@@ -246,10 +247,12 @@ var deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = function (o
|
|
|
246
247
|
case 9: throw _d.sent();
|
|
247
248
|
case 10:
|
|
248
249
|
parsedBody = parsedOutput.body;
|
|
250
|
+
$metadata = deserializeMetadata(output);
|
|
251
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
249
252
|
response = new __BaseException({
|
|
250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
253
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
251
254
|
$fault: "client",
|
|
252
|
-
$metadata:
|
|
255
|
+
$metadata: $metadata,
|
|
253
256
|
});
|
|
254
257
|
throw __decorateServiceException(response, parsedBody);
|
|
255
258
|
}
|
|
@@ -274,7 +277,7 @@ export var deserializeAws_json1_1DescribeScalingPlansCommand = function (output,
|
|
|
274
277
|
});
|
|
275
278
|
}); };
|
|
276
279
|
var deserializeAws_json1_1DescribeScalingPlansCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
277
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
280
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
278
281
|
var _c;
|
|
279
282
|
return __generator(this, function (_d) {
|
|
280
283
|
switch (_d.label) {
|
|
@@ -284,7 +287,6 @@ var deserializeAws_json1_1DescribeScalingPlansCommandError = function (output, c
|
|
|
284
287
|
return [4, parseBody(output.body, context)];
|
|
285
288
|
case 1:
|
|
286
289
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
287
|
-
errorCode = "UnknownError";
|
|
288
290
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
291
|
_b = errorCode;
|
|
290
292
|
switch (_b) {
|
|
@@ -308,10 +310,12 @@ var deserializeAws_json1_1DescribeScalingPlansCommandError = function (output, c
|
|
|
308
310
|
case 9: throw _d.sent();
|
|
309
311
|
case 10:
|
|
310
312
|
parsedBody = parsedOutput.body;
|
|
313
|
+
$metadata = deserializeMetadata(output);
|
|
314
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
311
315
|
response = new __BaseException({
|
|
312
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
316
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
313
317
|
$fault: "client",
|
|
314
|
-
$metadata:
|
|
318
|
+
$metadata: $metadata,
|
|
315
319
|
});
|
|
316
320
|
throw __decorateServiceException(response, parsedBody);
|
|
317
321
|
}
|
|
@@ -336,7 +340,7 @@ export var deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand = fun
|
|
|
336
340
|
});
|
|
337
341
|
}); };
|
|
338
342
|
var deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
339
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
343
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
340
344
|
var _c;
|
|
341
345
|
return __generator(this, function (_d) {
|
|
342
346
|
switch (_d.label) {
|
|
@@ -346,7 +350,6 @@ var deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = funct
|
|
|
346
350
|
return [4, parseBody(output.body, context)];
|
|
347
351
|
case 1:
|
|
348
352
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
349
|
-
errorCode = "UnknownError";
|
|
350
353
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
354
|
_b = errorCode;
|
|
352
355
|
switch (_b) {
|
|
@@ -362,10 +365,12 @@ var deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = funct
|
|
|
362
365
|
case 5: throw _d.sent();
|
|
363
366
|
case 6:
|
|
364
367
|
parsedBody = parsedOutput.body;
|
|
368
|
+
$metadata = deserializeMetadata(output);
|
|
369
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
365
370
|
response = new __BaseException({
|
|
366
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
367
372
|
$fault: "client",
|
|
368
|
-
$metadata:
|
|
373
|
+
$metadata: $metadata,
|
|
369
374
|
});
|
|
370
375
|
throw __decorateServiceException(response, parsedBody);
|
|
371
376
|
}
|
|
@@ -390,7 +395,7 @@ export var deserializeAws_json1_1UpdateScalingPlanCommand = function (output, co
|
|
|
390
395
|
});
|
|
391
396
|
}); };
|
|
392
397
|
var deserializeAws_json1_1UpdateScalingPlanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
393
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
398
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
394
399
|
var _c;
|
|
395
400
|
return __generator(this, function (_d) {
|
|
396
401
|
switch (_d.label) {
|
|
@@ -400,7 +405,6 @@ var deserializeAws_json1_1UpdateScalingPlanCommandError = function (output, cont
|
|
|
400
405
|
return [4, parseBody(output.body, context)];
|
|
401
406
|
case 1:
|
|
402
407
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
403
|
-
errorCode = "UnknownError";
|
|
404
408
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
405
409
|
_b = errorCode;
|
|
406
410
|
switch (_b) {
|
|
@@ -424,10 +428,12 @@ var deserializeAws_json1_1UpdateScalingPlanCommandError = function (output, cont
|
|
|
424
428
|
case 9: throw _d.sent();
|
|
425
429
|
case 10:
|
|
426
430
|
parsedBody = parsedOutput.body;
|
|
431
|
+
$metadata = deserializeMetadata(output);
|
|
432
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
427
433
|
response = new __BaseException({
|
|
428
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
434
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
429
435
|
$fault: "client",
|
|
430
|
-
$metadata:
|
|
436
|
+
$metadata: $metadata,
|
|
431
437
|
});
|
|
432
438
|
throw __decorateServiceException(response, parsedBody);
|
|
433
439
|
}
|
|
@@ -1057,5 +1063,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1057
1063
|
if (data["__type"] !== undefined) {
|
|
1058
1064
|
return sanitizeErrorCode(data["__type"]);
|
|
1059
1065
|
}
|
|
1060
|
-
return "";
|
|
1061
1066
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-auto-scaling-plans",
|
|
3
3
|
"description": "AWS SDK for JavaScript Auto Scaling Plans Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.121.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.121.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.110.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.121.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.110.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.110.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.110.0",
|