update_organization_recommendation_lifecycle
¶
update_organization_recommendation_lifecycle(
lifecycle_stage: UpdateRecommendationLifecycleStage,
organization_recommendation_identifier: OrganizationRecommendationIdentifier,
*,
config_overrides: Optional[TrustedAdvisorClientConfig] = None,
update_reason: Optional[RecommendationUpdateReason] = None,
update_reason_code: Optional[UpdateRecommendationLifecycleStageReasonCode] = None,
) -> None
Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations and updates global priority recommendations, eliminating the need to call the API in each AWS Region.
Parameters:
-
lifecycle_stage(UpdateRecommendationLifecycleStage) –The new lifecycle stage
-
update_reason(Optional[RecommendationUpdateReason], default:None) –Reason for the lifecycle stage change
-
update_reason_code(Optional[UpdateRecommendationLifecycleStageReasonCode], default:None) –Reason code for the lifecycle state change
-
organization_recommendation_identifier(OrganizationRecommendationIdentifier) –The Recommendation identifier for AWS Trusted Advisor Priority recommendations
Raises:
-
AccessDeniedException–Exception that access has been denied due to insufficient access
-
ConflictException–Exception that the request was denied due to conflictions in state
-
InternalServerException–Exception to notify that an unexpected internal error occurred during processing of the request
-
ResourceNotFoundException–Exception that the requested resource has not been found
-
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:
Update the lifecycle stage of an AWS Organization's Recommendation that is managed by AWS Trusted Advisor Priority
>>> client.update_organization_recommendation_lifecycle(organization_recommendation_identifier='arn:aws:trustedadvisor:::organization-recommendation/96b5e5ca-7930-444c-90c6-06d386128100', lifecycle_stage='dismissed', update_reason_code='not_applicable', update_reason='Does not apply to this resource')
Source code in docs_src/capo_trustedadvisor/_services/trusted_advisor.py
1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 | |