UpdateOrganizationRecommendationLifecycle - AWS Trusted Advisor

UpdateOrganizationRecommendationLifecycle

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.

Request Syntax

PUT /v1/organization-recommendations/organizationRecommendationIdentifier/lifecycle HTTP/1.1 Content-type: application/json { "lifecycleStage": "string", "updateReason": "string", "updateReasonCode": "string" }

URI Request Parameters

The request uses the following URI parameters.

organizationRecommendationIdentifier

The Recommendation identifier for AWS Trusted Advisor Priority recommendations

Length Constraints: Minimum length of 20. Maximum length of 200.

Pattern: ^arn:[\w-]+:trustedadvisor:::organization-recommendation\/[\w-]+$

Required: Yes

Request Body

The request accepts the following data in JSON format.

lifecycleStage

The new lifecycle stage

Type: String

Valid Values: pending_response | in_progress | dismissed | resolved

Required: Yes

updateReason

Reason for the lifecycle stage change

Type: String

Length Constraints: Minimum length of 10. Maximum length of 4096.

Pattern: ^[\s\S]*$

Required: No

updateReasonCode

Reason code for the lifecycle state change

Type: String

Valid Values: non_critical_account | temporary_account | valid_business_case | other_methods_available | low_priority | not_applicable | other

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

Exception that access has been denied due to insufficient access

HTTP Status Code: 403

ConflictException

Exception that the request was denied due to conflictions in state

HTTP Status Code: 409

InternalServerException

Exception to notify that an unexpected internal error occurred during processing of the request

HTTP Status Code: 500

ResourceNotFoundException

Exception that the requested resource has not been found

HTTP Status Code: 404

ThrottlingException

Exception to notify that requests are being throttled

HTTP Status Code: 429

ValidationException

Exception that the request failed to satisfy service constraints

HTTP Status Code: 400

Examples

Update the Lifecycle of an Organization Recommendation

Update the lifecycle stage of an organization recommendation that is managed by AWS Trusted Advisor Priority.

Sample Request

{ "organizationRecommendationIdentifier": "arn:aws:trustedadvisor:::organization-recommendation/96b5e5ca-7930-444c-90c6-06d386128100", "lifecycleStage": "dismissed", "updateReasonCode": "not_applicable", "updateReason": "Does not apply to this resource" }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: