@aws-sdk/client-pricing 3.926.0 → 3.928.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
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class PricingClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class PricingClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class PricingServiceException extends smithyClient.ServiceException {
113
+ let PricingServiceException$1 = class PricingServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, PricingServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends PricingServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends PricingServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  Message;
@@ -130,8 +130,8 @@ class AccessDeniedException extends PricingServiceException {
130
130
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
131
  this.Message = opts.Message;
132
132
  }
133
- }
134
- class ExpiredNextTokenException extends PricingServiceException {
133
+ };
134
+ let ExpiredNextTokenException$1 = class ExpiredNextTokenException extends PricingServiceException$1 {
135
135
  name = "ExpiredNextTokenException";
136
136
  $fault = "client";
137
137
  Message;
@@ -144,8 +144,8 @@ class ExpiredNextTokenException extends PricingServiceException {
144
144
  Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
145
145
  this.Message = opts.Message;
146
146
  }
147
- }
148
- class InternalErrorException extends PricingServiceException {
147
+ };
148
+ let InternalErrorException$1 = class InternalErrorException extends PricingServiceException$1 {
149
149
  name = "InternalErrorException";
150
150
  $fault = "server";
151
151
  $retryable = {};
@@ -159,8 +159,8 @@ class InternalErrorException extends PricingServiceException {
159
159
  Object.setPrototypeOf(this, InternalErrorException.prototype);
160
160
  this.Message = opts.Message;
161
161
  }
162
- }
163
- class InvalidNextTokenException extends PricingServiceException {
162
+ };
163
+ let InvalidNextTokenException$1 = class InvalidNextTokenException extends PricingServiceException$1 {
164
164
  name = "InvalidNextTokenException";
165
165
  $fault = "client";
166
166
  Message;
@@ -173,8 +173,8 @@ class InvalidNextTokenException extends PricingServiceException {
173
173
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
174
174
  this.Message = opts.Message;
175
175
  }
176
- }
177
- class InvalidParameterException extends PricingServiceException {
176
+ };
177
+ let InvalidParameterException$1 = class InvalidParameterException extends PricingServiceException$1 {
178
178
  name = "InvalidParameterException";
179
179
  $fault = "client";
180
180
  Message;
@@ -187,8 +187,8 @@ class InvalidParameterException extends PricingServiceException {
187
187
  Object.setPrototypeOf(this, InvalidParameterException.prototype);
188
188
  this.Message = opts.Message;
189
189
  }
190
- }
191
- class NotFoundException extends PricingServiceException {
190
+ };
191
+ let NotFoundException$1 = class NotFoundException extends PricingServiceException$1 {
192
192
  name = "NotFoundException";
193
193
  $fault = "client";
194
194
  Message;
@@ -201,8 +201,8 @@ class NotFoundException extends PricingServiceException {
201
201
  Object.setPrototypeOf(this, NotFoundException.prototype);
202
202
  this.Message = opts.Message;
203
203
  }
204
- }
205
- class ThrottlingException extends PricingServiceException {
204
+ };
205
+ let ThrottlingException$1 = class ThrottlingException extends PricingServiceException$1 {
206
206
  name = "ThrottlingException";
207
207
  $fault = "client";
208
208
  $retryable = {
@@ -218,8 +218,8 @@ class ThrottlingException extends PricingServiceException {
218
218
  Object.setPrototypeOf(this, ThrottlingException.prototype);
219
219
  this.Message = opts.Message;
220
220
  }
221
- }
222
- class ResourceNotFoundException extends PricingServiceException {
221
+ };
222
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends PricingServiceException$1 {
223
223
  name = "ResourceNotFoundException";
224
224
  $fault = "client";
225
225
  Message;
@@ -232,7 +232,7 @@ class ResourceNotFoundException extends PricingServiceException {
232
232
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
233
233
  this.Message = opts.Message;
234
234
  }
235
- }
235
+ };
236
236
  const FilterType = {
237
237
  ANY_OF: "ANY_OF",
238
238
  CONTAINS: "CONTAINS",
@@ -241,281 +241,270 @@ const FilterType = {
241
241
  TERM_MATCH: "TERM_MATCH",
242
242
  };
243
243
 
244
- const se_DescribeServicesCommand = async (input, context) => {
245
- const headers = sharedHeaders("DescribeServices");
246
- let body;
247
- body = JSON.stringify(smithyClient._json(input));
248
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
249
- };
250
- const se_GetAttributeValuesCommand = async (input, context) => {
251
- const headers = sharedHeaders("GetAttributeValues");
252
- let body;
253
- body = JSON.stringify(smithyClient._json(input));
254
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
255
- };
256
- const se_GetPriceListFileUrlCommand = async (input, context) => {
257
- const headers = sharedHeaders("GetPriceListFileUrl");
258
- let body;
259
- body = JSON.stringify(smithyClient._json(input));
260
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
261
- };
262
- const se_GetProductsCommand = async (input, context) => {
263
- const headers = sharedHeaders("GetProducts");
264
- let body;
265
- body = JSON.stringify(smithyClient._json(input));
266
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
- };
268
- const se_ListPriceListsCommand = async (input, context) => {
269
- const headers = sharedHeaders("ListPriceLists");
270
- let body;
271
- body = JSON.stringify(se_ListPriceListsRequest(input));
272
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
- };
274
- const de_DescribeServicesCommand = async (output, context) => {
275
- if (output.statusCode >= 300) {
276
- return de_CommandError(output, context);
277
- }
278
- const data = await core$1.parseJsonBody(output.body, context);
279
- let contents = {};
280
- contents = smithyClient._json(data);
281
- const response = {
282
- $metadata: deserializeMetadata(output),
283
- ...contents,
284
- };
285
- return response;
286
- };
287
- const de_GetAttributeValuesCommand = async (output, context) => {
288
- if (output.statusCode >= 300) {
289
- return de_CommandError(output, context);
290
- }
291
- const data = await core$1.parseJsonBody(output.body, context);
292
- let contents = {};
293
- contents = smithyClient._json(data);
294
- const response = {
295
- $metadata: deserializeMetadata(output),
296
- ...contents,
297
- };
298
- return response;
299
- };
300
- const de_GetPriceListFileUrlCommand = async (output, context) => {
301
- if (output.statusCode >= 300) {
302
- return de_CommandError(output, context);
303
- }
304
- const data = await core$1.parseJsonBody(output.body, context);
305
- let contents = {};
306
- contents = smithyClient._json(data);
307
- const response = {
308
- $metadata: deserializeMetadata(output),
309
- ...contents,
310
- };
311
- return response;
312
- };
313
- const de_GetProductsCommand = async (output, context) => {
314
- if (output.statusCode >= 300) {
315
- return de_CommandError(output, context);
316
- }
317
- const data = await core$1.parseJsonBody(output.body, context);
318
- let contents = {};
319
- contents = de_GetProductsResponse(data);
320
- const response = {
321
- $metadata: deserializeMetadata(output),
322
- ...contents,
323
- };
324
- return response;
325
- };
326
- const de_ListPriceListsCommand = async (output, context) => {
327
- if (output.statusCode >= 300) {
328
- return de_CommandError(output, context);
329
- }
330
- const data = await core$1.parseJsonBody(output.body, context);
331
- let contents = {};
332
- contents = smithyClient._json(data);
333
- const response = {
334
- $metadata: deserializeMetadata(output),
335
- ...contents,
336
- };
337
- return response;
338
- };
339
- const de_CommandError = async (output, context) => {
340
- const parsedOutput = {
341
- ...output,
342
- body: await core$1.parseJsonErrorBody(output.body, context),
343
- };
344
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
345
- switch (errorCode) {
346
- case "ExpiredNextTokenException":
347
- case "com.amazonaws.pricing#ExpiredNextTokenException":
348
- throw await de_ExpiredNextTokenExceptionRes(parsedOutput);
349
- case "InternalErrorException":
350
- case "com.amazonaws.pricing#InternalErrorException":
351
- throw await de_InternalErrorExceptionRes(parsedOutput);
352
- case "InvalidNextTokenException":
353
- case "com.amazonaws.pricing#InvalidNextTokenException":
354
- throw await de_InvalidNextTokenExceptionRes(parsedOutput);
355
- case "InvalidParameterException":
356
- case "com.amazonaws.pricing#InvalidParameterException":
357
- throw await de_InvalidParameterExceptionRes(parsedOutput);
358
- case "NotFoundException":
359
- case "com.amazonaws.pricing#NotFoundException":
360
- throw await de_NotFoundExceptionRes(parsedOutput);
361
- case "ThrottlingException":
362
- case "com.amazonaws.pricing#ThrottlingException":
363
- throw await de_ThrottlingExceptionRes(parsedOutput);
364
- case "AccessDeniedException":
365
- case "com.amazonaws.pricing#AccessDeniedException":
366
- throw await de_AccessDeniedExceptionRes(parsedOutput);
367
- case "ResourceNotFoundException":
368
- case "com.amazonaws.pricing#ResourceNotFoundException":
369
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
370
- default:
371
- const parsedBody = parsedOutput.body;
372
- return throwDefaultError({
373
- output,
374
- parsedBody,
375
- errorCode,
376
- });
377
- }
378
- };
379
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
380
- const body = parsedOutput.body;
381
- const deserialized = smithyClient._json(body);
382
- const exception = new AccessDeniedException({
383
- $metadata: deserializeMetadata(parsedOutput),
384
- ...deserialized,
385
- });
386
- return smithyClient.decorateServiceException(exception, body);
387
- };
388
- const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
389
- const body = parsedOutput.body;
390
- const deserialized = smithyClient._json(body);
391
- const exception = new ExpiredNextTokenException({
392
- $metadata: deserializeMetadata(parsedOutput),
393
- ...deserialized,
394
- });
395
- return smithyClient.decorateServiceException(exception, body);
396
- };
397
- const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
398
- const body = parsedOutput.body;
399
- const deserialized = smithyClient._json(body);
400
- const exception = new InternalErrorException({
401
- $metadata: deserializeMetadata(parsedOutput),
402
- ...deserialized,
403
- });
404
- return smithyClient.decorateServiceException(exception, body);
405
- };
406
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
407
- const body = parsedOutput.body;
408
- const deserialized = smithyClient._json(body);
409
- const exception = new InvalidNextTokenException({
410
- $metadata: deserializeMetadata(parsedOutput),
411
- ...deserialized,
412
- });
413
- return smithyClient.decorateServiceException(exception, body);
414
- };
415
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
416
- const body = parsedOutput.body;
417
- const deserialized = smithyClient._json(body);
418
- const exception = new InvalidParameterException({
419
- $metadata: deserializeMetadata(parsedOutput),
420
- ...deserialized,
421
- });
422
- return smithyClient.decorateServiceException(exception, body);
423
- };
424
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
425
- const body = parsedOutput.body;
426
- const deserialized = smithyClient._json(body);
427
- const exception = new NotFoundException({
428
- $metadata: deserializeMetadata(parsedOutput),
429
- ...deserialized,
430
- });
431
- return smithyClient.decorateServiceException(exception, body);
432
- };
433
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
434
- const body = parsedOutput.body;
435
- const deserialized = smithyClient._json(body);
436
- const exception = new ResourceNotFoundException({
437
- $metadata: deserializeMetadata(parsedOutput),
438
- ...deserialized,
439
- });
440
- return smithyClient.decorateServiceException(exception, body);
441
- };
442
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
443
- const body = parsedOutput.body;
444
- const deserialized = smithyClient._json(body);
445
- const exception = new ThrottlingException({
446
- $metadata: deserializeMetadata(parsedOutput),
447
- ...deserialized,
448
- });
449
- return smithyClient.decorateServiceException(exception, body);
450
- };
451
- const se_ListPriceListsRequest = (input, context) => {
452
- return smithyClient.take(input, {
453
- CurrencyCode: [],
454
- EffectiveDate: (_) => _.getTime() / 1_000,
455
- MaxResults: [],
456
- NextToken: [],
457
- RegionCode: [],
458
- ServiceCode: [],
459
- });
460
- };
461
- const de_GetProductsResponse = (output, context) => {
462
- return smithyClient.take(output, {
463
- FormatVersion: smithyClient.expectString,
464
- NextToken: smithyClient.expectString,
465
- PriceList: (_) => de_PriceListJsonItems(_),
466
- });
467
- };
468
- const de_PriceListJsonItems = (output, context) => {
469
- const retVal = (output || [])
470
- .filter((e) => e != null)
471
- .map((entry) => {
472
- return smithyClient.LazyJsonString.from(entry);
473
- });
474
- return retVal;
475
- };
476
- const deserializeMetadata = (output) => ({
477
- httpStatusCode: output.statusCode,
478
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
479
- extendedRequestId: output.headers["x-amz-id-2"],
480
- cfId: output.headers["x-amz-cf-id"],
481
- });
482
- const throwDefaultError = smithyClient.withBaseException(PricingServiceException);
483
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
484
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
485
- const contents = {
486
- protocol,
487
- hostname,
488
- port,
489
- method: "POST",
490
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
491
- headers,
492
- };
493
- if (body !== undefined) {
494
- contents.body = body;
495
- }
496
- return new protocolHttp.HttpRequest(contents);
497
- };
498
- function sharedHeaders(operation) {
499
- return {
500
- "content-type": "application/x-amz-json-1.1",
501
- "x-amz-target": `AWSPriceListService.${operation}`,
502
- };
503
- }
244
+ const _ADE = "AccessDeniedException";
245
+ const _AN = "AttributeName";
246
+ const _ANt = "AttributeNames";
247
+ const _AV = "AttributeValue";
248
+ const _AVL = "AttributeValueList";
249
+ const _AVt = "AttributeValues";
250
+ const _CC = "CurrencyCode";
251
+ const _DS = "DescribeServices";
252
+ const _DSR = "DescribeServicesRequest";
253
+ const _DSRe = "DescribeServicesResponse";
254
+ const _ED = "EffectiveDate";
255
+ const _ENTE = "ExpiredNextTokenException";
256
+ const _F = "Filter";
257
+ const _FF = "FileFormat";
258
+ const _FFi = "FileFormats";
259
+ const _FV = "FormatVersion";
260
+ const _Fi = "Field";
261
+ const _Fil = "Filters";
262
+ const _GAV = "GetAttributeValues";
263
+ const _GAVR = "GetAttributeValuesRequest";
264
+ const _GAVRe = "GetAttributeValuesResponse";
265
+ const _GP = "GetProducts";
266
+ const _GPLFU = "GetPriceListFileUrl";
267
+ const _GPLFUR = "GetPriceListFileUrlRequest";
268
+ const _GPLFURe = "GetPriceListFileUrlResponse";
269
+ const _GPR = "GetProductsRequest";
270
+ const _GPRe = "GetProductsResponse";
271
+ const _IEE = "InternalErrorException";
272
+ const _INTE = "InvalidNextTokenException";
273
+ const _IPE = "InvalidParameterException";
274
+ const _LPL = "ListPriceLists";
275
+ const _LPLR = "ListPriceListsRequest";
276
+ const _LPLRi = "ListPriceListsResponse";
277
+ const _M = "Message";
278
+ const _MR = "MaxResults";
279
+ const _NFE = "NotFoundException";
280
+ const _NT = "NextToken";
281
+ const _PL = "PriceList";
282
+ const _PLA = "PriceListArn";
283
+ const _PLJI = "PriceListJsonItems";
284
+ const _PLr = "PriceLists";
285
+ const _RC = "RegionCode";
286
+ const _RNFE = "ResourceNotFoundException";
287
+ const _S = "Services";
288
+ const _SC = "ServiceCode";
289
+ const _SJPLJI = "SynthesizedJsonPriceListJsonItem";
290
+ const _SL = "ServiceList";
291
+ const _Se = "Service";
292
+ const _T = "Type";
293
+ const _TE = "ThrottlingException";
294
+ const _U = "Url";
295
+ const _V = "Value";
296
+ const _a = "application/json";
297
+ const _c = "client";
298
+ const _e = "error";
299
+ const _hE = "httpError";
300
+ const _mT = "mediaType";
301
+ const _s = "server";
302
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.pricing";
303
+ const n0 = "com.amazonaws.pricing";
304
+ var SynthesizedJsonPriceListJsonItem = [
305
+ 0,
306
+ n0,
307
+ _SJPLJI,
308
+ {
309
+ [_mT]: _a,
310
+ },
311
+ 0,
312
+ ];
313
+ var AccessDeniedException = [
314
+ -3,
315
+ n0,
316
+ _ADE,
317
+ {
318
+ [_e]: _c,
319
+ [_hE]: 401,
320
+ },
321
+ [_M],
322
+ [0],
323
+ ];
324
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
325
+ var AttributeValue = [3, n0, _AV, 0, [_V], [0]];
326
+ var DescribeServicesRequest = [3, n0, _DSR, 0, [_SC, _FV, _NT, _MR], [0, 0, 0, 1]];
327
+ var DescribeServicesResponse = [
328
+ 3,
329
+ n0,
330
+ _DSRe,
331
+ 0,
332
+ [_S, _FV, _NT],
333
+ [() => ServiceList, 0, 0],
334
+ ];
335
+ var ExpiredNextTokenException = [
336
+ -3,
337
+ n0,
338
+ _ENTE,
339
+ {
340
+ [_e]: _c,
341
+ [_hE]: 400,
342
+ },
343
+ [_M],
344
+ [0],
345
+ ];
346
+ schema.TypeRegistry.for(n0).registerError(ExpiredNextTokenException, ExpiredNextTokenException$1);
347
+ var Filter = [3, n0, _F, 0, [_T, _Fi, _V], [0, 0, 0]];
348
+ var GetAttributeValuesRequest = [3, n0, _GAVR, 0, [_SC, _AN, _NT, _MR], [0, 0, 0, 1]];
349
+ var GetAttributeValuesResponse = [
350
+ 3,
351
+ n0,
352
+ _GAVRe,
353
+ 0,
354
+ [_AVt, _NT],
355
+ [() => AttributeValueList, 0],
356
+ ];
357
+ var GetPriceListFileUrlRequest = [3, n0, _GPLFUR, 0, [_PLA, _FF], [0, 0]];
358
+ var GetPriceListFileUrlResponse = [3, n0, _GPLFURe, 0, [_U], [0]];
359
+ var GetProductsRequest = [
360
+ 3,
361
+ n0,
362
+ _GPR,
363
+ 0,
364
+ [_SC, _Fil, _FV, _NT, _MR],
365
+ [0, () => Filters, 0, 0, 1],
366
+ ];
367
+ var GetProductsResponse = [
368
+ 3,
369
+ n0,
370
+ _GPRe,
371
+ 0,
372
+ [_FV, _PL, _NT],
373
+ [0, [() => PriceListJsonItems, 0], 0],
374
+ ];
375
+ var InternalErrorException = [
376
+ -3,
377
+ n0,
378
+ _IEE,
379
+ {
380
+ [_e]: _s,
381
+ [_hE]: 500,
382
+ },
383
+ [_M],
384
+ [0],
385
+ ];
386
+ schema.TypeRegistry.for(n0).registerError(InternalErrorException, InternalErrorException$1);
387
+ var InvalidNextTokenException = [
388
+ -3,
389
+ n0,
390
+ _INTE,
391
+ {
392
+ [_e]: _c,
393
+ [_hE]: 400,
394
+ },
395
+ [_M],
396
+ [0],
397
+ ];
398
+ schema.TypeRegistry.for(n0).registerError(InvalidNextTokenException, InvalidNextTokenException$1);
399
+ var InvalidParameterException = [
400
+ -3,
401
+ n0,
402
+ _IPE,
403
+ {
404
+ [_e]: _c,
405
+ [_hE]: 400,
406
+ },
407
+ [_M],
408
+ [0],
409
+ ];
410
+ schema.TypeRegistry.for(n0).registerError(InvalidParameterException, InvalidParameterException$1);
411
+ var ListPriceListsRequest = [
412
+ 3,
413
+ n0,
414
+ _LPLR,
415
+ 0,
416
+ [_SC, _ED, _RC, _CC, _NT, _MR],
417
+ [0, 4, 0, 0, 0, 1],
418
+ ];
419
+ var ListPriceListsResponse = [3, n0, _LPLRi, 0, [_PLr, _NT], [() => PriceLists, 0]];
420
+ var NotFoundException = [
421
+ -3,
422
+ n0,
423
+ _NFE,
424
+ {
425
+ [_e]: _c,
426
+ [_hE]: 400,
427
+ },
428
+ [_M],
429
+ [0],
430
+ ];
431
+ schema.TypeRegistry.for(n0).registerError(NotFoundException, NotFoundException$1);
432
+ var PriceList = [3, n0, _PL, 0, [_PLA, _RC, _CC, _FFi], [0, 0, 0, 64 | 0]];
433
+ var ResourceNotFoundException = [
434
+ -3,
435
+ n0,
436
+ _RNFE,
437
+ {
438
+ [_e]: _c,
439
+ [_hE]: 404,
440
+ },
441
+ [_M],
442
+ [0],
443
+ ];
444
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
445
+ var Service = [3, n0, _Se, 0, [_SC, _ANt], [0, 64 | 0]];
446
+ var ThrottlingException = [
447
+ -3,
448
+ n0,
449
+ _TE,
450
+ {
451
+ [_e]: _c,
452
+ [_hE]: 429,
453
+ },
454
+ [_M],
455
+ [0],
456
+ ];
457
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
458
+ var PricingServiceException = [-3, _sm, "PricingServiceException", 0, [], []];
459
+ schema.TypeRegistry.for(_sm).registerError(PricingServiceException, PricingServiceException$1);
460
+ var AttributeValueList = [1, n0, _AVL, 0, () => AttributeValue];
461
+ var Filters = [1, n0, _Fil, 0, () => Filter];
462
+ var PriceListJsonItems = [1, n0, _PLJI, 0, [() => SynthesizedJsonPriceListJsonItem, 0]];
463
+ var PriceLists = [1, n0, _PLr, 0, () => PriceList];
464
+ var ServiceList = [1, n0, _SL, 0, () => Service];
465
+ var DescribeServices = [
466
+ 9,
467
+ n0,
468
+ _DS,
469
+ 0,
470
+ () => DescribeServicesRequest,
471
+ () => DescribeServicesResponse,
472
+ ];
473
+ var GetAttributeValues = [
474
+ 9,
475
+ n0,
476
+ _GAV,
477
+ 0,
478
+ () => GetAttributeValuesRequest,
479
+ () => GetAttributeValuesResponse,
480
+ ];
481
+ var GetPriceListFileUrl = [
482
+ 9,
483
+ n0,
484
+ _GPLFU,
485
+ 0,
486
+ () => GetPriceListFileUrlRequest,
487
+ () => GetPriceListFileUrlResponse,
488
+ ];
489
+ var GetProducts = [9, n0, _GP, 0, () => GetProductsRequest, () => GetProductsResponse];
490
+ var ListPriceLists = [
491
+ 9,
492
+ n0,
493
+ _LPL,
494
+ 0,
495
+ () => ListPriceListsRequest,
496
+ () => ListPriceListsResponse,
497
+ ];
504
498
 
505
499
  class DescribeServicesCommand extends smithyClient.Command
506
500
  .classBuilder()
507
501
  .ep(commonParams)
508
502
  .m(function (Command, cs, config, o) {
509
- return [
510
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
511
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
512
- ];
503
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
513
504
  })
514
505
  .s("AWSPriceListService", "DescribeServices", {})
515
506
  .n("PricingClient", "DescribeServicesCommand")
516
- .f(void 0, void 0)
517
- .ser(se_DescribeServicesCommand)
518
- .de(de_DescribeServicesCommand)
507
+ .sc(DescribeServices)
519
508
  .build() {
520
509
  }
521
510
 
@@ -523,16 +512,11 @@ class GetAttributeValuesCommand extends smithyClient.Command
523
512
  .classBuilder()
524
513
  .ep(commonParams)
525
514
  .m(function (Command, cs, config, o) {
526
- return [
527
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
528
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
529
- ];
515
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
530
516
  })
531
517
  .s("AWSPriceListService", "GetAttributeValues", {})
532
518
  .n("PricingClient", "GetAttributeValuesCommand")
533
- .f(void 0, void 0)
534
- .ser(se_GetAttributeValuesCommand)
535
- .de(de_GetAttributeValuesCommand)
519
+ .sc(GetAttributeValues)
536
520
  .build() {
537
521
  }
538
522
 
@@ -540,16 +524,11 @@ class GetPriceListFileUrlCommand extends smithyClient.Command
540
524
  .classBuilder()
541
525
  .ep(commonParams)
542
526
  .m(function (Command, cs, config, o) {
543
- return [
544
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
545
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
546
- ];
527
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
547
528
  })
548
529
  .s("AWSPriceListService", "GetPriceListFileUrl", {})
549
530
  .n("PricingClient", "GetPriceListFileUrlCommand")
550
- .f(void 0, void 0)
551
- .ser(se_GetPriceListFileUrlCommand)
552
- .de(de_GetPriceListFileUrlCommand)
531
+ .sc(GetPriceListFileUrl)
553
532
  .build() {
554
533
  }
555
534
 
@@ -557,16 +536,11 @@ class GetProductsCommand extends smithyClient.Command
557
536
  .classBuilder()
558
537
  .ep(commonParams)
559
538
  .m(function (Command, cs, config, o) {
560
- return [
561
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
562
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
563
- ];
539
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
564
540
  })
565
541
  .s("AWSPriceListService", "GetProducts", {})
566
542
  .n("PricingClient", "GetProductsCommand")
567
- .f(void 0, void 0)
568
- .ser(se_GetProductsCommand)
569
- .de(de_GetProductsCommand)
543
+ .sc(GetProducts)
570
544
  .build() {
571
545
  }
572
546
 
@@ -574,16 +548,11 @@ class ListPriceListsCommand extends smithyClient.Command
574
548
  .classBuilder()
575
549
  .ep(commonParams)
576
550
  .m(function (Command, cs, config, o) {
577
- return [
578
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
579
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
580
- ];
551
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
581
552
  })
582
553
  .s("AWSPriceListService", "ListPriceLists", {})
583
554
  .n("PricingClient", "ListPriceListsCommand")
584
- .f(void 0, void 0)
585
- .ser(se_ListPriceListsCommand)
586
- .de(de_ListPriceListsCommand)
555
+ .sc(ListPriceLists)
587
556
  .build() {
588
557
  }
589
558
 
@@ -614,23 +583,23 @@ Object.defineProperty(exports, "__Client", {
614
583
  enumerable: true,
615
584
  get: function () { return smithyClient.Client; }
616
585
  });
617
- exports.AccessDeniedException = AccessDeniedException;
586
+ exports.AccessDeniedException = AccessDeniedException$1;
618
587
  exports.DescribeServicesCommand = DescribeServicesCommand;
619
- exports.ExpiredNextTokenException = ExpiredNextTokenException;
588
+ exports.ExpiredNextTokenException = ExpiredNextTokenException$1;
620
589
  exports.FilterType = FilterType;
621
590
  exports.GetAttributeValuesCommand = GetAttributeValuesCommand;
622
591
  exports.GetPriceListFileUrlCommand = GetPriceListFileUrlCommand;
623
592
  exports.GetProductsCommand = GetProductsCommand;
624
- exports.InternalErrorException = InternalErrorException;
625
- exports.InvalidNextTokenException = InvalidNextTokenException;
626
- exports.InvalidParameterException = InvalidParameterException;
593
+ exports.InternalErrorException = InternalErrorException$1;
594
+ exports.InvalidNextTokenException = InvalidNextTokenException$1;
595
+ exports.InvalidParameterException = InvalidParameterException$1;
627
596
  exports.ListPriceListsCommand = ListPriceListsCommand;
628
- exports.NotFoundException = NotFoundException;
597
+ exports.NotFoundException = NotFoundException$1;
629
598
  exports.Pricing = Pricing;
630
599
  exports.PricingClient = PricingClient;
631
- exports.PricingServiceException = PricingServiceException;
632
- exports.ResourceNotFoundException = ResourceNotFoundException;
633
- exports.ThrottlingException = ThrottlingException;
600
+ exports.PricingServiceException = PricingServiceException$1;
601
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
602
+ exports.ThrottlingException = ThrottlingException$1;
634
603
  exports.paginateDescribeServices = paginateDescribeServices;
635
604
  exports.paginateGetAttributeValues = paginateGetAttributeValues;
636
605
  exports.paginateGetProducts = paginateGetProducts;