list_recommendations_for_resource
async
¶
list_recommendations_for_resource(
aws_resource_arn: AwsResourceArn,
*,
config_overrides: Optional[AsyncTrustedAdvisorClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
pillar: Optional[RecommendationPillar] = None,
status: Optional[ResourceStatus] = None,
check_arn: Optional[CheckArn] = None,
language: Optional[RecommendationLanguage] = None,
) -> ListRecommendationsForResourceResponse
List all Trusted Advisor recommendations for a given AWS resource ARN.
Parameters:
-
next_token(Optional[str], default:None) –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.
-
max_results(Optional[int], default:None) –The maximum number of results to return per page
-
aws_resource_arn(AwsResourceArn) –The ARN of the AWS resource to query recommendations for
-
pillar(Optional[RecommendationPillar], default:None) –The pillar that the recommendation belongs to
-
status(Optional[ResourceStatus], default:None) –The current status of the Recommendation Resource
-
check_arn(Optional[CheckArn], default:None) –The AWS Trusted Advisor Check ARN that relates to the Recommendation
-
language(Optional[RecommendationLanguage], default:None) –The ISO 639-1 code for the language that you want your recommendations to appear in.
Raises:
-
AccessDeniedException–Exception that access has been denied due to insufficient access
-
InternalServerException–Exception to notify that an unexpected internal error occurred during processing of the request
-
ThrottlingException–Exception to notify that requests are being throttled
-
ValidationException–Exception that the request failed to satisfy service constraints
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List all Trusted Advisor Recommendations for an AWS Resource
>>> await client.list_recommendations_for_resource(aws_resource_arn='arn:aws:ec2:us-east-1:000000000000:instance/i-0abcd1234efgh5678')
Source code in docs_src/capo_trustedadvisor/_services/async_trusted_advisor.py
1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 | |