updateRecommendationLifecycle

Update the lifecyle of a Recommendation. This API only supports prioritized recommendations.

Samples


fun main() { 
   //sampleStart 
   // Update the lifecycle stage of a Recommendation managed by AWS Trusted Advisor Priority
val resp = trustedAdvisorClient.updateRecommendationLifecycle {
    recommendationIdentifier = "arn:aws:trustedadvisor::000000000000:recommendation/861c9c6e-f169-405a-8b59-537a8caccd7a"
    lifecycleStage = UpdateRecommendationLifecycleStage.fromValue("resolved")
    updateReasonCode = UpdateRecommendationLifecycleStageReasonCode.fromValue("valid_business_case")
    updateReason = "Resolved the recommendation"
} 
   //sampleEnd
}