@aws-sdk/client-trustedadvisor 3.927.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 (35) hide show
  1. package/dist-cjs/index.js +921 -759
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/TrustedAdvisorClient.js +2 -0
  4. package/dist-es/commands/BatchUpdateRecommendationResourceExclusionCommand.js +3 -9
  5. package/dist-es/commands/GetOrganizationRecommendationCommand.js +3 -10
  6. package/dist-es/commands/GetRecommendationCommand.js +3 -10
  7. package/dist-es/commands/ListChecksCommand.js +3 -9
  8. package/dist-es/commands/ListOrganizationRecommendationAccountsCommand.js +3 -10
  9. package/dist-es/commands/ListOrganizationRecommendationResourcesCommand.js +3 -9
  10. package/dist-es/commands/ListOrganizationRecommendationsCommand.js +3 -9
  11. package/dist-es/commands/ListRecommendationResourcesCommand.js +3 -9
  12. package/dist-es/commands/ListRecommendationsCommand.js +3 -9
  13. package/dist-es/commands/UpdateOrganizationRecommendationLifecycleCommand.js +3 -10
  14. package/dist-es/commands/UpdateRecommendationLifecycleCommand.js +3 -10
  15. package/dist-es/models/models_0.js +0 -37
  16. package/dist-es/runtimeConfig.shared.js +2 -0
  17. package/dist-es/schemas/schemas_0.js +894 -0
  18. package/dist-types/TrustedAdvisorClient.d.ts +10 -1
  19. package/dist-types/models/models_0.d.ts +0 -32
  20. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  21. package/dist-types/runtimeConfig.d.ts +1 -0
  22. package/dist-types/runtimeConfig.native.d.ts +1 -0
  23. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  24. package/dist-types/schemas/schemas_0.d.ts +65 -0
  25. package/dist-types/ts3.4/TrustedAdvisorClient.d.ts +4 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +0 -24
  27. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  31. package/dist-types/ts3.4/schemas/schemas_0.d.ts +71 -0
  32. package/package.json +5 -5
  33. package/dist-es/protocols/Aws_restJson1.js +0 -633
  34. package/dist-types/protocols/Aws_restJson1.d.ts +0 -101
  35. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -137
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 TrustedAdvisorClient 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 TrustedAdvisorClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class TrustedAdvisorServiceException extends smithyClient.ServiceException {
113
+ let TrustedAdvisorServiceException$1 = class TrustedAdvisorServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, TrustedAdvisorServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends TrustedAdvisorServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends TrustedAdvisorServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  constructor(opts) {
@@ -128,7 +128,7 @@ class AccessDeniedException extends TrustedAdvisorServiceException {
128
128
  });
129
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
130
  }
131
- }
131
+ };
132
132
  const RecommendationLifecycleStage = {
133
133
  DISMISSED: "dismissed",
134
134
  IN_PROGRESS: "in_progress",
@@ -144,7 +144,7 @@ const UpdateRecommendationLifecycleStageReasonCode = {
144
144
  TEMPORARY_ACCOUNT: "temporary_account",
145
145
  VALID_BUSINESS_CASE: "valid_business_case",
146
146
  };
147
- class ConflictException extends TrustedAdvisorServiceException {
147
+ let ConflictException$1 = class ConflictException extends TrustedAdvisorServiceException$1 {
148
148
  name = "ConflictException";
149
149
  $fault = "client";
150
150
  constructor(opts) {
@@ -155,8 +155,8 @@ class ConflictException extends TrustedAdvisorServiceException {
155
155
  });
156
156
  Object.setPrototypeOf(this, ConflictException.prototype);
157
157
  }
158
- }
159
- class InternalServerException extends TrustedAdvisorServiceException {
158
+ };
159
+ let InternalServerException$1 = class InternalServerException extends TrustedAdvisorServiceException$1 {
160
160
  name = "InternalServerException";
161
161
  $fault = "server";
162
162
  $retryable = {};
@@ -168,8 +168,8 @@ class InternalServerException extends TrustedAdvisorServiceException {
168
168
  });
169
169
  Object.setPrototypeOf(this, InternalServerException.prototype);
170
170
  }
171
- }
172
- class ThrottlingException extends TrustedAdvisorServiceException {
171
+ };
172
+ let ThrottlingException$1 = class ThrottlingException extends TrustedAdvisorServiceException$1 {
173
173
  name = "ThrottlingException";
174
174
  $fault = "client";
175
175
  $retryable = {
@@ -183,8 +183,8 @@ class ThrottlingException extends TrustedAdvisorServiceException {
183
183
  });
184
184
  Object.setPrototypeOf(this, ThrottlingException.prototype);
185
185
  }
186
- }
187
- class ValidationException extends TrustedAdvisorServiceException {
186
+ };
187
+ let ValidationException$1 = class ValidationException extends TrustedAdvisorServiceException$1 {
188
188
  name = "ValidationException";
189
189
  $fault = "client";
190
190
  constructor(opts) {
@@ -195,7 +195,7 @@ class ValidationException extends TrustedAdvisorServiceException {
195
195
  });
196
196
  Object.setPrototypeOf(this, ValidationException.prototype);
197
197
  }
198
- }
198
+ };
199
199
  const RecommendationPillar = {
200
200
  COST_OPTIMIZING: "cost_optimizing",
201
201
  FAULT_TOLERANCE: "fault_tolerance",
@@ -232,7 +232,7 @@ const RecommendationType = {
232
232
  PRIORITY: "priority",
233
233
  STANDARD: "standard",
234
234
  };
235
- class ResourceNotFoundException extends TrustedAdvisorServiceException {
235
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends TrustedAdvisorServiceException$1 {
236
236
  name = "ResourceNotFoundException";
237
237
  $fault = "client";
238
238
  constructor(opts) {
@@ -243,7 +243,7 @@ class ResourceNotFoundException extends TrustedAdvisorServiceException {
243
243
  });
244
244
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
245
245
  }
246
- }
246
+ };
247
247
  const RecommendationLanguage = {
248
248
  BAHASA_INDONESIA: "id",
249
249
  BRAZILIAN_PORTUGUESE: "pt_BR",
@@ -268,685 +268,905 @@ const UpdateRecommendationLifecycleStage = {
268
268
  PENDING_RESPONSE: "pending_response",
269
269
  RESOLVED: "resolved",
270
270
  };
271
- const AccountRecommendationLifecycleSummaryFilterSensitiveLog = (obj) => ({
272
- ...obj,
273
- ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
274
- });
275
- const OrganizationRecommendationFilterSensitiveLog = (obj) => ({
276
- ...obj,
277
- ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
278
- });
279
- const GetOrganizationRecommendationResponseFilterSensitiveLog = (obj) => ({
280
- ...obj,
281
- ...(obj.organizationRecommendation && {
282
- organizationRecommendation: OrganizationRecommendationFilterSensitiveLog(obj.organizationRecommendation),
283
- }),
284
- });
285
- const RecommendationFilterSensitiveLog = (obj) => ({
286
- ...obj,
287
- ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
288
- });
289
- const GetRecommendationResponseFilterSensitiveLog = (obj) => ({
290
- ...obj,
291
- ...(obj.recommendation && { recommendation: RecommendationFilterSensitiveLog(obj.recommendation) }),
292
- });
293
- const ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = (obj) => ({
294
- ...obj,
295
- ...(obj.accountRecommendationLifecycleSummaries && {
296
- accountRecommendationLifecycleSummaries: obj.accountRecommendationLifecycleSummaries.map((item) => AccountRecommendationLifecycleSummaryFilterSensitiveLog(item)),
297
- }),
298
- });
299
- const UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = (obj) => ({
300
- ...obj,
301
- ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
302
- });
303
- const UpdateRecommendationLifecycleRequestFilterSensitiveLog = (obj) => ({
304
- ...obj,
305
- ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
306
- });
307
271
 
308
- const se_BatchUpdateRecommendationResourceExclusionCommand = async (input, context) => {
309
- const b = core.requestBuilder(input, context);
310
- const headers = {
311
- "content-type": "application/json",
312
- };
313
- b.bp("/v1/batch-update-recommendation-resource-exclusion");
314
- let body;
315
- body = JSON.stringify(smithyClient.take(input, {
316
- recommendationResourceExclusions: (_) => smithyClient._json(_),
317
- }));
318
- b.m("PUT").h(headers).b(body);
319
- return b.build();
320
- };
321
- const se_GetOrganizationRecommendationCommand = async (input, context) => {
322
- const b = core.requestBuilder(input, context);
323
- const headers = {};
324
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}");
325
- b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
326
- let body;
327
- b.m("GET").h(headers).b(body);
328
- return b.build();
329
- };
330
- const se_GetRecommendationCommand = async (input, context) => {
331
- const b = core.requestBuilder(input, context);
332
- const headers = {};
333
- b.bp("/v1/recommendations/{recommendationIdentifier}");
334
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
335
- let body;
336
- b.m("GET").h(headers).b(body);
337
- return b.build();
338
- };
339
- const se_ListChecksCommand = async (input, context) => {
340
- const b = core.requestBuilder(input, context);
341
- const headers = {};
342
- b.bp("/v1/checks");
343
- const query = smithyClient.map({
344
- [_nT]: [, input[_nT]],
345
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
346
- [_p]: [, input[_p]],
347
- [_aS]: [, input[_aS]],
348
- [_s]: [, input[_s]],
349
- [_l]: [, input[_l]],
350
- });
351
- let body;
352
- b.m("GET").h(headers).q(query).b(body);
353
- return b.build();
354
- };
355
- const se_ListOrganizationRecommendationAccountsCommand = async (input, context) => {
356
- const b = core.requestBuilder(input, context);
357
- const headers = {};
358
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts");
359
- b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
360
- const query = smithyClient.map({
361
- [_nT]: [, input[_nT]],
362
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
363
- [_aAI]: [, input[_aAI]],
364
- });
365
- let body;
366
- b.m("GET").h(headers).q(query).b(body);
367
- return b.build();
368
- };
369
- const se_ListOrganizationRecommendationResourcesCommand = async (input, context) => {
370
- const b = core.requestBuilder(input, context);
371
- const headers = {};
372
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources");
373
- b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
374
- const query = smithyClient.map({
375
- [_nT]: [, input[_nT]],
376
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
377
- [_st]: [, input[_st]],
378
- [_eS]: [, input[_eS]],
379
- [_rC]: [, input[_rC]],
380
- [_aAI]: [, input[_aAI]],
381
- });
382
- let body;
383
- b.m("GET").h(headers).q(query).b(body);
384
- return b.build();
385
- };
386
- const se_ListOrganizationRecommendationsCommand = async (input, context) => {
387
- const b = core.requestBuilder(input, context);
388
- const headers = {};
389
- b.bp("/v1/organization-recommendations");
390
- const query = smithyClient.map({
391
- [_nT]: [, input[_nT]],
392
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
393
- [_t]: [, input[_t]],
394
- [_st]: [, input[_st]],
395
- [_p]: [, input[_p]],
396
- [_aS]: [, input[_aS]],
397
- [_s]: [, input[_s]],
398
- [_cI]: [, input[_cI]],
399
- [_aLUA]: [() => input.afterLastUpdatedAt !== void 0, () => smithyClient.serializeDateTime(input[_aLUA]).toString()],
400
- [_bLUA]: [() => input.beforeLastUpdatedAt !== void 0, () => smithyClient.serializeDateTime(input[_bLUA]).toString()],
401
- });
402
- let body;
403
- b.m("GET").h(headers).q(query).b(body);
404
- return b.build();
405
- };
406
- const se_ListRecommendationResourcesCommand = async (input, context) => {
407
- const b = core.requestBuilder(input, context);
408
- const headers = {};
409
- b.bp("/v1/recommendations/{recommendationIdentifier}/resources");
410
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
411
- const query = smithyClient.map({
412
- [_nT]: [, input[_nT]],
413
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
414
- [_st]: [, input[_st]],
415
- [_eS]: [, input[_eS]],
416
- [_rC]: [, input[_rC]],
417
- });
418
- let body;
419
- b.m("GET").h(headers).q(query).b(body);
420
- return b.build();
421
- };
422
- const se_ListRecommendationsCommand = async (input, context) => {
423
- const b = core.requestBuilder(input, context);
424
- const headers = {};
425
- b.bp("/v1/recommendations");
426
- const query = smithyClient.map({
427
- [_nT]: [, input[_nT]],
428
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
429
- [_t]: [, input[_t]],
430
- [_st]: [, input[_st]],
431
- [_p]: [, input[_p]],
432
- [_aS]: [, input[_aS]],
433
- [_s]: [, input[_s]],
434
- [_cI]: [, input[_cI]],
435
- [_aLUA]: [() => input.afterLastUpdatedAt !== void 0, () => smithyClient.serializeDateTime(input[_aLUA]).toString()],
436
- [_bLUA]: [() => input.beforeLastUpdatedAt !== void 0, () => smithyClient.serializeDateTime(input[_bLUA]).toString()],
437
- });
438
- let body;
439
- b.m("GET").h(headers).q(query).b(body);
440
- return b.build();
441
- };
442
- const se_UpdateOrganizationRecommendationLifecycleCommand = async (input, context) => {
443
- const b = core.requestBuilder(input, context);
444
- const headers = {
445
- "content-type": "application/json",
446
- };
447
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle");
448
- b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
449
- let body;
450
- body = JSON.stringify(smithyClient.take(input, {
451
- lifecycleStage: [],
452
- updateReason: [],
453
- updateReasonCode: [],
454
- }));
455
- b.m("PUT").h(headers).b(body);
456
- return b.build();
457
- };
458
- const se_UpdateRecommendationLifecycleCommand = async (input, context) => {
459
- const b = core.requestBuilder(input, context);
460
- const headers = {
461
- "content-type": "application/json",
462
- };
463
- b.bp("/v1/recommendations/{recommendationIdentifier}/lifecycle");
464
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
465
- let body;
466
- body = JSON.stringify(smithyClient.take(input, {
467
- lifecycleStage: [],
468
- updateReason: [],
469
- updateReasonCode: [],
470
- }));
471
- b.m("PUT").h(headers).b(body);
472
- return b.build();
473
- };
474
- const de_BatchUpdateRecommendationResourceExclusionCommand = async (output, context) => {
475
- if (output.statusCode !== 200 && output.statusCode >= 300) {
476
- return de_CommandError(output, context);
477
- }
478
- const contents = smithyClient.map({
479
- $metadata: deserializeMetadata(output),
480
- });
481
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
482
- const doc = smithyClient.take(data, {
483
- batchUpdateRecommendationResourceExclusionErrors: smithyClient._json,
484
- });
485
- Object.assign(contents, doc);
486
- return contents;
487
- };
488
- const de_GetOrganizationRecommendationCommand = async (output, context) => {
489
- if (output.statusCode !== 200 && output.statusCode >= 300) {
490
- return de_CommandError(output, context);
491
- }
492
- const contents = smithyClient.map({
493
- $metadata: deserializeMetadata(output),
494
- });
495
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
496
- const doc = smithyClient.take(data, {
497
- organizationRecommendation: (_) => de_OrganizationRecommendation(_),
498
- });
499
- Object.assign(contents, doc);
500
- return contents;
501
- };
502
- const de_GetRecommendationCommand = async (output, context) => {
503
- if (output.statusCode !== 200 && output.statusCode >= 300) {
504
- return de_CommandError(output, context);
505
- }
506
- const contents = smithyClient.map({
507
- $metadata: deserializeMetadata(output),
508
- });
509
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
510
- const doc = smithyClient.take(data, {
511
- recommendation: (_) => de_Recommendation(_),
512
- });
513
- Object.assign(contents, doc);
514
- return contents;
515
- };
516
- const de_ListChecksCommand = async (output, context) => {
517
- if (output.statusCode !== 200 && output.statusCode >= 300) {
518
- return de_CommandError(output, context);
519
- }
520
- const contents = smithyClient.map({
521
- $metadata: deserializeMetadata(output),
522
- });
523
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
524
- const doc = smithyClient.take(data, {
525
- checkSummaries: smithyClient._json,
526
- nextToken: smithyClient.expectString,
527
- });
528
- Object.assign(contents, doc);
529
- return contents;
530
- };
531
- const de_ListOrganizationRecommendationAccountsCommand = async (output, context) => {
532
- if (output.statusCode !== 200 && output.statusCode >= 300) {
533
- return de_CommandError(output, context);
534
- }
535
- const contents = smithyClient.map({
536
- $metadata: deserializeMetadata(output),
537
- });
538
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
539
- const doc = smithyClient.take(data, {
540
- accountRecommendationLifecycleSummaries: (_) => de_AccountRecommendationLifecycleSummaryList(_),
541
- nextToken: smithyClient.expectString,
542
- });
543
- Object.assign(contents, doc);
544
- return contents;
545
- };
546
- const de_ListOrganizationRecommendationResourcesCommand = 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
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
554
- const doc = smithyClient.take(data, {
555
- nextToken: smithyClient.expectString,
556
- organizationRecommendationResourceSummaries: (_) => de_OrganizationRecommendationResourceSummaryList(_),
557
- });
558
- Object.assign(contents, doc);
559
- return contents;
560
- };
561
- const de_ListOrganizationRecommendationsCommand = async (output, context) => {
562
- if (output.statusCode !== 200 && output.statusCode >= 300) {
563
- return de_CommandError(output, context);
564
- }
565
- const contents = smithyClient.map({
566
- $metadata: deserializeMetadata(output),
567
- });
568
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
569
- const doc = smithyClient.take(data, {
570
- nextToken: smithyClient.expectString,
571
- organizationRecommendationSummaries: (_) => de_OrganizationRecommendationSummaryList(_),
572
- });
573
- Object.assign(contents, doc);
574
- return contents;
575
- };
576
- const de_ListRecommendationResourcesCommand = async (output, context) => {
577
- if (output.statusCode !== 200 && output.statusCode >= 300) {
578
- return de_CommandError(output, context);
579
- }
580
- const contents = smithyClient.map({
581
- $metadata: deserializeMetadata(output),
582
- });
583
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
584
- const doc = smithyClient.take(data, {
585
- nextToken: smithyClient.expectString,
586
- recommendationResourceSummaries: (_) => de_RecommendationResourceSummaryList(_),
587
- });
588
- Object.assign(contents, doc);
589
- return contents;
590
- };
591
- const de_ListRecommendationsCommand = async (output, context) => {
592
- if (output.statusCode !== 200 && output.statusCode >= 300) {
593
- return de_CommandError(output, context);
594
- }
595
- const contents = smithyClient.map({
596
- $metadata: deserializeMetadata(output),
597
- });
598
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
599
- const doc = smithyClient.take(data, {
600
- nextToken: smithyClient.expectString,
601
- recommendationSummaries: (_) => de_RecommendationSummaryList(_),
602
- });
603
- Object.assign(contents, doc);
604
- return contents;
605
- };
606
- const de_UpdateOrganizationRecommendationLifecycleCommand = async (output, context) => {
607
- if (output.statusCode !== 200 && output.statusCode >= 300) {
608
- return de_CommandError(output, context);
609
- }
610
- const contents = smithyClient.map({
611
- $metadata: deserializeMetadata(output),
612
- });
613
- await smithyClient.collectBody(output.body, context);
614
- return contents;
615
- };
616
- const de_UpdateRecommendationLifecycleCommand = async (output, context) => {
617
- if (output.statusCode !== 200 && output.statusCode >= 300) {
618
- return de_CommandError(output, context);
619
- }
620
- const contents = smithyClient.map({
621
- $metadata: deserializeMetadata(output),
622
- });
623
- await smithyClient.collectBody(output.body, context);
624
- return contents;
625
- };
626
- const de_CommandError = async (output, context) => {
627
- const parsedOutput = {
628
- ...output,
629
- body: await core$1.parseJsonErrorBody(output.body, context),
630
- };
631
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
632
- switch (errorCode) {
633
- case "AccessDeniedException":
634
- case "com.amazonaws.trustedadvisor#AccessDeniedException":
635
- throw await de_AccessDeniedExceptionRes(parsedOutput);
636
- case "ConflictException":
637
- case "com.amazonaws.trustedadvisor#ConflictException":
638
- throw await de_ConflictExceptionRes(parsedOutput);
639
- case "InternalServerException":
640
- case "com.amazonaws.trustedadvisor#InternalServerException":
641
- throw await de_InternalServerExceptionRes(parsedOutput);
642
- case "ThrottlingException":
643
- case "com.amazonaws.trustedadvisor#ThrottlingException":
644
- throw await de_ThrottlingExceptionRes(parsedOutput);
645
- case "ValidationException":
646
- case "com.amazonaws.trustedadvisor#ValidationException":
647
- throw await de_ValidationExceptionRes(parsedOutput);
648
- case "ResourceNotFoundException":
649
- case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
650
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
651
- default:
652
- const parsedBody = parsedOutput.body;
653
- return throwDefaultError({
654
- output,
655
- parsedBody,
656
- errorCode,
657
- });
658
- }
659
- };
660
- const throwDefaultError = smithyClient.withBaseException(TrustedAdvisorServiceException);
661
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
662
- const contents = smithyClient.map({});
663
- const data = parsedOutput.body;
664
- const doc = smithyClient.take(data, {
665
- message: smithyClient.expectString,
666
- });
667
- Object.assign(contents, doc);
668
- const exception = new AccessDeniedException({
669
- $metadata: deserializeMetadata(parsedOutput),
670
- ...contents,
671
- });
672
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
673
- };
674
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
675
- const contents = smithyClient.map({});
676
- const data = parsedOutput.body;
677
- const doc = smithyClient.take(data, {
678
- message: smithyClient.expectString,
679
- });
680
- Object.assign(contents, doc);
681
- const exception = new ConflictException({
682
- $metadata: deserializeMetadata(parsedOutput),
683
- ...contents,
684
- });
685
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
686
- };
687
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
688
- const contents = smithyClient.map({});
689
- const data = parsedOutput.body;
690
- const doc = smithyClient.take(data, {
691
- message: smithyClient.expectString,
692
- });
693
- Object.assign(contents, doc);
694
- const exception = new InternalServerException({
695
- $metadata: deserializeMetadata(parsedOutput),
696
- ...contents,
697
- });
698
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
699
- };
700
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
701
- const contents = smithyClient.map({});
702
- const data = parsedOutput.body;
703
- const doc = smithyClient.take(data, {
704
- message: smithyClient.expectString,
705
- });
706
- Object.assign(contents, doc);
707
- const exception = new ResourceNotFoundException({
708
- $metadata: deserializeMetadata(parsedOutput),
709
- ...contents,
710
- });
711
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
712
- };
713
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
714
- const contents = smithyClient.map({});
715
- const data = parsedOutput.body;
716
- const doc = smithyClient.take(data, {
717
- message: smithyClient.expectString,
718
- });
719
- Object.assign(contents, doc);
720
- const exception = new ThrottlingException({
721
- $metadata: deserializeMetadata(parsedOutput),
722
- ...contents,
723
- });
724
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
725
- };
726
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
727
- const contents = smithyClient.map({});
728
- const data = parsedOutput.body;
729
- const doc = smithyClient.take(data, {
730
- message: smithyClient.expectString,
731
- });
732
- Object.assign(contents, doc);
733
- const exception = new ValidationException({
734
- $metadata: deserializeMetadata(parsedOutput),
735
- ...contents,
736
- });
737
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
738
- };
739
- const de_AccountRecommendationLifecycleSummary = (output, context) => {
740
- return smithyClient.take(output, {
741
- accountId: smithyClient.expectString,
742
- accountRecommendationArn: smithyClient.expectString,
743
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
744
- lifecycleStage: smithyClient.expectString,
745
- updateReason: smithyClient.expectString,
746
- updateReasonCode: smithyClient.expectString,
747
- updatedOnBehalfOf: smithyClient.expectString,
748
- updatedOnBehalfOfJobTitle: smithyClient.expectString,
749
- });
750
- };
751
- const de_AccountRecommendationLifecycleSummaryList = (output, context) => {
752
- const retVal = (output || [])
753
- .filter((e) => e != null)
754
- .map((entry) => {
755
- return de_AccountRecommendationLifecycleSummary(entry);
756
- });
757
- return retVal;
758
- };
759
- const de_OrganizationRecommendation = (output, context) => {
760
- return smithyClient.take(output, {
761
- arn: smithyClient.expectString,
762
- awsServices: smithyClient._json,
763
- checkArn: smithyClient.expectString,
764
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
765
- createdBy: smithyClient.expectString,
766
- description: smithyClient.expectString,
767
- id: smithyClient.expectString,
768
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
769
- lifecycleStage: smithyClient.expectString,
770
- name: smithyClient.expectString,
771
- pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_),
772
- pillars: smithyClient._json,
773
- resolvedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
774
- resourcesAggregates: smithyClient._json,
775
- source: smithyClient.expectString,
776
- status: smithyClient.expectString,
777
- type: smithyClient.expectString,
778
- updateReason: smithyClient.expectString,
779
- updateReasonCode: smithyClient.expectString,
780
- updatedOnBehalfOf: smithyClient.expectString,
781
- updatedOnBehalfOfJobTitle: smithyClient.expectString,
782
- });
783
- };
784
- const de_OrganizationRecommendationResourceSummary = (output, context) => {
785
- return smithyClient.take(output, {
786
- accountId: smithyClient.expectString,
787
- arn: smithyClient.expectString,
788
- awsResourceId: smithyClient.expectString,
789
- exclusionStatus: smithyClient.expectString,
790
- id: smithyClient.expectString,
791
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
792
- metadata: smithyClient._json,
793
- recommendationArn: smithyClient.expectString,
794
- regionCode: smithyClient.expectString,
795
- status: smithyClient.expectString,
796
- });
797
- };
798
- const de_OrganizationRecommendationResourceSummaryList = (output, context) => {
799
- const retVal = (output || [])
800
- .filter((e) => e != null)
801
- .map((entry) => {
802
- return de_OrganizationRecommendationResourceSummary(entry);
803
- });
804
- return retVal;
805
- };
806
- const de_OrganizationRecommendationSummary = (output, context) => {
807
- return smithyClient.take(output, {
808
- arn: smithyClient.expectString,
809
- awsServices: smithyClient._json,
810
- checkArn: smithyClient.expectString,
811
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
812
- id: smithyClient.expectString,
813
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
814
- lifecycleStage: smithyClient.expectString,
815
- name: smithyClient.expectString,
816
- pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_),
817
- pillars: smithyClient._json,
818
- resourcesAggregates: smithyClient._json,
819
- source: smithyClient.expectString,
820
- status: smithyClient.expectString,
821
- type: smithyClient.expectString,
822
- });
823
- };
824
- const de_OrganizationRecommendationSummaryList = (output, context) => {
825
- const retVal = (output || [])
826
- .filter((e) => e != null)
827
- .map((entry) => {
828
- return de_OrganizationRecommendationSummary(entry);
829
- });
830
- return retVal;
831
- };
832
- const de_Recommendation = (output, context) => {
833
- return smithyClient.take(output, {
834
- arn: smithyClient.expectString,
835
- awsServices: smithyClient._json,
836
- checkArn: smithyClient.expectString,
837
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
838
- createdBy: smithyClient.expectString,
839
- description: smithyClient.expectString,
840
- id: smithyClient.expectString,
841
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
842
- lifecycleStage: smithyClient.expectString,
843
- name: smithyClient.expectString,
844
- pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_),
845
- pillars: smithyClient._json,
846
- resolvedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
847
- resourcesAggregates: smithyClient._json,
848
- source: smithyClient.expectString,
849
- status: smithyClient.expectString,
850
- type: smithyClient.expectString,
851
- updateReason: smithyClient.expectString,
852
- updateReasonCode: smithyClient.expectString,
853
- updatedOnBehalfOf: smithyClient.expectString,
854
- updatedOnBehalfOfJobTitle: smithyClient.expectString,
855
- });
856
- };
857
- const de_RecommendationCostOptimizingAggregates = (output, context) => {
858
- return smithyClient.take(output, {
859
- estimatedMonthlySavings: smithyClient.limitedParseDouble,
860
- estimatedPercentMonthlySavings: smithyClient.limitedParseDouble,
861
- });
862
- };
863
- const de_RecommendationPillarSpecificAggregates = (output, context) => {
864
- return smithyClient.take(output, {
865
- costOptimizing: (_) => de_RecommendationCostOptimizingAggregates(_),
866
- });
867
- };
868
- const de_RecommendationResourceSummary = (output, context) => {
869
- return smithyClient.take(output, {
870
- arn: smithyClient.expectString,
871
- awsResourceId: smithyClient.expectString,
872
- exclusionStatus: smithyClient.expectString,
873
- id: smithyClient.expectString,
874
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
875
- metadata: smithyClient._json,
876
- recommendationArn: smithyClient.expectString,
877
- regionCode: smithyClient.expectString,
878
- status: smithyClient.expectString,
879
- });
880
- };
881
- const de_RecommendationResourceSummaryList = (output, context) => {
882
- const retVal = (output || [])
883
- .filter((e) => e != null)
884
- .map((entry) => {
885
- return de_RecommendationResourceSummary(entry);
886
- });
887
- return retVal;
888
- };
889
- const de_RecommendationSummary = (output, context) => {
890
- return smithyClient.take(output, {
891
- arn: smithyClient.expectString,
892
- awsServices: smithyClient._json,
893
- checkArn: smithyClient.expectString,
894
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
895
- id: smithyClient.expectString,
896
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
897
- lifecycleStage: smithyClient.expectString,
898
- name: smithyClient.expectString,
899
- pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_),
900
- pillars: smithyClient._json,
901
- resourcesAggregates: smithyClient._json,
902
- source: smithyClient.expectString,
903
- status: smithyClient.expectString,
904
- type: smithyClient.expectString,
905
- });
906
- };
907
- const de_RecommendationSummaryList = (output, context) => {
908
- const retVal = (output || [])
909
- .filter((e) => e != null)
910
- .map((entry) => {
911
- return de_RecommendationSummary(entry);
912
- });
913
- return retVal;
914
- };
915
- const deserializeMetadata = (output) => ({
916
- httpStatusCode: output.statusCode,
917
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
918
- extendedRequestId: output.headers["x-amz-id-2"],
919
- cfId: output.headers["x-amz-cf-id"],
920
- });
272
+ const _ADE = "AccessDeniedException";
273
+ const _ARLS = "AccountRecommendationLifecycleSummary";
274
+ const _ARLSL = "AccountRecommendationLifecycleSummaryList";
275
+ const _BURRE = "BatchUpdateRecommendationResourceExclusion";
276
+ const _BURRER = "BatchUpdateRecommendationResourceExclusionRequest";
277
+ const _BURRERa = "BatchUpdateRecommendationResourceExclusionResponse";
278
+ const _CE = "ConflictException";
279
+ const _CS = "CheckSummary";
280
+ const _CSL = "CheckSummaryList";
281
+ const _GOR = "GetOrganizationRecommendation";
282
+ const _GORR = "GetOrganizationRecommendationRequest";
283
+ const _GORRe = "GetOrganizationRecommendationResponse";
284
+ const _GR = "GetRecommendation";
285
+ const _GRR = "GetRecommendationRequest";
286
+ const _GRRe = "GetRecommendationResponse";
287
+ const _ISE = "InternalServerException";
288
+ const _LC = "ListChecks";
289
+ const _LCR = "ListChecksRequest";
290
+ const _LCRi = "ListChecksResponse";
291
+ const _LOR = "ListOrganizationRecommendations";
292
+ const _LORA = "ListOrganizationRecommendationAccounts";
293
+ const _LORAR = "ListOrganizationRecommendationAccountsRequest";
294
+ const _LORARi = "ListOrganizationRecommendationAccountsResponse";
295
+ const _LORR = "ListOrganizationRecommendationsRequest";
296
+ const _LORRR = "ListOrganizationRecommendationResourcesRequest";
297
+ const _LORRRi = "ListOrganizationRecommendationResourcesResponse";
298
+ const _LORRi = "ListOrganizationRecommendationsResponse";
299
+ const _LORRis = "ListOrganizationRecommendationResources";
300
+ const _LR = "ListRecommendations";
301
+ const _LRR = "ListRecommendationsRequest";
302
+ const _LRRR = "ListRecommendationResourcesRequest";
303
+ const _LRRRi = "ListRecommendationResourcesResponse";
304
+ const _LRRi = "ListRecommendationsResponse";
305
+ const _LRRis = "ListRecommendationResources";
306
+ const _OR = "OrganizationRecommendation";
307
+ const _ORRS = "OrganizationRecommendationResourceSummary";
308
+ const _ORRSL = "OrganizationRecommendationResourceSummaryList";
309
+ const _ORS = "OrganizationRecommendationSummary";
310
+ const _ORSL = "OrganizationRecommendationSummaryList";
311
+ const _R = "Recommendation";
312
+ const _RCOA = "RecommendationCostOptimizingAggregates";
313
+ const _RNFE = "ResourceNotFoundException";
314
+ const _RPSA = "RecommendationPillarSpecificAggregates";
315
+ const _RRA = "RecommendationResourcesAggregates";
316
+ const _RRE = "RecommendationResourceExclusion";
317
+ const _RREL = "RecommendationResourceExclusionList";
318
+ const _RRS = "RecommendationResourceSummary";
319
+ const _RRSL = "RecommendationResourceSummaryList";
320
+ const _RS = "RecommendationSummary";
321
+ const _RSL = "RecommendationSummaryList";
322
+ const _RUR = "RecommendationUpdateReason";
323
+ const _TE = "ThrottlingException";
324
+ const _UORL = "UpdateOrganizationRecommendationLifecycle";
325
+ const _UORLR = "UpdateOrganizationRecommendationLifecycleRequest";
326
+ const _URL = "UpdateRecommendationLifecycle";
327
+ const _URLR = "UpdateRecommendationLifecycleRequest";
328
+ const _URREE = "UpdateRecommendationResourceExclusionError";
329
+ const _URREEL = "UpdateRecommendationResourceExclusionErrorList";
330
+ const _VE = "ValidationException";
331
+ const _a = "arn";
921
332
  const _aAI = "affectedAccountId";
333
+ const _aI = "accountId";
922
334
  const _aLUA = "afterLastUpdatedAt";
923
- const _aS = "awsService";
335
+ const _aRA = "accountRecommendationArn";
336
+ const _aRI = "awsResourceId";
337
+ const _aRLS = "accountRecommendationLifecycleSummaries";
338
+ const _aS = "awsServices";
339
+ const _aSw = "awsService";
924
340
  const _bLUA = "beforeLastUpdatedAt";
341
+ const _bURREE = "batchUpdateRecommendationResourceExclusionErrors";
342
+ const _c = "client";
343
+ const _cA = "checkArn";
344
+ const _cAr = "createdAt";
345
+ const _cB = "createdBy";
925
346
  const _cI = "checkIdentifier";
347
+ const _cO = "costOptimizing";
348
+ const _cS = "checkSummaries";
349
+ const _d = "description";
350
+ const _e = "error";
351
+ const _eC = "errorCount";
352
+ const _eCr = "errorCode";
353
+ const _eM = "errorMessage";
354
+ const _eMS = "estimatedMonthlySavings";
355
+ const _ePMS = "estimatedPercentMonthlySavings";
926
356
  const _eS = "exclusionStatus";
357
+ const _h = "http";
358
+ const _hE = "httpError";
359
+ const _hQ = "httpQuery";
360
+ const _i = "id";
361
+ const _iE = "isExcluded";
927
362
  const _l = "language";
363
+ const _lS = "lifecycleStage";
364
+ const _lUA = "lastUpdatedAt";
365
+ const _m = "message";
928
366
  const _mR = "maxResults";
367
+ const _me = "metadata";
368
+ const _n = "name";
929
369
  const _nT = "nextToken";
930
- const _p = "pillar";
370
+ const _oC = "okCount";
371
+ const _oR = "organizationRecommendation";
372
+ const _oRI = "organizationRecommendationIdentifier";
373
+ const _oRRS = "organizationRecommendationResourceSummaries";
374
+ const _oRS = "organizationRecommendationSummaries";
375
+ const _p = "pillars";
376
+ const _pSA = "pillarSpecificAggregates";
377
+ const _pi = "pillar";
378
+ const _r = "recommendation";
379
+ const _rA = "resourcesAggregates";
380
+ const _rAe = "resolvedAt";
381
+ const _rAec = "recommendationArn";
931
382
  const _rC = "regionCode";
383
+ const _rI = "recommendationIdentifier";
384
+ const _rRE = "recommendationResourceExclusions";
385
+ const _rRS = "recommendationResourceSummaries";
386
+ const _rS = "recommendationSummaries";
932
387
  const _s = "source";
388
+ const _se = "server";
389
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.trustedadvisor";
933
390
  const _st = "status";
934
391
  const _t = "type";
392
+ const _uOBO = "updatedOnBehalfOf";
393
+ const _uOBOJT = "updatedOnBehalfOfJobTitle";
394
+ const _uR = "updateReason";
395
+ const _uRC = "updateReasonCode";
396
+ const _wC = "warningCount";
397
+ const n0 = "com.amazonaws.trustedadvisor";
398
+ var RecommendationUpdateReason = [0, n0, _RUR, 8, 0];
399
+ var AccessDeniedException = [
400
+ -3,
401
+ n0,
402
+ _ADE,
403
+ {
404
+ [_e]: _c,
405
+ [_hE]: 403,
406
+ },
407
+ [_m],
408
+ [0],
409
+ ];
410
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
411
+ var AccountRecommendationLifecycleSummary = [
412
+ 3,
413
+ n0,
414
+ _ARLS,
415
+ 0,
416
+ [_aI, _aRA, _lS, _uOBO, _uOBOJT, _uR, _uRC, _lUA],
417
+ [0, 0, 0, 0, 0, [() => RecommendationUpdateReason, 0], 0, 5],
418
+ ];
419
+ var BatchUpdateRecommendationResourceExclusionRequest = [
420
+ 3,
421
+ n0,
422
+ _BURRER,
423
+ 0,
424
+ [_rRE],
425
+ [() => RecommendationResourceExclusionList],
426
+ ];
427
+ var BatchUpdateRecommendationResourceExclusionResponse = [
428
+ 3,
429
+ n0,
430
+ _BURRERa,
431
+ 0,
432
+ [_bURREE],
433
+ [() => UpdateRecommendationResourceExclusionErrorList],
434
+ ];
435
+ var CheckSummary = [
436
+ 3,
437
+ n0,
438
+ _CS,
439
+ 0,
440
+ [_i, _a, _n, _d, _p, _aS, _s, _me],
441
+ [0, 0, 0, 0, 64 | 0, 64 | 0, 0, 128 | 0],
442
+ ];
443
+ var ConflictException = [
444
+ -3,
445
+ n0,
446
+ _CE,
447
+ {
448
+ [_e]: _c,
449
+ [_hE]: 409,
450
+ },
451
+ [_m],
452
+ [0],
453
+ ];
454
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
455
+ var GetOrganizationRecommendationRequest = [3, n0, _GORR, 0, [_oRI], [[0, 1]]];
456
+ var GetOrganizationRecommendationResponse = [
457
+ 3,
458
+ n0,
459
+ _GORRe,
460
+ 0,
461
+ [_oR],
462
+ [[() => OrganizationRecommendation, 0]],
463
+ ];
464
+ var GetRecommendationRequest = [3, n0, _GRR, 0, [_rI], [[0, 1]]];
465
+ var GetRecommendationResponse = [3, n0, _GRRe, 0, [_r], [[() => Recommendation, 0]]];
466
+ var InternalServerException = [
467
+ -3,
468
+ n0,
469
+ _ISE,
470
+ {
471
+ [_e]: _se,
472
+ [_hE]: 500,
473
+ },
474
+ [_m],
475
+ [0],
476
+ ];
477
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
478
+ var ListChecksRequest = [
479
+ 3,
480
+ n0,
481
+ _LCR,
482
+ 0,
483
+ [_nT, _mR, _pi, _aSw, _s, _l],
484
+ [
485
+ [
486
+ 0,
487
+ {
488
+ [_hQ]: _nT,
489
+ },
490
+ ],
491
+ [
492
+ 1,
493
+ {
494
+ [_hQ]: _mR,
495
+ },
496
+ ],
497
+ [
498
+ 0,
499
+ {
500
+ [_hQ]: _pi,
501
+ },
502
+ ],
503
+ [
504
+ 0,
505
+ {
506
+ [_hQ]: _aSw,
507
+ },
508
+ ],
509
+ [
510
+ 0,
511
+ {
512
+ [_hQ]: _s,
513
+ },
514
+ ],
515
+ [
516
+ 0,
517
+ {
518
+ [_hQ]: _l,
519
+ },
520
+ ],
521
+ ],
522
+ ];
523
+ var ListChecksResponse = [3, n0, _LCRi, 0, [_nT, _cS], [0, () => CheckSummaryList]];
524
+ var ListOrganizationRecommendationAccountsRequest = [
525
+ 3,
526
+ n0,
527
+ _LORAR,
528
+ 0,
529
+ [_nT, _mR, _oRI, _aAI],
530
+ [
531
+ [
532
+ 0,
533
+ {
534
+ [_hQ]: _nT,
535
+ },
536
+ ],
537
+ [
538
+ 1,
539
+ {
540
+ [_hQ]: _mR,
541
+ },
542
+ ],
543
+ [0, 1],
544
+ [
545
+ 0,
546
+ {
547
+ [_hQ]: _aAI,
548
+ },
549
+ ],
550
+ ],
551
+ ];
552
+ var ListOrganizationRecommendationAccountsResponse = [
553
+ 3,
554
+ n0,
555
+ _LORARi,
556
+ 0,
557
+ [_nT, _aRLS],
558
+ [0, [() => AccountRecommendationLifecycleSummaryList, 0]],
559
+ ];
560
+ var ListOrganizationRecommendationResourcesRequest = [
561
+ 3,
562
+ n0,
563
+ _LORRR,
564
+ 0,
565
+ [_nT, _mR, _st, _eS, _rC, _oRI, _aAI],
566
+ [
567
+ [
568
+ 0,
569
+ {
570
+ [_hQ]: _nT,
571
+ },
572
+ ],
573
+ [
574
+ 1,
575
+ {
576
+ [_hQ]: _mR,
577
+ },
578
+ ],
579
+ [
580
+ 0,
581
+ {
582
+ [_hQ]: _st,
583
+ },
584
+ ],
585
+ [
586
+ 0,
587
+ {
588
+ [_hQ]: _eS,
589
+ },
590
+ ],
591
+ [
592
+ 0,
593
+ {
594
+ [_hQ]: _rC,
595
+ },
596
+ ],
597
+ [0, 1],
598
+ [
599
+ 0,
600
+ {
601
+ [_hQ]: _aAI,
602
+ },
603
+ ],
604
+ ],
605
+ ];
606
+ var ListOrganizationRecommendationResourcesResponse = [
607
+ 3,
608
+ n0,
609
+ _LORRRi,
610
+ 0,
611
+ [_nT, _oRRS],
612
+ [0, () => OrganizationRecommendationResourceSummaryList],
613
+ ];
614
+ var ListOrganizationRecommendationsRequest = [
615
+ 3,
616
+ n0,
617
+ _LORR,
618
+ 0,
619
+ [_nT, _mR, _t, _st, _pi, _aSw, _s, _cI, _aLUA, _bLUA],
620
+ [
621
+ [
622
+ 0,
623
+ {
624
+ [_hQ]: _nT,
625
+ },
626
+ ],
627
+ [
628
+ 1,
629
+ {
630
+ [_hQ]: _mR,
631
+ },
632
+ ],
633
+ [
634
+ 0,
635
+ {
636
+ [_hQ]: _t,
637
+ },
638
+ ],
639
+ [
640
+ 0,
641
+ {
642
+ [_hQ]: _st,
643
+ },
644
+ ],
645
+ [
646
+ 0,
647
+ {
648
+ [_hQ]: _pi,
649
+ },
650
+ ],
651
+ [
652
+ 0,
653
+ {
654
+ [_hQ]: _aSw,
655
+ },
656
+ ],
657
+ [
658
+ 0,
659
+ {
660
+ [_hQ]: _s,
661
+ },
662
+ ],
663
+ [
664
+ 0,
665
+ {
666
+ [_hQ]: _cI,
667
+ },
668
+ ],
669
+ [
670
+ 4,
671
+ {
672
+ [_hQ]: _aLUA,
673
+ },
674
+ ],
675
+ [
676
+ 4,
677
+ {
678
+ [_hQ]: _bLUA,
679
+ },
680
+ ],
681
+ ],
682
+ ];
683
+ var ListOrganizationRecommendationsResponse = [
684
+ 3,
685
+ n0,
686
+ _LORRi,
687
+ 0,
688
+ [_nT, _oRS],
689
+ [0, () => OrganizationRecommendationSummaryList],
690
+ ];
691
+ var ListRecommendationResourcesRequest = [
692
+ 3,
693
+ n0,
694
+ _LRRR,
695
+ 0,
696
+ [_nT, _mR, _st, _eS, _rC, _rI],
697
+ [
698
+ [
699
+ 0,
700
+ {
701
+ [_hQ]: _nT,
702
+ },
703
+ ],
704
+ [
705
+ 1,
706
+ {
707
+ [_hQ]: _mR,
708
+ },
709
+ ],
710
+ [
711
+ 0,
712
+ {
713
+ [_hQ]: _st,
714
+ },
715
+ ],
716
+ [
717
+ 0,
718
+ {
719
+ [_hQ]: _eS,
720
+ },
721
+ ],
722
+ [
723
+ 0,
724
+ {
725
+ [_hQ]: _rC,
726
+ },
727
+ ],
728
+ [0, 1],
729
+ ],
730
+ ];
731
+ var ListRecommendationResourcesResponse = [
732
+ 3,
733
+ n0,
734
+ _LRRRi,
735
+ 0,
736
+ [_nT, _rRS],
737
+ [0, () => RecommendationResourceSummaryList],
738
+ ];
739
+ var ListRecommendationsRequest = [
740
+ 3,
741
+ n0,
742
+ _LRR,
743
+ 0,
744
+ [_nT, _mR, _t, _st, _pi, _aSw, _s, _cI, _aLUA, _bLUA],
745
+ [
746
+ [
747
+ 0,
748
+ {
749
+ [_hQ]: _nT,
750
+ },
751
+ ],
752
+ [
753
+ 1,
754
+ {
755
+ [_hQ]: _mR,
756
+ },
757
+ ],
758
+ [
759
+ 0,
760
+ {
761
+ [_hQ]: _t,
762
+ },
763
+ ],
764
+ [
765
+ 0,
766
+ {
767
+ [_hQ]: _st,
768
+ },
769
+ ],
770
+ [
771
+ 0,
772
+ {
773
+ [_hQ]: _pi,
774
+ },
775
+ ],
776
+ [
777
+ 0,
778
+ {
779
+ [_hQ]: _aSw,
780
+ },
781
+ ],
782
+ [
783
+ 0,
784
+ {
785
+ [_hQ]: _s,
786
+ },
787
+ ],
788
+ [
789
+ 0,
790
+ {
791
+ [_hQ]: _cI,
792
+ },
793
+ ],
794
+ [
795
+ 4,
796
+ {
797
+ [_hQ]: _aLUA,
798
+ },
799
+ ],
800
+ [
801
+ 4,
802
+ {
803
+ [_hQ]: _bLUA,
804
+ },
805
+ ],
806
+ ],
807
+ ];
808
+ var ListRecommendationsResponse = [
809
+ 3,
810
+ n0,
811
+ _LRRi,
812
+ 0,
813
+ [_nT, _rS],
814
+ [0, () => RecommendationSummaryList],
815
+ ];
816
+ var OrganizationRecommendation = [
817
+ 3,
818
+ n0,
819
+ _OR,
820
+ 0,
821
+ [_i, _t, _cA, _st, _lS, _p, _s, _aS, _n, _rA, _pSA, _cAr, _lUA, _a, _d, _cB, _uOBO, _uOBOJT, _uR, _uRC, _rAe],
822
+ [
823
+ 0,
824
+ 0,
825
+ 0,
826
+ 0,
827
+ 0,
828
+ 64 | 0,
829
+ 0,
830
+ 64 | 0,
831
+ 0,
832
+ () => RecommendationResourcesAggregates,
833
+ () => RecommendationPillarSpecificAggregates,
834
+ 5,
835
+ 5,
836
+ 0,
837
+ 0,
838
+ 0,
839
+ 0,
840
+ 0,
841
+ [() => RecommendationUpdateReason, 0],
842
+ 0,
843
+ 5,
844
+ ],
845
+ ];
846
+ var OrganizationRecommendationResourceSummary = [
847
+ 3,
848
+ n0,
849
+ _ORRS,
850
+ 0,
851
+ [_i, _a, _aRI, _rC, _st, _me, _lUA, _eS, _aI, _rAec],
852
+ [0, 0, 0, 0, 0, 128 | 0, 5, 0, 0, 0],
853
+ ];
854
+ var OrganizationRecommendationSummary = [
855
+ 3,
856
+ n0,
857
+ _ORS,
858
+ 0,
859
+ [_i, _t, _cA, _st, _lS, _p, _s, _aS, _n, _rA, _pSA, _cAr, _lUA, _a],
860
+ [
861
+ 0,
862
+ 0,
863
+ 0,
864
+ 0,
865
+ 0,
866
+ 64 | 0,
867
+ 0,
868
+ 64 | 0,
869
+ 0,
870
+ () => RecommendationResourcesAggregates,
871
+ () => RecommendationPillarSpecificAggregates,
872
+ 5,
873
+ 5,
874
+ 0,
875
+ ],
876
+ ];
877
+ var Recommendation = [
878
+ 3,
879
+ n0,
880
+ _R,
881
+ 0,
882
+ [_i, _t, _cA, _st, _lS, _p, _s, _aS, _n, _rA, _pSA, _cAr, _lUA, _a, _d, _cB, _uOBO, _uOBOJT, _uR, _uRC, _rAe],
883
+ [
884
+ 0,
885
+ 0,
886
+ 0,
887
+ 0,
888
+ 0,
889
+ 64 | 0,
890
+ 0,
891
+ 64 | 0,
892
+ 0,
893
+ () => RecommendationResourcesAggregates,
894
+ () => RecommendationPillarSpecificAggregates,
895
+ 5,
896
+ 5,
897
+ 0,
898
+ 0,
899
+ 0,
900
+ 0,
901
+ 0,
902
+ [() => RecommendationUpdateReason, 0],
903
+ 0,
904
+ 5,
905
+ ],
906
+ ];
907
+ var RecommendationCostOptimizingAggregates = [3, n0, _RCOA, 0, [_eMS, _ePMS], [1, 1]];
908
+ var RecommendationPillarSpecificAggregates = [
909
+ 3,
910
+ n0,
911
+ _RPSA,
912
+ 0,
913
+ [_cO],
914
+ [() => RecommendationCostOptimizingAggregates],
915
+ ];
916
+ var RecommendationResourceExclusion = [3, n0, _RRE, 0, [_a, _iE], [0, 2]];
917
+ var RecommendationResourcesAggregates = [3, n0, _RRA, 0, [_oC, _wC, _eC], [1, 1, 1]];
918
+ var RecommendationResourceSummary = [
919
+ 3,
920
+ n0,
921
+ _RRS,
922
+ 0,
923
+ [_i, _a, _aRI, _rC, _st, _me, _lUA, _eS, _rAec],
924
+ [0, 0, 0, 0, 0, 128 | 0, 5, 0, 0],
925
+ ];
926
+ var RecommendationSummary = [
927
+ 3,
928
+ n0,
929
+ _RS,
930
+ 0,
931
+ [_i, _t, _cA, _st, _lS, _p, _s, _aS, _n, _rA, _pSA, _cAr, _lUA, _a],
932
+ [
933
+ 0,
934
+ 0,
935
+ 0,
936
+ 0,
937
+ 0,
938
+ 64 | 0,
939
+ 0,
940
+ 64 | 0,
941
+ 0,
942
+ () => RecommendationResourcesAggregates,
943
+ () => RecommendationPillarSpecificAggregates,
944
+ 5,
945
+ 5,
946
+ 0,
947
+ ],
948
+ ];
949
+ var ResourceNotFoundException = [
950
+ -3,
951
+ n0,
952
+ _RNFE,
953
+ {
954
+ [_e]: _c,
955
+ [_hE]: 404,
956
+ },
957
+ [_m],
958
+ [0],
959
+ ];
960
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
961
+ var ThrottlingException = [
962
+ -3,
963
+ n0,
964
+ _TE,
965
+ {
966
+ [_e]: _c,
967
+ [_hE]: 429,
968
+ },
969
+ [_m],
970
+ [0],
971
+ ];
972
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
973
+ var UpdateOrganizationRecommendationLifecycleRequest = [
974
+ 3,
975
+ n0,
976
+ _UORLR,
977
+ 0,
978
+ [_lS, _uR, _uRC, _oRI],
979
+ [0, [() => RecommendationUpdateReason, 0], 0, [0, 1]],
980
+ ];
981
+ var UpdateRecommendationLifecycleRequest = [
982
+ 3,
983
+ n0,
984
+ _URLR,
985
+ 0,
986
+ [_lS, _uR, _uRC, _rI],
987
+ [0, [() => RecommendationUpdateReason, 0], 0, [0, 1]],
988
+ ];
989
+ var UpdateRecommendationResourceExclusionError = [
990
+ 3,
991
+ n0,
992
+ _URREE,
993
+ 0,
994
+ [_a, _eCr, _eM],
995
+ [0, 0, 0],
996
+ ];
997
+ var ValidationException = [
998
+ -3,
999
+ n0,
1000
+ _VE,
1001
+ {
1002
+ [_e]: _c,
1003
+ [_hE]: 400,
1004
+ },
1005
+ [_m],
1006
+ [0],
1007
+ ];
1008
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
1009
+ var __Unit = "unit";
1010
+ var TrustedAdvisorServiceException = [-3, _sm, "TrustedAdvisorServiceException", 0, [], []];
1011
+ schema.TypeRegistry.for(_sm).registerError(TrustedAdvisorServiceException, TrustedAdvisorServiceException$1);
1012
+ var AccountRecommendationLifecycleSummaryList = [
1013
+ 1,
1014
+ n0,
1015
+ _ARLSL,
1016
+ 0,
1017
+ [() => AccountRecommendationLifecycleSummary, 0],
1018
+ ];
1019
+ var CheckSummaryList = [1, n0, _CSL, 0, () => CheckSummary];
1020
+ var OrganizationRecommendationResourceSummaryList = [
1021
+ 1,
1022
+ n0,
1023
+ _ORRSL,
1024
+ 0,
1025
+ () => OrganizationRecommendationResourceSummary,
1026
+ ];
1027
+ var OrganizationRecommendationSummaryList = [
1028
+ 1,
1029
+ n0,
1030
+ _ORSL,
1031
+ 0,
1032
+ () => OrganizationRecommendationSummary,
1033
+ ];
1034
+ var RecommendationResourceExclusionList = [
1035
+ 1,
1036
+ n0,
1037
+ _RREL,
1038
+ 0,
1039
+ () => RecommendationResourceExclusion,
1040
+ ];
1041
+ var RecommendationResourceSummaryList = [1, n0, _RRSL, 0, () => RecommendationResourceSummary];
1042
+ var RecommendationSummaryList = [1, n0, _RSL, 0, () => RecommendationSummary];
1043
+ var UpdateRecommendationResourceExclusionErrorList = [
1044
+ 1,
1045
+ n0,
1046
+ _URREEL,
1047
+ 0,
1048
+ () => UpdateRecommendationResourceExclusionError,
1049
+ ];
1050
+ var BatchUpdateRecommendationResourceExclusion = [
1051
+ 9,
1052
+ n0,
1053
+ _BURRE,
1054
+ {
1055
+ [_h]: ["PUT", "/v1/batch-update-recommendation-resource-exclusion", 200],
1056
+ },
1057
+ () => BatchUpdateRecommendationResourceExclusionRequest,
1058
+ () => BatchUpdateRecommendationResourceExclusionResponse,
1059
+ ];
1060
+ var GetOrganizationRecommendation = [
1061
+ 9,
1062
+ n0,
1063
+ _GOR,
1064
+ {
1065
+ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}", 200],
1066
+ },
1067
+ () => GetOrganizationRecommendationRequest,
1068
+ () => GetOrganizationRecommendationResponse,
1069
+ ];
1070
+ var GetRecommendation = [
1071
+ 9,
1072
+ n0,
1073
+ _GR,
1074
+ {
1075
+ [_h]: ["GET", "/v1/recommendations/{recommendationIdentifier}", 200],
1076
+ },
1077
+ () => GetRecommendationRequest,
1078
+ () => GetRecommendationResponse,
1079
+ ];
1080
+ var ListChecks = [
1081
+ 9,
1082
+ n0,
1083
+ _LC,
1084
+ {
1085
+ [_h]: ["GET", "/v1/checks", 200],
1086
+ },
1087
+ () => ListChecksRequest,
1088
+ () => ListChecksResponse,
1089
+ ];
1090
+ var ListOrganizationRecommendationAccounts = [
1091
+ 9,
1092
+ n0,
1093
+ _LORA,
1094
+ {
1095
+ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts", 200],
1096
+ },
1097
+ () => ListOrganizationRecommendationAccountsRequest,
1098
+ () => ListOrganizationRecommendationAccountsResponse,
1099
+ ];
1100
+ var ListOrganizationRecommendationResources = [
1101
+ 9,
1102
+ n0,
1103
+ _LORRis,
1104
+ {
1105
+ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources", 200],
1106
+ },
1107
+ () => ListOrganizationRecommendationResourcesRequest,
1108
+ () => ListOrganizationRecommendationResourcesResponse,
1109
+ ];
1110
+ var ListOrganizationRecommendations = [
1111
+ 9,
1112
+ n0,
1113
+ _LOR,
1114
+ {
1115
+ [_h]: ["GET", "/v1/organization-recommendations", 200],
1116
+ },
1117
+ () => ListOrganizationRecommendationsRequest,
1118
+ () => ListOrganizationRecommendationsResponse,
1119
+ ];
1120
+ var ListRecommendationResources = [
1121
+ 9,
1122
+ n0,
1123
+ _LRRis,
1124
+ {
1125
+ [_h]: ["GET", "/v1/recommendations/{recommendationIdentifier}/resources", 200],
1126
+ },
1127
+ () => ListRecommendationResourcesRequest,
1128
+ () => ListRecommendationResourcesResponse,
1129
+ ];
1130
+ var ListRecommendations = [
1131
+ 9,
1132
+ n0,
1133
+ _LR,
1134
+ {
1135
+ [_h]: ["GET", "/v1/recommendations", 200],
1136
+ },
1137
+ () => ListRecommendationsRequest,
1138
+ () => ListRecommendationsResponse,
1139
+ ];
1140
+ var UpdateOrganizationRecommendationLifecycle = [
1141
+ 9,
1142
+ n0,
1143
+ _UORL,
1144
+ {
1145
+ [_h]: ["PUT", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle", 200],
1146
+ },
1147
+ () => UpdateOrganizationRecommendationLifecycleRequest,
1148
+ () => __Unit,
1149
+ ];
1150
+ var UpdateRecommendationLifecycle = [
1151
+ 9,
1152
+ n0,
1153
+ _URL,
1154
+ {
1155
+ [_h]: ["PUT", "/v1/recommendations/{recommendationIdentifier}/lifecycle", 200],
1156
+ },
1157
+ () => UpdateRecommendationLifecycleRequest,
1158
+ () => __Unit,
1159
+ ];
935
1160
 
936
1161
  class BatchUpdateRecommendationResourceExclusionCommand extends smithyClient.Command
937
1162
  .classBuilder()
938
1163
  .ep(commonParams)
939
1164
  .m(function (Command, cs, config, o) {
940
- return [
941
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
942
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
943
- ];
1165
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
944
1166
  })
945
1167
  .s("TrustedAdvisor", "BatchUpdateRecommendationResourceExclusion", {})
946
1168
  .n("TrustedAdvisorClient", "BatchUpdateRecommendationResourceExclusionCommand")
947
- .f(void 0, void 0)
948
- .ser(se_BatchUpdateRecommendationResourceExclusionCommand)
949
- .de(de_BatchUpdateRecommendationResourceExclusionCommand)
1169
+ .sc(BatchUpdateRecommendationResourceExclusion)
950
1170
  .build() {
951
1171
  }
952
1172
 
@@ -954,16 +1174,11 @@ class GetOrganizationRecommendationCommand extends smithyClient.Command
954
1174
  .classBuilder()
955
1175
  .ep(commonParams)
956
1176
  .m(function (Command, cs, config, o) {
957
- return [
958
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
959
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
960
- ];
1177
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
961
1178
  })
962
1179
  .s("TrustedAdvisor", "GetOrganizationRecommendation", {})
963
1180
  .n("TrustedAdvisorClient", "GetOrganizationRecommendationCommand")
964
- .f(void 0, GetOrganizationRecommendationResponseFilterSensitiveLog)
965
- .ser(se_GetOrganizationRecommendationCommand)
966
- .de(de_GetOrganizationRecommendationCommand)
1181
+ .sc(GetOrganizationRecommendation)
967
1182
  .build() {
968
1183
  }
969
1184
 
@@ -971,16 +1186,11 @@ class GetRecommendationCommand extends smithyClient.Command
971
1186
  .classBuilder()
972
1187
  .ep(commonParams)
973
1188
  .m(function (Command, cs, config, o) {
974
- return [
975
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
976
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
977
- ];
1189
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
978
1190
  })
979
1191
  .s("TrustedAdvisor", "GetRecommendation", {})
980
1192
  .n("TrustedAdvisorClient", "GetRecommendationCommand")
981
- .f(void 0, GetRecommendationResponseFilterSensitiveLog)
982
- .ser(se_GetRecommendationCommand)
983
- .de(de_GetRecommendationCommand)
1193
+ .sc(GetRecommendation)
984
1194
  .build() {
985
1195
  }
986
1196
 
@@ -988,16 +1198,11 @@ class ListChecksCommand extends smithyClient.Command
988
1198
  .classBuilder()
989
1199
  .ep(commonParams)
990
1200
  .m(function (Command, cs, config, o) {
991
- return [
992
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
993
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
994
- ];
1201
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
995
1202
  })
996
1203
  .s("TrustedAdvisor", "ListChecks", {})
997
1204
  .n("TrustedAdvisorClient", "ListChecksCommand")
998
- .f(void 0, void 0)
999
- .ser(se_ListChecksCommand)
1000
- .de(de_ListChecksCommand)
1205
+ .sc(ListChecks)
1001
1206
  .build() {
1002
1207
  }
1003
1208
 
@@ -1005,16 +1210,11 @@ class ListOrganizationRecommendationAccountsCommand extends smithyClient.Command
1005
1210
  .classBuilder()
1006
1211
  .ep(commonParams)
1007
1212
  .m(function (Command, cs, config, o) {
1008
- return [
1009
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1010
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1011
- ];
1213
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1012
1214
  })
1013
1215
  .s("TrustedAdvisor", "ListOrganizationRecommendationAccounts", {})
1014
1216
  .n("TrustedAdvisorClient", "ListOrganizationRecommendationAccountsCommand")
1015
- .f(void 0, ListOrganizationRecommendationAccountsResponseFilterSensitiveLog)
1016
- .ser(se_ListOrganizationRecommendationAccountsCommand)
1017
- .de(de_ListOrganizationRecommendationAccountsCommand)
1217
+ .sc(ListOrganizationRecommendationAccounts)
1018
1218
  .build() {
1019
1219
  }
1020
1220
 
@@ -1022,16 +1222,11 @@ class ListOrganizationRecommendationResourcesCommand extends smithyClient.Comman
1022
1222
  .classBuilder()
1023
1223
  .ep(commonParams)
1024
1224
  .m(function (Command, cs, config, o) {
1025
- return [
1026
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1027
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1028
- ];
1225
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1029
1226
  })
1030
1227
  .s("TrustedAdvisor", "ListOrganizationRecommendationResources", {})
1031
1228
  .n("TrustedAdvisorClient", "ListOrganizationRecommendationResourcesCommand")
1032
- .f(void 0, void 0)
1033
- .ser(se_ListOrganizationRecommendationResourcesCommand)
1034
- .de(de_ListOrganizationRecommendationResourcesCommand)
1229
+ .sc(ListOrganizationRecommendationResources)
1035
1230
  .build() {
1036
1231
  }
1037
1232
 
@@ -1039,16 +1234,11 @@ class ListOrganizationRecommendationsCommand extends smithyClient.Command
1039
1234
  .classBuilder()
1040
1235
  .ep(commonParams)
1041
1236
  .m(function (Command, cs, config, o) {
1042
- return [
1043
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1044
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1045
- ];
1237
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1046
1238
  })
1047
1239
  .s("TrustedAdvisor", "ListOrganizationRecommendations", {})
1048
1240
  .n("TrustedAdvisorClient", "ListOrganizationRecommendationsCommand")
1049
- .f(void 0, void 0)
1050
- .ser(se_ListOrganizationRecommendationsCommand)
1051
- .de(de_ListOrganizationRecommendationsCommand)
1241
+ .sc(ListOrganizationRecommendations)
1052
1242
  .build() {
1053
1243
  }
1054
1244
 
@@ -1056,16 +1246,11 @@ class ListRecommendationResourcesCommand extends smithyClient.Command
1056
1246
  .classBuilder()
1057
1247
  .ep(commonParams)
1058
1248
  .m(function (Command, cs, config, o) {
1059
- return [
1060
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1061
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1062
- ];
1249
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1063
1250
  })
1064
1251
  .s("TrustedAdvisor", "ListRecommendationResources", {})
1065
1252
  .n("TrustedAdvisorClient", "ListRecommendationResourcesCommand")
1066
- .f(void 0, void 0)
1067
- .ser(se_ListRecommendationResourcesCommand)
1068
- .de(de_ListRecommendationResourcesCommand)
1253
+ .sc(ListRecommendationResources)
1069
1254
  .build() {
1070
1255
  }
1071
1256
 
@@ -1073,16 +1258,11 @@ class ListRecommendationsCommand extends smithyClient.Command
1073
1258
  .classBuilder()
1074
1259
  .ep(commonParams)
1075
1260
  .m(function (Command, cs, config, o) {
1076
- return [
1077
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1078
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1079
- ];
1261
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1080
1262
  })
1081
1263
  .s("TrustedAdvisor", "ListRecommendations", {})
1082
1264
  .n("TrustedAdvisorClient", "ListRecommendationsCommand")
1083
- .f(void 0, void 0)
1084
- .ser(se_ListRecommendationsCommand)
1085
- .de(de_ListRecommendationsCommand)
1265
+ .sc(ListRecommendations)
1086
1266
  .build() {
1087
1267
  }
1088
1268
 
@@ -1090,16 +1270,11 @@ class UpdateOrganizationRecommendationLifecycleCommand extends smithyClient.Comm
1090
1270
  .classBuilder()
1091
1271
  .ep(commonParams)
1092
1272
  .m(function (Command, cs, config, o) {
1093
- return [
1094
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1095
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1096
- ];
1273
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1097
1274
  })
1098
1275
  .s("TrustedAdvisor", "UpdateOrganizationRecommendationLifecycle", {})
1099
1276
  .n("TrustedAdvisorClient", "UpdateOrganizationRecommendationLifecycleCommand")
1100
- .f(UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog, void 0)
1101
- .ser(se_UpdateOrganizationRecommendationLifecycleCommand)
1102
- .de(de_UpdateOrganizationRecommendationLifecycleCommand)
1277
+ .sc(UpdateOrganizationRecommendationLifecycle)
1103
1278
  .build() {
1104
1279
  }
1105
1280
 
@@ -1107,16 +1282,11 @@ class UpdateRecommendationLifecycleCommand extends smithyClient.Command
1107
1282
  .classBuilder()
1108
1283
  .ep(commonParams)
1109
1284
  .m(function (Command, cs, config, o) {
1110
- return [
1111
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1112
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1113
- ];
1285
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1114
1286
  })
1115
1287
  .s("TrustedAdvisor", "UpdateRecommendationLifecycle", {})
1116
1288
  .n("TrustedAdvisorClient", "UpdateRecommendationLifecycleCommand")
1117
- .f(UpdateRecommendationLifecycleRequestFilterSensitiveLog, void 0)
1118
- .ser(se_UpdateRecommendationLifecycleCommand)
1119
- .de(de_UpdateRecommendationLifecycleCommand)
1289
+ .sc(UpdateRecommendationLifecycle)
1120
1290
  .build() {
1121
1291
  }
1122
1292
 
@@ -1157,44 +1327,36 @@ Object.defineProperty(exports, "__Client", {
1157
1327
  enumerable: true,
1158
1328
  get: function () { return smithyClient.Client; }
1159
1329
  });
1160
- exports.AccessDeniedException = AccessDeniedException;
1161
- exports.AccountRecommendationLifecycleSummaryFilterSensitiveLog = AccountRecommendationLifecycleSummaryFilterSensitiveLog;
1330
+ exports.AccessDeniedException = AccessDeniedException$1;
1162
1331
  exports.BatchUpdateRecommendationResourceExclusionCommand = BatchUpdateRecommendationResourceExclusionCommand;
1163
- exports.ConflictException = ConflictException;
1332
+ exports.ConflictException = ConflictException$1;
1164
1333
  exports.ExclusionStatus = ExclusionStatus;
1165
1334
  exports.GetOrganizationRecommendationCommand = GetOrganizationRecommendationCommand;
1166
- exports.GetOrganizationRecommendationResponseFilterSensitiveLog = GetOrganizationRecommendationResponseFilterSensitiveLog;
1167
1335
  exports.GetRecommendationCommand = GetRecommendationCommand;
1168
- exports.GetRecommendationResponseFilterSensitiveLog = GetRecommendationResponseFilterSensitiveLog;
1169
- exports.InternalServerException = InternalServerException;
1336
+ exports.InternalServerException = InternalServerException$1;
1170
1337
  exports.ListChecksCommand = ListChecksCommand;
1171
1338
  exports.ListOrganizationRecommendationAccountsCommand = ListOrganizationRecommendationAccountsCommand;
1172
- exports.ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = ListOrganizationRecommendationAccountsResponseFilterSensitiveLog;
1173
1339
  exports.ListOrganizationRecommendationResourcesCommand = ListOrganizationRecommendationResourcesCommand;
1174
1340
  exports.ListOrganizationRecommendationsCommand = ListOrganizationRecommendationsCommand;
1175
1341
  exports.ListRecommendationResourcesCommand = ListRecommendationResourcesCommand;
1176
1342
  exports.ListRecommendationsCommand = ListRecommendationsCommand;
1177
- exports.OrganizationRecommendationFilterSensitiveLog = OrganizationRecommendationFilterSensitiveLog;
1178
- exports.RecommendationFilterSensitiveLog = RecommendationFilterSensitiveLog;
1179
1343
  exports.RecommendationLanguage = RecommendationLanguage;
1180
1344
  exports.RecommendationLifecycleStage = RecommendationLifecycleStage;
1181
1345
  exports.RecommendationPillar = RecommendationPillar;
1182
1346
  exports.RecommendationSource = RecommendationSource;
1183
1347
  exports.RecommendationStatus = RecommendationStatus;
1184
1348
  exports.RecommendationType = RecommendationType;
1185
- exports.ResourceNotFoundException = ResourceNotFoundException;
1349
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1186
1350
  exports.ResourceStatus = ResourceStatus;
1187
- exports.ThrottlingException = ThrottlingException;
1351
+ exports.ThrottlingException = ThrottlingException$1;
1188
1352
  exports.TrustedAdvisor = TrustedAdvisor;
1189
1353
  exports.TrustedAdvisorClient = TrustedAdvisorClient;
1190
- exports.TrustedAdvisorServiceException = TrustedAdvisorServiceException;
1354
+ exports.TrustedAdvisorServiceException = TrustedAdvisorServiceException$1;
1191
1355
  exports.UpdateOrganizationRecommendationLifecycleCommand = UpdateOrganizationRecommendationLifecycleCommand;
1192
- exports.UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog;
1193
1356
  exports.UpdateRecommendationLifecycleCommand = UpdateRecommendationLifecycleCommand;
1194
- exports.UpdateRecommendationLifecycleRequestFilterSensitiveLog = UpdateRecommendationLifecycleRequestFilterSensitiveLog;
1195
1357
  exports.UpdateRecommendationLifecycleStage = UpdateRecommendationLifecycleStage;
1196
1358
  exports.UpdateRecommendationLifecycleStageReasonCode = UpdateRecommendationLifecycleStageReasonCode;
1197
- exports.ValidationException = ValidationException;
1359
+ exports.ValidationException = ValidationException$1;
1198
1360
  exports.paginateListChecks = paginateListChecks;
1199
1361
  exports.paginateListOrganizationRecommendationAccounts = paginateListOrganizationRecommendationAccounts;
1200
1362
  exports.paginateListOrganizationRecommendationResources = paginateListOrganizationRecommendationResources;