get_finding_recommendation
async
¶
get_finding_recommendation(
analyzer_arn: AnalyzerArn,
id: str,
*,
config_overrides: Optional[AsyncAccessAnalyzerClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[Token] = None,
) -> GetFindingRecommendationResponse
Retrieves information about a finding recommendation for the specified analyzer.
Parameters:
-
analyzer_arn(AnalyzerArn) –The ARN of the analyzer used to generate the finding recommendation.
-
id(str) –The unique ID for the finding recommendation.
-
max_results(Optional[int], default:None) –The maximum number of results to return in the response.
-
next_token(Optional[Token], default:None) –A token used for pagination of results returned.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–Internal server error.
-
ResourceNotFoundException–The specified resource could not be found.
-
ThrottlingException–Throttling limit exceeded error.
-
ValidationException–Validation exception error.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Successfully fetched finding recommendation
>>> await client.get_finding_recommendation(analyzer_arn='arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a', id='finding-id', max_results=3, next_token='token')
In progress finding recommendation
>>> await client.get_finding_recommendation(analyzer_arn='arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a', id='finding-id', max_results=3)
Failed finding recommendation
>>> await client.get_finding_recommendation(analyzer_arn='arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a', id='finding-id', max_results=3)
Failed field validation for id value
>>> await client.get_finding_recommendation(analyzer_arn='arn:aws:access-analyzer:us-east-1:111122223333:analyzer/a', id='!')
Source code in docs_src/capo_accessanalyzer/_services/async_access_analyzer.py
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 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 | |