list_organization_recommendations
¶
list_organization_recommendations(
*,
config_overrides: Optional[TrustedAdvisorClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
type: Optional[RecommendationType] = None,
status: Optional[RecommendationStatus] = None,
pillar: Optional[RecommendationPillar] = None,
aws_service: Optional[RecommendationAwsService] = None,
source: Optional[RecommendationSource] = None,
check_identifier: Optional[CheckIdentifier] = None,
after_last_updated_at: Optional[datetime] = None,
before_last_updated_at: Optional[datetime] = None,
) -> 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.
Parameters:
-
next_token(Optional[str], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
max_results(Optional[int], default:None) –The maximum number of results to return per page.
-
type(Optional[RecommendationType], default:None) –The type of the Recommendation
-
status(Optional[RecommendationStatus], default:None) –The status of the Recommendation
-
pillar(Optional[RecommendationPillar], default:None) –The pillar of the Recommendation
-
aws_service(Optional[RecommendationAwsService], default:None) –The aws service associated with the Recommendation
-
source(Optional[RecommendationSource], default:None) –The source of the Recommendation
-
check_identifier(Optional[CheckIdentifier], default:None) –The check identifier of the Recommendation
-
after_last_updated_at(Optional[datetime], default:None) –After the last update of the Recommendation
-
before_last_updated_at(Optional[datetime], default:None) –Before the last update of the Recommendation
Raises:
-
AccessDeniedException–Exception that access has been denied due to insufficient access
-
InternalServerException–Exception to notify that an unexpected internal error occurred during processing of the request
-
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:
List all of an AWS Organization's Recommendations
>>> client.list_organization_recommendations()
Filter and return a max of one AWS Organization Recommendation that is a part of the "security" pillar
>>> client.list_organization_recommendations(pillar='security', max_results=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
>>> client.list_organization_recommendations(next_token='<REDACTED>', pillar='security', max_results=100)
Source code in docs_src/capo_trustedadvisor/_services/trusted_advisor.py
737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 | |