@aws-sdk/client-cloudcontrol 3.141.0 → 3.142.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_0.js +42 -75
- package/dist-es/protocols/Aws_json1_0.js +65 -76
- package/package.json +6 -6
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.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -105,7 +105,6 @@ const deserializeAws_json1_0CancelResourceRequestCommandError = async (output, c
|
|
|
105
105
|
...output,
|
|
106
106
|
body: await parseBody(output.body, context),
|
|
107
107
|
};
|
|
108
|
-
let response;
|
|
109
108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
110
109
|
switch (errorCode) {
|
|
111
110
|
case "ConcurrentModificationException":
|
|
@@ -116,14 +115,12 @@ const deserializeAws_json1_0CancelResourceRequestCommandError = async (output, c
|
|
|
116
115
|
throw await deserializeAws_json1_0RequestTokenNotFoundExceptionResponse(parsedOutput, context);
|
|
117
116
|
default:
|
|
118
117
|
const parsedBody = parsedOutput.body;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
$metadata,
|
|
118
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
119
|
+
output,
|
|
120
|
+
parsedBody,
|
|
121
|
+
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
122
|
+
errorCode,
|
|
125
123
|
});
|
|
126
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
127
124
|
}
|
|
128
125
|
};
|
|
129
126
|
const deserializeAws_json1_0CreateResourceCommand = async (output, context) => {
|
|
@@ -145,7 +142,6 @@ const deserializeAws_json1_0CreateResourceCommandError = async (output, context)
|
|
|
145
142
|
...output,
|
|
146
143
|
body: await parseBody(output.body, context),
|
|
147
144
|
};
|
|
148
|
-
let response;
|
|
149
145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
150
146
|
switch (errorCode) {
|
|
151
147
|
case "AlreadyExistsException":
|
|
@@ -207,14 +203,12 @@ const deserializeAws_json1_0CreateResourceCommandError = async (output, context)
|
|
|
207
203
|
throw await deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context);
|
|
208
204
|
default:
|
|
209
205
|
const parsedBody = parsedOutput.body;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
$metadata,
|
|
206
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
207
|
+
output,
|
|
208
|
+
parsedBody,
|
|
209
|
+
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
210
|
+
errorCode,
|
|
216
211
|
});
|
|
217
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
218
212
|
}
|
|
219
213
|
};
|
|
220
214
|
const deserializeAws_json1_0DeleteResourceCommand = async (output, context) => {
|
|
@@ -236,7 +230,6 @@ const deserializeAws_json1_0DeleteResourceCommandError = async (output, context)
|
|
|
236
230
|
...output,
|
|
237
231
|
body: await parseBody(output.body, context),
|
|
238
232
|
};
|
|
239
|
-
let response;
|
|
240
233
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
241
234
|
switch (errorCode) {
|
|
242
235
|
case "AlreadyExistsException":
|
|
@@ -298,14 +291,12 @@ const deserializeAws_json1_0DeleteResourceCommandError = async (output, context)
|
|
|
298
291
|
throw await deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context);
|
|
299
292
|
default:
|
|
300
293
|
const parsedBody = parsedOutput.body;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
$metadata,
|
|
294
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
295
|
+
output,
|
|
296
|
+
parsedBody,
|
|
297
|
+
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
298
|
+
errorCode,
|
|
307
299
|
});
|
|
308
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
309
300
|
}
|
|
310
301
|
};
|
|
311
302
|
const deserializeAws_json1_0GetResourceCommand = async (output, context) => {
|
|
@@ -327,7 +318,6 @@ const deserializeAws_json1_0GetResourceCommandError = async (output, context) =>
|
|
|
327
318
|
...output,
|
|
328
319
|
body: await parseBody(output.body, context),
|
|
329
320
|
};
|
|
330
|
-
let response;
|
|
331
321
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
332
322
|
switch (errorCode) {
|
|
333
323
|
case "AlreadyExistsException":
|
|
@@ -383,14 +373,12 @@ const deserializeAws_json1_0GetResourceCommandError = async (output, context) =>
|
|
|
383
373
|
throw await deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context);
|
|
384
374
|
default:
|
|
385
375
|
const parsedBody = parsedOutput.body;
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
$metadata,
|
|
376
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
377
|
+
output,
|
|
378
|
+
parsedBody,
|
|
379
|
+
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
380
|
+
errorCode,
|
|
392
381
|
});
|
|
393
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
394
382
|
}
|
|
395
383
|
};
|
|
396
384
|
const deserializeAws_json1_0GetResourceRequestStatusCommand = async (output, context) => {
|
|
@@ -412,7 +400,6 @@ const deserializeAws_json1_0GetResourceRequestStatusCommandError = async (output
|
|
|
412
400
|
...output,
|
|
413
401
|
body: await parseBody(output.body, context),
|
|
414
402
|
};
|
|
415
|
-
let response;
|
|
416
403
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
404
|
switch (errorCode) {
|
|
418
405
|
case "RequestTokenNotFoundException":
|
|
@@ -420,14 +407,12 @@ const deserializeAws_json1_0GetResourceRequestStatusCommandError = async (output
|
|
|
420
407
|
throw await deserializeAws_json1_0RequestTokenNotFoundExceptionResponse(parsedOutput, context);
|
|
421
408
|
default:
|
|
422
409
|
const parsedBody = parsedOutput.body;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
$metadata,
|
|
410
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
411
|
+
output,
|
|
412
|
+
parsedBody,
|
|
413
|
+
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
414
|
+
errorCode,
|
|
429
415
|
});
|
|
430
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
431
416
|
}
|
|
432
417
|
};
|
|
433
418
|
const deserializeAws_json1_0ListResourceRequestsCommand = async (output, context) => {
|
|
@@ -449,20 +434,14 @@ const deserializeAws_json1_0ListResourceRequestsCommandError = async (output, co
|
|
|
449
434
|
...output,
|
|
450
435
|
body: await parseBody(output.body, context),
|
|
451
436
|
};
|
|
452
|
-
let response;
|
|
453
437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
$fault: "client",
|
|
462
|
-
$metadata,
|
|
463
|
-
});
|
|
464
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
465
|
-
}
|
|
438
|
+
const parsedBody = parsedOutput.body;
|
|
439
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
440
|
+
output,
|
|
441
|
+
parsedBody,
|
|
442
|
+
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
443
|
+
errorCode,
|
|
444
|
+
});
|
|
466
445
|
};
|
|
467
446
|
const deserializeAws_json1_0ListResourcesCommand = async (output, context) => {
|
|
468
447
|
if (output.statusCode >= 300) {
|
|
@@ -483,7 +462,6 @@ const deserializeAws_json1_0ListResourcesCommandError = async (output, context)
|
|
|
483
462
|
...output,
|
|
484
463
|
body: await parseBody(output.body, context),
|
|
485
464
|
};
|
|
486
|
-
let response;
|
|
487
465
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
488
466
|
switch (errorCode) {
|
|
489
467
|
case "AlreadyExistsException":
|
|
@@ -539,14 +517,12 @@ const deserializeAws_json1_0ListResourcesCommandError = async (output, context)
|
|
|
539
517
|
throw await deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context);
|
|
540
518
|
default:
|
|
541
519
|
const parsedBody = parsedOutput.body;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
$metadata,
|
|
520
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
521
|
+
output,
|
|
522
|
+
parsedBody,
|
|
523
|
+
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
524
|
+
errorCode,
|
|
548
525
|
});
|
|
549
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
550
526
|
}
|
|
551
527
|
};
|
|
552
528
|
const deserializeAws_json1_0UpdateResourceCommand = async (output, context) => {
|
|
@@ -568,7 +544,6 @@ const deserializeAws_json1_0UpdateResourceCommandError = async (output, context)
|
|
|
568
544
|
...output,
|
|
569
545
|
body: await parseBody(output.body, context),
|
|
570
546
|
};
|
|
571
|
-
let response;
|
|
572
547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
548
|
switch (errorCode) {
|
|
574
549
|
case "AlreadyExistsException":
|
|
@@ -630,14 +605,12 @@ const deserializeAws_json1_0UpdateResourceCommandError = async (output, context)
|
|
|
630
605
|
throw await deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context);
|
|
631
606
|
default:
|
|
632
607
|
const parsedBody = parsedOutput.body;
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
$metadata,
|
|
608
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
609
|
+
output,
|
|
610
|
+
parsedBody,
|
|
611
|
+
exceptionCtor: CloudControlServiceException_1.CloudControlServiceException,
|
|
612
|
+
errorCode,
|
|
639
613
|
});
|
|
640
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
641
614
|
}
|
|
642
615
|
};
|
|
643
616
|
const deserializeAws_json1_0AlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -890,9 +863,6 @@ const serializeAws_json1_0Operations = (input, context) => {
|
|
|
890
863
|
return input
|
|
891
864
|
.filter((e) => e != null)
|
|
892
865
|
.map((entry) => {
|
|
893
|
-
if (entry === null) {
|
|
894
|
-
return null;
|
|
895
|
-
}
|
|
896
866
|
return entry;
|
|
897
867
|
});
|
|
898
868
|
};
|
|
@@ -900,9 +870,6 @@ const serializeAws_json1_0OperationStatuses = (input, context) => {
|
|
|
900
870
|
return input
|
|
901
871
|
.filter((e) => e != null)
|
|
902
872
|
.map((entry) => {
|
|
903
|
-
if (entry === null) {
|
|
904
|
-
return null;
|
|
905
|
-
}
|
|
906
873
|
return entry;
|
|
907
874
|
});
|
|
908
875
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { CloudControlServiceException as __BaseException } from "../models/CloudControlServiceException";
|
|
6
6
|
import { AlreadyExistsException, ClientTokenConflictException, ConcurrentModificationException, ConcurrentOperationException, GeneralServiceException, HandlerFailureException, HandlerInternalFailureException, InvalidCredentialsException, InvalidRequestException, NetworkFailureException, NotStabilizedException, NotUpdatableException, PrivateTypeException, RequestTokenNotFoundException, ResourceConflictException, ResourceNotFoundException, ServiceInternalErrorException, ServiceLimitExceededException, ThrottlingException, TypeNotFoundException, UnsupportedActionException, } from "../models/models_0";
|
|
@@ -111,7 +111,7 @@ export var deserializeAws_json1_0CancelResourceRequestCommand = function (output
|
|
|
111
111
|
});
|
|
112
112
|
}); };
|
|
113
113
|
var deserializeAws_json1_0CancelResourceRequestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
114
|
-
var parsedOutput, _a,
|
|
114
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
115
115
|
var _c;
|
|
116
116
|
return __generator(this, function (_d) {
|
|
117
117
|
switch (_d.label) {
|
|
@@ -136,14 +136,14 @@ var deserializeAws_json1_0CancelResourceRequestCommandError = function (output,
|
|
|
136
136
|
case 5: throw _d.sent();
|
|
137
137
|
case 6:
|
|
138
138
|
parsedBody = parsedOutput.body;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
$metadata: $metadata,
|
|
139
|
+
throwDefaultError({
|
|
140
|
+
output: output,
|
|
141
|
+
parsedBody: parsedBody,
|
|
142
|
+
exceptionCtor: __BaseException,
|
|
143
|
+
errorCode: errorCode,
|
|
145
144
|
});
|
|
146
|
-
|
|
145
|
+
_d.label = 7;
|
|
146
|
+
case 7: return [2];
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
}); };
|
|
@@ -166,7 +166,7 @@ export var deserializeAws_json1_0CreateResourceCommand = function (output, conte
|
|
|
166
166
|
});
|
|
167
167
|
}); };
|
|
168
168
|
var deserializeAws_json1_0CreateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
169
|
-
var parsedOutput, _a,
|
|
169
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
170
170
|
var _c;
|
|
171
171
|
return __generator(this, function (_d) {
|
|
172
172
|
switch (_d.label) {
|
|
@@ -259,14 +259,14 @@ var deserializeAws_json1_0CreateResourceCommandError = function (output, context
|
|
|
259
259
|
case 39: throw _d.sent();
|
|
260
260
|
case 40:
|
|
261
261
|
parsedBody = parsedOutput.body;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
$metadata: $metadata,
|
|
262
|
+
throwDefaultError({
|
|
263
|
+
output: output,
|
|
264
|
+
parsedBody: parsedBody,
|
|
265
|
+
exceptionCtor: __BaseException,
|
|
266
|
+
errorCode: errorCode,
|
|
268
267
|
});
|
|
269
|
-
|
|
268
|
+
_d.label = 41;
|
|
269
|
+
case 41: return [2];
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
}); };
|
|
@@ -289,7 +289,7 @@ export var deserializeAws_json1_0DeleteResourceCommand = function (output, conte
|
|
|
289
289
|
});
|
|
290
290
|
}); };
|
|
291
291
|
var deserializeAws_json1_0DeleteResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
292
|
-
var parsedOutput, _a,
|
|
292
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
293
293
|
var _c;
|
|
294
294
|
return __generator(this, function (_d) {
|
|
295
295
|
switch (_d.label) {
|
|
@@ -382,14 +382,14 @@ var deserializeAws_json1_0DeleteResourceCommandError = function (output, context
|
|
|
382
382
|
case 39: throw _d.sent();
|
|
383
383
|
case 40:
|
|
384
384
|
parsedBody = parsedOutput.body;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
$metadata: $metadata,
|
|
385
|
+
throwDefaultError({
|
|
386
|
+
output: output,
|
|
387
|
+
parsedBody: parsedBody,
|
|
388
|
+
exceptionCtor: __BaseException,
|
|
389
|
+
errorCode: errorCode,
|
|
391
390
|
});
|
|
392
|
-
|
|
391
|
+
_d.label = 41;
|
|
392
|
+
case 41: return [2];
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}); };
|
|
@@ -412,7 +412,7 @@ export var deserializeAws_json1_0GetResourceCommand = function (output, context)
|
|
|
412
412
|
});
|
|
413
413
|
}); };
|
|
414
414
|
var deserializeAws_json1_0GetResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
415
|
-
var parsedOutput, _a,
|
|
415
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
416
416
|
var _c;
|
|
417
417
|
return __generator(this, function (_d) {
|
|
418
418
|
switch (_d.label) {
|
|
@@ -497,14 +497,14 @@ var deserializeAws_json1_0GetResourceCommandError = function (output, context) {
|
|
|
497
497
|
case 35: throw _d.sent();
|
|
498
498
|
case 36:
|
|
499
499
|
parsedBody = parsedOutput.body;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
$metadata: $metadata,
|
|
500
|
+
throwDefaultError({
|
|
501
|
+
output: output,
|
|
502
|
+
parsedBody: parsedBody,
|
|
503
|
+
exceptionCtor: __BaseException,
|
|
504
|
+
errorCode: errorCode,
|
|
506
505
|
});
|
|
507
|
-
|
|
506
|
+
_d.label = 37;
|
|
507
|
+
case 37: return [2];
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
510
|
}); };
|
|
@@ -527,7 +527,7 @@ export var deserializeAws_json1_0GetResourceRequestStatusCommand = function (out
|
|
|
527
527
|
});
|
|
528
528
|
}); };
|
|
529
529
|
var deserializeAws_json1_0GetResourceRequestStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
530
|
-
var parsedOutput, _a,
|
|
530
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
531
531
|
var _c;
|
|
532
532
|
return __generator(this, function (_d) {
|
|
533
533
|
switch (_d.label) {
|
|
@@ -548,14 +548,14 @@ var deserializeAws_json1_0GetResourceRequestStatusCommandError = function (outpu
|
|
|
548
548
|
case 3: throw _d.sent();
|
|
549
549
|
case 4:
|
|
550
550
|
parsedBody = parsedOutput.body;
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
$metadata: $metadata,
|
|
551
|
+
throwDefaultError({
|
|
552
|
+
output: output,
|
|
553
|
+
parsedBody: parsedBody,
|
|
554
|
+
exceptionCtor: __BaseException,
|
|
555
|
+
errorCode: errorCode,
|
|
557
556
|
});
|
|
558
|
-
|
|
557
|
+
_d.label = 5;
|
|
558
|
+
case 5: return [2];
|
|
559
559
|
}
|
|
560
560
|
});
|
|
561
561
|
}); };
|
|
@@ -578,7 +578,7 @@ export var deserializeAws_json1_0ListResourceRequestsCommand = function (output,
|
|
|
578
578
|
});
|
|
579
579
|
}); };
|
|
580
580
|
var deserializeAws_json1_0ListResourceRequestsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
581
|
-
var parsedOutput, _a,
|
|
581
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
582
582
|
var _b;
|
|
583
583
|
return __generator(this, function (_c) {
|
|
584
584
|
switch (_c.label) {
|
|
@@ -589,18 +589,13 @@ var deserializeAws_json1_0ListResourceRequestsCommandError = function (output, c
|
|
|
589
589
|
case 1:
|
|
590
590
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
591
591
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
$fault: "client",
|
|
600
|
-
$metadata: $metadata,
|
|
601
|
-
});
|
|
602
|
-
throw __decorateServiceException(response, parsedBody);
|
|
603
|
-
}
|
|
592
|
+
parsedBody = parsedOutput.body;
|
|
593
|
+
throwDefaultError({
|
|
594
|
+
output: output,
|
|
595
|
+
parsedBody: parsedBody,
|
|
596
|
+
exceptionCtor: __BaseException,
|
|
597
|
+
errorCode: errorCode,
|
|
598
|
+
});
|
|
604
599
|
return [2];
|
|
605
600
|
}
|
|
606
601
|
});
|
|
@@ -624,7 +619,7 @@ export var deserializeAws_json1_0ListResourcesCommand = function (output, contex
|
|
|
624
619
|
});
|
|
625
620
|
}); };
|
|
626
621
|
var deserializeAws_json1_0ListResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
627
|
-
var parsedOutput, _a,
|
|
622
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
628
623
|
var _c;
|
|
629
624
|
return __generator(this, function (_d) {
|
|
630
625
|
switch (_d.label) {
|
|
@@ -709,14 +704,14 @@ var deserializeAws_json1_0ListResourcesCommandError = function (output, context)
|
|
|
709
704
|
case 35: throw _d.sent();
|
|
710
705
|
case 36:
|
|
711
706
|
parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
$metadata: $metadata,
|
|
707
|
+
throwDefaultError({
|
|
708
|
+
output: output,
|
|
709
|
+
parsedBody: parsedBody,
|
|
710
|
+
exceptionCtor: __BaseException,
|
|
711
|
+
errorCode: errorCode,
|
|
718
712
|
});
|
|
719
|
-
|
|
713
|
+
_d.label = 37;
|
|
714
|
+
case 37: return [2];
|
|
720
715
|
}
|
|
721
716
|
});
|
|
722
717
|
}); };
|
|
@@ -739,7 +734,7 @@ export var deserializeAws_json1_0UpdateResourceCommand = function (output, conte
|
|
|
739
734
|
});
|
|
740
735
|
}); };
|
|
741
736
|
var deserializeAws_json1_0UpdateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
742
|
-
var parsedOutput, _a,
|
|
737
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
743
738
|
var _c;
|
|
744
739
|
return __generator(this, function (_d) {
|
|
745
740
|
switch (_d.label) {
|
|
@@ -832,14 +827,14 @@ var deserializeAws_json1_0UpdateResourceCommandError = function (output, context
|
|
|
832
827
|
case 39: throw _d.sent();
|
|
833
828
|
case 40:
|
|
834
829
|
parsedBody = parsedOutput.body;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
$metadata: $metadata,
|
|
830
|
+
throwDefaultError({
|
|
831
|
+
output: output,
|
|
832
|
+
parsedBody: parsedBody,
|
|
833
|
+
exceptionCtor: __BaseException,
|
|
834
|
+
errorCode: errorCode,
|
|
841
835
|
});
|
|
842
|
-
|
|
836
|
+
_d.label = 41;
|
|
837
|
+
case 41: return [2];
|
|
843
838
|
}
|
|
844
839
|
});
|
|
845
840
|
}); };
|
|
@@ -1061,9 +1056,6 @@ var serializeAws_json1_0Operations = function (input, context) {
|
|
|
1061
1056
|
return input
|
|
1062
1057
|
.filter(function (e) { return e != null; })
|
|
1063
1058
|
.map(function (entry) {
|
|
1064
|
-
if (entry === null) {
|
|
1065
|
-
return null;
|
|
1066
|
-
}
|
|
1067
1059
|
return entry;
|
|
1068
1060
|
});
|
|
1069
1061
|
};
|
|
@@ -1071,9 +1063,6 @@ var serializeAws_json1_0OperationStatuses = function (input, context) {
|
|
|
1071
1063
|
return input
|
|
1072
1064
|
.filter(function (e) { return e != null; })
|
|
1073
1065
|
.map(function (entry) {
|
|
1074
|
-
if (entry === null) {
|
|
1075
|
-
return null;
|
|
1076
|
-
}
|
|
1077
1066
|
return entry;
|
|
1078
1067
|
});
|
|
1079
1068
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudcontrol",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudcontrol Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.142.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.142.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.142.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|