@aws-sdk/client-pricing 3.116.0 → 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 +28 -0
- package/dist-cjs/protocols/Aws_json1_1.js +17 -15
- package/dist-es/protocols/Aws_json1_1.js +17 -15
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
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
|
+
* **client-pricing:** Documentation update for GetProducts Response. ([8c5e287](https://github.com/aws/aws-sdk-js-v3/commit/8c5e2873190168ea2c1b06940e563716e18acd85))
|
|
12
|
+
* **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))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-pricing
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @aws-sdk/client-pricing
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
6
34
|
# [3.116.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.115.0...v3.116.0) (2022-06-22)
|
|
7
35
|
|
|
8
36
|
|
|
@@ -55,8 +55,7 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
55
55
|
body: await parseBody(output.body, context),
|
|
56
56
|
};
|
|
57
57
|
let response;
|
|
58
|
-
|
|
59
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
58
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
60
59
|
switch (errorCode) {
|
|
61
60
|
case "ExpiredNextTokenException":
|
|
62
61
|
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
@@ -75,10 +74,12 @@ const deserializeAws_json1_1DescribeServicesCommandError = async (output, contex
|
|
|
75
74
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
76
75
|
default:
|
|
77
76
|
const parsedBody = parsedOutput.body;
|
|
77
|
+
const $metadata = deserializeMetadata(output);
|
|
78
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
78
79
|
response = new PricingServiceException_1.PricingServiceException({
|
|
79
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
80
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
80
81
|
$fault: "client",
|
|
81
|
-
$metadata
|
|
82
|
+
$metadata,
|
|
82
83
|
});
|
|
83
84
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
84
85
|
}
|
|
@@ -103,8 +104,7 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
|
|
|
103
104
|
body: await parseBody(output.body, context),
|
|
104
105
|
};
|
|
105
106
|
let response;
|
|
106
|
-
|
|
107
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
108
108
|
switch (errorCode) {
|
|
109
109
|
case "ExpiredNextTokenException":
|
|
110
110
|
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
@@ -123,10 +123,12 @@ const deserializeAws_json1_1GetAttributeValuesCommandError = async (output, cont
|
|
|
123
123
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
124
124
|
default:
|
|
125
125
|
const parsedBody = parsedOutput.body;
|
|
126
|
+
const $metadata = deserializeMetadata(output);
|
|
127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
126
128
|
response = new PricingServiceException_1.PricingServiceException({
|
|
127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
129
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
128
130
|
$fault: "client",
|
|
129
|
-
$metadata
|
|
131
|
+
$metadata,
|
|
130
132
|
});
|
|
131
133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
132
134
|
}
|
|
@@ -151,8 +153,7 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
|
|
|
151
153
|
body: await parseBody(output.body, context),
|
|
152
154
|
};
|
|
153
155
|
let response;
|
|
154
|
-
|
|
155
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
156
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
156
157
|
switch (errorCode) {
|
|
157
158
|
case "ExpiredNextTokenException":
|
|
158
159
|
case "com.amazonaws.pricing#ExpiredNextTokenException":
|
|
@@ -171,10 +172,12 @@ const deserializeAws_json1_1GetProductsCommandError = async (output, context) =>
|
|
|
171
172
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
172
173
|
default:
|
|
173
174
|
const parsedBody = parsedOutput.body;
|
|
175
|
+
const $metadata = deserializeMetadata(output);
|
|
176
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
174
177
|
response = new PricingServiceException_1.PricingServiceException({
|
|
175
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
178
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
176
179
|
$fault: "client",
|
|
177
|
-
$metadata
|
|
180
|
+
$metadata,
|
|
178
181
|
});
|
|
179
182
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
180
183
|
}
|
|
@@ -321,7 +324,7 @@ const deserializeAws_json1_1GetProductsResponse = (output, context) => {
|
|
|
321
324
|
FormatVersion: (0, smithy_client_1.expectString)(output.FormatVersion),
|
|
322
325
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
323
326
|
PriceList: output.PriceList !== undefined && output.PriceList !== null
|
|
324
|
-
?
|
|
327
|
+
? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context)
|
|
325
328
|
: undefined,
|
|
326
329
|
};
|
|
327
330
|
};
|
|
@@ -345,7 +348,7 @@ const deserializeAws_json1_1NotFoundException = (output, context) => {
|
|
|
345
348
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
346
349
|
};
|
|
347
350
|
};
|
|
348
|
-
const
|
|
351
|
+
const deserializeAws_json1_1PriceListJsonItems = (output, context) => {
|
|
349
352
|
const retVal = (output || [])
|
|
350
353
|
.filter((e) => e != null)
|
|
351
354
|
.map((entry) => {
|
|
@@ -437,5 +440,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
437
440
|
if (data["__type"] !== undefined) {
|
|
438
441
|
return sanitizeErrorCode(data["__type"]);
|
|
439
442
|
}
|
|
440
|
-
return "";
|
|
441
443
|
};
|
|
@@ -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, response, errorCode, _b, parsedBody;
|
|
58
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
59
59
|
var _c;
|
|
60
60
|
return __generator(this, function (_d) {
|
|
61
61
|
switch (_d.label) {
|
|
@@ -65,7 +65,6 @@ var deserializeAws_json1_1DescribeServicesCommandError = function (output, conte
|
|
|
65
65
|
return [4, parseBody(output.body, context)];
|
|
66
66
|
case 1:
|
|
67
67
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
68
|
-
errorCode = "UnknownError";
|
|
69
68
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
70
69
|
_b = errorCode;
|
|
71
70
|
switch (_b) {
|
|
@@ -93,10 +92,12 @@ var deserializeAws_json1_1DescribeServicesCommandError = function (output, conte
|
|
|
93
92
|
case 11: throw _d.sent();
|
|
94
93
|
case 12:
|
|
95
94
|
parsedBody = parsedOutput.body;
|
|
95
|
+
$metadata = deserializeMetadata(output);
|
|
96
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
96
97
|
response = new __BaseException({
|
|
97
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
98
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
98
99
|
$fault: "client",
|
|
99
|
-
$metadata:
|
|
100
|
+
$metadata: $metadata,
|
|
100
101
|
});
|
|
101
102
|
throw __decorateServiceException(response, parsedBody);
|
|
102
103
|
}
|
|
@@ -121,7 +122,7 @@ export var deserializeAws_json1_1GetAttributeValuesCommand = function (output, c
|
|
|
121
122
|
});
|
|
122
123
|
}); };
|
|
123
124
|
var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
124
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
125
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
125
126
|
var _c;
|
|
126
127
|
return __generator(this, function (_d) {
|
|
127
128
|
switch (_d.label) {
|
|
@@ -131,7 +132,6 @@ var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, con
|
|
|
131
132
|
return [4, parseBody(output.body, context)];
|
|
132
133
|
case 1:
|
|
133
134
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
134
|
-
errorCode = "UnknownError";
|
|
135
135
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
136
136
|
_b = errorCode;
|
|
137
137
|
switch (_b) {
|
|
@@ -159,10 +159,12 @@ var deserializeAws_json1_1GetAttributeValuesCommandError = function (output, con
|
|
|
159
159
|
case 11: throw _d.sent();
|
|
160
160
|
case 12:
|
|
161
161
|
parsedBody = parsedOutput.body;
|
|
162
|
+
$metadata = deserializeMetadata(output);
|
|
163
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
162
164
|
response = new __BaseException({
|
|
163
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
165
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
164
166
|
$fault: "client",
|
|
165
|
-
$metadata:
|
|
167
|
+
$metadata: $metadata,
|
|
166
168
|
});
|
|
167
169
|
throw __decorateServiceException(response, parsedBody);
|
|
168
170
|
}
|
|
@@ -187,7 +189,7 @@ export var deserializeAws_json1_1GetProductsCommand = function (output, context)
|
|
|
187
189
|
});
|
|
188
190
|
}); };
|
|
189
191
|
var deserializeAws_json1_1GetProductsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
190
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
192
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
191
193
|
var _c;
|
|
192
194
|
return __generator(this, function (_d) {
|
|
193
195
|
switch (_d.label) {
|
|
@@ -197,7 +199,6 @@ var deserializeAws_json1_1GetProductsCommandError = function (output, context) {
|
|
|
197
199
|
return [4, parseBody(output.body, context)];
|
|
198
200
|
case 1:
|
|
199
201
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
200
|
-
errorCode = "UnknownError";
|
|
201
202
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
202
203
|
_b = errorCode;
|
|
203
204
|
switch (_b) {
|
|
@@ -225,10 +226,12 @@ var deserializeAws_json1_1GetProductsCommandError = function (output, context) {
|
|
|
225
226
|
case 11: throw _d.sent();
|
|
226
227
|
case 12:
|
|
227
228
|
parsedBody = parsedOutput.body;
|
|
229
|
+
$metadata = deserializeMetadata(output);
|
|
230
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
228
231
|
response = new __BaseException({
|
|
229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
232
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
230
233
|
$fault: "client",
|
|
231
|
-
$metadata:
|
|
234
|
+
$metadata: $metadata,
|
|
232
235
|
});
|
|
233
236
|
throw __decorateServiceException(response, parsedBody);
|
|
234
237
|
}
|
|
@@ -356,7 +359,7 @@ var deserializeAws_json1_1GetProductsResponse = function (output, context) {
|
|
|
356
359
|
FormatVersion: __expectString(output.FormatVersion),
|
|
357
360
|
NextToken: __expectString(output.NextToken),
|
|
358
361
|
PriceList: output.PriceList !== undefined && output.PriceList !== null
|
|
359
|
-
?
|
|
362
|
+
? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context)
|
|
360
363
|
: undefined,
|
|
361
364
|
};
|
|
362
365
|
};
|
|
@@ -380,7 +383,7 @@ var deserializeAws_json1_1NotFoundException = function (output, context) {
|
|
|
380
383
|
Message: __expectString(output.Message),
|
|
381
384
|
};
|
|
382
385
|
};
|
|
383
|
-
var
|
|
386
|
+
var deserializeAws_json1_1PriceListJsonItems = function (output, context) {
|
|
384
387
|
var retVal = (output || [])
|
|
385
388
|
.filter(function (e) { return e != null; })
|
|
386
389
|
.map(function (entry) {
|
|
@@ -484,5 +487,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
484
487
|
if (data["__type"] !== undefined) {
|
|
485
488
|
return sanitizeErrorCode(data["__type"]);
|
|
486
489
|
}
|
|
487
|
-
return "";
|
|
488
490
|
};
|
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.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",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.110.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.110.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.110.0",
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.118.1",
|
|
32
32
|
"@aws-sdk/middleware-serde": "3.110.0",
|
|
33
33
|
"@aws-sdk/middleware-signing": "3.110.0",
|
|
34
34
|
"@aws-sdk/middleware-stack": "3.110.0",
|
|
35
35
|
"@aws-sdk/middleware-user-agent": "3.110.0",
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.110.0",
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.118.1",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.110.0",
|
|
39
39
|
"@aws-sdk/smithy-client": "3.110.0",
|
|
40
40
|
"@aws-sdk/types": "3.110.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@aws-sdk/util-defaults-mode-browser": "3.110.0",
|
|
47
47
|
"@aws-sdk/util-defaults-mode-node": "3.110.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.110.0",
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.118.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|