@aws-sdk/client-resource-groups-tagging-api 3.179.0 → 3.181.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
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-resource-groups-tagging-api
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-resource-groups-tagging-api
|
|
@@ -102,7 +102,7 @@ exports.deserializeAws_json1_1DescribeReportCreationCommand = deserializeAws_jso
|
|
|
102
102
|
const deserializeAws_json1_1DescribeReportCreationCommandError = async (output, context) => {
|
|
103
103
|
const parsedOutput = {
|
|
104
104
|
...output,
|
|
105
|
-
body: await
|
|
105
|
+
body: await parseErrorBody(output.body, context),
|
|
106
106
|
};
|
|
107
107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
108
108
|
switch (errorCode) {
|
|
@@ -145,7 +145,7 @@ exports.deserializeAws_json1_1GetComplianceSummaryCommand = deserializeAws_json1
|
|
|
145
145
|
const deserializeAws_json1_1GetComplianceSummaryCommandError = async (output, context) => {
|
|
146
146
|
const parsedOutput = {
|
|
147
147
|
...output,
|
|
148
|
-
body: await
|
|
148
|
+
body: await parseErrorBody(output.body, context),
|
|
149
149
|
};
|
|
150
150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
151
151
|
switch (errorCode) {
|
|
@@ -188,7 +188,7 @@ exports.deserializeAws_json1_1GetResourcesCommand = deserializeAws_json1_1GetRes
|
|
|
188
188
|
const deserializeAws_json1_1GetResourcesCommandError = async (output, context) => {
|
|
189
189
|
const parsedOutput = {
|
|
190
190
|
...output,
|
|
191
|
-
body: await
|
|
191
|
+
body: await parseErrorBody(output.body, context),
|
|
192
192
|
};
|
|
193
193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
194
194
|
switch (errorCode) {
|
|
@@ -231,7 +231,7 @@ exports.deserializeAws_json1_1GetTagKeysCommand = deserializeAws_json1_1GetTagKe
|
|
|
231
231
|
const deserializeAws_json1_1GetTagKeysCommandError = async (output, context) => {
|
|
232
232
|
const parsedOutput = {
|
|
233
233
|
...output,
|
|
234
|
-
body: await
|
|
234
|
+
body: await parseErrorBody(output.body, context),
|
|
235
235
|
};
|
|
236
236
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
237
237
|
switch (errorCode) {
|
|
@@ -274,7 +274,7 @@ exports.deserializeAws_json1_1GetTagValuesCommand = deserializeAws_json1_1GetTag
|
|
|
274
274
|
const deserializeAws_json1_1GetTagValuesCommandError = async (output, context) => {
|
|
275
275
|
const parsedOutput = {
|
|
276
276
|
...output,
|
|
277
|
-
body: await
|
|
277
|
+
body: await parseErrorBody(output.body, context),
|
|
278
278
|
};
|
|
279
279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
280
280
|
switch (errorCode) {
|
|
@@ -317,7 +317,7 @@ exports.deserializeAws_json1_1StartReportCreationCommand = deserializeAws_json1_
|
|
|
317
317
|
const deserializeAws_json1_1StartReportCreationCommandError = async (output, context) => {
|
|
318
318
|
const parsedOutput = {
|
|
319
319
|
...output,
|
|
320
|
-
body: await
|
|
320
|
+
body: await parseErrorBody(output.body, context),
|
|
321
321
|
};
|
|
322
322
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
323
323
|
switch (errorCode) {
|
|
@@ -363,7 +363,7 @@ exports.deserializeAws_json1_1TagResourcesCommand = deserializeAws_json1_1TagRes
|
|
|
363
363
|
const deserializeAws_json1_1TagResourcesCommandError = async (output, context) => {
|
|
364
364
|
const parsedOutput = {
|
|
365
365
|
...output,
|
|
366
|
-
body: await
|
|
366
|
+
body: await parseErrorBody(output.body, context),
|
|
367
367
|
};
|
|
368
368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
369
369
|
switch (errorCode) {
|
|
@@ -403,7 +403,7 @@ exports.deserializeAws_json1_1UntagResourcesCommand = deserializeAws_json1_1Unta
|
|
|
403
403
|
const deserializeAws_json1_1UntagResourcesCommandError = async (output, context) => {
|
|
404
404
|
const parsedOutput = {
|
|
405
405
|
...output,
|
|
406
|
-
body: await
|
|
406
|
+
body: await parseErrorBody(output.body, context),
|
|
407
407
|
};
|
|
408
408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
409
|
switch (errorCode) {
|
|
@@ -865,6 +865,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
865
865
|
}
|
|
866
866
|
return {};
|
|
867
867
|
});
|
|
868
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
869
|
+
var _a;
|
|
870
|
+
const value = await parseBody(errorBody, context);
|
|
871
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
872
|
+
return value;
|
|
873
|
+
};
|
|
868
874
|
const loadRestJsonErrorCode = (output, data) => {
|
|
869
875
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
870
876
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -117,7 +117,7 @@ var deserializeAws_json1_1DescribeReportCreationCommandError = function (output,
|
|
|
117
117
|
case 0:
|
|
118
118
|
_a = [__assign({}, output)];
|
|
119
119
|
_c = {};
|
|
120
|
-
return [4,
|
|
120
|
+
return [4, parseErrorBody(output.body, context)];
|
|
121
121
|
case 1:
|
|
122
122
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
123
123
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -180,7 +180,7 @@ var deserializeAws_json1_1GetComplianceSummaryCommandError = function (output, c
|
|
|
180
180
|
case 0:
|
|
181
181
|
_a = [__assign({}, output)];
|
|
182
182
|
_c = {};
|
|
183
|
-
return [4,
|
|
183
|
+
return [4, parseErrorBody(output.body, context)];
|
|
184
184
|
case 1:
|
|
185
185
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
186
186
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -243,7 +243,7 @@ var deserializeAws_json1_1GetResourcesCommandError = function (output, context)
|
|
|
243
243
|
case 0:
|
|
244
244
|
_a = [__assign({}, output)];
|
|
245
245
|
_c = {};
|
|
246
|
-
return [4,
|
|
246
|
+
return [4, parseErrorBody(output.body, context)];
|
|
247
247
|
case 1:
|
|
248
248
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
249
249
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -306,7 +306,7 @@ var deserializeAws_json1_1GetTagKeysCommandError = function (output, context) {
|
|
|
306
306
|
case 0:
|
|
307
307
|
_a = [__assign({}, output)];
|
|
308
308
|
_c = {};
|
|
309
|
-
return [4,
|
|
309
|
+
return [4, parseErrorBody(output.body, context)];
|
|
310
310
|
case 1:
|
|
311
311
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
312
312
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -369,7 +369,7 @@ var deserializeAws_json1_1GetTagValuesCommandError = function (output, context)
|
|
|
369
369
|
case 0:
|
|
370
370
|
_a = [__assign({}, output)];
|
|
371
371
|
_c = {};
|
|
372
|
-
return [4,
|
|
372
|
+
return [4, parseErrorBody(output.body, context)];
|
|
373
373
|
case 1:
|
|
374
374
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
375
375
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -432,7 +432,7 @@ var deserializeAws_json1_1StartReportCreationCommandError = function (output, co
|
|
|
432
432
|
case 0:
|
|
433
433
|
_a = [__assign({}, output)];
|
|
434
434
|
_c = {};
|
|
435
|
-
return [4,
|
|
435
|
+
return [4, parseErrorBody(output.body, context)];
|
|
436
436
|
case 1:
|
|
437
437
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
438
438
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -499,7 +499,7 @@ var deserializeAws_json1_1TagResourcesCommandError = function (output, context)
|
|
|
499
499
|
case 0:
|
|
500
500
|
_a = [__assign({}, output)];
|
|
501
501
|
_c = {};
|
|
502
|
-
return [4,
|
|
502
|
+
return [4, parseErrorBody(output.body, context)];
|
|
503
503
|
case 1:
|
|
504
504
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
505
505
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -558,7 +558,7 @@ var deserializeAws_json1_1UntagResourcesCommandError = function (output, context
|
|
|
558
558
|
case 0:
|
|
559
559
|
_a = [__assign({}, output)];
|
|
560
560
|
_c = {};
|
|
561
|
-
return [4,
|
|
561
|
+
return [4, parseErrorBody(output.body, context)];
|
|
562
562
|
case 1:
|
|
563
563
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
564
564
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1007,6 +1007,19 @@ var parseBody = function (streamBody, context) {
|
|
|
1007
1007
|
return {};
|
|
1008
1008
|
});
|
|
1009
1009
|
};
|
|
1010
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1011
|
+
var value;
|
|
1012
|
+
var _a;
|
|
1013
|
+
return __generator(this, function (_b) {
|
|
1014
|
+
switch (_b.label) {
|
|
1015
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
1016
|
+
case 1:
|
|
1017
|
+
value = _b.sent();
|
|
1018
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1019
|
+
return [2, value];
|
|
1020
|
+
}
|
|
1021
|
+
});
|
|
1022
|
+
}); };
|
|
1010
1023
|
var loadRestJsonErrorCode = function (output, data) {
|
|
1011
1024
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1012
1025
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-resource-groups-tagging-api",
|
|
3
3
|
"description": "AWS SDK for JavaScript Resource Groups Tagging Api Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.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",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|