@aws-sdk/client-pricing 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +23 -25
- package/dist-es/protocols/Aws_json1_1.js +11 -13
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-pricing
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-pricing
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -229,17 +229,17 @@ const deserializeAws_json1_1NotFoundExceptionResponse = async (parsedOutput, con
|
|
|
229
229
|
};
|
|
230
230
|
const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
|
|
231
231
|
return {
|
|
232
|
-
...(input.FormatVersion
|
|
233
|
-
...(input.MaxResults
|
|
234
|
-
...(input.NextToken
|
|
235
|
-
...(input.ServiceCode
|
|
232
|
+
...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
|
|
233
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
234
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
235
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
const serializeAws_json1_1Filter = (input, context) => {
|
|
239
239
|
return {
|
|
240
|
-
...(input.Field
|
|
241
|
-
...(input.Type
|
|
242
|
-
...(input.Value
|
|
240
|
+
...(input.Field != null && { Field: input.Field }),
|
|
241
|
+
...(input.Type != null && { Type: input.Type }),
|
|
242
|
+
...(input.Value != null && { Value: input.Value }),
|
|
243
243
|
};
|
|
244
244
|
};
|
|
245
245
|
const serializeAws_json1_1Filters = (input, context) => {
|
|
@@ -254,20 +254,19 @@ const serializeAws_json1_1Filters = (input, context) => {
|
|
|
254
254
|
};
|
|
255
255
|
const serializeAws_json1_1GetAttributeValuesRequest = (input, context) => {
|
|
256
256
|
return {
|
|
257
|
-
...(input.AttributeName
|
|
258
|
-
...(input.MaxResults
|
|
259
|
-
...(input.NextToken
|
|
260
|
-
...(input.ServiceCode
|
|
257
|
+
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
258
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
259
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
260
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
263
|
const serializeAws_json1_1GetProductsRequest = (input, context) => {
|
|
264
264
|
return {
|
|
265
|
-
...(input.Filters
|
|
266
|
-
|
|
267
|
-
...(input.
|
|
268
|
-
...(input.
|
|
269
|
-
...(input.
|
|
270
|
-
...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }),
|
|
265
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
|
|
266
|
+
...(input.FormatVersion != null && { FormatVersion: input.FormatVersion }),
|
|
267
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
268
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
269
|
+
...(input.ServiceCode != null && { ServiceCode: input.ServiceCode }),
|
|
271
270
|
};
|
|
272
271
|
};
|
|
273
272
|
const deserializeAws_json1_1AttributeNameList = (output, context) => {
|
|
@@ -301,9 +300,7 @@ const deserializeAws_json1_1DescribeServicesResponse = (output, context) => {
|
|
|
301
300
|
return {
|
|
302
301
|
FormatVersion: (0, smithy_client_1.expectString)(output.FormatVersion),
|
|
303
302
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
304
|
-
Services: output.Services
|
|
305
|
-
? deserializeAws_json1_1ServiceList(output.Services, context)
|
|
306
|
-
: undefined,
|
|
303
|
+
Services: output.Services != null ? deserializeAws_json1_1ServiceList(output.Services, context) : undefined,
|
|
307
304
|
};
|
|
308
305
|
};
|
|
309
306
|
const deserializeAws_json1_1ExpiredNextTokenException = (output, context) => {
|
|
@@ -313,7 +310,7 @@ const deserializeAws_json1_1ExpiredNextTokenException = (output, context) => {
|
|
|
313
310
|
};
|
|
314
311
|
const deserializeAws_json1_1GetAttributeValuesResponse = (output, context) => {
|
|
315
312
|
return {
|
|
316
|
-
AttributeValues: output.AttributeValues
|
|
313
|
+
AttributeValues: output.AttributeValues != null
|
|
317
314
|
? deserializeAws_json1_1AttributeValueList(output.AttributeValues, context)
|
|
318
315
|
: undefined,
|
|
319
316
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -323,9 +320,7 @@ const deserializeAws_json1_1GetProductsResponse = (output, context) => {
|
|
|
323
320
|
return {
|
|
324
321
|
FormatVersion: (0, smithy_client_1.expectString)(output.FormatVersion),
|
|
325
322
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
326
|
-
PriceList: output.PriceList
|
|
327
|
-
? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context)
|
|
328
|
-
: undefined,
|
|
323
|
+
PriceList: output.PriceList != null ? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context) : undefined,
|
|
329
324
|
};
|
|
330
325
|
};
|
|
331
326
|
const deserializeAws_json1_1InternalErrorException = (output, context) => {
|
|
@@ -361,7 +356,7 @@ const deserializeAws_json1_1PriceListJsonItems = (output, context) => {
|
|
|
361
356
|
};
|
|
362
357
|
const deserializeAws_json1_1Service = (output, context) => {
|
|
363
358
|
return {
|
|
364
|
-
AttributeNames: output.AttributeNames
|
|
359
|
+
AttributeNames: output.AttributeNames != null
|
|
365
360
|
? deserializeAws_json1_1AttributeNameList(output.AttributeNames, context)
|
|
366
361
|
: undefined,
|
|
367
362
|
ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
|
|
@@ -422,6 +417,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
422
417
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
423
418
|
const sanitizeErrorCode = (rawValue) => {
|
|
424
419
|
let cleanValue = rawValue;
|
|
420
|
+
if (typeof cleanValue === "number") {
|
|
421
|
+
cleanValue = cleanValue.toString();
|
|
422
|
+
}
|
|
425
423
|
if (cleanValue.indexOf(":") >= 0) {
|
|
426
424
|
cleanValue = cleanValue.split(":")[0];
|
|
427
425
|
}
|
|
@@ -283,10 +283,10 @@ var deserializeAws_json1_1NotFoundExceptionResponse = function (parsedOutput, co
|
|
|
283
283
|
});
|
|
284
284
|
}); };
|
|
285
285
|
var serializeAws_json1_1DescribeServicesRequest = function (input, context) {
|
|
286
|
-
return __assign(__assign(__assign(__assign({}, (input.FormatVersion
|
|
286
|
+
return __assign(__assign(__assign(__assign({}, (input.FormatVersion != null && { FormatVersion: input.FormatVersion })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServiceCode != null && { ServiceCode: input.ServiceCode }));
|
|
287
287
|
};
|
|
288
288
|
var serializeAws_json1_1Filter = function (input, context) {
|
|
289
|
-
return __assign(__assign(__assign({}, (input.Field
|
|
289
|
+
return __assign(__assign(__assign({}, (input.Field != null && { Field: input.Field })), (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
290
290
|
};
|
|
291
291
|
var serializeAws_json1_1Filters = function (input, context) {
|
|
292
292
|
return input
|
|
@@ -299,11 +299,10 @@ var serializeAws_json1_1Filters = function (input, context) {
|
|
|
299
299
|
});
|
|
300
300
|
};
|
|
301
301
|
var serializeAws_json1_1GetAttributeValuesRequest = function (input, context) {
|
|
302
|
-
return __assign(__assign(__assign(__assign({}, (input.AttributeName
|
|
302
|
+
return __assign(__assign(__assign(__assign({}, (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServiceCode != null && { ServiceCode: input.ServiceCode }));
|
|
303
303
|
};
|
|
304
304
|
var serializeAws_json1_1GetProductsRequest = function (input, context) {
|
|
305
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Filters
|
|
306
|
-
input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.FormatVersion !== undefined && input.FormatVersion !== null && { FormatVersion: input.FormatVersion })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: input.ServiceCode }));
|
|
305
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) })), (input.FormatVersion != null && { FormatVersion: input.FormatVersion })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServiceCode != null && { ServiceCode: input.ServiceCode }));
|
|
307
306
|
};
|
|
308
307
|
var deserializeAws_json1_1AttributeNameList = function (output, context) {
|
|
309
308
|
var retVal = (output || [])
|
|
@@ -336,9 +335,7 @@ var deserializeAws_json1_1DescribeServicesResponse = function (output, context)
|
|
|
336
335
|
return {
|
|
337
336
|
FormatVersion: __expectString(output.FormatVersion),
|
|
338
337
|
NextToken: __expectString(output.NextToken),
|
|
339
|
-
Services: output.Services
|
|
340
|
-
? deserializeAws_json1_1ServiceList(output.Services, context)
|
|
341
|
-
: undefined,
|
|
338
|
+
Services: output.Services != null ? deserializeAws_json1_1ServiceList(output.Services, context) : undefined,
|
|
342
339
|
};
|
|
343
340
|
};
|
|
344
341
|
var deserializeAws_json1_1ExpiredNextTokenException = function (output, context) {
|
|
@@ -348,7 +345,7 @@ var deserializeAws_json1_1ExpiredNextTokenException = function (output, context)
|
|
|
348
345
|
};
|
|
349
346
|
var deserializeAws_json1_1GetAttributeValuesResponse = function (output, context) {
|
|
350
347
|
return {
|
|
351
|
-
AttributeValues: output.AttributeValues
|
|
348
|
+
AttributeValues: output.AttributeValues != null
|
|
352
349
|
? deserializeAws_json1_1AttributeValueList(output.AttributeValues, context)
|
|
353
350
|
: undefined,
|
|
354
351
|
NextToken: __expectString(output.NextToken),
|
|
@@ -358,9 +355,7 @@ var deserializeAws_json1_1GetProductsResponse = function (output, context) {
|
|
|
358
355
|
return {
|
|
359
356
|
FormatVersion: __expectString(output.FormatVersion),
|
|
360
357
|
NextToken: __expectString(output.NextToken),
|
|
361
|
-
PriceList: output.PriceList
|
|
362
|
-
? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context)
|
|
363
|
-
: undefined,
|
|
358
|
+
PriceList: output.PriceList != null ? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context) : undefined,
|
|
364
359
|
};
|
|
365
360
|
};
|
|
366
361
|
var deserializeAws_json1_1InternalErrorException = function (output, context) {
|
|
@@ -396,7 +391,7 @@ var deserializeAws_json1_1PriceListJsonItems = function (output, context) {
|
|
|
396
391
|
};
|
|
397
392
|
var deserializeAws_json1_1Service = function (output, context) {
|
|
398
393
|
return {
|
|
399
|
-
AttributeNames: output.AttributeNames
|
|
394
|
+
AttributeNames: output.AttributeNames != null
|
|
400
395
|
? deserializeAws_json1_1AttributeNameList(output.AttributeNames, context)
|
|
401
396
|
: undefined,
|
|
402
397
|
ServiceCode: __expectString(output.ServiceCode),
|
|
@@ -469,6 +464,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
469
464
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
470
465
|
var sanitizeErrorCode = function (rawValue) {
|
|
471
466
|
var cleanValue = rawValue;
|
|
467
|
+
if (typeof cleanValue === "number") {
|
|
468
|
+
cleanValue = cleanValue.toString();
|
|
469
|
+
}
|
|
472
470
|
if (cleanValue.indexOf(":") >= 0) {
|
|
473
471
|
cleanValue = cleanValue.split(":")[0];
|
|
474
472
|
}
|
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.130.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,35 +18,35 @@
|
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
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.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.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"
|