update_recommendation_lifecycle
async
¶
update_recommendation_lifecycle(
lifecycle_stage: UpdateRecommendationLifecycleStage,
recommendation_identifier: AccountRecommendationIdentifier,
*,
config_overrides: Optional[AsyncTrustedAdvisorClientConfig] = None,
update_reason: Optional[RecommendationUpdateReason] = None,
update_reason_code: Optional[UpdateRecommendationLifecycleStageReasonCode] = None,
) -> None
Update the lifecyle of a Recommendation. 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
-
recommendation_identifier(AccountRecommendationIdentifier) –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 a Recommendation managed by AWS Trusted Advisor Priority
>>> await client.update_recommendation_lifecycle(recommendation_identifier='arn:aws:trustedadvisor::000000000000:recommendation/861c9c6e-f169-405a-8b59-537a8caccd7a', lifecycle_stage='resolved', update_reason_code='valid_business_case', update_reason='Resolved the recommendation')
Source code in docs_src/capo_trustedadvisor/_services/async_trusted_advisor.py
1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 | |