list_recommendation_resources
¶
list_recommendation_resources(
recommendation_identifier: AccountRecommendationIdentifier,
*,
config_overrides: Optional[TrustedAdvisorClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
status: Optional[ResourceStatus] = None,
exclusion_status: Optional[ExclusionStatus] = None,
region_code: Optional[str] = None,
language: Optional[RecommendationLanguage] = None,
) -> ListRecommendationResourcesResponse
List Resources of a Recommendation. This API provides global 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.
-
status(Optional[ResourceStatus], default:None) –The status of the resource
-
exclusion_status(Optional[ExclusionStatus], default:None) –The exclusion status of the resource
-
region_code(Optional[str], default:None) –The AWS Region code of the resource
-
recommendation_identifier(AccountRecommendationIdentifier) –The Recommendation identifier
-
language(Optional[RecommendationLanguage], default:None) –The ISO 639-1 code for the language that you want your recommendations to appear in.
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
-
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:
List all Resources for a Recommendation
>>> client.list_recommendation_resources(recommendation_identifier='arn:aws:trustedadvisor::000000000000:recommendation/55fa4d2e-bbb7-491a-833b-5773e9589578')
Source code in docs_src/capo_trustedadvisor/_services/trusted_advisor.py
893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 | |