listOrganizationRecommendations

abstract suspend fun listOrganizationRecommendations(input: ListOrganizationRecommendationsRequest = ListOrganizationRecommendationsRequest { }): ListOrganizationRecommendationsResponse

List a filterable set of Recommendations within an Organization. This API only supports prioritized recommendations and provides global priority recommendations, eliminating the need to call the API in each AWS Region.

Samples

// List all of an AWS Organization s Recommendations
val resp = trustedAdvisorClient.listOrganizationRecommendations()
// Filter and return a max of one AWS Organization Recommendation that is a part of the "security"
// pillar
val resp = trustedAdvisorClient.listOrganizationRecommendations {
    pillar = RecommendationPillar.fromValue("security")
    maxResults = 100
}
// Use the "nextToken" returned from a previous request to fetch the next page of filtered AWS
// Organization Recommendations that are a part of the "security" pillar
val resp = trustedAdvisorClient.listOrganizationRecommendations {
    nextToken = "<REDACTED>"
    pillar = RecommendationPillar.fromValue("security")
    maxResults = 100
}