@aws-sdk/client-pricing 3.118.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,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.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
+
14
+ # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-pricing:** Documentation update for GetProducts Response. ([8c5e287](https://github.com/aws/aws-sdk-js-v3/commit/8c5e2873190168ea2c1b06940e563716e18acd85))
20
+ * **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))
21
+
22
+
23
+
24
+
25
+
26
+ ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
27
+
28
+ **Note:** Version bump only for package @aws-sdk/client-pricing
29
+
30
+
31
+
32
+
33
+
6
34
  # [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
7
35
 
8
36
  **Note:** Version bump only for package @aws-sdk/client-pricing
@@ -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
- let errorCode = "UnknownError";
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: deserializeMetadata(output),
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
- let errorCode = "UnknownError";
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: deserializeMetadata(output),
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
- let errorCode = "UnknownError";
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: deserializeMetadata(output),
180
+ $metadata,
178
181
  });
179
182
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
180
183
  }
@@ -226,17 +229,17 @@ const deserializeAws_json1_1NotFoundExceptionResponse = async (parsedOutput, con
226
229
  };
227
230
  const serializeAws_json1_1DescribeServicesRequest = (input, context) => {
228
231
  return {
229
- ...(input.FormatVersion !== undefined && input.FormatVersion !== null && { FormatVersion: input.FormatVersion }),
230
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
231
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
232
- ...(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 }),
233
236
  };
234
237
  };
235
238
  const serializeAws_json1_1Filter = (input, context) => {
236
239
  return {
237
- ...(input.Field !== undefined && input.Field !== null && { Field: input.Field }),
238
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
239
- ...(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 }),
240
243
  };
241
244
  };
242
245
  const serializeAws_json1_1Filters = (input, context) => {
@@ -251,20 +254,19 @@ const serializeAws_json1_1Filters = (input, context) => {
251
254
  };
252
255
  const serializeAws_json1_1GetAttributeValuesRequest = (input, context) => {
253
256
  return {
254
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
255
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
256
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
257
- ...(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 }),
258
261
  };
259
262
  };
260
263
  const serializeAws_json1_1GetProductsRequest = (input, context) => {
261
264
  return {
262
- ...(input.Filters !== undefined &&
263
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
264
- ...(input.FormatVersion !== undefined && input.FormatVersion !== null && { FormatVersion: input.FormatVersion }),
265
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
266
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
267
- ...(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 }),
268
270
  };
269
271
  };
270
272
  const deserializeAws_json1_1AttributeNameList = (output, context) => {
@@ -298,9 +300,7 @@ const deserializeAws_json1_1DescribeServicesResponse = (output, context) => {
298
300
  return {
299
301
  FormatVersion: (0, smithy_client_1.expectString)(output.FormatVersion),
300
302
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
301
- Services: output.Services !== undefined && output.Services !== null
302
- ? deserializeAws_json1_1ServiceList(output.Services, context)
303
- : undefined,
303
+ Services: output.Services != null ? deserializeAws_json1_1ServiceList(output.Services, context) : undefined,
304
304
  };
305
305
  };
306
306
  const deserializeAws_json1_1ExpiredNextTokenException = (output, context) => {
@@ -310,7 +310,7 @@ const deserializeAws_json1_1ExpiredNextTokenException = (output, context) => {
310
310
  };
311
311
  const deserializeAws_json1_1GetAttributeValuesResponse = (output, context) => {
312
312
  return {
313
- AttributeValues: output.AttributeValues !== undefined && output.AttributeValues !== null
313
+ AttributeValues: output.AttributeValues != null
314
314
  ? deserializeAws_json1_1AttributeValueList(output.AttributeValues, context)
315
315
  : undefined,
316
316
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -320,9 +320,7 @@ const deserializeAws_json1_1GetProductsResponse = (output, context) => {
320
320
  return {
321
321
  FormatVersion: (0, smithy_client_1.expectString)(output.FormatVersion),
322
322
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
323
- PriceList: output.PriceList !== undefined && output.PriceList !== null
324
- ? deserializeAws_json1_1PriceList(output.PriceList, context)
325
- : undefined,
323
+ PriceList: output.PriceList != null ? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context) : undefined,
326
324
  };
327
325
  };
328
326
  const deserializeAws_json1_1InternalErrorException = (output, context) => {
@@ -345,7 +343,7 @@ const deserializeAws_json1_1NotFoundException = (output, context) => {
345
343
  Message: (0, smithy_client_1.expectString)(output.Message),
346
344
  };
347
345
  };
348
- const deserializeAws_json1_1PriceList = (output, context) => {
346
+ const deserializeAws_json1_1PriceListJsonItems = (output, context) => {
349
347
  const retVal = (output || [])
350
348
  .filter((e) => e != null)
351
349
  .map((entry) => {
@@ -358,7 +356,7 @@ const deserializeAws_json1_1PriceList = (output, context) => {
358
356
  };
359
357
  const deserializeAws_json1_1Service = (output, context) => {
360
358
  return {
361
- AttributeNames: output.AttributeNames !== undefined && output.AttributeNames !== null
359
+ AttributeNames: output.AttributeNames != null
362
360
  ? deserializeAws_json1_1AttributeNameList(output.AttributeNames, context)
363
361
  : undefined,
364
362
  ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
@@ -437,5 +435,4 @@ const loadRestJsonErrorCode = (output, data) => {
437
435
  if (data["__type"] !== undefined) {
438
436
  return sanitizeErrorCode(data["__type"]);
439
437
  }
440
- return "";
441
438
  };
@@ -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: deserializeMetadata(output),
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: deserializeMetadata(output),
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: deserializeMetadata(output),
234
+ $metadata: $metadata,
232
235
  });
233
236
  throw __decorateServiceException(response, parsedBody);
234
237
  }
@@ -280,10 +283,10 @@ var deserializeAws_json1_1NotFoundExceptionResponse = function (parsedOutput, co
280
283
  });
281
284
  }); };
282
285
  var serializeAws_json1_1DescribeServicesRequest = function (input, context) {
283
- 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 }));
284
287
  };
285
288
  var serializeAws_json1_1Filter = function (input, context) {
286
- 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 }));
287
290
  };
288
291
  var serializeAws_json1_1Filters = function (input, context) {
289
292
  return input
@@ -296,11 +299,10 @@ var serializeAws_json1_1Filters = function (input, context) {
296
299
  });
297
300
  };
298
301
  var serializeAws_json1_1GetAttributeValuesRequest = function (input, context) {
299
- 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 }));
300
303
  };
301
304
  var serializeAws_json1_1GetProductsRequest = function (input, context) {
302
- return __assign(__assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
303
- 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 }));
304
306
  };
305
307
  var deserializeAws_json1_1AttributeNameList = function (output, context) {
306
308
  var retVal = (output || [])
@@ -333,9 +335,7 @@ var deserializeAws_json1_1DescribeServicesResponse = function (output, context)
333
335
  return {
334
336
  FormatVersion: __expectString(output.FormatVersion),
335
337
  NextToken: __expectString(output.NextToken),
336
- Services: output.Services !== undefined && output.Services !== null
337
- ? deserializeAws_json1_1ServiceList(output.Services, context)
338
- : undefined,
338
+ Services: output.Services != null ? deserializeAws_json1_1ServiceList(output.Services, context) : undefined,
339
339
  };
340
340
  };
341
341
  var deserializeAws_json1_1ExpiredNextTokenException = function (output, context) {
@@ -345,7 +345,7 @@ var deserializeAws_json1_1ExpiredNextTokenException = function (output, context)
345
345
  };
346
346
  var deserializeAws_json1_1GetAttributeValuesResponse = function (output, context) {
347
347
  return {
348
- AttributeValues: output.AttributeValues !== undefined && output.AttributeValues !== null
348
+ AttributeValues: output.AttributeValues != null
349
349
  ? deserializeAws_json1_1AttributeValueList(output.AttributeValues, context)
350
350
  : undefined,
351
351
  NextToken: __expectString(output.NextToken),
@@ -355,9 +355,7 @@ var deserializeAws_json1_1GetProductsResponse = function (output, context) {
355
355
  return {
356
356
  FormatVersion: __expectString(output.FormatVersion),
357
357
  NextToken: __expectString(output.NextToken),
358
- PriceList: output.PriceList !== undefined && output.PriceList !== null
359
- ? deserializeAws_json1_1PriceList(output.PriceList, context)
360
- : undefined,
358
+ PriceList: output.PriceList != null ? deserializeAws_json1_1PriceListJsonItems(output.PriceList, context) : undefined,
361
359
  };
362
360
  };
363
361
  var deserializeAws_json1_1InternalErrorException = function (output, context) {
@@ -380,7 +378,7 @@ var deserializeAws_json1_1NotFoundException = function (output, context) {
380
378
  Message: __expectString(output.Message),
381
379
  };
382
380
  };
383
- var deserializeAws_json1_1PriceList = function (output, context) {
381
+ var deserializeAws_json1_1PriceListJsonItems = function (output, context) {
384
382
  var retVal = (output || [])
385
383
  .filter(function (e) { return e != null; })
386
384
  .map(function (entry) {
@@ -393,7 +391,7 @@ var deserializeAws_json1_1PriceList = function (output, context) {
393
391
  };
394
392
  var deserializeAws_json1_1Service = function (output, context) {
395
393
  return {
396
- AttributeNames: output.AttributeNames !== undefined && output.AttributeNames !== null
394
+ AttributeNames: output.AttributeNames != null
397
395
  ? deserializeAws_json1_1AttributeNameList(output.AttributeNames, context)
398
396
  : undefined,
399
397
  ServiceCode: __expectString(output.ServiceCode),
@@ -484,5 +482,4 @@ var loadRestJsonErrorCode = function (output, data) {
484
482
  if (data["__type"] !== undefined) {
485
483
  return sanitizeErrorCode(data["__type"]);
486
484
  }
487
- return "";
488
485
  };
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.118.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.118.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.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.110.0",
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.110.0",
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"