@aws-sdk/client-pricing 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_1.js +15 -27
- package/dist-es/protocols/Aws_json1_1.js +25 -28
- 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
|
|
|
@@ -54,7 +54,6 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
54
54
|
...output,
|
|
55
55
|
body: await parseBody(output.body, context),
|
|
56
56
|
};
|
|
57
|
-
let response;
|
|
58
57
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
59
58
|
switch (errorCode) {
|
|
60
59
|
case "ExpiredNextTokenException":
|
|
@@ -74,14 +73,12 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
74
73
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
75
74
|
default:
|
|
76
75
|
const parsedBody = parsedOutput.body;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
$metadata,
|
|
76
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
77
|
+
output,
|
|
78
|
+
parsedBody,
|
|
79
|
+
exceptionCtor: PricingServiceException_1.PricingServiceException,
|
|
80
|
+
errorCode,
|
|
83
81
|
});
|
|
84
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
85
82
|
}
|
|
86
83
|
};
|
|
87
84
|
const deserializeAws_json1_1GetAttributeValuesCommand = async (output, context) => {
|
|
@@ -103,7 +100,6 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
|
|
|
103
100
|
...output,
|
|
104
101
|
body: await parseBody(output.body, context),
|
|
105
102
|
};
|
|
106
|
-
let response;
|
|
107
103
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
108
104
|
switch (errorCode) {
|
|
109
105
|
case "ExpiredNextTokenException":
|
|
@@ -123,14 +119,12 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
|
|
|
123
119
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
124
120
|
default:
|
|
125
121
|
const parsedBody = parsedOutput.body;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
$metadata,
|
|
122
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
123
|
+
output,
|
|
124
|
+
parsedBody,
|
|
125
|
+
exceptionCtor: PricingServiceException_1.PricingServiceException,
|
|
126
|
+
errorCode,
|
|
132
127
|
});
|
|
133
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
134
128
|
}
|
|
135
129
|
};
|
|
136
130
|
const deserializeAws_json1_1GetProductsCommand = async (output, context) => {
|
|
@@ -152,7 +146,6 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
|
|
|
152
146
|
...output,
|
|
153
147
|
body: await parseBody(output.body, context),
|
|
154
148
|
};
|
|
155
|
-
let response;
|
|
156
149
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
157
150
|
switch (errorCode) {
|
|
158
151
|
case "ExpiredNextTokenException":
|
|
@@ -172,14 +165,12 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
|
|
|
172
165
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
173
166
|
default:
|
|
174
167
|
const parsedBody = parsedOutput.body;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
$metadata,
|
|
168
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
169
|
+
output,
|
|
170
|
+
parsedBody,
|
|
171
|
+
exceptionCtor: PricingServiceException_1.PricingServiceException,
|
|
172
|
+
errorCode,
|
|
181
173
|
});
|
|
182
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
183
174
|
}
|
|
184
175
|
};
|
|
185
176
|
const deserializeAws_json1_1ExpiredNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -246,9 +237,6 @@ const serializeAws_json1_1Filters = (input, context) => {
|
|
|
246
237
|
return input
|
|
247
238
|
.filter((e) => e != null)
|
|
248
239
|
.map((entry) => {
|
|
249
|
-
if (entry === null) {
|
|
250
|
-
return null;
|
|
251
|
-
}
|
|
252
240
|
return serializeAws_json1_1Filter(entry, context);
|
|
253
241
|
});
|
|
254
242
|
};
|
|
@@ -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, expectString as __expectString, LazyJsonString as __LazyJsonString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, } from "../models/models_0";
|
|
5
5
|
import { PricingServiceException as __BaseException } from "../models/PricingServiceException";
|
|
6
6
|
export var serializeAws_json1_1DescribeServicesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -55,7 +55,7 @@ export var deserializeAws_json1_1DescribeServicesCommand = function (output, con
|
|
|
55
55
|
});
|
|
56
56
|
}); };
|
|
57
57
|
var deserializeAws_json1_1DescribeServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
-
var parsedOutput, _a,
|
|
58
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
59
59
|
var _c;
|
|
60
60
|
return __generator(this, function (_d) {
|
|
61
61
|
switch (_d.label) {
|
|
@@ -92,14 +92,14 @@ var deserializeAws_json1_1DescribeServicesCommandError = function (output, conte
|
|
|
92
92
|
case 11: throw _d.sent();
|
|
93
93
|
case 12:
|
|
94
94
|
parsedBody = parsedOutput.body;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
$metadata: $metadata,
|
|
95
|
+
throwDefaultError({
|
|
96
|
+
output: output,
|
|
97
|
+
parsedBody: parsedBody,
|
|
98
|
+
exceptionCtor: __BaseException,
|
|
99
|
+
errorCode: errorCode,
|
|
101
100
|
});
|
|
102
|
-
|
|
101
|
+
_d.label = 13;
|
|
102
|
+
case 13: return [2];
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
}); };
|
|
@@ -122,7 +122,7 @@ export var deserializeAws_json1_1GetAttributeValuesCommand = function (output, c
|
|
|
122
122
|
});
|
|
123
123
|
}); };
|
|
124
124
|
var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
125
|
-
var parsedOutput, _a,
|
|
125
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
126
126
|
var _c;
|
|
127
127
|
return __generator(this, function (_d) {
|
|
128
128
|
switch (_d.label) {
|
|
@@ -159,14 +159,14 @@ var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, con
|
|
|
159
159
|
case 11: throw _d.sent();
|
|
160
160
|
case 12:
|
|
161
161
|
parsedBody = parsedOutput.body;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
$metadata: $metadata,
|
|
162
|
+
throwDefaultError({
|
|
163
|
+
output: output,
|
|
164
|
+
parsedBody: parsedBody,
|
|
165
|
+
exceptionCtor: __BaseException,
|
|
166
|
+
errorCode: errorCode,
|
|
168
167
|
});
|
|
169
|
-
|
|
168
|
+
_d.label = 13;
|
|
169
|
+
case 13: return [2];
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
}); };
|
|
@@ -189,7 +189,7 @@ export var deserializeAws_json1_1GetProductsCommand = function (output, context)
|
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
var deserializeAws_json1_1GetProductsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
192
|
-
var parsedOutput, _a,
|
|
192
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
193
193
|
var _c;
|
|
194
194
|
return __generator(this, function (_d) {
|
|
195
195
|
switch (_d.label) {
|
|
@@ -226,14 +226,14 @@ var deserializeAws_json1_1GetProductsCommandError = function (output, context) {
|
|
|
226
226
|
case 11: throw _d.sent();
|
|
227
227
|
case 12:
|
|
228
228
|
parsedBody = parsedOutput.body;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
$metadata: $metadata,
|
|
229
|
+
throwDefaultError({
|
|
230
|
+
output: output,
|
|
231
|
+
parsedBody: parsedBody,
|
|
232
|
+
exceptionCtor: __BaseException,
|
|
233
|
+
errorCode: errorCode,
|
|
235
234
|
});
|
|
236
|
-
|
|
235
|
+
_d.label = 13;
|
|
236
|
+
case 13: return [2];
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}); };
|
|
@@ -292,9 +292,6 @@ var serializeAws_json1_1Filters = function (input, context) {
|
|
|
292
292
|
return input
|
|
293
293
|
.filter(function (e) { return e != null; })
|
|
294
294
|
.map(function (entry) {
|
|
295
|
-
if (entry === null) {
|
|
296
|
-
return null;
|
|
297
|
-
}
|
|
298
295
|
return serializeAws_json1_1Filter(entry, context);
|
|
299
296
|
});
|
|
300
297
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-pricing",
|
|
3
3
|
"description": "AWS SDK for JavaScript Pricing 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",
|