@aws-sdk/client-pricing 3.121.0 → 3.127.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,14 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-pricing
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -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 !== undefined && input.FormatVersion !== null && { FormatVersion: input.FormatVersion }),
233
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
234
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
235
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: 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 !== undefined && input.Field !== null && { Field: input.Field }),
241
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
242
- ...(input.Value !== undefined && input.Value !== null && { Value: 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 !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
258
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
259
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
260
- ...(input.ServiceCode !== undefined && input.ServiceCode !== null && { ServiceCode: 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 !== undefined &&
266
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
267
- ...(input.FormatVersion !== undefined && input.FormatVersion !== null && { FormatVersion: input.FormatVersion }),
268
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
269
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
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 !== undefined && output.Services !== null
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 !== undefined && output.AttributeValues !== null
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 !== undefined && output.PriceList !== null
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 !== undefined && output.AttributeNames !== null
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),
@@ -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 !== 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 }));
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 !== undefined && input.Field !== null && { Field: input.Field })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
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 !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (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 }));
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 !== undefined &&
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 !== undefined && output.Services !== null
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 !== undefined && output.AttributeValues !== null
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 !== undefined && output.PriceList !== null
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 !== undefined && output.AttributeNames !== null
394
+ AttributeNames: output.AttributeNames != null
400
395
  ? deserializeAws_json1_1AttributeNameList(output.AttributeNames, context)
401
396
  : undefined,
402
397
  ServiceCode: __expectString(output.ServiceCode),
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.121.0",
4
+ "version": "3.127.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.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.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.127.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.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.127.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"