@aws-sdk/client-trustedadvisor 3.564.0 → 3.565.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -203,6 +203,14 @@ see LICENSE for more information.
203
203
 
204
204
  ## Client Commands (Operations List)
205
205
 
206
+ <details>
207
+ <summary>
208
+ BatchUpdateRecommendationResourceExclusion
209
+ </summary>
210
+
211
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/trustedadvisor/command/BatchUpdateRecommendationResourceExclusionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-trustedadvisor/Interface/BatchUpdateRecommendationResourceExclusionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-trustedadvisor/Interface/BatchUpdateRecommendationResourceExclusionCommandOutput/)
212
+
213
+ </details>
206
214
  <details>
207
215
  <summary>
208
216
  GetOrganizationRecommendation
package/dist-cjs/index.js CHANGED
@@ -23,7 +23,9 @@ var src_exports = {};
23
23
  __export(src_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
25
  AccountRecommendationLifecycleSummaryFilterSensitiveLog: () => AccountRecommendationLifecycleSummaryFilterSensitiveLog,
26
+ BatchUpdateRecommendationResourceExclusionCommand: () => BatchUpdateRecommendationResourceExclusionCommand,
26
27
  ConflictException: () => ConflictException,
28
+ ExclusionStatus: () => ExclusionStatus,
27
29
  GetOrganizationRecommendationCommand: () => GetOrganizationRecommendationCommand,
28
30
  GetOrganizationRecommendationResponseFilterSensitiveLog: () => GetOrganizationRecommendationResponseFilterSensitiveLog,
29
31
  GetRecommendationCommand: () => GetRecommendationCommand,
@@ -213,12 +215,17 @@ var TrustedAdvisorClient = _TrustedAdvisorClient;
213
215
  // src/TrustedAdvisor.ts
214
216
 
215
217
 
216
- // src/commands/GetOrganizationRecommendationCommand.ts
218
+ // src/commands/BatchUpdateRecommendationResourceExclusionCommand.ts
217
219
 
218
220
  var import_middleware_serde = require("@smithy/middleware-serde");
219
221
 
220
222
  var import_types = require("@smithy/types");
221
223
 
224
+ // src/protocols/Aws_restJson1.ts
225
+ var import_core2 = require("@aws-sdk/core");
226
+
227
+
228
+
222
229
  // src/models/models_0.ts
223
230
 
224
231
 
@@ -269,29 +276,6 @@ var UpdateRecommendationLifecycleStageReasonCode = {
269
276
  TEMPORARY_ACCOUNT: "temporary_account",
270
277
  VALID_BUSINESS_CASE: "valid_business_case"
271
278
  };
272
- var RecommendationPillar = {
273
- COST_OPTIMIZING: "cost_optimizing",
274
- FAULT_TOLERANCE: "fault_tolerance",
275
- OPERATIONAL_EXCELLENCE: "operational_excellence",
276
- PERFORMANCE: "performance",
277
- SECURITY: "security",
278
- SERVICE_LIMITS: "service_limits"
279
- };
280
- var RecommendationSource = {
281
- AWS_CONFIG: "aws_config",
282
- COMPUTE_OPTIMIZER: "compute_optimizer",
283
- COST_EXPLORER: "cost_explorer",
284
- LSE: "lse",
285
- MANUAL: "manual",
286
- PSE: "pse",
287
- RDS: "rds",
288
- RESILIENCE: "resilience",
289
- RESILIENCE_HUB: "resilience_hub",
290
- SECURITY_HUB: "security_hub",
291
- STIR: "stir",
292
- TA_CHECK: "ta_check",
293
- WELL_ARCHITECTED: "well_architected"
294
- };
295
279
  var _ConflictException = class _ConflictException extends TrustedAdvisorServiceException {
296
280
  /**
297
281
  * @internal
@@ -309,15 +293,6 @@ var _ConflictException = class _ConflictException extends TrustedAdvisorServiceE
309
293
  };
310
294
  __name(_ConflictException, "ConflictException");
311
295
  var ConflictException = _ConflictException;
312
- var RecommendationStatus = {
313
- ERROR: "error",
314
- OK: "ok",
315
- WARNING: "warning"
316
- };
317
- var RecommendationType = {
318
- PRIORITY: "priority",
319
- STANDARD: "standard"
320
- };
321
296
  var _InternalServerException = class _InternalServerException extends TrustedAdvisorServiceException {
322
297
  /**
323
298
  * @internal
@@ -336,23 +311,6 @@ var _InternalServerException = class _InternalServerException extends TrustedAdv
336
311
  };
337
312
  __name(_InternalServerException, "InternalServerException");
338
313
  var InternalServerException = _InternalServerException;
339
- var _ResourceNotFoundException = class _ResourceNotFoundException extends TrustedAdvisorServiceException {
340
- /**
341
- * @internal
342
- */
343
- constructor(opts) {
344
- super({
345
- name: "ResourceNotFoundException",
346
- $fault: "client",
347
- ...opts
348
- });
349
- this.name = "ResourceNotFoundException";
350
- this.$fault = "client";
351
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
352
- }
353
- };
354
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
355
- var ResourceNotFoundException = _ResourceNotFoundException;
356
314
  var _ThrottlingException = class _ThrottlingException extends TrustedAdvisorServiceException {
357
315
  /**
358
316
  * @internal
@@ -390,6 +348,59 @@ var _ValidationException = class _ValidationException extends TrustedAdvisorServ
390
348
  };
391
349
  __name(_ValidationException, "ValidationException");
392
350
  var ValidationException = _ValidationException;
351
+ var RecommendationPillar = {
352
+ COST_OPTIMIZING: "cost_optimizing",
353
+ FAULT_TOLERANCE: "fault_tolerance",
354
+ OPERATIONAL_EXCELLENCE: "operational_excellence",
355
+ PERFORMANCE: "performance",
356
+ SECURITY: "security",
357
+ SERVICE_LIMITS: "service_limits"
358
+ };
359
+ var RecommendationSource = {
360
+ AWS_CONFIG: "aws_config",
361
+ COMPUTE_OPTIMIZER: "compute_optimizer",
362
+ COST_EXPLORER: "cost_explorer",
363
+ LSE: "lse",
364
+ MANUAL: "manual",
365
+ PSE: "pse",
366
+ RDS: "rds",
367
+ RESILIENCE: "resilience",
368
+ RESILIENCE_HUB: "resilience_hub",
369
+ SECURITY_HUB: "security_hub",
370
+ STIR: "stir",
371
+ TA_CHECK: "ta_check",
372
+ WELL_ARCHITECTED: "well_architected"
373
+ };
374
+ var ExclusionStatus = {
375
+ EXCLUDED: "excluded",
376
+ INCLUDED: "included"
377
+ };
378
+ var RecommendationStatus = {
379
+ ERROR: "error",
380
+ OK: "ok",
381
+ WARNING: "warning"
382
+ };
383
+ var RecommendationType = {
384
+ PRIORITY: "priority",
385
+ STANDARD: "standard"
386
+ };
387
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends TrustedAdvisorServiceException {
388
+ /**
389
+ * @internal
390
+ */
391
+ constructor(opts) {
392
+ super({
393
+ name: "ResourceNotFoundException",
394
+ $fault: "client",
395
+ ...opts
396
+ });
397
+ this.name = "ResourceNotFoundException";
398
+ this.$fault = "client";
399
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
400
+ }
401
+ };
402
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
403
+ var ResourceNotFoundException = _ResourceNotFoundException;
393
404
  var RecommendationLanguage = {
394
405
  BAHASA_INDONESIA: "id",
395
406
  BRAZILIAN_PORTUGUESE: "pt_BR",
@@ -454,9 +465,21 @@ var UpdateRecommendationLifecycleRequestFilterSensitiveLog = /* @__PURE__ */ __n
454
465
  }), "UpdateRecommendationLifecycleRequestFilterSensitiveLog");
455
466
 
456
467
  // src/protocols/Aws_restJson1.ts
457
- var import_core2 = require("@aws-sdk/core");
458
-
459
-
468
+ var se_BatchUpdateRecommendationResourceExclusionCommand = /* @__PURE__ */ __name(async (input, context) => {
469
+ const b = (0, import_core.requestBuilder)(input, context);
470
+ const headers = {
471
+ "content-type": "application/json"
472
+ };
473
+ b.bp("/v1/batch-update-recommendation-resource-exclusion");
474
+ let body;
475
+ body = JSON.stringify(
476
+ (0, import_smithy_client.take)(input, {
477
+ recommendationResourceExclusions: (_) => (0, import_smithy_client._json)(_)
478
+ })
479
+ );
480
+ b.m("PUT").h(headers).b(body);
481
+ return b.build();
482
+ }, "se_BatchUpdateRecommendationResourceExclusionCommand");
460
483
  var se_GetOrganizationRecommendationCommand = /* @__PURE__ */ __name(async (input, context) => {
461
484
  const b = (0, import_core.requestBuilder)(input, context);
462
485
  const headers = {};
@@ -529,6 +552,7 @@ var se_ListOrganizationRecommendationResourcesCommand = /* @__PURE__ */ __name(a
529
552
  [_nT]: [, input[_nT]],
530
553
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
531
554
  [_st]: [, input[_st]],
555
+ [_eS]: [, input[_eS]],
532
556
  [_rC]: [, input[_rC]],
533
557
  [_aAI]: [, input[_aAI]]
534
558
  });
@@ -571,6 +595,7 @@ var se_ListRecommendationResourcesCommand = /* @__PURE__ */ __name(async (input,
571
595
  [_nT]: [, input[_nT]],
572
596
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
573
597
  [_st]: [, input[_st]],
598
+ [_eS]: [, input[_eS]],
574
599
  [_rC]: [, input[_rC]]
575
600
  });
576
601
  let body;
@@ -644,6 +669,20 @@ var se_UpdateRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (inpu
644
669
  b.m("PUT").h(headers).b(body);
645
670
  return b.build();
646
671
  }, "se_UpdateRecommendationLifecycleCommand");
672
+ var de_BatchUpdateRecommendationResourceExclusionCommand = /* @__PURE__ */ __name(async (output, context) => {
673
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
674
+ return de_CommandError(output, context);
675
+ }
676
+ const contents = (0, import_smithy_client.map)({
677
+ $metadata: deserializeMetadata(output)
678
+ });
679
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
680
+ const doc = (0, import_smithy_client.take)(data, {
681
+ batchUpdateRecommendationResourceExclusionErrors: import_smithy_client._json
682
+ });
683
+ Object.assign(contents, doc);
684
+ return contents;
685
+ }, "de_BatchUpdateRecommendationResourceExclusionCommand");
647
686
  var de_GetOrganizationRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {
648
687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
649
688
  return de_CommandError(output, context);
@@ -792,21 +831,21 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
792
831
  case "AccessDeniedException":
793
832
  case "com.amazonaws.trustedadvisor#AccessDeniedException":
794
833
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
834
+ case "ConflictException":
835
+ case "com.amazonaws.trustedadvisor#ConflictException":
836
+ throw await de_ConflictExceptionRes(parsedOutput, context);
795
837
  case "InternalServerException":
796
838
  case "com.amazonaws.trustedadvisor#InternalServerException":
797
839
  throw await de_InternalServerExceptionRes(parsedOutput, context);
798
- case "ResourceNotFoundException":
799
- case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
800
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
801
840
  case "ThrottlingException":
802
841
  case "com.amazonaws.trustedadvisor#ThrottlingException":
803
842
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
804
843
  case "ValidationException":
805
844
  case "com.amazonaws.trustedadvisor#ValidationException":
806
845
  throw await de_ValidationExceptionRes(parsedOutput, context);
807
- case "ConflictException":
808
- case "com.amazonaws.trustedadvisor#ConflictException":
809
- throw await de_ConflictExceptionRes(parsedOutput, context);
846
+ case "ResourceNotFoundException":
847
+ case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
848
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
810
849
  default:
811
850
  const parsedBody = parsedOutput.body;
812
851
  return throwDefaultError({
@@ -943,6 +982,7 @@ var de_OrganizationRecommendationResourceSummary = /* @__PURE__ */ __name((outpu
943
982
  accountId: import_smithy_client.expectString,
944
983
  arn: import_smithy_client.expectString,
945
984
  awsResourceId: import_smithy_client.expectString,
985
+ exclusionStatus: import_smithy_client.expectString,
946
986
  id: import_smithy_client.expectString,
947
987
  lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
948
988
  metadata: import_smithy_client._json,
@@ -1021,6 +1061,7 @@ var de_RecommendationResourceSummary = /* @__PURE__ */ __name((output, context)
1021
1061
  return (0, import_smithy_client.take)(output, {
1022
1062
  arn: import_smithy_client.expectString,
1023
1063
  awsResourceId: import_smithy_client.expectString,
1064
+ exclusionStatus: import_smithy_client.expectString,
1024
1065
  id: import_smithy_client.expectString,
1025
1066
  lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1026
1067
  metadata: import_smithy_client._json,
@@ -1070,6 +1111,7 @@ var _aLUA = "afterLastUpdatedAt";
1070
1111
  var _aS = "awsService";
1071
1112
  var _bLUA = "beforeLastUpdatedAt";
1072
1113
  var _cI = "checkIdentifier";
1114
+ var _eS = "exclusionStatus";
1073
1115
  var _l = "language";
1074
1116
  var _mR = "maxResults";
1075
1117
  var _nT = "nextToken";
@@ -1079,7 +1121,24 @@ var _s = "source";
1079
1121
  var _st = "status";
1080
1122
  var _t = "type";
1081
1123
 
1124
+ // src/commands/BatchUpdateRecommendationResourceExclusionCommand.ts
1125
+ var _BatchUpdateRecommendationResourceExclusionCommand = class _BatchUpdateRecommendationResourceExclusionCommand extends import_smithy_client.Command.classBuilder().ep({
1126
+ ...commonParams
1127
+ }).m(function(Command, cs, config, o) {
1128
+ return [
1129
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1130
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1131
+ ];
1132
+ }).s("TrustedAdvisor", "BatchUpdateRecommendationResourceExclusion", {}).n("TrustedAdvisorClient", "BatchUpdateRecommendationResourceExclusionCommand").f(void 0, void 0).ser(se_BatchUpdateRecommendationResourceExclusionCommand).de(de_BatchUpdateRecommendationResourceExclusionCommand).build() {
1133
+ };
1134
+ __name(_BatchUpdateRecommendationResourceExclusionCommand, "BatchUpdateRecommendationResourceExclusionCommand");
1135
+ var BatchUpdateRecommendationResourceExclusionCommand = _BatchUpdateRecommendationResourceExclusionCommand;
1136
+
1082
1137
  // src/commands/GetOrganizationRecommendationCommand.ts
1138
+
1139
+
1140
+
1141
+
1083
1142
  var _GetOrganizationRecommendationCommand = class _GetOrganizationRecommendationCommand extends import_smithy_client.Command.classBuilder().ep({
1084
1143
  ...commonParams
1085
1144
  }).m(function(Command, cs, config, o) {
@@ -1247,6 +1306,7 @@ var UpdateRecommendationLifecycleCommand = _UpdateRecommendationLifecycleCommand
1247
1306
 
1248
1307
  // src/TrustedAdvisor.ts
1249
1308
  var commands = {
1309
+ BatchUpdateRecommendationResourceExclusionCommand,
1250
1310
  GetOrganizationRecommendationCommand,
1251
1311
  GetRecommendationCommand,
1252
1312
  ListChecksCommand,
@@ -1295,6 +1355,7 @@ var paginateListRecommendations = (0, import_core.createPaginator)(TrustedAdviso
1295
1355
  TrustedAdvisorClient,
1296
1356
  TrustedAdvisor,
1297
1357
  $Command,
1358
+ BatchUpdateRecommendationResourceExclusionCommand,
1298
1359
  GetOrganizationRecommendationCommand,
1299
1360
  GetRecommendationCommand,
1300
1361
  ListChecksCommand,
@@ -1314,15 +1375,16 @@ var paginateListRecommendations = (0, import_core.createPaginator)(TrustedAdviso
1314
1375
  AccessDeniedException,
1315
1376
  RecommendationLifecycleStage,
1316
1377
  UpdateRecommendationLifecycleStageReasonCode,
1378
+ ConflictException,
1379
+ InternalServerException,
1380
+ ThrottlingException,
1381
+ ValidationException,
1317
1382
  RecommendationPillar,
1318
1383
  RecommendationSource,
1319
- ConflictException,
1384
+ ExclusionStatus,
1320
1385
  RecommendationStatus,
1321
1386
  RecommendationType,
1322
- InternalServerException,
1323
1387
  ResourceNotFoundException,
1324
- ThrottlingException,
1325
- ValidationException,
1326
1388
  RecommendationLanguage,
1327
1389
  ResourceStatus,
1328
1390
  UpdateRecommendationLifecycleStage,
@@ -1,4 +1,5 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { BatchUpdateRecommendationResourceExclusionCommand, } from "./commands/BatchUpdateRecommendationResourceExclusionCommand";
2
3
  import { GetOrganizationRecommendationCommand, } from "./commands/GetOrganizationRecommendationCommand";
3
4
  import { GetRecommendationCommand, } from "./commands/GetRecommendationCommand";
4
5
  import { ListChecksCommand } from "./commands/ListChecksCommand";
@@ -11,6 +12,7 @@ import { UpdateOrganizationRecommendationLifecycleCommand, } from "./commands/Up
11
12
  import { UpdateRecommendationLifecycleCommand, } from "./commands/UpdateRecommendationLifecycleCommand";
12
13
  import { TrustedAdvisorClient } from "./TrustedAdvisorClient";
13
14
  const commands = {
15
+ BatchUpdateRecommendationResourceExclusionCommand,
14
16
  GetOrganizationRecommendationCommand,
15
17
  GetRecommendationCommand,
16
18
  ListChecksCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_BatchUpdateRecommendationResourceExclusionCommand, se_BatchUpdateRecommendationResourceExclusionCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class BatchUpdateRecommendationResourceExclusionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("TrustedAdvisor", "BatchUpdateRecommendationResourceExclusion", {})
19
+ .n("TrustedAdvisorClient", "BatchUpdateRecommendationResourceExclusionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchUpdateRecommendationResourceExclusionCommand)
22
+ .de(de_BatchUpdateRecommendationResourceExclusionCommand)
23
+ .build() {
24
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./BatchUpdateRecommendationResourceExclusionCommand";
1
2
  export * from "./GetOrganizationRecommendationCommand";
2
3
  export * from "./GetRecommendationCommand";
3
4
  export * from "./ListChecksCommand";
@@ -27,29 +27,6 @@ export const UpdateRecommendationLifecycleStageReasonCode = {
27
27
  TEMPORARY_ACCOUNT: "temporary_account",
28
28
  VALID_BUSINESS_CASE: "valid_business_case",
29
29
  };
30
- export const RecommendationPillar = {
31
- COST_OPTIMIZING: "cost_optimizing",
32
- FAULT_TOLERANCE: "fault_tolerance",
33
- OPERATIONAL_EXCELLENCE: "operational_excellence",
34
- PERFORMANCE: "performance",
35
- SECURITY: "security",
36
- SERVICE_LIMITS: "service_limits",
37
- };
38
- export const RecommendationSource = {
39
- AWS_CONFIG: "aws_config",
40
- COMPUTE_OPTIMIZER: "compute_optimizer",
41
- COST_EXPLORER: "cost_explorer",
42
- LSE: "lse",
43
- MANUAL: "manual",
44
- PSE: "pse",
45
- RDS: "rds",
46
- RESILIENCE: "resilience",
47
- RESILIENCE_HUB: "resilience_hub",
48
- SECURITY_HUB: "security_hub",
49
- STIR: "stir",
50
- TA_CHECK: "ta_check",
51
- WELL_ARCHITECTED: "well_architected",
52
- };
53
30
  export class ConflictException extends __BaseException {
54
31
  constructor(opts) {
55
32
  super({
@@ -62,15 +39,6 @@ export class ConflictException extends __BaseException {
62
39
  Object.setPrototypeOf(this, ConflictException.prototype);
63
40
  }
64
41
  }
65
- export const RecommendationStatus = {
66
- ERROR: "error",
67
- OK: "ok",
68
- WARNING: "warning",
69
- };
70
- export const RecommendationType = {
71
- PRIORITY: "priority",
72
- STANDARD: "standard",
73
- };
74
42
  export class InternalServerException extends __BaseException {
75
43
  constructor(opts) {
76
44
  super({
@@ -84,18 +52,6 @@ export class InternalServerException extends __BaseException {
84
52
  Object.setPrototypeOf(this, InternalServerException.prototype);
85
53
  }
86
54
  }
87
- export class ResourceNotFoundException extends __BaseException {
88
- constructor(opts) {
89
- super({
90
- name: "ResourceNotFoundException",
91
- $fault: "client",
92
- ...opts,
93
- });
94
- this.name = "ResourceNotFoundException";
95
- this.$fault = "client";
96
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
97
- }
98
- }
99
55
  export class ThrottlingException extends __BaseException {
100
56
  constructor(opts) {
101
57
  super({
@@ -123,6 +79,54 @@ export class ValidationException extends __BaseException {
123
79
  Object.setPrototypeOf(this, ValidationException.prototype);
124
80
  }
125
81
  }
82
+ export const RecommendationPillar = {
83
+ COST_OPTIMIZING: "cost_optimizing",
84
+ FAULT_TOLERANCE: "fault_tolerance",
85
+ OPERATIONAL_EXCELLENCE: "operational_excellence",
86
+ PERFORMANCE: "performance",
87
+ SECURITY: "security",
88
+ SERVICE_LIMITS: "service_limits",
89
+ };
90
+ export const RecommendationSource = {
91
+ AWS_CONFIG: "aws_config",
92
+ COMPUTE_OPTIMIZER: "compute_optimizer",
93
+ COST_EXPLORER: "cost_explorer",
94
+ LSE: "lse",
95
+ MANUAL: "manual",
96
+ PSE: "pse",
97
+ RDS: "rds",
98
+ RESILIENCE: "resilience",
99
+ RESILIENCE_HUB: "resilience_hub",
100
+ SECURITY_HUB: "security_hub",
101
+ STIR: "stir",
102
+ TA_CHECK: "ta_check",
103
+ WELL_ARCHITECTED: "well_architected",
104
+ };
105
+ export const ExclusionStatus = {
106
+ EXCLUDED: "excluded",
107
+ INCLUDED: "included",
108
+ };
109
+ export const RecommendationStatus = {
110
+ ERROR: "error",
111
+ OK: "ok",
112
+ WARNING: "warning",
113
+ };
114
+ export const RecommendationType = {
115
+ PRIORITY: "priority",
116
+ STANDARD: "standard",
117
+ };
118
+ export class ResourceNotFoundException extends __BaseException {
119
+ constructor(opts) {
120
+ super({
121
+ name: "ResourceNotFoundException",
122
+ $fault: "client",
123
+ ...opts,
124
+ });
125
+ this.name = "ResourceNotFoundException";
126
+ this.$fault = "client";
127
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
128
+ }
129
+ }
126
130
  export const RecommendationLanguage = {
127
131
  BAHASA_INDONESIA: "id",
128
132
  BRAZILIAN_PORTUGUESE: "pt_BR",
@@ -3,6 +3,19 @@ import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { TrustedAdvisorServiceException as __BaseException } from "../models/TrustedAdvisorServiceException";
6
+ export const se_BatchUpdateRecommendationResourceExclusionCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {
9
+ "content-type": "application/json",
10
+ };
11
+ b.bp("/v1/batch-update-recommendation-resource-exclusion");
12
+ let body;
13
+ body = JSON.stringify(take(input, {
14
+ recommendationResourceExclusions: (_) => _json(_),
15
+ }));
16
+ b.m("PUT").h(headers).b(body);
17
+ return b.build();
18
+ };
6
19
  export const se_GetOrganizationRecommendationCommand = async (input, context) => {
7
20
  const b = rb(input, context);
8
21
  const headers = {};
@@ -60,6 +73,7 @@ export const se_ListOrganizationRecommendationResourcesCommand = async (input, c
60
73
  [_nT]: [, input[_nT]],
61
74
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
62
75
  [_st]: [, input[_st]],
76
+ [_eS]: [, input[_eS]],
63
77
  [_rC]: [, input[_rC]],
64
78
  [_aAI]: [, input[_aAI]],
65
79
  });
@@ -102,6 +116,7 @@ export const se_ListRecommendationResourcesCommand = async (input, context) => {
102
116
  [_nT]: [, input[_nT]],
103
117
  [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
104
118
  [_st]: [, input[_st]],
119
+ [_eS]: [, input[_eS]],
105
120
  [_rC]: [, input[_rC]],
106
121
  });
107
122
  let body;
@@ -166,6 +181,20 @@ export const se_UpdateRecommendationLifecycleCommand = async (input, context) =>
166
181
  b.m("PUT").h(headers).b(body);
167
182
  return b.build();
168
183
  };
184
+ export const de_BatchUpdateRecommendationResourceExclusionCommand = async (output, context) => {
185
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
186
+ return de_CommandError(output, context);
187
+ }
188
+ const contents = map({
189
+ $metadata: deserializeMetadata(output),
190
+ });
191
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
192
+ const doc = take(data, {
193
+ batchUpdateRecommendationResourceExclusionErrors: _json,
194
+ });
195
+ Object.assign(contents, doc);
196
+ return contents;
197
+ };
169
198
  export const de_GetOrganizationRecommendationCommand = async (output, context) => {
170
199
  if (output.statusCode !== 200 && output.statusCode >= 300) {
171
200
  return de_CommandError(output, context);
@@ -314,21 +343,21 @@ const de_CommandError = async (output, context) => {
314
343
  case "AccessDeniedException":
315
344
  case "com.amazonaws.trustedadvisor#AccessDeniedException":
316
345
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
346
+ case "ConflictException":
347
+ case "com.amazonaws.trustedadvisor#ConflictException":
348
+ throw await de_ConflictExceptionRes(parsedOutput, context);
317
349
  case "InternalServerException":
318
350
  case "com.amazonaws.trustedadvisor#InternalServerException":
319
351
  throw await de_InternalServerExceptionRes(parsedOutput, context);
320
- case "ResourceNotFoundException":
321
- case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
322
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
323
352
  case "ThrottlingException":
324
353
  case "com.amazonaws.trustedadvisor#ThrottlingException":
325
354
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
326
355
  case "ValidationException":
327
356
  case "com.amazonaws.trustedadvisor#ValidationException":
328
357
  throw await de_ValidationExceptionRes(parsedOutput, context);
329
- case "ConflictException":
330
- case "com.amazonaws.trustedadvisor#ConflictException":
331
- throw await de_ConflictExceptionRes(parsedOutput, context);
358
+ case "ResourceNotFoundException":
359
+ case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
360
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
332
361
  default:
333
362
  const parsedBody = parsedOutput.body;
334
363
  return throwDefaultError({
@@ -467,6 +496,7 @@ const de_OrganizationRecommendationResourceSummary = (output, context) => {
467
496
  accountId: __expectString,
468
497
  arn: __expectString,
469
498
  awsResourceId: __expectString,
499
+ exclusionStatus: __expectString,
470
500
  id: __expectString,
471
501
  lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
472
502
  metadata: _json,
@@ -549,6 +579,7 @@ const de_RecommendationResourceSummary = (output, context) => {
549
579
  return take(output, {
550
580
  arn: __expectString,
551
581
  awsResourceId: __expectString,
582
+ exclusionStatus: __expectString,
552
583
  id: __expectString,
553
584
  lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
554
585
  metadata: _json,
@@ -608,6 +639,7 @@ const _aLUA = "afterLastUpdatedAt";
608
639
  const _aS = "awsService";
609
640
  const _bLUA = "beforeLastUpdatedAt";
610
641
  const _cI = "checkIdentifier";
642
+ const _eS = "exclusionStatus";
611
643
  const _l = "language";
612
644
  const _mR = "maxResults";
613
645
  const _nT = "nextToken";
@@ -1,4 +1,5 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { BatchUpdateRecommendationResourceExclusionCommandInput, BatchUpdateRecommendationResourceExclusionCommandOutput } from "./commands/BatchUpdateRecommendationResourceExclusionCommand";
2
3
  import { GetOrganizationRecommendationCommandInput, GetOrganizationRecommendationCommandOutput } from "./commands/GetOrganizationRecommendationCommand";
3
4
  import { GetRecommendationCommandInput, GetRecommendationCommandOutput } from "./commands/GetRecommendationCommand";
4
5
  import { ListChecksCommandInput, ListChecksCommandOutput } from "./commands/ListChecksCommand";
@@ -11,6 +12,12 @@ import { UpdateOrganizationRecommendationLifecycleCommandInput, UpdateOrganizati
11
12
  import { UpdateRecommendationLifecycleCommandInput, UpdateRecommendationLifecycleCommandOutput } from "./commands/UpdateRecommendationLifecycleCommand";
12
13
  import { TrustedAdvisorClient } from "./TrustedAdvisorClient";
13
14
  export interface TrustedAdvisor {
15
+ /**
16
+ * @see {@link BatchUpdateRecommendationResourceExclusionCommand}
17
+ */
18
+ batchUpdateRecommendationResourceExclusion(args: BatchUpdateRecommendationResourceExclusionCommandInput, options?: __HttpHandlerOptions): Promise<BatchUpdateRecommendationResourceExclusionCommandOutput>;
19
+ batchUpdateRecommendationResourceExclusion(args: BatchUpdateRecommendationResourceExclusionCommandInput, cb: (err: any, data?: BatchUpdateRecommendationResourceExclusionCommandOutput) => void): void;
20
+ batchUpdateRecommendationResourceExclusion(args: BatchUpdateRecommendationResourceExclusionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchUpdateRecommendationResourceExclusionCommandOutput) => void): void;
14
21
  /**
15
22
  * @see {@link GetOrganizationRecommendationCommand}
16
23
  */
@@ -7,6 +7,7 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { BatchUpdateRecommendationResourceExclusionCommandInput, BatchUpdateRecommendationResourceExclusionCommandOutput } from "./commands/BatchUpdateRecommendationResourceExclusionCommand";
10
11
  import { GetOrganizationRecommendationCommandInput, GetOrganizationRecommendationCommandOutput } from "./commands/GetOrganizationRecommendationCommand";
11
12
  import { GetRecommendationCommandInput, GetRecommendationCommandOutput } from "./commands/GetRecommendationCommand";
12
13
  import { ListChecksCommandInput, ListChecksCommandOutput } from "./commands/ListChecksCommand";
@@ -23,11 +24,11 @@ export { __Client };
23
24
  /**
24
25
  * @public
25
26
  */
26
- export type ServiceInputTypes = GetOrganizationRecommendationCommandInput | GetRecommendationCommandInput | ListChecksCommandInput | ListOrganizationRecommendationAccountsCommandInput | ListOrganizationRecommendationResourcesCommandInput | ListOrganizationRecommendationsCommandInput | ListRecommendationResourcesCommandInput | ListRecommendationsCommandInput | UpdateOrganizationRecommendationLifecycleCommandInput | UpdateRecommendationLifecycleCommandInput;
27
+ export type ServiceInputTypes = BatchUpdateRecommendationResourceExclusionCommandInput | GetOrganizationRecommendationCommandInput | GetRecommendationCommandInput | ListChecksCommandInput | ListOrganizationRecommendationAccountsCommandInput | ListOrganizationRecommendationResourcesCommandInput | ListOrganizationRecommendationsCommandInput | ListRecommendationResourcesCommandInput | ListRecommendationsCommandInput | UpdateOrganizationRecommendationLifecycleCommandInput | UpdateRecommendationLifecycleCommandInput;
27
28
  /**
28
29
  * @public
29
30
  */
30
- export type ServiceOutputTypes = GetOrganizationRecommendationCommandOutput | GetRecommendationCommandOutput | ListChecksCommandOutput | ListOrganizationRecommendationAccountsCommandOutput | ListOrganizationRecommendationResourcesCommandOutput | ListOrganizationRecommendationsCommandOutput | ListRecommendationResourcesCommandOutput | ListRecommendationsCommandOutput | UpdateOrganizationRecommendationLifecycleCommandOutput | UpdateRecommendationLifecycleCommandOutput;
31
+ export type ServiceOutputTypes = BatchUpdateRecommendationResourceExclusionCommandOutput | GetOrganizationRecommendationCommandOutput | GetRecommendationCommandOutput | ListChecksCommandOutput | ListOrganizationRecommendationAccountsCommandOutput | ListOrganizationRecommendationResourcesCommandOutput | ListOrganizationRecommendationsCommandOutput | ListRecommendationResourcesCommandOutput | ListRecommendationsCommandOutput | UpdateOrganizationRecommendationLifecycleCommandOutput | UpdateRecommendationLifecycleCommandOutput;
31
32
  /**
32
33
  * @public
33
34
  */