@aws-sdk/client-savingsplans 3.928.0 → 3.929.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.
Files changed (31) hide show
  1. package/dist-cjs/index.js +489 -475
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/SavingsplansClient.js +2 -0
  4. package/dist-es/commands/CreateSavingsPlanCommand.js +3 -9
  5. package/dist-es/commands/DeleteQueuedSavingsPlanCommand.js +3 -9
  6. package/dist-es/commands/DescribeSavingsPlanRatesCommand.js +3 -9
  7. package/dist-es/commands/DescribeSavingsPlansCommand.js +3 -9
  8. package/dist-es/commands/DescribeSavingsPlansOfferingRatesCommand.js +3 -9
  9. package/dist-es/commands/DescribeSavingsPlansOfferingsCommand.js +3 -9
  10. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  11. package/dist-es/commands/ReturnSavingsPlanCommand.js +3 -9
  12. package/dist-es/commands/TagResourceCommand.js +3 -9
  13. package/dist-es/commands/UntagResourceCommand.js +3 -9
  14. package/dist-es/runtimeConfig.shared.js +2 -0
  15. package/dist-es/schemas/schemas_0.js +476 -0
  16. package/dist-types/SavingsplansClient.d.ts +10 -1
  17. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  18. package/dist-types/runtimeConfig.d.ts +1 -0
  19. package/dist-types/runtimeConfig.native.d.ts +1 -0
  20. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  21. package/dist-types/schemas/schemas_0.d.ts +80 -0
  22. package/dist-types/ts3.4/SavingsplansClient.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  26. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  27. package/dist-types/ts3.4/schemas/schemas_0.d.ts +85 -0
  28. package/package.json +2 -3
  29. package/dist-es/protocols/Aws_restJson1.js +0 -394
  30. package/dist-types/protocols/Aws_restJson1.d.ts +0 -92
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -125
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,9 +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
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class SavingsplansClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,14 +110,14 @@ class SavingsplansClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class SavingsplansServiceException extends smithyClient.ServiceException {
113
+ let SavingsplansServiceException$1 = class SavingsplansServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, SavingsplansServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
- class InternalServerException extends SavingsplansServiceException {
120
+ let InternalServerException$1 = class InternalServerException extends SavingsplansServiceException$1 {
122
121
  name = "InternalServerException";
123
122
  $fault = "server";
124
123
  constructor(opts) {
@@ -129,8 +128,8 @@ class InternalServerException extends SavingsplansServiceException {
129
128
  });
130
129
  Object.setPrototypeOf(this, InternalServerException.prototype);
131
130
  }
132
- }
133
- class ResourceNotFoundException extends SavingsplansServiceException {
131
+ };
132
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SavingsplansServiceException$1 {
134
133
  name = "ResourceNotFoundException";
135
134
  $fault = "client";
136
135
  constructor(opts) {
@@ -141,8 +140,8 @@ class ResourceNotFoundException extends SavingsplansServiceException {
141
140
  });
142
141
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
143
142
  }
144
- }
145
- class ServiceQuotaExceededException extends SavingsplansServiceException {
143
+ };
144
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends SavingsplansServiceException$1 {
146
145
  name = "ServiceQuotaExceededException";
147
146
  $fault = "client";
148
147
  constructor(opts) {
@@ -153,8 +152,8 @@ class ServiceQuotaExceededException extends SavingsplansServiceException {
153
152
  });
154
153
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
155
154
  }
156
- }
157
- class ValidationException extends SavingsplansServiceException {
155
+ };
156
+ let ValidationException$1 = class ValidationException extends SavingsplansServiceException$1 {
158
157
  name = "ValidationException";
159
158
  $fault = "client";
160
159
  constructor(opts) {
@@ -165,7 +164,7 @@ class ValidationException extends SavingsplansServiceException {
165
164
  });
166
165
  Object.setPrototypeOf(this, ValidationException.prototype);
167
166
  }
168
- }
167
+ };
169
168
  const SavingsPlanRateFilterName = {
170
169
  INSTANCE_TYPE: "instanceType",
171
170
  OPERATION: "operation",
@@ -253,408 +252,468 @@ const SavingsPlanOfferingPropertyKey = {
253
252
  REGION: "region",
254
253
  };
255
254
 
256
- const se_CreateSavingsPlanCommand = async (input, context) => {
257
- const b = core.requestBuilder(input, context);
258
- const headers = {
259
- "content-type": "application/json",
260
- };
261
- b.bp("/CreateSavingsPlan");
262
- let body;
263
- body = JSON.stringify(smithyClient.take(input, {
264
- clientToken: [true, (_) => _ ?? uuid.v4()],
265
- commitment: [],
266
- purchaseTime: (_) => _.getTime() / 1_000,
267
- savingsPlanOfferingId: [],
268
- tags: (_) => smithyClient._json(_),
269
- upfrontPaymentAmount: [],
270
- }));
271
- b.m("POST").h(headers).b(body);
272
- return b.build();
273
- };
274
- const se_DeleteQueuedSavingsPlanCommand = async (input, context) => {
275
- const b = core.requestBuilder(input, context);
276
- const headers = {
277
- "content-type": "application/json",
278
- };
279
- b.bp("/DeleteQueuedSavingsPlan");
280
- let body;
281
- body = JSON.stringify(smithyClient.take(input, {
282
- savingsPlanId: [],
283
- }));
284
- b.m("POST").h(headers).b(body);
285
- return b.build();
286
- };
287
- const se_DescribeSavingsPlanRatesCommand = async (input, context) => {
288
- const b = core.requestBuilder(input, context);
289
- const headers = {
290
- "content-type": "application/json",
291
- };
292
- b.bp("/DescribeSavingsPlanRates");
293
- let body;
294
- body = JSON.stringify(smithyClient.take(input, {
295
- filters: (_) => smithyClient._json(_),
296
- maxResults: [],
297
- nextToken: [],
298
- savingsPlanId: [],
299
- }));
300
- b.m("POST").h(headers).b(body);
301
- return b.build();
302
- };
303
- const se_DescribeSavingsPlansCommand = async (input, context) => {
304
- const b = core.requestBuilder(input, context);
305
- const headers = {
306
- "content-type": "application/json",
307
- };
308
- b.bp("/DescribeSavingsPlans");
309
- let body;
310
- body = JSON.stringify(smithyClient.take(input, {
311
- filters: (_) => smithyClient._json(_),
312
- maxResults: [],
313
- nextToken: [],
314
- savingsPlanArns: (_) => smithyClient._json(_),
315
- savingsPlanIds: (_) => smithyClient._json(_),
316
- states: (_) => smithyClient._json(_),
317
- }));
318
- b.m("POST").h(headers).b(body);
319
- return b.build();
320
- };
321
- const se_DescribeSavingsPlansOfferingRatesCommand = async (input, context) => {
322
- const b = core.requestBuilder(input, context);
323
- const headers = {
324
- "content-type": "application/json",
325
- };
326
- b.bp("/DescribeSavingsPlansOfferingRates");
327
- let body;
328
- body = JSON.stringify(smithyClient.take(input, {
329
- filters: (_) => smithyClient._json(_),
330
- maxResults: [],
331
- nextToken: [],
332
- operations: (_) => smithyClient._json(_),
333
- products: (_) => smithyClient._json(_),
334
- savingsPlanOfferingIds: (_) => smithyClient._json(_),
335
- savingsPlanPaymentOptions: (_) => smithyClient._json(_),
336
- savingsPlanTypes: (_) => smithyClient._json(_),
337
- serviceCodes: (_) => smithyClient._json(_),
338
- usageTypes: (_) => smithyClient._json(_),
339
- }));
340
- b.m("POST").h(headers).b(body);
341
- return b.build();
342
- };
343
- const se_DescribeSavingsPlansOfferingsCommand = async (input, context) => {
344
- const b = core.requestBuilder(input, context);
345
- const headers = {
346
- "content-type": "application/json",
347
- };
348
- b.bp("/DescribeSavingsPlansOfferings");
349
- let body;
350
- body = JSON.stringify(smithyClient.take(input, {
351
- currencies: (_) => smithyClient._json(_),
352
- descriptions: (_) => smithyClient._json(_),
353
- durations: (_) => smithyClient._json(_),
354
- filters: (_) => smithyClient._json(_),
355
- maxResults: [],
356
- nextToken: [],
357
- offeringIds: (_) => smithyClient._json(_),
358
- operations: (_) => smithyClient._json(_),
359
- paymentOptions: (_) => smithyClient._json(_),
360
- planTypes: (_) => smithyClient._json(_),
361
- productType: [],
362
- serviceCodes: (_) => smithyClient._json(_),
363
- usageTypes: (_) => smithyClient._json(_),
364
- }));
365
- b.m("POST").h(headers).b(body);
366
- return b.build();
367
- };
368
- const se_ListTagsForResourceCommand = async (input, context) => {
369
- const b = core.requestBuilder(input, context);
370
- const headers = {
371
- "content-type": "application/json",
372
- };
373
- b.bp("/ListTagsForResource");
374
- let body;
375
- body = JSON.stringify(smithyClient.take(input, {
376
- resourceArn: [],
377
- }));
378
- b.m("POST").h(headers).b(body);
379
- return b.build();
380
- };
381
- const se_ReturnSavingsPlanCommand = async (input, context) => {
382
- const b = core.requestBuilder(input, context);
383
- const headers = {
384
- "content-type": "application/json",
385
- };
386
- b.bp("/ReturnSavingsPlan");
387
- let body;
388
- body = JSON.stringify(smithyClient.take(input, {
389
- clientToken: [true, (_) => _ ?? uuid.v4()],
390
- savingsPlanId: [],
391
- }));
392
- b.m("POST").h(headers).b(body);
393
- return b.build();
394
- };
395
- const se_TagResourceCommand = async (input, context) => {
396
- const b = core.requestBuilder(input, context);
397
- const headers = {
398
- "content-type": "application/json",
399
- };
400
- b.bp("/TagResource");
401
- let body;
402
- body = JSON.stringify(smithyClient.take(input, {
403
- resourceArn: [],
404
- tags: (_) => smithyClient._json(_),
405
- }));
406
- b.m("POST").h(headers).b(body);
407
- return b.build();
408
- };
409
- const se_UntagResourceCommand = async (input, context) => {
410
- const b = core.requestBuilder(input, context);
411
- const headers = {
412
- "content-type": "application/json",
413
- };
414
- b.bp("/UntagResource");
415
- let body;
416
- body = JSON.stringify(smithyClient.take(input, {
417
- resourceArn: [],
418
- tagKeys: (_) => smithyClient._json(_),
419
- }));
420
- b.m("POST").h(headers).b(body);
421
- return b.build();
422
- };
423
- const de_CreateSavingsPlanCommand = async (output, context) => {
424
- if (output.statusCode !== 200 && output.statusCode >= 300) {
425
- return de_CommandError(output, context);
426
- }
427
- const contents = smithyClient.map({
428
- $metadata: deserializeMetadata(output),
429
- });
430
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
431
- const doc = smithyClient.take(data, {
432
- savingsPlanId: smithyClient.expectString,
433
- });
434
- Object.assign(contents, doc);
435
- return contents;
436
- };
437
- const de_DeleteQueuedSavingsPlanCommand = async (output, context) => {
438
- if (output.statusCode !== 200 && output.statusCode >= 300) {
439
- return de_CommandError(output, context);
440
- }
441
- const contents = smithyClient.map({
442
- $metadata: deserializeMetadata(output),
443
- });
444
- await smithyClient.collectBody(output.body, context);
445
- return contents;
446
- };
447
- const de_DescribeSavingsPlanRatesCommand = async (output, context) => {
448
- if (output.statusCode !== 200 && output.statusCode >= 300) {
449
- return de_CommandError(output, context);
450
- }
451
- const contents = smithyClient.map({
452
- $metadata: deserializeMetadata(output),
453
- });
454
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
455
- const doc = smithyClient.take(data, {
456
- nextToken: smithyClient.expectString,
457
- savingsPlanId: smithyClient.expectString,
458
- searchResults: smithyClient._json,
459
- });
460
- Object.assign(contents, doc);
461
- return contents;
462
- };
463
- const de_DescribeSavingsPlansCommand = async (output, context) => {
464
- if (output.statusCode !== 200 && output.statusCode >= 300) {
465
- return de_CommandError(output, context);
466
- }
467
- const contents = smithyClient.map({
468
- $metadata: deserializeMetadata(output),
469
- });
470
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
471
- const doc = smithyClient.take(data, {
472
- nextToken: smithyClient.expectString,
473
- savingsPlans: smithyClient._json,
474
- });
475
- Object.assign(contents, doc);
476
- return contents;
477
- };
478
- const de_DescribeSavingsPlansOfferingRatesCommand = async (output, context) => {
479
- if (output.statusCode !== 200 && output.statusCode >= 300) {
480
- return de_CommandError(output, context);
481
- }
482
- const contents = smithyClient.map({
483
- $metadata: deserializeMetadata(output),
484
- });
485
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
486
- const doc = smithyClient.take(data, {
487
- nextToken: smithyClient.expectString,
488
- searchResults: smithyClient._json,
489
- });
490
- Object.assign(contents, doc);
491
- return contents;
492
- };
493
- const de_DescribeSavingsPlansOfferingsCommand = async (output, context) => {
494
- if (output.statusCode !== 200 && output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- const contents = smithyClient.map({
498
- $metadata: deserializeMetadata(output),
499
- });
500
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
501
- const doc = smithyClient.take(data, {
502
- nextToken: smithyClient.expectString,
503
- searchResults: smithyClient._json,
504
- });
505
- Object.assign(contents, doc);
506
- return contents;
507
- };
508
- const de_ListTagsForResourceCommand = async (output, context) => {
509
- if (output.statusCode !== 200 && output.statusCode >= 300) {
510
- return de_CommandError(output, context);
511
- }
512
- const contents = smithyClient.map({
513
- $metadata: deserializeMetadata(output),
514
- });
515
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
516
- const doc = smithyClient.take(data, {
517
- tags: smithyClient._json,
518
- });
519
- Object.assign(contents, doc);
520
- return contents;
521
- };
522
- const de_ReturnSavingsPlanCommand = async (output, context) => {
523
- if (output.statusCode !== 200 && output.statusCode >= 300) {
524
- return de_CommandError(output, context);
525
- }
526
- const contents = smithyClient.map({
527
- $metadata: deserializeMetadata(output),
528
- });
529
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
530
- const doc = smithyClient.take(data, {
531
- savingsPlanId: smithyClient.expectString,
532
- });
533
- Object.assign(contents, doc);
534
- return contents;
535
- };
536
- const de_TagResourceCommand = async (output, context) => {
537
- if (output.statusCode !== 200 && output.statusCode >= 300) {
538
- return de_CommandError(output, context);
539
- }
540
- const contents = smithyClient.map({
541
- $metadata: deserializeMetadata(output),
542
- });
543
- await smithyClient.collectBody(output.body, context);
544
- return contents;
545
- };
546
- const de_UntagResourceCommand = async (output, context) => {
547
- if (output.statusCode !== 200 && output.statusCode >= 300) {
548
- return de_CommandError(output, context);
549
- }
550
- const contents = smithyClient.map({
551
- $metadata: deserializeMetadata(output),
552
- });
553
- await smithyClient.collectBody(output.body, context);
554
- return contents;
555
- };
556
- const de_CommandError = async (output, context) => {
557
- const parsedOutput = {
558
- ...output,
559
- body: await core$1.parseJsonErrorBody(output.body, context),
560
- };
561
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
562
- switch (errorCode) {
563
- case "InternalServerException":
564
- case "com.amazonaws.savingsplans#InternalServerException":
565
- throw await de_InternalServerExceptionRes(parsedOutput);
566
- case "ResourceNotFoundException":
567
- case "com.amazonaws.savingsplans#ResourceNotFoundException":
568
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
569
- case "ServiceQuotaExceededException":
570
- case "com.amazonaws.savingsplans#ServiceQuotaExceededException":
571
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
572
- case "ValidationException":
573
- case "com.amazonaws.savingsplans#ValidationException":
574
- throw await de_ValidationExceptionRes(parsedOutput);
575
- default:
576
- const parsedBody = parsedOutput.body;
577
- return throwDefaultError({
578
- output,
579
- parsedBody,
580
- errorCode,
581
- });
582
- }
583
- };
584
- const throwDefaultError = smithyClient.withBaseException(SavingsplansServiceException);
585
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
586
- const contents = smithyClient.map({});
587
- const data = parsedOutput.body;
588
- const doc = smithyClient.take(data, {
589
- message: smithyClient.expectString,
590
- });
591
- Object.assign(contents, doc);
592
- const exception = new InternalServerException({
593
- $metadata: deserializeMetadata(parsedOutput),
594
- ...contents,
595
- });
596
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
597
- };
598
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
599
- const contents = smithyClient.map({});
600
- const data = parsedOutput.body;
601
- const doc = smithyClient.take(data, {
602
- message: smithyClient.expectString,
603
- });
604
- Object.assign(contents, doc);
605
- const exception = new ResourceNotFoundException({
606
- $metadata: deserializeMetadata(parsedOutput),
607
- ...contents,
608
- });
609
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
610
- };
611
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
612
- const contents = smithyClient.map({});
613
- const data = parsedOutput.body;
614
- const doc = smithyClient.take(data, {
615
- message: smithyClient.expectString,
616
- });
617
- Object.assign(contents, doc);
618
- const exception = new ServiceQuotaExceededException({
619
- $metadata: deserializeMetadata(parsedOutput),
620
- ...contents,
621
- });
622
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
623
- };
624
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
625
- const contents = smithyClient.map({});
626
- const data = parsedOutput.body;
627
- const doc = smithyClient.take(data, {
628
- message: smithyClient.expectString,
629
- });
630
- Object.assign(contents, doc);
631
- const exception = new ValidationException({
632
- $metadata: deserializeMetadata(parsedOutput),
633
- ...contents,
634
- });
635
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
636
- };
637
- const deserializeMetadata = (output) => ({
638
- httpStatusCode: output.statusCode,
639
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
640
- extendedRequestId: output.headers["x-amz-id-2"],
641
- cfId: output.headers["x-amz-cf-id"],
642
- });
255
+ const _CSP = "CreateSavingsPlan";
256
+ const _CSPR = "CreateSavingsPlanRequest";
257
+ const _CSPRr = "CreateSavingsPlanResponse";
258
+ const _DQSP = "DeleteQueuedSavingsPlan";
259
+ const _DQSPR = "DeleteQueuedSavingsPlanRequest";
260
+ const _DQSPRe = "DeleteQueuedSavingsPlanResponse";
261
+ const _DSP = "DescribeSavingsPlans";
262
+ const _DSPO = "DescribeSavingsPlansOfferings";
263
+ const _DSPOR = "DescribeSavingsPlansOfferingsRequest";
264
+ const _DSPORR = "DescribeSavingsPlansOfferingRatesRequest";
265
+ const _DSPORRe = "DescribeSavingsPlansOfferingRatesResponse";
266
+ const _DSPORe = "DescribeSavingsPlansOfferingsResponse";
267
+ const _DSPORes = "DescribeSavingsPlansOfferingRates";
268
+ const _DSPR = "DescribeSavingsPlansRequest";
269
+ const _DSPRR = "DescribeSavingsPlanRatesRequest";
270
+ const _DSPRRe = "DescribeSavingsPlanRatesResponse";
271
+ const _DSPRe = "DescribeSavingsPlansResponse";
272
+ const _DSPRes = "DescribeSavingsPlanRates";
273
+ const _ISE = "InternalServerException";
274
+ const _LTFR = "ListTagsForResource";
275
+ const _LTFRR = "ListTagsForResourceRequest";
276
+ const _LTFRRi = "ListTagsForResourceResponse";
277
+ const _PSPO = "ParentSavingsPlanOffering";
278
+ const _RNFE = "ResourceNotFoundException";
279
+ const _RSP = "ReturnSavingsPlan";
280
+ const _RSPR = "ReturnSavingsPlanRequest";
281
+ const _RSPRe = "ReturnSavingsPlanResponse";
282
+ const _SP = "SavingsPlan";
283
+ const _SPF = "SavingsPlanFilter";
284
+ const _SPFL = "SavingsPlanFilterList";
285
+ const _SPL = "SavingsPlanList";
286
+ const _SPO = "SavingsPlanOffering";
287
+ const _SPOFE = "SavingsPlanOfferingFilterElement";
288
+ const _SPOFL = "SavingsPlanOfferingFiltersList";
289
+ const _SPOL = "SavingsPlanOfferingsList";
290
+ const _SPOP = "SavingsPlanOfferingProperty";
291
+ const _SPOPL = "SavingsPlanOfferingPropertyList";
292
+ const _SPOR = "SavingsPlanOfferingRate";
293
+ const _SPORFE = "SavingsPlanOfferingRateFilterElement";
294
+ const _SPORFL = "SavingsPlanOfferingRateFiltersList";
295
+ const _SPORL = "SavingsPlanOfferingRatesList";
296
+ const _SPORP = "SavingsPlanOfferingRateProperty";
297
+ const _SPORPL = "SavingsPlanOfferingRatePropertyList";
298
+ const _SPR = "SavingsPlanRate";
299
+ const _SPRF = "SavingsPlanRateFilter";
300
+ const _SPRFL = "SavingsPlanRateFilterList";
301
+ const _SPRL = "SavingsPlanRateList";
302
+ const _SPRP = "SavingsPlanRateProperty";
303
+ const _SPRPL = "SavingsPlanRatePropertyList";
304
+ const _SQEE = "ServiceQuotaExceededException";
305
+ const _TR = "TagResource";
306
+ const _TRR = "TagResourceRequest";
307
+ const _TRRa = "TagResourceResponse";
308
+ const _UR = "UntagResource";
309
+ const _URR = "UntagResourceRequest";
310
+ const _URRn = "UntagResourceResponse";
311
+ const _VE = "ValidationException";
312
+ const _aQE = "awsQueryError";
313
+ const _c = "commitment";
314
+ const _cT = "clientToken";
315
+ const _cl = "client";
316
+ const _cu = "currencies";
317
+ const _cur = "currency";
318
+ const _d = "durations";
319
+ const _dS = "durationSeconds";
320
+ const _de = "descriptions";
321
+ const _des = "description";
322
+ const _e = "error";
323
+ const _eIF = "ec2InstanceFamily";
324
+ const _en = "end";
325
+ const _f = "filters";
326
+ const _h = "http";
327
+ const _hE = "httpError";
328
+ const _m = "message";
329
+ const _mR = "maxResults";
330
+ const _n = "name";
331
+ const _nT = "nextToken";
332
+ const _o = "operations";
333
+ const _oI = "offeringIds";
334
+ const _oIf = "offeringId";
335
+ const _op = "operation";
336
+ const _p = "products";
337
+ const _pD = "planDescription";
338
+ const _pO = "paymentOptions";
339
+ const _pOa = "paymentOption";
340
+ const _pT = "purchaseTime";
341
+ const _pTl = "planTypes";
342
+ const _pTla = "planType";
343
+ const _pTr = "productType";
344
+ const _pTro = "productTypes";
345
+ const _pr = "properties";
346
+ const _r = "region";
347
+ const _rA = "resourceArn";
348
+ const _rPA = "recurringPaymentAmount";
349
+ const _rU = "returnableUntil";
350
+ const _ra = "rate";
351
+ const _s = "states";
352
+ const _sC = "serviceCodes";
353
+ const _sCe = "serviceCode";
354
+ const _sP = "savingsPlans";
355
+ const _sPA = "savingsPlanArns";
356
+ const _sPAa = "savingsPlanArn";
357
+ const _sPI = "savingsPlanId";
358
+ const _sPIa = "savingsPlanIds";
359
+ const _sPO = "savingsPlanOffering";
360
+ const _sPOI = "savingsPlanOfferingId";
361
+ const _sPOIa = "savingsPlanOfferingIds";
362
+ const _sPPO = "savingsPlanPaymentOptions";
363
+ const _sPT = "savingsPlanTypes";
364
+ const _sPTa = "savingsPlanType";
365
+ const _sR = "searchResults";
366
+ const _se = "server";
367
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.savingsplans";
368
+ const _st = "start";
369
+ const _sta = "state";
370
+ const _t = "tags";
371
+ const _tDIS = "termDurationInSeconds";
372
+ const _tK = "tagKeys";
373
+ const _u = "unit";
374
+ const _uPA = "upfrontPaymentAmount";
375
+ const _uT = "usageTypes";
376
+ const _uTs = "usageType";
377
+ const _v = "values";
378
+ const _va = "value";
379
+ const n0 = "com.amazonaws.savingsplans";
380
+ var CreateSavingsPlanRequest = [
381
+ 3,
382
+ n0,
383
+ _CSPR,
384
+ 0,
385
+ [_sPOI, _c, _uPA, _pT, _cT, _t],
386
+ [0, 0, 0, 4, [0, 4], 128 | 0],
387
+ ];
388
+ var CreateSavingsPlanResponse = [3, n0, _CSPRr, 0, [_sPI], [0]];
389
+ var DeleteQueuedSavingsPlanRequest = [3, n0, _DQSPR, 0, [_sPI], [0]];
390
+ var DeleteQueuedSavingsPlanResponse = [3, n0, _DQSPRe, 0, [], []];
391
+ var DescribeSavingsPlanRatesRequest = [
392
+ 3,
393
+ n0,
394
+ _DSPRR,
395
+ 0,
396
+ [_sPI, _f, _nT, _mR],
397
+ [0, () => SavingsPlanRateFilterList, 0, 1],
398
+ ];
399
+ var DescribeSavingsPlanRatesResponse = [
400
+ 3,
401
+ n0,
402
+ _DSPRRe,
403
+ 0,
404
+ [_sPI, _sR, _nT],
405
+ [0, () => SavingsPlanRateList, 0],
406
+ ];
407
+ var DescribeSavingsPlansOfferingRatesRequest = [
408
+ 3,
409
+ n0,
410
+ _DSPORR,
411
+ 0,
412
+ [_sPOIa, _sPPO, _sPT, _p, _sC, _uT, _o, _f, _nT, _mR],
413
+ [64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, 64 | 0, () => SavingsPlanOfferingRateFiltersList, 0, 1],
414
+ ];
415
+ var DescribeSavingsPlansOfferingRatesResponse = [
416
+ 3,
417
+ n0,
418
+ _DSPORRe,
419
+ 0,
420
+ [_sR, _nT],
421
+ [() => SavingsPlanOfferingRatesList, 0],
422
+ ];
423
+ var DescribeSavingsPlansOfferingsRequest = [
424
+ 3,
425
+ n0,
426
+ _DSPOR,
427
+ 0,
428
+ [_oI, _pO, _pTr, _pTl, _d, _cu, _de, _sC, _uT, _o, _f, _nT, _mR],
429
+ [
430
+ 64 | 0,
431
+ 64 | 0,
432
+ 0,
433
+ 64 | 0,
434
+ 64 | 1,
435
+ 64 | 0,
436
+ 64 | 0,
437
+ 64 | 0,
438
+ 64 | 0,
439
+ 64 | 0,
440
+ () => SavingsPlanOfferingFiltersList,
441
+ 0,
442
+ 1,
443
+ ],
444
+ ];
445
+ var DescribeSavingsPlansOfferingsResponse = [
446
+ 3,
447
+ n0,
448
+ _DSPORe,
449
+ 0,
450
+ [_sR, _nT],
451
+ [() => SavingsPlanOfferingsList, 0],
452
+ ];
453
+ var DescribeSavingsPlansRequest = [
454
+ 3,
455
+ n0,
456
+ _DSPR,
457
+ 0,
458
+ [_sPA, _sPIa, _nT, _mR, _s, _f],
459
+ [64 | 0, 64 | 0, 0, 1, 64 | 0, () => SavingsPlanFilterList],
460
+ ];
461
+ var DescribeSavingsPlansResponse = [
462
+ 3,
463
+ n0,
464
+ _DSPRe,
465
+ 0,
466
+ [_sP, _nT],
467
+ [() => SavingsPlanList, 0],
468
+ ];
469
+ var InternalServerException = [
470
+ -3,
471
+ n0,
472
+ _ISE,
473
+ {
474
+ [_e]: _se,
475
+ [_hE]: 500,
476
+ [_aQE]: [`InternalServerException`, 500],
477
+ },
478
+ [_m],
479
+ [0],
480
+ ];
481
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
482
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rA], [0]];
483
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_t], [128 | 0]];
484
+ var ParentSavingsPlanOffering = [
485
+ 3,
486
+ n0,
487
+ _PSPO,
488
+ 0,
489
+ [_oIf, _pOa, _pTla, _dS, _cur, _pD],
490
+ [0, 0, 0, 1, 0, 0],
491
+ ];
492
+ var ResourceNotFoundException = [
493
+ -3,
494
+ n0,
495
+ _RNFE,
496
+ {
497
+ [_e]: _cl,
498
+ [_hE]: 404,
499
+ [_aQE]: [`ResourceNotFoundException`, 404],
500
+ },
501
+ [_m],
502
+ [0],
503
+ ];
504
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
505
+ var ReturnSavingsPlanRequest = [3, n0, _RSPR, 0, [_sPI, _cT], [0, [0, 4]]];
506
+ var ReturnSavingsPlanResponse = [3, n0, _RSPRe, 0, [_sPI], [0]];
507
+ var SavingsPlan = [
508
+ 3,
509
+ n0,
510
+ _SP,
511
+ 0,
512
+ [_oIf, _sPI, _sPAa, _des, _st, _en, _sta, _r, _eIF, _sPTa, _pOa, _pTro, _cur, _c, _uPA, _rPA, _tDIS, _t, _rU],
513
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64 | 0, 0, 0, 0, 0, 1, 128 | 0, 0],
514
+ ];
515
+ var SavingsPlanFilter = [3, n0, _SPF, 0, [_n, _v], [0, 64 | 0]];
516
+ var SavingsPlanOffering = [
517
+ 3,
518
+ n0,
519
+ _SPO,
520
+ 0,
521
+ [_oIf, _pTro, _pTla, _des, _pOa, _dS, _cur, _sCe, _uTs, _op, _pr],
522
+ [0, 64 | 0, 0, 0, 0, 1, 0, 0, 0, 0, () => SavingsPlanOfferingPropertyList],
523
+ ];
524
+ var SavingsPlanOfferingFilterElement = [3, n0, _SPOFE, 0, [_n, _v], [0, 64 | 0]];
525
+ var SavingsPlanOfferingProperty = [3, n0, _SPOP, 0, [_n, _va], [0, 0]];
526
+ var SavingsPlanOfferingRate = [
527
+ 3,
528
+ n0,
529
+ _SPOR,
530
+ 0,
531
+ [_sPO, _ra, _u, _pTr, _sCe, _uTs, _op, _pr],
532
+ [() => ParentSavingsPlanOffering, 0, 0, 0, 0, 0, 0, () => SavingsPlanOfferingRatePropertyList],
533
+ ];
534
+ var SavingsPlanOfferingRateFilterElement = [3, n0, _SPORFE, 0, [_n, _v], [0, 64 | 0]];
535
+ var SavingsPlanOfferingRateProperty = [3, n0, _SPORP, 0, [_n, _va], [0, 0]];
536
+ var SavingsPlanRate = [
537
+ 3,
538
+ n0,
539
+ _SPR,
540
+ 0,
541
+ [_ra, _cur, _u, _pTr, _sCe, _uTs, _op, _pr],
542
+ [0, 0, 0, 0, 0, 0, 0, () => SavingsPlanRatePropertyList],
543
+ ];
544
+ var SavingsPlanRateFilter = [3, n0, _SPRF, 0, [_n, _v], [0, 64 | 0]];
545
+ var SavingsPlanRateProperty = [3, n0, _SPRP, 0, [_n, _va], [0, 0]];
546
+ var ServiceQuotaExceededException = [
547
+ -3,
548
+ n0,
549
+ _SQEE,
550
+ {
551
+ [_e]: _cl,
552
+ [_hE]: 402,
553
+ [_aQE]: [`ServiceQuotaExceededException`, 402],
554
+ },
555
+ [_m],
556
+ [0],
557
+ ];
558
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
559
+ var TagResourceRequest = [3, n0, _TRR, 0, [_rA, _t], [0, 128 | 0]];
560
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
561
+ var UntagResourceRequest = [3, n0, _URR, 0, [_rA, _tK], [0, 64 | 0]];
562
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
563
+ var ValidationException = [
564
+ -3,
565
+ n0,
566
+ _VE,
567
+ {
568
+ [_e]: _cl,
569
+ [_hE]: 400,
570
+ [_aQE]: [`ValidationException`, 400],
571
+ },
572
+ [_m],
573
+ [0],
574
+ ];
575
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
576
+ var SavingsplansServiceException = [-3, _sm, "SavingsplansServiceException", 0, [], []];
577
+ schema.TypeRegistry.for(_sm).registerError(SavingsplansServiceException, SavingsplansServiceException$1);
578
+ var SavingsPlanFilterList = [1, n0, _SPFL, 0, () => SavingsPlanFilter];
579
+ var SavingsPlanList = [1, n0, _SPL, 0, () => SavingsPlan];
580
+ var SavingsPlanOfferingFiltersList = [
581
+ 1,
582
+ n0,
583
+ _SPOFL,
584
+ 0,
585
+ () => SavingsPlanOfferingFilterElement,
586
+ ];
587
+ var SavingsPlanOfferingPropertyList = [1, n0, _SPOPL, 0, () => SavingsPlanOfferingProperty];
588
+ var SavingsPlanOfferingRateFiltersList = [
589
+ 1,
590
+ n0,
591
+ _SPORFL,
592
+ 0,
593
+ () => SavingsPlanOfferingRateFilterElement,
594
+ ];
595
+ var SavingsPlanOfferingRatePropertyList = [
596
+ 1,
597
+ n0,
598
+ _SPORPL,
599
+ 0,
600
+ () => SavingsPlanOfferingRateProperty,
601
+ ];
602
+ var SavingsPlanOfferingRatesList = [1, n0, _SPORL, 0, () => SavingsPlanOfferingRate];
603
+ var SavingsPlanOfferingsList = [1, n0, _SPOL, 0, () => SavingsPlanOffering];
604
+ var SavingsPlanRateFilterList = [1, n0, _SPRFL, 0, () => SavingsPlanRateFilter];
605
+ var SavingsPlanRateList = [1, n0, _SPRL, 0, () => SavingsPlanRate];
606
+ var SavingsPlanRatePropertyList = [1, n0, _SPRPL, 0, () => SavingsPlanRateProperty];
607
+ var CreateSavingsPlan = [
608
+ 9,
609
+ n0,
610
+ _CSP,
611
+ {
612
+ [_h]: ["POST", "/CreateSavingsPlan", 200],
613
+ },
614
+ () => CreateSavingsPlanRequest,
615
+ () => CreateSavingsPlanResponse,
616
+ ];
617
+ var DeleteQueuedSavingsPlan = [
618
+ 9,
619
+ n0,
620
+ _DQSP,
621
+ {
622
+ [_h]: ["POST", "/DeleteQueuedSavingsPlan", 200],
623
+ },
624
+ () => DeleteQueuedSavingsPlanRequest,
625
+ () => DeleteQueuedSavingsPlanResponse,
626
+ ];
627
+ var DescribeSavingsPlanRates = [
628
+ 9,
629
+ n0,
630
+ _DSPRes,
631
+ {
632
+ [_h]: ["POST", "/DescribeSavingsPlanRates", 200],
633
+ },
634
+ () => DescribeSavingsPlanRatesRequest,
635
+ () => DescribeSavingsPlanRatesResponse,
636
+ ];
637
+ var DescribeSavingsPlans = [
638
+ 9,
639
+ n0,
640
+ _DSP,
641
+ {
642
+ [_h]: ["POST", "/DescribeSavingsPlans", 200],
643
+ },
644
+ () => DescribeSavingsPlansRequest,
645
+ () => DescribeSavingsPlansResponse,
646
+ ];
647
+ var DescribeSavingsPlansOfferingRates = [
648
+ 9,
649
+ n0,
650
+ _DSPORes,
651
+ {
652
+ [_h]: ["POST", "/DescribeSavingsPlansOfferingRates", 200],
653
+ },
654
+ () => DescribeSavingsPlansOfferingRatesRequest,
655
+ () => DescribeSavingsPlansOfferingRatesResponse,
656
+ ];
657
+ var DescribeSavingsPlansOfferings = [
658
+ 9,
659
+ n0,
660
+ _DSPO,
661
+ {
662
+ [_h]: ["POST", "/DescribeSavingsPlansOfferings", 200],
663
+ },
664
+ () => DescribeSavingsPlansOfferingsRequest,
665
+ () => DescribeSavingsPlansOfferingsResponse,
666
+ ];
667
+ var ListTagsForResource = [
668
+ 9,
669
+ n0,
670
+ _LTFR,
671
+ {
672
+ [_h]: ["POST", "/ListTagsForResource", 200],
673
+ },
674
+ () => ListTagsForResourceRequest,
675
+ () => ListTagsForResourceResponse,
676
+ ];
677
+ var ReturnSavingsPlan = [
678
+ 9,
679
+ n0,
680
+ _RSP,
681
+ {
682
+ [_h]: ["POST", "/ReturnSavingsPlan", 200],
683
+ },
684
+ () => ReturnSavingsPlanRequest,
685
+ () => ReturnSavingsPlanResponse,
686
+ ];
687
+ var TagResource = [
688
+ 9,
689
+ n0,
690
+ _TR,
691
+ {
692
+ [_h]: ["POST", "/TagResource", 200],
693
+ },
694
+ () => TagResourceRequest,
695
+ () => TagResourceResponse,
696
+ ];
697
+ var UntagResource = [
698
+ 9,
699
+ n0,
700
+ _UR,
701
+ {
702
+ [_h]: ["POST", "/UntagResource", 200],
703
+ },
704
+ () => UntagResourceRequest,
705
+ () => UntagResourceResponse,
706
+ ];
643
707
 
644
708
  class CreateSavingsPlanCommand extends smithyClient.Command
645
709
  .classBuilder()
646
710
  .ep(commonParams)
647
711
  .m(function (Command, cs, config, o) {
648
- return [
649
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
650
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
651
- ];
712
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
652
713
  })
653
714
  .s("AWSSavingsPlan", "CreateSavingsPlan", {})
654
715
  .n("SavingsplansClient", "CreateSavingsPlanCommand")
655
- .f(void 0, void 0)
656
- .ser(se_CreateSavingsPlanCommand)
657
- .de(de_CreateSavingsPlanCommand)
716
+ .sc(CreateSavingsPlan)
658
717
  .build() {
659
718
  }
660
719
 
@@ -662,16 +721,11 @@ class DeleteQueuedSavingsPlanCommand extends smithyClient.Command
662
721
  .classBuilder()
663
722
  .ep(commonParams)
664
723
  .m(function (Command, cs, config, o) {
665
- return [
666
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
667
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
668
- ];
724
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
669
725
  })
670
726
  .s("AWSSavingsPlan", "DeleteQueuedSavingsPlan", {})
671
727
  .n("SavingsplansClient", "DeleteQueuedSavingsPlanCommand")
672
- .f(void 0, void 0)
673
- .ser(se_DeleteQueuedSavingsPlanCommand)
674
- .de(de_DeleteQueuedSavingsPlanCommand)
728
+ .sc(DeleteQueuedSavingsPlan)
675
729
  .build() {
676
730
  }
677
731
 
@@ -679,16 +733,11 @@ class DescribeSavingsPlanRatesCommand extends smithyClient.Command
679
733
  .classBuilder()
680
734
  .ep(commonParams)
681
735
  .m(function (Command, cs, config, o) {
682
- return [
683
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
684
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
685
- ];
736
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
686
737
  })
687
738
  .s("AWSSavingsPlan", "DescribeSavingsPlanRates", {})
688
739
  .n("SavingsplansClient", "DescribeSavingsPlanRatesCommand")
689
- .f(void 0, void 0)
690
- .ser(se_DescribeSavingsPlanRatesCommand)
691
- .de(de_DescribeSavingsPlanRatesCommand)
740
+ .sc(DescribeSavingsPlanRates)
692
741
  .build() {
693
742
  }
694
743
 
@@ -696,16 +745,11 @@ class DescribeSavingsPlansCommand extends smithyClient.Command
696
745
  .classBuilder()
697
746
  .ep(commonParams)
698
747
  .m(function (Command, cs, config, o) {
699
- return [
700
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
701
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
702
- ];
748
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
703
749
  })
704
750
  .s("AWSSavingsPlan", "DescribeSavingsPlans", {})
705
751
  .n("SavingsplansClient", "DescribeSavingsPlansCommand")
706
- .f(void 0, void 0)
707
- .ser(se_DescribeSavingsPlansCommand)
708
- .de(de_DescribeSavingsPlansCommand)
752
+ .sc(DescribeSavingsPlans)
709
753
  .build() {
710
754
  }
711
755
 
@@ -713,16 +757,11 @@ class DescribeSavingsPlansOfferingRatesCommand extends smithyClient.Command
713
757
  .classBuilder()
714
758
  .ep(commonParams)
715
759
  .m(function (Command, cs, config, o) {
716
- return [
717
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
718
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
719
- ];
760
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
720
761
  })
721
762
  .s("AWSSavingsPlan", "DescribeSavingsPlansOfferingRates", {})
722
763
  .n("SavingsplansClient", "DescribeSavingsPlansOfferingRatesCommand")
723
- .f(void 0, void 0)
724
- .ser(se_DescribeSavingsPlansOfferingRatesCommand)
725
- .de(de_DescribeSavingsPlansOfferingRatesCommand)
764
+ .sc(DescribeSavingsPlansOfferingRates)
726
765
  .build() {
727
766
  }
728
767
 
@@ -730,16 +769,11 @@ class DescribeSavingsPlansOfferingsCommand extends smithyClient.Command
730
769
  .classBuilder()
731
770
  .ep(commonParams)
732
771
  .m(function (Command, cs, config, o) {
733
- return [
734
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
735
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
736
- ];
772
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
737
773
  })
738
774
  .s("AWSSavingsPlan", "DescribeSavingsPlansOfferings", {})
739
775
  .n("SavingsplansClient", "DescribeSavingsPlansOfferingsCommand")
740
- .f(void 0, void 0)
741
- .ser(se_DescribeSavingsPlansOfferingsCommand)
742
- .de(de_DescribeSavingsPlansOfferingsCommand)
776
+ .sc(DescribeSavingsPlansOfferings)
743
777
  .build() {
744
778
  }
745
779
 
@@ -747,16 +781,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
747
781
  .classBuilder()
748
782
  .ep(commonParams)
749
783
  .m(function (Command, cs, config, o) {
750
- return [
751
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
752
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
753
- ];
784
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
754
785
  })
755
786
  .s("AWSSavingsPlan", "ListTagsForResource", {})
756
787
  .n("SavingsplansClient", "ListTagsForResourceCommand")
757
- .f(void 0, void 0)
758
- .ser(se_ListTagsForResourceCommand)
759
- .de(de_ListTagsForResourceCommand)
788
+ .sc(ListTagsForResource)
760
789
  .build() {
761
790
  }
762
791
 
@@ -764,16 +793,11 @@ class ReturnSavingsPlanCommand extends smithyClient.Command
764
793
  .classBuilder()
765
794
  .ep(commonParams)
766
795
  .m(function (Command, cs, config, o) {
767
- return [
768
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
769
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
770
- ];
796
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
771
797
  })
772
798
  .s("AWSSavingsPlan", "ReturnSavingsPlan", {})
773
799
  .n("SavingsplansClient", "ReturnSavingsPlanCommand")
774
- .f(void 0, void 0)
775
- .ser(se_ReturnSavingsPlanCommand)
776
- .de(de_ReturnSavingsPlanCommand)
800
+ .sc(ReturnSavingsPlan)
777
801
  .build() {
778
802
  }
779
803
 
@@ -781,16 +805,11 @@ class TagResourceCommand extends smithyClient.Command
781
805
  .classBuilder()
782
806
  .ep(commonParams)
783
807
  .m(function (Command, cs, config, o) {
784
- return [
785
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
786
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
787
- ];
808
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
788
809
  })
789
810
  .s("AWSSavingsPlan", "TagResource", {})
790
811
  .n("SavingsplansClient", "TagResourceCommand")
791
- .f(void 0, void 0)
792
- .ser(se_TagResourceCommand)
793
- .de(de_TagResourceCommand)
812
+ .sc(TagResource)
794
813
  .build() {
795
814
  }
796
815
 
@@ -798,16 +817,11 @@ class UntagResourceCommand extends smithyClient.Command
798
817
  .classBuilder()
799
818
  .ep(commonParams)
800
819
  .m(function (Command, cs, config, o) {
801
- return [
802
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
803
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
804
- ];
820
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
805
821
  })
806
822
  .s("AWSSavingsPlan", "UntagResource", {})
807
823
  .n("SavingsplansClient", "UntagResourceCommand")
808
- .f(void 0, void 0)
809
- .ser(se_UntagResourceCommand)
810
- .de(de_UntagResourceCommand)
824
+ .sc(UntagResource)
811
825
  .build() {
812
826
  }
813
827
 
@@ -842,9 +856,9 @@ exports.DescribeSavingsPlanRatesCommand = DescribeSavingsPlanRatesCommand;
842
856
  exports.DescribeSavingsPlansCommand = DescribeSavingsPlansCommand;
843
857
  exports.DescribeSavingsPlansOfferingRatesCommand = DescribeSavingsPlansOfferingRatesCommand;
844
858
  exports.DescribeSavingsPlansOfferingsCommand = DescribeSavingsPlansOfferingsCommand;
845
- exports.InternalServerException = InternalServerException;
859
+ exports.InternalServerException = InternalServerException$1;
846
860
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
847
- exports.ResourceNotFoundException = ResourceNotFoundException;
861
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
848
862
  exports.ReturnSavingsPlanCommand = ReturnSavingsPlanCommand;
849
863
  exports.SavingsPlanOfferingFilterAttribute = SavingsPlanOfferingFilterAttribute;
850
864
  exports.SavingsPlanOfferingPropertyKey = SavingsPlanOfferingPropertyKey;
@@ -860,8 +874,8 @@ exports.SavingsPlanType = SavingsPlanType;
860
874
  exports.SavingsPlansFilterName = SavingsPlansFilterName;
861
875
  exports.Savingsplans = Savingsplans;
862
876
  exports.SavingsplansClient = SavingsplansClient;
863
- exports.SavingsplansServiceException = SavingsplansServiceException;
864
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
877
+ exports.SavingsplansServiceException = SavingsplansServiceException$1;
878
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
865
879
  exports.TagResourceCommand = TagResourceCommand;
866
880
  exports.UntagResourceCommand = UntagResourceCommand;
867
- exports.ValidationException = ValidationException;
881
+ exports.ValidationException = ValidationException$1;