@aws-sdk/client-pricing 3.504.0 → 3.509.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/dist-cjs/index.js CHANGED
@@ -302,7 +302,7 @@ var se_ListPriceListsCommand = /* @__PURE__ */ __name(async (input, context) =>
302
302
  }, "se_ListPriceListsCommand");
303
303
  var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
304
304
  if (output.statusCode >= 300) {
305
- return de_DescribeServicesCommandError(output, context);
305
+ return de_CommandError(output, context);
306
306
  }
307
307
  const data = await parseBody(output.body, context);
308
308
  let contents = {};
@@ -313,40 +313,9 @@ var de_DescribeServicesCommand = /* @__PURE__ */ __name(async (output, context)
313
313
  };
314
314
  return response;
315
315
  }, "de_DescribeServicesCommand");
316
- var de_DescribeServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
317
- const parsedOutput = {
318
- ...output,
319
- body: await parseErrorBody(output.body, context)
320
- };
321
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
322
- switch (errorCode) {
323
- case "ExpiredNextTokenException":
324
- case "com.amazonaws.pricing#ExpiredNextTokenException":
325
- throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
326
- case "InternalErrorException":
327
- case "com.amazonaws.pricing#InternalErrorException":
328
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
329
- case "InvalidNextTokenException":
330
- case "com.amazonaws.pricing#InvalidNextTokenException":
331
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
332
- case "InvalidParameterException":
333
- case "com.amazonaws.pricing#InvalidParameterException":
334
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
335
- case "NotFoundException":
336
- case "com.amazonaws.pricing#NotFoundException":
337
- throw await de_NotFoundExceptionRes(parsedOutput, context);
338
- default:
339
- const parsedBody = parsedOutput.body;
340
- return throwDefaultError({
341
- output,
342
- parsedBody,
343
- errorCode
344
- });
345
- }
346
- }, "de_DescribeServicesCommandError");
347
316
  var de_GetAttributeValuesCommand = /* @__PURE__ */ __name(async (output, context) => {
348
317
  if (output.statusCode >= 300) {
349
- return de_GetAttributeValuesCommandError(output, context);
318
+ return de_CommandError(output, context);
350
319
  }
351
320
  const data = await parseBody(output.body, context);
352
321
  let contents = {};
@@ -357,40 +326,9 @@ var de_GetAttributeValuesCommand = /* @__PURE__ */ __name(async (output, context
357
326
  };
358
327
  return response;
359
328
  }, "de_GetAttributeValuesCommand");
360
- var de_GetAttributeValuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
361
- const parsedOutput = {
362
- ...output,
363
- body: await parseErrorBody(output.body, context)
364
- };
365
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
366
- switch (errorCode) {
367
- case "ExpiredNextTokenException":
368
- case "com.amazonaws.pricing#ExpiredNextTokenException":
369
- throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
370
- case "InternalErrorException":
371
- case "com.amazonaws.pricing#InternalErrorException":
372
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
373
- case "InvalidNextTokenException":
374
- case "com.amazonaws.pricing#InvalidNextTokenException":
375
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
376
- case "InvalidParameterException":
377
- case "com.amazonaws.pricing#InvalidParameterException":
378
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
379
- case "NotFoundException":
380
- case "com.amazonaws.pricing#NotFoundException":
381
- throw await de_NotFoundExceptionRes(parsedOutput, context);
382
- default:
383
- const parsedBody = parsedOutput.body;
384
- return throwDefaultError({
385
- output,
386
- parsedBody,
387
- errorCode
388
- });
389
- }
390
- }, "de_GetAttributeValuesCommandError");
391
329
  var de_GetPriceListFileUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
392
330
  if (output.statusCode >= 300) {
393
- return de_GetPriceListFileUrlCommandError(output, context);
331
+ return de_CommandError(output, context);
394
332
  }
395
333
  const data = await parseBody(output.body, context);
396
334
  let contents = {};
@@ -401,37 +339,9 @@ var de_GetPriceListFileUrlCommand = /* @__PURE__ */ __name(async (output, contex
401
339
  };
402
340
  return response;
403
341
  }, "de_GetPriceListFileUrlCommand");
404
- var de_GetPriceListFileUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
405
- const parsedOutput = {
406
- ...output,
407
- body: await parseErrorBody(output.body, context)
408
- };
409
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
410
- switch (errorCode) {
411
- case "AccessDeniedException":
412
- case "com.amazonaws.pricing#AccessDeniedException":
413
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
414
- case "InternalErrorException":
415
- case "com.amazonaws.pricing#InternalErrorException":
416
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
417
- case "InvalidParameterException":
418
- case "com.amazonaws.pricing#InvalidParameterException":
419
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
420
- case "NotFoundException":
421
- case "com.amazonaws.pricing#NotFoundException":
422
- throw await de_NotFoundExceptionRes(parsedOutput, context);
423
- default:
424
- const parsedBody = parsedOutput.body;
425
- return throwDefaultError({
426
- output,
427
- parsedBody,
428
- errorCode
429
- });
430
- }
431
- }, "de_GetPriceListFileUrlCommandError");
432
342
  var de_GetProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
433
343
  if (output.statusCode >= 300) {
434
- return de_GetProductsCommandError(output, context);
344
+ return de_CommandError(output, context);
435
345
  }
436
346
  const data = await parseBody(output.body, context);
437
347
  let contents = {};
@@ -442,40 +352,9 @@ var de_GetProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
442
352
  };
443
353
  return response;
444
354
  }, "de_GetProductsCommand");
445
- var de_GetProductsCommandError = /* @__PURE__ */ __name(async (output, context) => {
446
- const parsedOutput = {
447
- ...output,
448
- body: await parseErrorBody(output.body, context)
449
- };
450
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
451
- switch (errorCode) {
452
- case "ExpiredNextTokenException":
453
- case "com.amazonaws.pricing#ExpiredNextTokenException":
454
- throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
455
- case "InternalErrorException":
456
- case "com.amazonaws.pricing#InternalErrorException":
457
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
458
- case "InvalidNextTokenException":
459
- case "com.amazonaws.pricing#InvalidNextTokenException":
460
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
461
- case "InvalidParameterException":
462
- case "com.amazonaws.pricing#InvalidParameterException":
463
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
464
- case "NotFoundException":
465
- case "com.amazonaws.pricing#NotFoundException":
466
- throw await de_NotFoundExceptionRes(parsedOutput, context);
467
- default:
468
- const parsedBody = parsedOutput.body;
469
- return throwDefaultError({
470
- output,
471
- parsedBody,
472
- errorCode
473
- });
474
- }
475
- }, "de_GetProductsCommandError");
476
355
  var de_ListPriceListsCommand = /* @__PURE__ */ __name(async (output, context) => {
477
356
  if (output.statusCode >= 300) {
478
- return de_ListPriceListsCommandError(output, context);
357
+ return de_CommandError(output, context);
479
358
  }
480
359
  const data = await parseBody(output.body, context);
481
360
  let contents = {};
@@ -486,16 +365,13 @@ var de_ListPriceListsCommand = /* @__PURE__ */ __name(async (output, context) =>
486
365
  };
487
366
  return response;
488
367
  }, "de_ListPriceListsCommand");
489
- var de_ListPriceListsCommandError = /* @__PURE__ */ __name(async (output, context) => {
368
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
490
369
  const parsedOutput = {
491
370
  ...output,
492
371
  body: await parseErrorBody(output.body, context)
493
372
  };
494
373
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
495
374
  switch (errorCode) {
496
- case "AccessDeniedException":
497
- case "com.amazonaws.pricing#AccessDeniedException":
498
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
499
375
  case "ExpiredNextTokenException":
500
376
  case "com.amazonaws.pricing#ExpiredNextTokenException":
501
377
  throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
@@ -511,6 +387,9 @@ var de_ListPriceListsCommandError = /* @__PURE__ */ __name(async (output, contex
511
387
  case "NotFoundException":
512
388
  case "com.amazonaws.pricing#NotFoundException":
513
389
  throw await de_NotFoundExceptionRes(parsedOutput, context);
390
+ case "AccessDeniedException":
391
+ case "com.amazonaws.pricing#AccessDeniedException":
392
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
514
393
  default:
515
394
  const parsedBody = parsedOutput.body;
516
395
  return throwDefaultError({
@@ -519,7 +398,7 @@ var de_ListPriceListsCommandError = /* @__PURE__ */ __name(async (output, contex
519
398
  errorCode
520
399
  });
521
400
  }
522
- }, "de_ListPriceListsCommandError");
401
+ }, "de_CommandError");
523
402
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
524
403
  const body = parsedOutput.body;
525
404
  const deserialized = (0, import_smithy_client._json)(body);
@@ -34,7 +34,7 @@ export const se_ListPriceListsCommand = async (input, context) => {
34
34
  };
35
35
  export const de_DescribeServicesCommand = async (output, context) => {
36
36
  if (output.statusCode >= 300) {
37
- return de_DescribeServicesCommandError(output, context);
37
+ return de_CommandError(output, context);
38
38
  }
39
39
  const data = await parseBody(output.body, context);
40
40
  let contents = {};
@@ -45,40 +45,9 @@ export const de_DescribeServicesCommand = async (output, context) => {
45
45
  };
46
46
  return response;
47
47
  };
48
- const de_DescribeServicesCommandError = async (output, context) => {
49
- const parsedOutput = {
50
- ...output,
51
- body: await parseErrorBody(output.body, context),
52
- };
53
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
54
- switch (errorCode) {
55
- case "ExpiredNextTokenException":
56
- case "com.amazonaws.pricing#ExpiredNextTokenException":
57
- throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
58
- case "InternalErrorException":
59
- case "com.amazonaws.pricing#InternalErrorException":
60
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
61
- case "InvalidNextTokenException":
62
- case "com.amazonaws.pricing#InvalidNextTokenException":
63
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
64
- case "InvalidParameterException":
65
- case "com.amazonaws.pricing#InvalidParameterException":
66
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
67
- case "NotFoundException":
68
- case "com.amazonaws.pricing#NotFoundException":
69
- throw await de_NotFoundExceptionRes(parsedOutput, context);
70
- default:
71
- const parsedBody = parsedOutput.body;
72
- return throwDefaultError({
73
- output,
74
- parsedBody,
75
- errorCode,
76
- });
77
- }
78
- };
79
48
  export const de_GetAttributeValuesCommand = async (output, context) => {
80
49
  if (output.statusCode >= 300) {
81
- return de_GetAttributeValuesCommandError(output, context);
50
+ return de_CommandError(output, context);
82
51
  }
83
52
  const data = await parseBody(output.body, context);
84
53
  let contents = {};
@@ -89,40 +58,9 @@ export const de_GetAttributeValuesCommand = async (output, context) => {
89
58
  };
90
59
  return response;
91
60
  };
92
- const de_GetAttributeValuesCommandError = async (output, context) => {
93
- const parsedOutput = {
94
- ...output,
95
- body: await parseErrorBody(output.body, context),
96
- };
97
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
98
- switch (errorCode) {
99
- case "ExpiredNextTokenException":
100
- case "com.amazonaws.pricing#ExpiredNextTokenException":
101
- throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
102
- case "InternalErrorException":
103
- case "com.amazonaws.pricing#InternalErrorException":
104
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
105
- case "InvalidNextTokenException":
106
- case "com.amazonaws.pricing#InvalidNextTokenException":
107
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
108
- case "InvalidParameterException":
109
- case "com.amazonaws.pricing#InvalidParameterException":
110
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
111
- case "NotFoundException":
112
- case "com.amazonaws.pricing#NotFoundException":
113
- throw await de_NotFoundExceptionRes(parsedOutput, context);
114
- default:
115
- const parsedBody = parsedOutput.body;
116
- return throwDefaultError({
117
- output,
118
- parsedBody,
119
- errorCode,
120
- });
121
- }
122
- };
123
61
  export const de_GetPriceListFileUrlCommand = async (output, context) => {
124
62
  if (output.statusCode >= 300) {
125
- return de_GetPriceListFileUrlCommandError(output, context);
63
+ return de_CommandError(output, context);
126
64
  }
127
65
  const data = await parseBody(output.body, context);
128
66
  let contents = {};
@@ -133,37 +71,9 @@ export const de_GetPriceListFileUrlCommand = async (output, context) => {
133
71
  };
134
72
  return response;
135
73
  };
136
- const de_GetPriceListFileUrlCommandError = async (output, context) => {
137
- const parsedOutput = {
138
- ...output,
139
- body: await parseErrorBody(output.body, context),
140
- };
141
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
142
- switch (errorCode) {
143
- case "AccessDeniedException":
144
- case "com.amazonaws.pricing#AccessDeniedException":
145
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
146
- case "InternalErrorException":
147
- case "com.amazonaws.pricing#InternalErrorException":
148
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
149
- case "InvalidParameterException":
150
- case "com.amazonaws.pricing#InvalidParameterException":
151
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
152
- case "NotFoundException":
153
- case "com.amazonaws.pricing#NotFoundException":
154
- throw await de_NotFoundExceptionRes(parsedOutput, context);
155
- default:
156
- const parsedBody = parsedOutput.body;
157
- return throwDefaultError({
158
- output,
159
- parsedBody,
160
- errorCode,
161
- });
162
- }
163
- };
164
74
  export const de_GetProductsCommand = async (output, context) => {
165
75
  if (output.statusCode >= 300) {
166
- return de_GetProductsCommandError(output, context);
76
+ return de_CommandError(output, context);
167
77
  }
168
78
  const data = await parseBody(output.body, context);
169
79
  let contents = {};
@@ -174,40 +84,9 @@ export const de_GetProductsCommand = async (output, context) => {
174
84
  };
175
85
  return response;
176
86
  };
177
- const de_GetProductsCommandError = async (output, context) => {
178
- const parsedOutput = {
179
- ...output,
180
- body: await parseErrorBody(output.body, context),
181
- };
182
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
183
- switch (errorCode) {
184
- case "ExpiredNextTokenException":
185
- case "com.amazonaws.pricing#ExpiredNextTokenException":
186
- throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
187
- case "InternalErrorException":
188
- case "com.amazonaws.pricing#InternalErrorException":
189
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
190
- case "InvalidNextTokenException":
191
- case "com.amazonaws.pricing#InvalidNextTokenException":
192
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
193
- case "InvalidParameterException":
194
- case "com.amazonaws.pricing#InvalidParameterException":
195
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
196
- case "NotFoundException":
197
- case "com.amazonaws.pricing#NotFoundException":
198
- throw await de_NotFoundExceptionRes(parsedOutput, context);
199
- default:
200
- const parsedBody = parsedOutput.body;
201
- return throwDefaultError({
202
- output,
203
- parsedBody,
204
- errorCode,
205
- });
206
- }
207
- };
208
87
  export const de_ListPriceListsCommand = async (output, context) => {
209
88
  if (output.statusCode >= 300) {
210
- return de_ListPriceListsCommandError(output, context);
89
+ return de_CommandError(output, context);
211
90
  }
212
91
  const data = await parseBody(output.body, context);
213
92
  let contents = {};
@@ -218,16 +97,13 @@ export const de_ListPriceListsCommand = async (output, context) => {
218
97
  };
219
98
  return response;
220
99
  };
221
- const de_ListPriceListsCommandError = async (output, context) => {
100
+ const de_CommandError = async (output, context) => {
222
101
  const parsedOutput = {
223
102
  ...output,
224
103
  body: await parseErrorBody(output.body, context),
225
104
  };
226
105
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
227
106
  switch (errorCode) {
228
- case "AccessDeniedException":
229
- case "com.amazonaws.pricing#AccessDeniedException":
230
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
231
107
  case "ExpiredNextTokenException":
232
108
  case "com.amazonaws.pricing#ExpiredNextTokenException":
233
109
  throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
@@ -243,6 +119,9 @@ const de_ListPriceListsCommandError = async (output, context) => {
243
119
  case "NotFoundException":
244
120
  case "com.amazonaws.pricing#NotFoundException":
245
121
  throw await de_NotFoundExceptionRes(parsedOutput, context);
122
+ case "AccessDeniedException":
123
+ case "com.amazonaws.pricing#AccessDeniedException":
124
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
246
125
  default:
247
126
  const parsedBody = parsedOutput.body;
248
127
  return throwDefaultError({
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.504.0",
4
+ "version": "3.509.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-pricing",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
25
+ "@aws-sdk/credential-provider-node": "3.509.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",