Skip to content

Commit 0d3413e

Browse files
author
AWS
committed
TrustedAdvisor Public API Update: This release adds the BatchUpdateRecommendationResourceExclusion API to support batch updates of Recommendation Resource exclusion statuses and introduces a new exclusion status filter to the ListRecommendationResources and ListOrganizationRecommendationResources APIs.
1 parent 9b42f8a commit 0d3413e

File tree

2 files changed

+123
-1
lines changed

2 files changed

+123
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "TrustedAdvisor Public API",
4+
"contributor": "",
5+
"description": "This release adds the BatchUpdateRecommendationResourceExclusion API to support batch updates of Recommendation Resource exclusion statuses and introduces a new exclusion status filter to the ListRecommendationResources and ListOrganizationRecommendationResources APIs."
6+
}

services/trustedadvisor/src/main/resources/codegen-resources/service-2.json

Lines changed: 117 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,25 @@
1212
"uid":"trustedadvisor-2022-09-15"
1313
},
1414
"operations":{
15+
"BatchUpdateRecommendationResourceExclusion":{
16+
"name":"BatchUpdateRecommendationResourceExclusion",
17+
"http":{
18+
"method":"PUT",
19+
"requestUri":"/v1/batch-update-recommendation-resource-exclusion",
20+
"responseCode":200
21+
},
22+
"input":{"shape":"BatchUpdateRecommendationResourceExclusionRequest"},
23+
"output":{"shape":"BatchUpdateRecommendationResourceExclusionResponse"},
24+
"errors":[
25+
{"shape":"AccessDeniedException"},
26+
{"shape":"ConflictException"},
27+
{"shape":"InternalServerException"},
28+
{"shape":"ValidationException"},
29+
{"shape":"ThrottlingException"}
30+
],
31+
"documentation":"<p>Update one or more exclusion status for a list of recommendation resources</p>",
32+
"idempotent":true
33+
},
1534
"GetOrganizationRecommendation":{
1635
"name":"GetOrganizationRecommendation",
1736
"http":{
@@ -169,7 +188,7 @@
169188
{"shape":"ResourceNotFoundException"},
170189
{"shape":"ThrottlingException"}
171190
],
172-
"documentation":"<p>Update the lifecyle of a Recommendation within an Organization. This API only supports prioritized recommendations. </p>",
191+
"documentation":"<p>Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations. </p>",
173192
"idempotent":true
174193
},
175194
"UpdateRecommendationLifecycle":{
@@ -266,6 +285,30 @@
266285
"type":"list",
267286
"member":{"shape":"AccountRecommendationLifecycleSummary"}
268287
},
288+
"BatchUpdateRecommendationResourceExclusionRequest":{
289+
"type":"structure",
290+
"required":["recommendationResourceExclusions"],
291+
"members":{
292+
"recommendationResourceExclusions":{
293+
"shape":"RecommendationResourceExclusionList",
294+
"documentation":"<p>A list of recommendation resource ARNs and exclusion status to update</p>"
295+
}
296+
}
297+
},
298+
"BatchUpdateRecommendationResourceExclusionResponse":{
299+
"type":"structure",
300+
"required":["batchUpdateRecommendationResourceExclusionErrors"],
301+
"members":{
302+
"batchUpdateRecommendationResourceExclusionErrors":{
303+
"shape":"UpdateRecommendationResourceExclusionErrorList",
304+
"documentation":"<p>A list of recommendation resource ARNs whose exclusion status failed to update, if any</p>"
305+
}
306+
}
307+
},
308+
"Boolean":{
309+
"type":"boolean",
310+
"box":true
311+
},
269312
"CheckArn":{
270313
"type":"string",
271314
"max":2048,
@@ -347,6 +390,13 @@
347390
"type":"double",
348391
"box":true
349392
},
393+
"ExclusionStatus":{
394+
"type":"string",
395+
"enum":[
396+
"excluded",
397+
"included"
398+
]
399+
},
350400
"GetOrganizationRecommendationRequest":{
351401
"type":"structure",
352402
"required":["organizationRecommendationIdentifier"],
@@ -542,6 +592,12 @@
542592
"location":"querystring",
543593
"locationName":"affectedAccountId"
544594
},
595+
"exclusionStatus":{
596+
"shape":"ExclusionStatus",
597+
"documentation":"<p>The exclusion status of the resource</p>",
598+
"location":"querystring",
599+
"locationName":"exclusionStatus"
600+
},
545601
"maxResults":{
546602
"shape":"ListOrganizationRecommendationResourcesRequestMaxResultsInteger",
547603
"documentation":"<p>The maximum number of results to return per page.</p>",
@@ -703,6 +759,12 @@
703759
"type":"structure",
704760
"required":["recommendationIdentifier"],
705761
"members":{
762+
"exclusionStatus":{
763+
"shape":"ExclusionStatus",
764+
"documentation":"<p>The exclusion status of the resource</p>",
765+
"location":"querystring",
766+
"locationName":"exclusionStatus"
767+
},
706768
"maxResults":{
707769
"shape":"ListRecommendationResourcesRequestMaxResultsInteger",
708770
"documentation":"<p>The maximum number of results to return per page.</p>",
@@ -1002,6 +1064,10 @@
10021064
"shape":"String",
10031065
"documentation":"<p>The AWS resource identifier</p>"
10041066
},
1067+
"exclusionStatus":{
1068+
"shape":"ExclusionStatus",
1069+
"documentation":"<p>The exclusion status of the Recommendation Resource</p>"
1070+
},
10051071
"id":{
10061072
"shape":"String",
10071073
"documentation":"<p>The ID of the Recommendation Resource</p>"
@@ -1298,6 +1364,30 @@
12981364
"min":20,
12991365
"pattern":"^arn:[\\w-]+:trustedadvisor::\\d{12}:recommendation-resource\\/[\\w-]+\\/[\\w-]+$"
13001366
},
1367+
"RecommendationResourceExclusion":{
1368+
"type":"structure",
1369+
"required":[
1370+
"arn",
1371+
"isExcluded"
1372+
],
1373+
"members":{
1374+
"arn":{
1375+
"shape":"RecommendationResourceArn",
1376+
"documentation":"<p>The ARN of the Recommendation Resource</p>"
1377+
},
1378+
"isExcluded":{
1379+
"shape":"Boolean",
1380+
"documentation":"<p>The exclusion status</p>"
1381+
}
1382+
},
1383+
"documentation":"<p>The request entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN and corresponding exclusion status</p>"
1384+
},
1385+
"RecommendationResourceExclusionList":{
1386+
"type":"list",
1387+
"member":{"shape":"RecommendationResourceExclusion"},
1388+
"max":100,
1389+
"min":1
1390+
},
13011391
"RecommendationResourceSummary":{
13021392
"type":"structure",
13031393
"required":[
@@ -1319,6 +1409,10 @@
13191409
"shape":"String",
13201410
"documentation":"<p>The AWS resource identifier</p>"
13211411
},
1412+
"exclusionStatus":{
1413+
"shape":"ExclusionStatus",
1414+
"documentation":"<p>The exclusion status of the Recommendation Resource</p>"
1415+
},
13221416
"id":{
13231417
"shape":"String",
13241418
"documentation":"<p>The ID of the Recommendation Resource</p>"
@@ -1610,6 +1704,28 @@
16101704
"other"
16111705
]
16121706
},
1707+
"UpdateRecommendationResourceExclusionError":{
1708+
"type":"structure",
1709+
"members":{
1710+
"arn":{
1711+
"shape":"RecommendationResourceArn",
1712+
"documentation":"<p>The ARN of the Recommendation Resource</p>"
1713+
},
1714+
"errorCode":{
1715+
"shape":"String",
1716+
"documentation":"<p>The error code</p>"
1717+
},
1718+
"errorMessage":{
1719+
"shape":"String",
1720+
"documentation":"<p>The error message</p>"
1721+
}
1722+
},
1723+
"documentation":"<p>The error entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN, error code and error message</p>"
1724+
},
1725+
"UpdateRecommendationResourceExclusionErrorList":{
1726+
"type":"list",
1727+
"member":{"shape":"UpdateRecommendationResourceExclusionError"}
1728+
},
16131729
"ValidationException":{
16141730
"type":"structure",
16151731
"required":["message"],

0 commit comments

Comments
 (0)