@aws-sdk/client-trustedadvisor 3.1095.0 → 3.1097.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
@@ -244,6 +244,13 @@ ListRecommendations
244
244
  </details>
245
245
  <details>
246
246
  <summary>
247
+ ListRecommendationsForResource
248
+ </summary>
249
+
250
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/trustedadvisor/command/ListRecommendationsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-trustedadvisor/Interface/ListRecommendationsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-trustedadvisor/Interface/ListRecommendationsForResourceCommandOutput/)
251
+ </details>
252
+ <details>
253
+ <summary>
247
254
  UpdateOrganizationRecommendationLifecycle
248
255
  </summary>
249
256
 
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1094.0";
72
+ var version = "3.1096.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -244,6 +244,9 @@ const _LORRRi = "ListOrganizationRecommendationResourcesResponse";
244
244
  const _LORRi = "ListOrganizationRecommendationsResponse";
245
245
  const _LORRis = "ListOrganizationRecommendationResources";
246
246
  const _LR = "ListRecommendations";
247
+ const _LRFR = "ListRecommendationsForResource";
248
+ const _LRFRR = "ListRecommendationsForResourceRequest";
249
+ const _LRFRRi = "ListRecommendationsForResourceResponse";
247
250
  const _LRR = "ListRecommendationsRequest";
248
251
  const _LRRR = "ListRecommendationResourcesRequest";
249
252
  const _LRRRi = "ListRecommendationResourcesResponse";
@@ -256,6 +259,8 @@ const _ORS = "OrganizationRecommendationSummary";
256
259
  const _ORSL = "OrganizationRecommendationSummaryList";
257
260
  const _R = "Recommendation";
258
261
  const _RCOA = "RecommendationCostOptimizingAggregates";
262
+ const _RFRS = "RecommendationForResourceSummary";
263
+ const _RFRSL = "RecommendationForResourceSummaryList";
259
264
  const _RNFE = "ResourceNotFoundException";
260
265
  const _RPSA = "RecommendationPillarSpecificAggregates";
261
266
  const _RRA = "RecommendationResourcesAggregates";
@@ -279,8 +284,10 @@ const _aAI = "affectedAccountId";
279
284
  const _aI = "accountId";
280
285
  const _aLUA = "afterLastUpdatedAt";
281
286
  const _aRA = "accountRecommendationArn";
287
+ const _aRAw = "awsResourceArn";
282
288
  const _aRI = "awsResourceId";
283
289
  const _aRLS = "accountRecommendationLifecycleSummaries";
290
+ const _aRT = "awsResourceTypes";
284
291
  const _aS = "awsServices";
285
292
  const _aSw = "awsService";
286
293
  const _bLUA = "beforeLastUpdatedAt";
@@ -289,6 +296,7 @@ const _c = "client";
289
296
  const _cA = "checkArn";
290
297
  const _cAr = "createdAt";
291
298
  const _cB = "createdBy";
299
+ const _cG = "checkGranularity";
292
300
  const _cI = "checkIdentifier";
293
301
  const _cO = "costOptimizing";
294
302
  const _cS = "checkSummaries";
@@ -324,10 +332,13 @@ const _pSA = "pillarSpecificAggregates";
324
332
  const _pi = "pillar";
325
333
  const _r = "recommendation";
326
334
  const _rA = "resourcesAggregates";
335
+ const _rAQ = "resourceArnQueryable";
327
336
  const _rAe = "resolvedAt";
328
337
  const _rAec = "recommendationArn";
329
338
  const _rC = "regionCode";
330
- const _rI = "recommendationIdentifier";
339
+ const _rFRS = "recommendationForResourceSummaries";
340
+ const _rI = "recommendationId";
341
+ const _rIe = "recommendationIdentifier";
331
342
  const _rRE = "recommendationResourceExclusions";
332
343
  const _rRS = "recommendationResourceSummaries";
333
344
  const _rS = "recommendationSummaries";
@@ -405,8 +416,8 @@ var BatchUpdateRecommendationResourceExclusionResponse$ = [3, n0, _BURRERa,
405
416
  ];
406
417
  var CheckSummary$ = [3, n0, _CS,
407
418
  0,
408
- [_i, _a, _n, _d, _p, _aS, _so, _me],
409
- [0, 0, 0, 0, 64 | 0, 64 | 0, 0, 128 | 0], 8
419
+ [_i, _a, _n, _d, _p, _aS, _so, _me, _rAQ, _aRT, _cG, _rI],
420
+ [0, 0, 0, 0, 64 | 0, 64 | 0, 0, 128 | 0, 2, 64 | 0, 0, 0], 8
410
421
  ];
411
422
  var GetOrganizationRecommendationRequest$ = [3, n0, _GORR,
412
423
  0,
@@ -420,7 +431,7 @@ var GetOrganizationRecommendationResponse$ = [3, n0, _GORRe,
420
431
  ];
421
432
  var GetRecommendationRequest$ = [3, n0, _GRR,
422
433
  0,
423
- [_rI, _l],
434
+ [_rIe, _l],
424
435
  [[0, 1], [0, { [_hQ]: _l }]], 1
425
436
  ];
426
437
  var GetRecommendationResponse$ = [3, n0, _GRRe,
@@ -470,7 +481,7 @@ var ListOrganizationRecommendationsResponse$ = [3, n0, _LORRi,
470
481
  ];
471
482
  var ListRecommendationResourcesRequest$ = [3, n0, _LRRR,
472
483
  0,
473
- [_rI, _nT, _mR, _st, _eS, _rC, _l],
484
+ [_rIe, _nT, _mR, _st, _eS, _rC, _l],
474
485
  [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }], [0, { [_hQ]: _eS }], [0, { [_hQ]: _rC }], [0, { [_hQ]: _l }]], 1
475
486
  ];
476
487
  var ListRecommendationResourcesResponse$ = [3, n0, _LRRRi,
@@ -478,6 +489,16 @@ var ListRecommendationResourcesResponse$ = [3, n0, _LRRRi,
478
489
  [_rRS, _nT],
479
490
  [() => RecommendationResourceSummaryList, 0], 1
480
491
  ];
492
+ var ListRecommendationsForResourceRequest$ = [3, n0, _LRFRR,
493
+ 0,
494
+ [_aRAw, _nT, _mR, _pi, _st, _cA, _l],
495
+ [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _pi }], [0, { [_hQ]: _st }], [0, { [_hQ]: _cA }], [0, { [_hQ]: _l }]], 1
496
+ ];
497
+ var ListRecommendationsForResourceResponse$ = [3, n0, _LRFRRi,
498
+ 0,
499
+ [_rFRS, _nT],
500
+ [() => RecommendationForResourceSummaryList, 0], 1
501
+ ];
481
502
  var ListRecommendationsRequest$ = [3, n0, _LRR,
482
503
  0,
483
504
  [_nT, _mR, _t, _st, _pi, _aSw, _so, _cI, _aLUA, _bLUA, _l],
@@ -513,6 +534,11 @@ var RecommendationCostOptimizingAggregates$ = [3, n0, _RCOA,
513
534
  [_eMS, _ePMS],
514
535
  [1, 1], 2
515
536
  ];
537
+ var RecommendationForResourceSummary$ = [3, n0, _RFRS,
538
+ 0,
539
+ [_cA, _rAec, _aRAw, _st, _lUA, _eS, _me, _p],
540
+ [0, 0, 0, 0, 5, 0, 128 | 0, 64 | 0], 8
541
+ ];
516
542
  var RecommendationPillarSpecificAggregates$ = [3, n0, _RPSA,
517
543
  0,
518
544
  [_cO],
@@ -545,7 +571,7 @@ var UpdateOrganizationRecommendationLifecycleRequest$ = [3, n0, _UORLR,
545
571
  ];
546
572
  var UpdateRecommendationLifecycleRequest$ = [3, n0, _URLR,
547
573
  0,
548
- [_lS, _rI, _uR, _uRC],
574
+ [_lS, _rIe, _uR, _uRC],
549
575
  [0, [0, 1], [() => RecommendationUpdateReason, 0], 0], 2
550
576
  ];
551
577
  var UpdateRecommendationResourceExclusionError$ = [3, n0, _URREE,
@@ -567,6 +593,9 @@ var OrganizationRecommendationResourceSummaryList = [1, n0, _ORRSL,
567
593
  var OrganizationRecommendationSummaryList = [1, n0, _ORSL,
568
594
  0, () => OrganizationRecommendationSummary$
569
595
  ];
596
+ var RecommendationForResourceSummaryList = [1, n0, _RFRSL,
597
+ 0, () => RecommendationForResourceSummary$
598
+ ];
570
599
  var RecommendationResourceExclusionList = [1, n0, _RREL,
571
600
  0, () => RecommendationResourceExclusion$
572
601
  ];
@@ -606,6 +635,9 @@ var ListRecommendationResources$ = [9, n0, _LRRis,
606
635
  var ListRecommendations$ = [9, n0, _LR,
607
636
  { [_h]: ["GET", "/v1/recommendations", 200] }, () => ListRecommendationsRequest$, () => ListRecommendationsResponse$
608
637
  ];
638
+ var ListRecommendationsForResource$ = [9, n0, _LRFR,
639
+ { [_h]: ["GET", "/v1/recommendations-for-resource/{awsResourceArn}", 200] }, () => ListRecommendationsForResourceRequest$, () => ListRecommendationsForResourceResponse$
640
+ ];
609
641
  var UpdateOrganizationRecommendationLifecycle$ = [9, n0, _UORL,
610
642
  { [_h]: ["PUT", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle", 200] }, () => UpdateOrganizationRecommendationLifecycleRequest$, () => __Unit
611
643
  ];
@@ -790,6 +822,9 @@ class ListRecommendationResourcesCommand extends command(_ep0, _mw0, "ListRecomm
790
822
  class ListRecommendationsCommand extends command(_ep0, _mw0, "ListRecommendations", ListRecommendations$) {
791
823
  }
792
824
 
825
+ class ListRecommendationsForResourceCommand extends command(_ep0, _mw0, "ListRecommendationsForResource", ListRecommendationsForResource$) {
826
+ }
827
+
793
828
  class UpdateOrganizationRecommendationLifecycleCommand extends command(_ep0, _mw0, "UpdateOrganizationRecommendationLifecycle", UpdateOrganizationRecommendationLifecycle$) {
794
829
  }
795
830
 
@@ -806,6 +841,8 @@ const paginateListOrganizationRecommendations = createPaginator(TrustedAdvisorCl
806
841
 
807
842
  const paginateListRecommendationResources = createPaginator(TrustedAdvisorClient, ListRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
808
843
 
844
+ const paginateListRecommendationsForResource = createPaginator(TrustedAdvisorClient, ListRecommendationsForResourceCommand, "nextToken", "nextToken", "maxResults");
845
+
809
846
  const paginateListRecommendations = createPaginator(TrustedAdvisorClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
810
847
 
811
848
  const commands = {
@@ -818,6 +855,7 @@ const commands = {
818
855
  ListOrganizationRecommendationsCommand,
819
856
  ListRecommendationResourcesCommand,
820
857
  ListRecommendationsCommand,
858
+ ListRecommendationsForResourceCommand,
821
859
  UpdateOrganizationRecommendationLifecycleCommand,
822
860
  UpdateRecommendationLifecycleCommand,
823
861
  };
@@ -828,6 +866,7 @@ const paginators = {
828
866
  paginateListOrganizationRecommendations,
829
867
  paginateListRecommendationResources,
830
868
  paginateListRecommendations,
869
+ paginateListRecommendationsForResource,
831
870
  };
832
871
  class TrustedAdvisor extends TrustedAdvisorClient {
833
872
  }
@@ -956,6 +995,10 @@ exports.ListRecommendationResourcesRequest$ = ListRecommendationResourcesRequest
956
995
  exports.ListRecommendationResourcesResponse$ = ListRecommendationResourcesResponse$;
957
996
  exports.ListRecommendations$ = ListRecommendations$;
958
997
  exports.ListRecommendationsCommand = ListRecommendationsCommand;
998
+ exports.ListRecommendationsForResource$ = ListRecommendationsForResource$;
999
+ exports.ListRecommendationsForResourceCommand = ListRecommendationsForResourceCommand;
1000
+ exports.ListRecommendationsForResourceRequest$ = ListRecommendationsForResourceRequest$;
1001
+ exports.ListRecommendationsForResourceResponse$ = ListRecommendationsForResourceResponse$;
959
1002
  exports.ListRecommendationsRequest$ = ListRecommendationsRequest$;
960
1003
  exports.ListRecommendationsResponse$ = ListRecommendationsResponse$;
961
1004
  exports.OrganizationRecommendation$ = OrganizationRecommendation$;
@@ -963,6 +1006,7 @@ exports.OrganizationRecommendationResourceSummary$ = OrganizationRecommendationR
963
1006
  exports.OrganizationRecommendationSummary$ = OrganizationRecommendationSummary$;
964
1007
  exports.Recommendation$ = Recommendation$;
965
1008
  exports.RecommendationCostOptimizingAggregates$ = RecommendationCostOptimizingAggregates$;
1009
+ exports.RecommendationForResourceSummary$ = RecommendationForResourceSummary$;
966
1010
  exports.RecommendationLanguage = RecommendationLanguage;
967
1011
  exports.RecommendationLifecycleStage = RecommendationLifecycleStage;
968
1012
  exports.RecommendationPillar = RecommendationPillar;
@@ -1002,3 +1046,4 @@ exports.paginateListOrganizationRecommendationResources = paginateListOrganizati
1002
1046
  exports.paginateListOrganizationRecommendations = paginateListOrganizationRecommendations;
1003
1047
  exports.paginateListRecommendationResources = paginateListRecommendationResources;
1004
1048
  exports.paginateListRecommendations = paginateListRecommendations;
1049
+ exports.paginateListRecommendationsForResource = paginateListRecommendationsForResource;
@@ -8,6 +8,7 @@ import { ListOrganizationRecommendationResourcesCommand, } from "./commands/List
8
8
  import { ListOrganizationRecommendationsCommand, } from "./commands/ListOrganizationRecommendationsCommand";
9
9
  import { ListRecommendationResourcesCommand, } from "./commands/ListRecommendationResourcesCommand";
10
10
  import { ListRecommendationsCommand, } from "./commands/ListRecommendationsCommand";
11
+ import { ListRecommendationsForResourceCommand, } from "./commands/ListRecommendationsForResourceCommand";
11
12
  import { UpdateOrganizationRecommendationLifecycleCommand, } from "./commands/UpdateOrganizationRecommendationLifecycleCommand";
12
13
  import { UpdateRecommendationLifecycleCommand, } from "./commands/UpdateRecommendationLifecycleCommand";
13
14
  import { paginateListChecks } from "./pagination/ListChecksPaginator";
@@ -15,6 +16,7 @@ import { paginateListOrganizationRecommendationAccounts, } from "./pagination/Li
15
16
  import { paginateListOrganizationRecommendationResources, } from "./pagination/ListOrganizationRecommendationResourcesPaginator";
16
17
  import { paginateListOrganizationRecommendations } from "./pagination/ListOrganizationRecommendationsPaginator";
17
18
  import { paginateListRecommendationResources } from "./pagination/ListRecommendationResourcesPaginator";
19
+ import { paginateListRecommendationsForResource } from "./pagination/ListRecommendationsForResourcePaginator";
18
20
  import { paginateListRecommendations } from "./pagination/ListRecommendationsPaginator";
19
21
  import { TrustedAdvisorClient } from "./TrustedAdvisorClient";
20
22
  const commands = {
@@ -27,6 +29,7 @@ const commands = {
27
29
  ListOrganizationRecommendationsCommand,
28
30
  ListRecommendationResourcesCommand,
29
31
  ListRecommendationsCommand,
32
+ ListRecommendationsForResourceCommand,
30
33
  UpdateOrganizationRecommendationLifecycleCommand,
31
34
  UpdateRecommendationLifecycleCommand,
32
35
  };
@@ -37,6 +40,7 @@ const paginators = {
37
40
  paginateListOrganizationRecommendations,
38
41
  paginateListRecommendationResources,
39
42
  paginateListRecommendations,
43
+ paginateListRecommendationsForResource,
40
44
  };
41
45
  export class TrustedAdvisor extends TrustedAdvisorClient {
42
46
  }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListRecommendationsForResource$ } from "../schemas/schemas_0";
3
+ export class ListRecommendationsForResourceCommand extends command(_ep0, _mw0, "ListRecommendationsForResource", ListRecommendationsForResource$) {
4
+ }
@@ -7,5 +7,6 @@ export * from "./ListOrganizationRecommendationResourcesCommand";
7
7
  export * from "./ListOrganizationRecommendationsCommand";
8
8
  export * from "./ListRecommendationResourcesCommand";
9
9
  export * from "./ListRecommendationsCommand";
10
+ export * from "./ListRecommendationsForResourceCommand";
10
11
  export * from "./UpdateOrganizationRecommendationLifecycleCommand";
11
12
  export * from "./UpdateRecommendationLifecycleCommand";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListRecommendationsForResourceCommand, } from "../commands/ListRecommendationsForResourceCommand";
3
+ import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
4
+ export const paginateListRecommendationsForResource = createPaginator(TrustedAdvisorClient, ListRecommendationsForResourceCommand, "nextToken", "nextToken", "maxResults");
@@ -5,3 +5,4 @@ export * from "./ListOrganizationRecommendationResourcesPaginator";
5
5
  export * from "./ListOrganizationRecommendationsPaginator";
6
6
  export * from "./ListRecommendationResourcesPaginator";
7
7
  export * from "./ListRecommendationsPaginator";
8
+ export * from "./ListRecommendationsForResourcePaginator";
@@ -27,6 +27,9 @@ const _LORRRi = "ListOrganizationRecommendationResourcesResponse";
27
27
  const _LORRi = "ListOrganizationRecommendationsResponse";
28
28
  const _LORRis = "ListOrganizationRecommendationResources";
29
29
  const _LR = "ListRecommendations";
30
+ const _LRFR = "ListRecommendationsForResource";
31
+ const _LRFRR = "ListRecommendationsForResourceRequest";
32
+ const _LRFRRi = "ListRecommendationsForResourceResponse";
30
33
  const _LRR = "ListRecommendationsRequest";
31
34
  const _LRRR = "ListRecommendationResourcesRequest";
32
35
  const _LRRRi = "ListRecommendationResourcesResponse";
@@ -39,6 +42,8 @@ const _ORS = "OrganizationRecommendationSummary";
39
42
  const _ORSL = "OrganizationRecommendationSummaryList";
40
43
  const _R = "Recommendation";
41
44
  const _RCOA = "RecommendationCostOptimizingAggregates";
45
+ const _RFRS = "RecommendationForResourceSummary";
46
+ const _RFRSL = "RecommendationForResourceSummaryList";
42
47
  const _RNFE = "ResourceNotFoundException";
43
48
  const _RPSA = "RecommendationPillarSpecificAggregates";
44
49
  const _RRA = "RecommendationResourcesAggregates";
@@ -62,8 +67,10 @@ const _aAI = "affectedAccountId";
62
67
  const _aI = "accountId";
63
68
  const _aLUA = "afterLastUpdatedAt";
64
69
  const _aRA = "accountRecommendationArn";
70
+ const _aRAw = "awsResourceArn";
65
71
  const _aRI = "awsResourceId";
66
72
  const _aRLS = "accountRecommendationLifecycleSummaries";
73
+ const _aRT = "awsResourceTypes";
67
74
  const _aS = "awsServices";
68
75
  const _aSw = "awsService";
69
76
  const _bLUA = "beforeLastUpdatedAt";
@@ -72,6 +79,7 @@ const _c = "client";
72
79
  const _cA = "checkArn";
73
80
  const _cAr = "createdAt";
74
81
  const _cB = "createdBy";
82
+ const _cG = "checkGranularity";
75
83
  const _cI = "checkIdentifier";
76
84
  const _cO = "costOptimizing";
77
85
  const _cS = "checkSummaries";
@@ -107,10 +115,13 @@ const _pSA = "pillarSpecificAggregates";
107
115
  const _pi = "pillar";
108
116
  const _r = "recommendation";
109
117
  const _rA = "resourcesAggregates";
118
+ const _rAQ = "resourceArnQueryable";
110
119
  const _rAe = "resolvedAt";
111
120
  const _rAec = "recommendationArn";
112
121
  const _rC = "regionCode";
113
- const _rI = "recommendationIdentifier";
122
+ const _rFRS = "recommendationForResourceSummaries";
123
+ const _rI = "recommendationId";
124
+ const _rIe = "recommendationIdentifier";
114
125
  const _rRE = "recommendationResourceExclusions";
115
126
  const _rRS = "recommendationResourceSummaries";
116
127
  const _rS = "recommendationSummaries";
@@ -191,8 +202,8 @@ export var BatchUpdateRecommendationResourceExclusionResponse$ = [3, n0, _BURRER
191
202
  ];
192
203
  export var CheckSummary$ = [3, n0, _CS,
193
204
  0,
194
- [_i, _a, _n, _d, _p, _aS, _so, _me],
195
- [0, 0, 0, 0, 64 | 0, 64 | 0, 0, 128 | 0], 8
205
+ [_i, _a, _n, _d, _p, _aS, _so, _me, _rAQ, _aRT, _cG, _rI],
206
+ [0, 0, 0, 0, 64 | 0, 64 | 0, 0, 128 | 0, 2, 64 | 0, 0, 0], 8
196
207
  ];
197
208
  export var GetOrganizationRecommendationRequest$ = [3, n0, _GORR,
198
209
  0,
@@ -206,7 +217,7 @@ export var GetOrganizationRecommendationResponse$ = [3, n0, _GORRe,
206
217
  ];
207
218
  export var GetRecommendationRequest$ = [3, n0, _GRR,
208
219
  0,
209
- [_rI, _l],
220
+ [_rIe, _l],
210
221
  [[0, 1], [0, { [_hQ]: _l }]], 1
211
222
  ];
212
223
  export var GetRecommendationResponse$ = [3, n0, _GRRe,
@@ -256,7 +267,7 @@ export var ListOrganizationRecommendationsResponse$ = [3, n0, _LORRi,
256
267
  ];
257
268
  export var ListRecommendationResourcesRequest$ = [3, n0, _LRRR,
258
269
  0,
259
- [_rI, _nT, _mR, _st, _eS, _rC, _l],
270
+ [_rIe, _nT, _mR, _st, _eS, _rC, _l],
260
271
  [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }], [0, { [_hQ]: _eS }], [0, { [_hQ]: _rC }], [0, { [_hQ]: _l }]], 1
261
272
  ];
262
273
  export var ListRecommendationResourcesResponse$ = [3, n0, _LRRRi,
@@ -264,6 +275,16 @@ export var ListRecommendationResourcesResponse$ = [3, n0, _LRRRi,
264
275
  [_rRS, _nT],
265
276
  [() => RecommendationResourceSummaryList, 0], 1
266
277
  ];
278
+ export var ListRecommendationsForResourceRequest$ = [3, n0, _LRFRR,
279
+ 0,
280
+ [_aRAw, _nT, _mR, _pi, _st, _cA, _l],
281
+ [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _pi }], [0, { [_hQ]: _st }], [0, { [_hQ]: _cA }], [0, { [_hQ]: _l }]], 1
282
+ ];
283
+ export var ListRecommendationsForResourceResponse$ = [3, n0, _LRFRRi,
284
+ 0,
285
+ [_rFRS, _nT],
286
+ [() => RecommendationForResourceSummaryList, 0], 1
287
+ ];
267
288
  export var ListRecommendationsRequest$ = [3, n0, _LRR,
268
289
  0,
269
290
  [_nT, _mR, _t, _st, _pi, _aSw, _so, _cI, _aLUA, _bLUA, _l],
@@ -299,6 +320,11 @@ export var RecommendationCostOptimizingAggregates$ = [3, n0, _RCOA,
299
320
  [_eMS, _ePMS],
300
321
  [1, 1], 2
301
322
  ];
323
+ export var RecommendationForResourceSummary$ = [3, n0, _RFRS,
324
+ 0,
325
+ [_cA, _rAec, _aRAw, _st, _lUA, _eS, _me, _p],
326
+ [0, 0, 0, 0, 5, 0, 128 | 0, 64 | 0], 8
327
+ ];
302
328
  export var RecommendationPillarSpecificAggregates$ = [3, n0, _RPSA,
303
329
  0,
304
330
  [_cO],
@@ -331,7 +357,7 @@ export var UpdateOrganizationRecommendationLifecycleRequest$ = [3, n0, _UORLR,
331
357
  ];
332
358
  export var UpdateRecommendationLifecycleRequest$ = [3, n0, _URLR,
333
359
  0,
334
- [_lS, _rI, _uR, _uRC],
360
+ [_lS, _rIe, _uR, _uRC],
335
361
  [0, [0, 1], [() => RecommendationUpdateReason, 0], 0], 2
336
362
  ];
337
363
  export var UpdateRecommendationResourceExclusionError$ = [3, n0, _URREE,
@@ -354,6 +380,9 @@ var OrganizationRecommendationSummaryList = [1, n0, _ORSL,
354
380
  0, () => OrganizationRecommendationSummary$
355
381
  ];
356
382
  var RecommendationAwsServiceList = 64 | 0;
383
+ var RecommendationForResourceSummaryList = [1, n0, _RFRSL,
384
+ 0, () => RecommendationForResourceSummary$
385
+ ];
357
386
  var RecommendationPillarList = 64 | 0;
358
387
  var RecommendationResourceExclusionList = [1, n0, _RREL,
359
388
  0, () => RecommendationResourceExclusion$
@@ -364,6 +393,7 @@ var RecommendationResourceSummaryList = [1, n0, _RRSL,
364
393
  var RecommendationSummaryList = [1, n0, _RSL,
365
394
  0, () => RecommendationSummary$
366
395
  ];
396
+ var StringList = 64 | 0;
367
397
  var UpdateRecommendationResourceExclusionErrorList = [1, n0, _URREEL,
368
398
  0, () => UpdateRecommendationResourceExclusionError$
369
399
  ];
@@ -395,6 +425,9 @@ export var ListRecommendationResources$ = [9, n0, _LRRis,
395
425
  export var ListRecommendations$ = [9, n0, _LR,
396
426
  { [_h]: ["GET", "/v1/recommendations", 200] }, () => ListRecommendationsRequest$, () => ListRecommendationsResponse$
397
427
  ];
428
+ export var ListRecommendationsForResource$ = [9, n0, _LRFR,
429
+ { [_h]: ["GET", "/v1/recommendations-for-resource/{awsResourceArn}", 200] }, () => ListRecommendationsForResourceRequest$, () => ListRecommendationsForResourceResponse$
430
+ ];
398
431
  export var UpdateOrganizationRecommendationLifecycle$ = [9, n0, _UORL,
399
432
  { [_h]: ["PUT", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle", 200] }, () => UpdateOrganizationRecommendationLifecycleRequest$, () => __Unit
400
433
  ];
@@ -8,6 +8,7 @@ import { type ListOrganizationRecommendationResourcesCommandInput, type ListOrga
8
8
  import { type ListOrganizationRecommendationsCommandInput, type ListOrganizationRecommendationsCommandOutput } from "./commands/ListOrganizationRecommendationsCommand";
9
9
  import { type ListRecommendationResourcesCommandInput, type ListRecommendationResourcesCommandOutput } from "./commands/ListRecommendationResourcesCommand";
10
10
  import { type ListRecommendationsCommandInput, type ListRecommendationsCommandOutput } from "./commands/ListRecommendationsCommand";
11
+ import { type ListRecommendationsForResourceCommandInput, type ListRecommendationsForResourceCommandOutput } from "./commands/ListRecommendationsForResourceCommand";
11
12
  import { type UpdateOrganizationRecommendationLifecycleCommandInput, type UpdateOrganizationRecommendationLifecycleCommandOutput } from "./commands/UpdateOrganizationRecommendationLifecycleCommand";
12
13
  import { type UpdateRecommendationLifecycleCommandInput, type UpdateRecommendationLifecycleCommandOutput } from "./commands/UpdateRecommendationLifecycleCommand";
13
14
  import { TrustedAdvisorClient } from "./TrustedAdvisorClient";
@@ -69,6 +70,12 @@ export interface TrustedAdvisor {
69
70
  listRecommendations(args: ListRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationsCommandOutput>;
70
71
  listRecommendations(args: ListRecommendationsCommandInput, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
71
72
  listRecommendations(args: ListRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
73
+ /**
74
+ * @see {@link ListRecommendationsForResourceCommand}
75
+ */
76
+ listRecommendationsForResource(args: ListRecommendationsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationsForResourceCommandOutput>;
77
+ listRecommendationsForResource(args: ListRecommendationsForResourceCommandInput, cb: (err: any, data?: ListRecommendationsForResourceCommandOutput) => void): void;
78
+ listRecommendationsForResource(args: ListRecommendationsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationsForResourceCommandOutput) => void): void;
72
79
  /**
73
80
  * @see {@link UpdateOrganizationRecommendationLifecycleCommand}
74
81
  */
@@ -123,6 +130,13 @@ export interface TrustedAdvisor {
123
130
  * @returns AsyncIterable of {@link ListRecommendationsCommandOutput}.
124
131
  */
125
132
  paginateListRecommendations(args?: ListRecommendationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRecommendationsCommandOutput>;
133
+ /**
134
+ * @see {@link ListRecommendationsForResourceCommand}
135
+ * @param args - command input.
136
+ * @param paginationConfig - optional pagination config.
137
+ * @returns AsyncIterable of {@link ListRecommendationsForResourceCommandOutput}.
138
+ */
139
+ paginateListRecommendationsForResource(args: ListRecommendationsForResourceCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRecommendationsForResourceCommandOutput>;
126
140
  }
127
141
  /**
128
142
  * <p>TrustedAdvisor Public API</p>
@@ -15,6 +15,7 @@ import type { ListOrganizationRecommendationResourcesCommandInput, ListOrganizat
15
15
  import type { ListOrganizationRecommendationsCommandInput, ListOrganizationRecommendationsCommandOutput } from "./commands/ListOrganizationRecommendationsCommand";
16
16
  import type { ListRecommendationResourcesCommandInput, ListRecommendationResourcesCommandOutput } from "./commands/ListRecommendationResourcesCommand";
17
17
  import type { ListRecommendationsCommandInput, ListRecommendationsCommandOutput } from "./commands/ListRecommendationsCommand";
18
+ import type { ListRecommendationsForResourceCommandInput, ListRecommendationsForResourceCommandOutput } from "./commands/ListRecommendationsForResourceCommand";
18
19
  import type { UpdateOrganizationRecommendationLifecycleCommandInput, UpdateOrganizationRecommendationLifecycleCommandOutput } from "./commands/UpdateOrganizationRecommendationLifecycleCommand";
19
20
  import type { UpdateRecommendationLifecycleCommandInput, UpdateRecommendationLifecycleCommandOutput } from "./commands/UpdateRecommendationLifecycleCommand";
20
21
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
@@ -23,11 +24,11 @@ export { __Client };
23
24
  /**
24
25
  * @public
25
26
  */
26
- export type ServiceInputTypes = BatchUpdateRecommendationResourceExclusionCommandInput | GetOrganizationRecommendationCommandInput | GetRecommendationCommandInput | ListChecksCommandInput | ListOrganizationRecommendationAccountsCommandInput | ListOrganizationRecommendationResourcesCommandInput | ListOrganizationRecommendationsCommandInput | ListRecommendationResourcesCommandInput | ListRecommendationsCommandInput | UpdateOrganizationRecommendationLifecycleCommandInput | UpdateRecommendationLifecycleCommandInput;
27
+ export type ServiceInputTypes = BatchUpdateRecommendationResourceExclusionCommandInput | GetOrganizationRecommendationCommandInput | GetRecommendationCommandInput | ListChecksCommandInput | ListOrganizationRecommendationAccountsCommandInput | ListOrganizationRecommendationResourcesCommandInput | ListOrganizationRecommendationsCommandInput | ListRecommendationResourcesCommandInput | ListRecommendationsCommandInput | ListRecommendationsForResourceCommandInput | UpdateOrganizationRecommendationLifecycleCommandInput | UpdateRecommendationLifecycleCommandInput;
27
28
  /**
28
29
  * @public
29
30
  */
30
- export type ServiceOutputTypes = BatchUpdateRecommendationResourceExclusionCommandOutput | GetOrganizationRecommendationCommandOutput | GetRecommendationCommandOutput | ListChecksCommandOutput | ListOrganizationRecommendationAccountsCommandOutput | ListOrganizationRecommendationResourcesCommandOutput | ListOrganizationRecommendationsCommandOutput | ListRecommendationResourcesCommandOutput | ListRecommendationsCommandOutput | UpdateOrganizationRecommendationLifecycleCommandOutput | UpdateRecommendationLifecycleCommandOutput;
31
+ export type ServiceOutputTypes = BatchUpdateRecommendationResourceExclusionCommandOutput | GetOrganizationRecommendationCommandOutput | GetRecommendationCommandOutput | ListChecksCommandOutput | ListOrganizationRecommendationAccountsCommandOutput | ListOrganizationRecommendationResourcesCommandOutput | ListOrganizationRecommendationsCommandOutput | ListRecommendationResourcesCommandOutput | ListRecommendationsCommandOutput | ListRecommendationsForResourceCommandOutput | UpdateOrganizationRecommendationLifecycleCommandOutput | UpdateRecommendationLifecycleCommandOutput;
31
32
  /**
32
33
  * @public
33
34
  */
@@ -61,6 +61,12 @@ declare const ListChecksCommand_base: {
61
61
  * // metadata: { // StringMap // required
62
62
  * // "<keys>": "STRING_VALUE",
63
63
  * // },
64
+ * // resourceArnQueryable: true || false,
65
+ * // awsResourceTypes: [ // StringList
66
+ * // "STRING_VALUE",
67
+ * // ],
68
+ * // checkGranularity: "STRING_VALUE",
69
+ * // recommendationId: "STRING_VALUE",
64
70
  * // },
65
71
  * // ],
66
72
  * // };
@@ -100,9 +106,13 @@ declare const ListChecksCommand_base: {
100
106
  * checkSummaries: [
101
107
  * {
102
108
  * arn: "arn:aws:trustedadvisor:::check/1iG5NDGVre",
109
+ * awsResourceTypes: [
110
+ * "AWS::EC2::SecurityGroup"
111
+ * ],
103
112
  * awsServices: [
104
113
  * "EC2"
105
114
  * ],
115
+ * checkGranularity: "resource",
106
116
  * description: `Checks security groups for rules that allow unrestricted access to a resource. Unrestricted access increases opportunities for malicious activity (hacking, denial-of-service attacks, loss of data).
107
117
  * <br>
108
118
  * <br>Note: This check only evaluates security groups that you create and their inbound rules for IPv4 addresses. Security groups created by AWS Directory Services are flagged as red or yellow, but they don’t pose a security risk and can be safely ignored or excluded. For more information, see the <a href="https://aws.amazon.com/premiumsupport/faqs/#AWS_Trusted_Advisor" target="_blank">Trusted Advisor FAQ</a>.
@@ -135,13 +145,17 @@ declare const ListChecksCommand_base: {
135
145
  * pillars: [
136
146
  * "security"
137
147
  * ],
148
+ * recommendationId: "9534ec9b-bf3a-44e8-8213-2ed68b39d9d5",
149
+ * resourceArnQueryable: true,
138
150
  * source: "ta_check"
139
151
  * },
140
152
  * {
141
153
  * arn: "arn:aws:trustedadvisor:::check/1qazXsw23e",
154
+ * awsResourceTypes: [],
142
155
  * awsServices: [
143
156
  * "RDS"
144
157
  * ],
158
+ * checkGranularity: "account",
145
159
  * description: `Checks your usage of RDS and provides recommendations on purchase of Reserved Instances to help reduce costs incurred from using RDS On-Demand. AWS generates these recommendations by analyzing your On-Demand usage for the past 30 days. We then simulate every combination of reservations in the generated category of usage in order to identify the best number of each type of Reserved Instance to purchase to maximize your savings. This check covers recommendations based on partial upfront payment option with 1-year or 3-year commitment. This check is not available to accounts linked in Consolidated Billing. Recommendations are only available for the Paying Account.<br/><br/>
146
160
  * <h4 class='headerBodyStyle'>Alert Criteria</h4><br/>
147
161
  * Yellow: Optimizing the purchase of RDS Reserved Instances can help reduce costs.<br/><br/>
@@ -176,13 +190,17 @@ declare const ListChecksCommand_base: {
176
190
  * pillars: [
177
191
  * "cost_optimizing"
178
192
  * ],
193
+ * recommendationId: "8b602b6f-452d-4cb2-8a9e-c7650955d9cd",
194
+ * resourceArnQueryable: false,
179
195
  * source: "ta_check"
180
196
  * },
181
197
  * {
182
198
  * arn: "arn:aws:trustedadvisor:::check/1qw23er45t",
199
+ * awsResourceTypes: [],
183
200
  * awsServices: [
184
201
  * "Redshift"
185
202
  * ],
203
+ * checkGranularity: "account",
186
204
  * description: `Checks your usage of Redshift and provides recommendations on purchase of Reserved Nodes to help reduce costs incurred from using Redshift On-Demand. AWS generates these recommendations by analyzing your On-Demand usage for the past 30 days. We then simulate every combination of reservations in the generated category of usage in order to identify the best number of each type of Reserved Nodes to purchase to maximize your savings. This check covers recommendations based on partial upfront payment option with 1-year or 3-year commitment. This check is not available to accounts linked in Consolidated Billing. Recommendations are only available for the Paying Account.<br/><br/>
187
205
  * <h4 class='headerBodyStyle'>Alert Criteria</h4><br/>Yellow: Optimizing the purchase of Redshift Reserved Nodes can help reduce costs.<br/><br/>
188
206
  * <h4 class='headerBodyStyle'>Recommended Action</h4><br/>See the <a href="https://console.aws.amazon.com/billing/home?/costexplorer#/costexplorer" target="_blank">Cost Explorer</a> page for more detailed recommendations, customization options (e.g. look-back period, payment option, etc.) and to purchase Redshift Reserved Nodes.<br/><br/>
@@ -208,6 +226,8 @@ declare const ListChecksCommand_base: {
208
226
  * pillars: [
209
227
  * "cost_optimizing"
210
228
  * ],
229
+ * recommendationId: "4ecff4d4-1bc1-4c99-a5b8-0fff9ee500d6",
230
+ * resourceArnQueryable: false,
211
231
  * source: "ta_check"
212
232
  * }
213
233
  * ],
@@ -0,0 +1,138 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListRecommendationsForResourceRequest, ListRecommendationsForResourceResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListRecommendationsForResourceCommand}.
11
+ */
12
+ export interface ListRecommendationsForResourceCommandInput extends ListRecommendationsForResourceRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListRecommendationsForResourceCommand}.
18
+ */
19
+ export interface ListRecommendationsForResourceCommandOutput extends ListRecommendationsForResourceResponse, __MetadataBearer {
20
+ }
21
+ declare const ListRecommendationsForResourceCommand_base: {
22
+ new (input: ListRecommendationsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListRecommendationsForResourceCommandInput, ListRecommendationsForResourceCommandOutput, import("..").TrustedAdvisorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListRecommendationsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListRecommendationsForResourceCommandInput, ListRecommendationsForResourceCommandOutput, import("..").TrustedAdvisorClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>List all Trusted Advisor recommendations for a given AWS resource ARN.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { TrustedAdvisorClient, ListRecommendationsForResourceCommand } from "@aws-sdk/client-trustedadvisor"; // ES Modules import
32
+ * // const { TrustedAdvisorClient, ListRecommendationsForResourceCommand } = require("@aws-sdk/client-trustedadvisor"); // CommonJS import
33
+ * // import type { TrustedAdvisorClientConfig } from "@aws-sdk/client-trustedadvisor";
34
+ * const config = {}; // type is TrustedAdvisorClientConfig
35
+ * const client = new TrustedAdvisorClient(config);
36
+ * const input = { // ListRecommendationsForResourceRequest
37
+ * nextToken: "STRING_VALUE",
38
+ * maxResults: Number("int"),
39
+ * awsResourceArn: "STRING_VALUE", // required
40
+ * pillar: "cost_optimizing" || "performance" || "security" || "service_limits" || "fault_tolerance" || "operational_excellence",
41
+ * status: "ok" || "warning" || "error",
42
+ * checkArn: "STRING_VALUE",
43
+ * language: "en" || "ja" || "zh" || "fr" || "de" || "ko" || "zh_TW" || "it" || "es" || "pt_BR" || "id",
44
+ * };
45
+ * const command = new ListRecommendationsForResourceCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // ListRecommendationsForResourceResponse
48
+ * // nextToken: "STRING_VALUE",
49
+ * // recommendationForResourceSummaries: [ // RecommendationForResourceSummaryList // required
50
+ * // { // RecommendationForResourceSummary
51
+ * // checkArn: "STRING_VALUE", // required
52
+ * // recommendationArn: "STRING_VALUE", // required
53
+ * // awsResourceArn: "STRING_VALUE", // required
54
+ * // status: "ok" || "warning" || "error", // required
55
+ * // lastUpdatedAt: new Date("TIMESTAMP"), // required
56
+ * // exclusionStatus: "excluded" || "included", // required
57
+ * // metadata: { // StringMap // required
58
+ * // "<keys>": "STRING_VALUE",
59
+ * // },
60
+ * // pillars: [ // RecommendationPillarList // required
61
+ * // "cost_optimizing" || "performance" || "security" || "service_limits" || "fault_tolerance" || "operational_excellence",
62
+ * // ],
63
+ * // },
64
+ * // ],
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param ListRecommendationsForResourceCommandInput - {@link ListRecommendationsForResourceCommandInput}
70
+ * @returns {@link ListRecommendationsForResourceCommandOutput}
71
+ * @see {@link ListRecommendationsForResourceCommandInput} for command's `input` shape.
72
+ * @see {@link ListRecommendationsForResourceCommandOutput} for command's `response` shape.
73
+ * @see {@link TrustedAdvisorClientResolvedConfig | config} for TrustedAdvisorClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>Exception that access has been denied due to insufficient access</p>
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p>Exception to notify that an unexpected internal error occurred during processing of the request</p>
80
+ *
81
+ * @throws {@link ThrottlingException} (client fault)
82
+ * <p>Exception to notify that requests are being throttled</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>Exception that the request failed to satisfy service constraints</p>
86
+ *
87
+ * @throws {@link TrustedAdvisorServiceException}
88
+ * <p>Base exception class for all service exceptions from TrustedAdvisor service.</p>
89
+ *
90
+ *
91
+ * @example List all Trusted Advisor Recommendations for an AWS Resource
92
+ * ```javascript
93
+ * //
94
+ * const input = {
95
+ * awsResourceArn: "arn:aws:ec2:us-east-1:000000000000:instance/i-0abcd1234efgh5678"
96
+ * };
97
+ * const command = new ListRecommendationsForResourceCommand(input);
98
+ * const response = await client.send(command);
99
+ * /* response is
100
+ * {
101
+ * nextToken: "<REDACTED>",
102
+ * recommendationForResourceSummaries: [
103
+ * {
104
+ * awsResourceArn: "arn:aws:ec2:us-east-1:000000000000:instance/i-0abcd1234efgh5678",
105
+ * checkArn: "arn:aws:trustedadvisor:::check/Qch7DwouX1",
106
+ * exclusionStatus: "included",
107
+ * lastUpdatedAt: "2026-05-21T15:09:51.891Z",
108
+ * metadata: {
109
+ * Region: "us-east-1",
110
+ * Resource: "i-0abcd1234efgh5678",
111
+ * Status: "Yellow"
112
+ * },
113
+ * pillars: [
114
+ * "cost_optimizing"
115
+ * ],
116
+ * recommendationArn: "arn:aws:trustedadvisor::000000000000:recommendation/55fa4d2e-bbb7-491a-833b-5773e9589578",
117
+ * status: "warning"
118
+ * }
119
+ * ]
120
+ * }
121
+ * *\/
122
+ * ```
123
+ *
124
+ * @public
125
+ */
126
+ export declare class ListRecommendationsForResourceCommand extends ListRecommendationsForResourceCommand_base {
127
+ /** @internal type navigation helper, not in runtime. */
128
+ protected static __types: {
129
+ api: {
130
+ input: ListRecommendationsForResourceRequest;
131
+ output: ListRecommendationsForResourceResponse;
132
+ };
133
+ sdk: {
134
+ input: ListRecommendationsForResourceCommandInput;
135
+ output: ListRecommendationsForResourceCommandOutput;
136
+ };
137
+ };
138
+ }
@@ -7,5 +7,6 @@ export * from "./ListOrganizationRecommendationResourcesCommand";
7
7
  export * from "./ListOrganizationRecommendationsCommand";
8
8
  export * from "./ListRecommendationResourcesCommand";
9
9
  export * from "./ListRecommendationsCommand";
10
+ export * from "./ListRecommendationsForResourceCommand";
10
11
  export * from "./UpdateOrganizationRecommendationLifecycleCommand";
11
12
  export * from "./UpdateRecommendationLifecycleCommand";
@@ -147,6 +147,26 @@ export interface CheckSummary {
147
147
  * @public
148
148
  */
149
149
  metadata: Record<string, string> | undefined;
150
+ /**
151
+ * <p>Indicates whether this check is supported by the ListRecommendationsForResource API.</p>
152
+ * @public
153
+ */
154
+ resourceArnQueryable?: boolean | undefined;
155
+ /**
156
+ * <p>The AWS resource types that this check evaluates (for example, AWS::EC2::Instance).</p>
157
+ * @public
158
+ */
159
+ awsResourceTypes?: string[] | undefined;
160
+ /**
161
+ * <p>The granularity level at which the check operates: resource, account, or account_region.</p>
162
+ * @public
163
+ */
164
+ checkGranularity?: string | undefined;
165
+ /**
166
+ * <p>The recommendation identifier associated with the check.</p>
167
+ * @public
168
+ */
169
+ recommendationId?: string | undefined;
150
170
  }
151
171
  /**
152
172
  * @public
@@ -1082,6 +1102,107 @@ export interface ListRecommendationsResponse {
1082
1102
  */
1083
1103
  recommendationSummaries: RecommendationSummary[] | undefined;
1084
1104
  }
1105
+ /**
1106
+ * @public
1107
+ */
1108
+ export interface ListRecommendationsForResourceRequest {
1109
+ /**
1110
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. </p>
1111
+ * @public
1112
+ */
1113
+ nextToken?: string | undefined;
1114
+ /**
1115
+ * <p>The maximum number of results to return per page</p>
1116
+ * @public
1117
+ */
1118
+ maxResults?: number | undefined;
1119
+ /**
1120
+ * <p>The ARN of the AWS resource to query recommendations for</p>
1121
+ * @public
1122
+ */
1123
+ awsResourceArn: string | undefined;
1124
+ /**
1125
+ * <p>The pillar that the recommendation belongs to</p>
1126
+ * @public
1127
+ */
1128
+ pillar?: RecommendationPillar | undefined;
1129
+ /**
1130
+ * <p>The current status of the Recommendation Resource</p>
1131
+ * @public
1132
+ */
1133
+ status?: ResourceStatus | undefined;
1134
+ /**
1135
+ * <p>The AWS Trusted Advisor Check ARN that relates to the Recommendation</p>
1136
+ * @public
1137
+ */
1138
+ checkArn?: string | undefined;
1139
+ /**
1140
+ * <p>The ISO 639-1 code for the language that you want your recommendations to appear in.</p>
1141
+ * @public
1142
+ */
1143
+ language?: RecommendationLanguage | undefined;
1144
+ }
1145
+ /**
1146
+ * <p>Summary of a Recommendation for a specific AWS Resource</p>
1147
+ * @public
1148
+ */
1149
+ export interface RecommendationForResourceSummary {
1150
+ /**
1151
+ * <p>The Check ARN</p>
1152
+ * @public
1153
+ */
1154
+ checkArn: string | undefined;
1155
+ /**
1156
+ * <p>The Recommendation ARN</p>
1157
+ * @public
1158
+ */
1159
+ recommendationArn: string | undefined;
1160
+ /**
1161
+ * <p>The AWS Resource ARN</p>
1162
+ * @public
1163
+ */
1164
+ awsResourceArn: string | undefined;
1165
+ /**
1166
+ * <p>The current status of the recommendation</p>
1167
+ * @public
1168
+ */
1169
+ status: ResourceStatus | undefined;
1170
+ /**
1171
+ * <p>When the recommendation was last updated</p>
1172
+ * @public
1173
+ */
1174
+ lastUpdatedAt: Date | undefined;
1175
+ /**
1176
+ * <p>The exclusion status of the recommendation</p>
1177
+ * @public
1178
+ */
1179
+ exclusionStatus: ExclusionStatus | undefined;
1180
+ /**
1181
+ * <p>Metadata associated with the recommendation</p>
1182
+ * @public
1183
+ */
1184
+ metadata: Record<string, string> | undefined;
1185
+ /**
1186
+ * <p>The Pillars that the Recommendation is optimizing</p>
1187
+ * @public
1188
+ */
1189
+ pillars: RecommendationPillar[] | undefined;
1190
+ }
1191
+ /**
1192
+ * @public
1193
+ */
1194
+ export interface ListRecommendationsForResourceResponse {
1195
+ /**
1196
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. </p>
1197
+ * @public
1198
+ */
1199
+ nextToken?: string | undefined;
1200
+ /**
1201
+ * <p>List of Trusted Advisor recommendations associated with the given AWS resource</p>
1202
+ * @public
1203
+ */
1204
+ recommendationForResourceSummaries: RecommendationForResourceSummary[] | undefined;
1205
+ }
1085
1206
  /**
1086
1207
  * @public
1087
1208
  */
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListRecommendationsForResourceCommandInput, ListRecommendationsForResourceCommandOutput } from "../commands/ListRecommendationsForResourceCommand";
3
+ import type { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListRecommendationsForResource: (config: TrustedAdvisorPaginationConfiguration, input: ListRecommendationsForResourceCommandInput, ...rest: any[]) => Paginator<ListRecommendationsForResourceCommandOutput>;
@@ -5,3 +5,4 @@ export * from "./ListOrganizationRecommendationResourcesPaginator";
5
5
  export * from "./ListOrganizationRecommendationsPaginator";
6
6
  export * from "./ListRecommendationResourcesPaginator";
7
7
  export * from "./ListRecommendationsPaginator";
8
+ export * from "./ListRecommendationsForResourcePaginator";
@@ -31,6 +31,8 @@ export declare var ListOrganizationRecommendationsRequest$: StaticStructureSchem
31
31
  export declare var ListOrganizationRecommendationsResponse$: StaticStructureSchema;
32
32
  export declare var ListRecommendationResourcesRequest$: StaticStructureSchema;
33
33
  export declare var ListRecommendationResourcesResponse$: StaticStructureSchema;
34
+ export declare var ListRecommendationsForResourceRequest$: StaticStructureSchema;
35
+ export declare var ListRecommendationsForResourceResponse$: StaticStructureSchema;
34
36
  export declare var ListRecommendationsRequest$: StaticStructureSchema;
35
37
  export declare var ListRecommendationsResponse$: StaticStructureSchema;
36
38
  export declare var OrganizationRecommendation$: StaticStructureSchema;
@@ -38,6 +40,7 @@ export declare var OrganizationRecommendationResourceSummary$: StaticStructureSc
38
40
  export declare var OrganizationRecommendationSummary$: StaticStructureSchema;
39
41
  export declare var Recommendation$: StaticStructureSchema;
40
42
  export declare var RecommendationCostOptimizingAggregates$: StaticStructureSchema;
43
+ export declare var RecommendationForResourceSummary$: StaticStructureSchema;
41
44
  export declare var RecommendationPillarSpecificAggregates$: StaticStructureSchema;
42
45
  export declare var RecommendationResourceExclusion$: StaticStructureSchema;
43
46
  export declare var RecommendationResourcesAggregates$: StaticStructureSchema;
@@ -55,5 +58,6 @@ export declare var ListOrganizationRecommendationResources$: StaticOperationSche
55
58
  export declare var ListOrganizationRecommendations$: StaticOperationSchema;
56
59
  export declare var ListRecommendationResources$: StaticOperationSchema;
57
60
  export declare var ListRecommendations$: StaticOperationSchema;
61
+ export declare var ListRecommendationsForResource$: StaticOperationSchema;
58
62
  export declare var UpdateOrganizationRecommendationLifecycle$: StaticOperationSchema;
59
63
  export declare var UpdateRecommendationLifecycle$: StaticOperationSchema;
@@ -36,6 +36,10 @@ import {
36
36
  ListRecommendationsCommandInput,
37
37
  ListRecommendationsCommandOutput,
38
38
  } from "./commands/ListRecommendationsCommand";
39
+ import {
40
+ ListRecommendationsForResourceCommandInput,
41
+ ListRecommendationsForResourceCommandOutput,
42
+ } from "./commands/ListRecommendationsForResourceCommand";
39
43
  import {
40
44
  UpdateOrganizationRecommendationLifecycleCommandInput,
41
45
  UpdateOrganizationRecommendationLifecycleCommandOutput,
@@ -166,6 +170,19 @@ export interface TrustedAdvisor {
166
170
  options: __HttpHandlerOptions,
167
171
  cb: (err: any, data?: ListRecommendationsCommandOutput) => void,
168
172
  ): void;
173
+ listRecommendationsForResource(
174
+ args: ListRecommendationsForResourceCommandInput,
175
+ options?: __HttpHandlerOptions,
176
+ ): Promise<ListRecommendationsForResourceCommandOutput>;
177
+ listRecommendationsForResource(
178
+ args: ListRecommendationsForResourceCommandInput,
179
+ cb: (err: any, data?: ListRecommendationsForResourceCommandOutput) => void,
180
+ ): void;
181
+ listRecommendationsForResource(
182
+ args: ListRecommendationsForResourceCommandInput,
183
+ options: __HttpHandlerOptions,
184
+ cb: (err: any, data?: ListRecommendationsForResourceCommandOutput) => void,
185
+ ): void;
169
186
  updateOrganizationRecommendationLifecycle(
170
187
  args: UpdateOrganizationRecommendationLifecycleCommandInput,
171
188
  options?: __HttpHandlerOptions,
@@ -234,5 +251,12 @@ export interface TrustedAdvisor {
234
251
  Exclude<keyof PaginationConfiguration, "client">
235
252
  >,
236
253
  ): Paginator<ListRecommendationsCommandOutput>;
254
+ paginateListRecommendationsForResource(
255
+ args: ListRecommendationsForResourceCommandInput,
256
+ paginationConfig?: Pick<
257
+ PaginationConfiguration,
258
+ Exclude<keyof PaginationConfiguration, "client">
259
+ >,
260
+ ): Paginator<ListRecommendationsForResourceCommandOutput>;
237
261
  }
238
262
  export declare class TrustedAdvisor extends TrustedAdvisorClient implements TrustedAdvisor {}
@@ -66,6 +66,10 @@ import {
66
66
  ListRecommendationsCommandInput,
67
67
  ListRecommendationsCommandOutput,
68
68
  } from "./commands/ListRecommendationsCommand";
69
+ import {
70
+ ListRecommendationsForResourceCommandInput,
71
+ ListRecommendationsForResourceCommandOutput,
72
+ } from "./commands/ListRecommendationsForResourceCommand";
69
73
  import {
70
74
  UpdateOrganizationRecommendationLifecycleCommandInput,
71
75
  UpdateOrganizationRecommendationLifecycleCommandOutput,
@@ -91,6 +95,7 @@ export type ServiceInputTypes =
91
95
  | ListOrganizationRecommendationsCommandInput
92
96
  | ListRecommendationResourcesCommandInput
93
97
  | ListRecommendationsCommandInput
98
+ | ListRecommendationsForResourceCommandInput
94
99
  | UpdateOrganizationRecommendationLifecycleCommandInput
95
100
  | UpdateRecommendationLifecycleCommandInput;
96
101
  export type ServiceOutputTypes =
@@ -103,6 +108,7 @@ export type ServiceOutputTypes =
103
108
  | ListOrganizationRecommendationsCommandOutput
104
109
  | ListRecommendationResourcesCommandOutput
105
110
  | ListRecommendationsCommandOutput
111
+ | ListRecommendationsForResourceCommandOutput
106
112
  | UpdateOrganizationRecommendationLifecycleCommandOutput
107
113
  | UpdateRecommendationLifecycleCommandOutput;
108
114
  export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ ListRecommendationsForResourceRequest,
4
+ ListRecommendationsForResourceResponse,
5
+ } from "../models/models_0";
6
+ export { __MetadataBearer };
7
+ export interface ListRecommendationsForResourceCommandInput extends ListRecommendationsForResourceRequest {}
8
+ export interface ListRecommendationsForResourceCommandOutput
9
+ extends ListRecommendationsForResourceResponse, __MetadataBearer {}
10
+ declare const ListRecommendationsForResourceCommand_base: {
11
+ new (
12
+ input: ListRecommendationsForResourceCommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ ListRecommendationsForResourceCommandInput,
15
+ ListRecommendationsForResourceCommandOutput,
16
+ import("..").TrustedAdvisorClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ input: ListRecommendationsForResourceCommandInput,
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ ListRecommendationsForResourceCommandInput,
24
+ ListRecommendationsForResourceCommandOutput,
25
+ import("..").TrustedAdvisorClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class ListRecommendationsForResourceCommand extends ListRecommendationsForResourceCommand_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: ListRecommendationsForResourceRequest;
35
+ output: ListRecommendationsForResourceResponse;
36
+ };
37
+ sdk: {
38
+ input: ListRecommendationsForResourceCommandInput;
39
+ output: ListRecommendationsForResourceCommandOutput;
40
+ };
41
+ };
42
+ }
@@ -7,5 +7,6 @@ export * from "./ListOrganizationRecommendationResourcesCommand";
7
7
  export * from "./ListOrganizationRecommendationsCommand";
8
8
  export * from "./ListRecommendationResourcesCommand";
9
9
  export * from "./ListRecommendationsCommand";
10
+ export * from "./ListRecommendationsForResourceCommand";
10
11
  export * from "./UpdateOrganizationRecommendationLifecycleCommand";
11
12
  export * from "./UpdateRecommendationLifecycleCommand";
@@ -47,6 +47,10 @@ export interface CheckSummary {
47
47
  awsServices: string[] | undefined;
48
48
  source: RecommendationSource | undefined;
49
49
  metadata: Record<string, string> | undefined;
50
+ resourceArnQueryable?: boolean | undefined;
51
+ awsResourceTypes?: string[] | undefined;
52
+ checkGranularity?: string | undefined;
53
+ recommendationId?: string | undefined;
50
54
  }
51
55
  export interface GetOrganizationRecommendationRequest {
52
56
  organizationRecommendationIdentifier: string | undefined;
@@ -260,6 +264,29 @@ export interface ListRecommendationsResponse {
260
264
  nextToken?: string | undefined;
261
265
  recommendationSummaries: RecommendationSummary[] | undefined;
262
266
  }
267
+ export interface ListRecommendationsForResourceRequest {
268
+ nextToken?: string | undefined;
269
+ maxResults?: number | undefined;
270
+ awsResourceArn: string | undefined;
271
+ pillar?: RecommendationPillar | undefined;
272
+ status?: ResourceStatus | undefined;
273
+ checkArn?: string | undefined;
274
+ language?: RecommendationLanguage | undefined;
275
+ }
276
+ export interface RecommendationForResourceSummary {
277
+ checkArn: string | undefined;
278
+ recommendationArn: string | undefined;
279
+ awsResourceArn: string | undefined;
280
+ status: ResourceStatus | undefined;
281
+ lastUpdatedAt: Date | undefined;
282
+ exclusionStatus: ExclusionStatus | undefined;
283
+ metadata: Record<string, string> | undefined;
284
+ pillars: RecommendationPillar[] | undefined;
285
+ }
286
+ export interface ListRecommendationsForResourceResponse {
287
+ nextToken?: string | undefined;
288
+ recommendationForResourceSummaries: RecommendationForResourceSummary[] | undefined;
289
+ }
263
290
  export interface UpdateOrganizationRecommendationLifecycleRequest {
264
291
  lifecycleStage: UpdateRecommendationLifecycleStage | undefined;
265
292
  updateReason?: string | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListRecommendationsForResourceCommandInput,
4
+ ListRecommendationsForResourceCommandOutput,
5
+ } from "../commands/ListRecommendationsForResourceCommand";
6
+ import { TrustedAdvisorPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListRecommendationsForResource: (
8
+ config: TrustedAdvisorPaginationConfiguration,
9
+ input: ListRecommendationsForResourceCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListRecommendationsForResourceCommandOutput>;
@@ -5,3 +5,4 @@ export * from "./ListOrganizationRecommendationResourcesPaginator";
5
5
  export * from "./ListOrganizationRecommendationsPaginator";
6
6
  export * from "./ListRecommendationResourcesPaginator";
7
7
  export * from "./ListRecommendationsPaginator";
8
+ export * from "./ListRecommendationsForResourcePaginator";
@@ -26,6 +26,8 @@ export declare var ListOrganizationRecommendationsRequest$: StaticStructureSchem
26
26
  export declare var ListOrganizationRecommendationsResponse$: StaticStructureSchema;
27
27
  export declare var ListRecommendationResourcesRequest$: StaticStructureSchema;
28
28
  export declare var ListRecommendationResourcesResponse$: StaticStructureSchema;
29
+ export declare var ListRecommendationsForResourceRequest$: StaticStructureSchema;
30
+ export declare var ListRecommendationsForResourceResponse$: StaticStructureSchema;
29
31
  export declare var ListRecommendationsRequest$: StaticStructureSchema;
30
32
  export declare var ListRecommendationsResponse$: StaticStructureSchema;
31
33
  export declare var OrganizationRecommendation$: StaticStructureSchema;
@@ -33,6 +35,7 @@ export declare var OrganizationRecommendationResourceSummary$: StaticStructureSc
33
35
  export declare var OrganizationRecommendationSummary$: StaticStructureSchema;
34
36
  export declare var Recommendation$: StaticStructureSchema;
35
37
  export declare var RecommendationCostOptimizingAggregates$: StaticStructureSchema;
38
+ export declare var RecommendationForResourceSummary$: StaticStructureSchema;
36
39
  export declare var RecommendationPillarSpecificAggregates$: StaticStructureSchema;
37
40
  export declare var RecommendationResourceExclusion$: StaticStructureSchema;
38
41
  export declare var RecommendationResourcesAggregates$: StaticStructureSchema;
@@ -50,5 +53,6 @@ export declare var ListOrganizationRecommendationResources$: StaticOperationSche
50
53
  export declare var ListOrganizationRecommendations$: StaticOperationSchema;
51
54
  export declare var ListRecommendationResources$: StaticOperationSchema;
52
55
  export declare var ListRecommendations$: StaticOperationSchema;
56
+ export declare var ListRecommendationsForResource$: StaticOperationSchema;
53
57
  export declare var UpdateOrganizationRecommendationLifecycle$: StaticOperationSchema;
54
58
  export declare var UpdateRecommendationLifecycle$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-trustedadvisor",
3
- "version": "3.1095.0",
3
+ "version": "3.1097.0",
4
4
  "description": "AWS SDK for JavaScript Trustedadvisor Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-trustedadvisor",
6
6
  "license": "Apache-2.0",
@@ -46,8 +46,8 @@
46
46
  "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.977.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.72",
49
+ "@aws-sdk/core": "^3.977.2",
50
+ "@aws-sdk/credential-provider-node": "^3.972.74",
51
51
  "@aws-sdk/types": "^3.974.2",
52
52
  "@smithy/core": "^3.29.8",
53
53
  "@smithy/fetch-http-handler": "^5.6.10",