SESV2 / Client / list_recommendations
list_recommendations#
- SESV2.Client.list_recommendations(**kwargs)#
- Lists the recommendations present in your Amazon SES account in the current Amazon Web Services Region. - You can execute this operation no more than once per second. - See also: AWS API Documentation - Request Syntax- response = client.list_recommendations( Filter={ 'string': 'string' }, NextToken='string', PageSize=123 ) - Parameters:
- Filter (dict) – - Filters applied when retrieving recommendations. Can eiter be an individual filter, or combinations of - STATUSand- IMPACTor- STATUSand- TYPE- (string) – - The - ListRecommendationsfilter type. This can be one of the following:- TYPE– The recommendation type, with values like- DKIM,- SPF,- DMARCor- BIMI.
- IMPACT– The recommendation impact, with values like- HIGHor- LOW.
- STATUS– The recommendation status, with values like- OPENor- FIXED.
- RESOURCE_ARN– The resource affected by the recommendation, with values like- arn:aws:ses:us-east-1:123456789012:identity/example.com.
 - (string) – 
 
 
- NextToken (string) – A token returned from a previous call to - ListRecommendationsto indicate the position in the list of recommendations.
- PageSize (integer) – - The number of results to show in a single call to - ListRecommendations. If the number of results is larger than the number you specified in this parameter, then the response includes a- NextTokenelement, which you can use to obtain additional results.- The value you specify has to be at least 1, and can be no more than 100. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'Recommendations': [ { 'ResourceArn': 'string', 'Type': 'DKIM'|'DMARC'|'SPF'|'BIMI', 'Description': 'string', 'Status': 'OPEN'|'FIXED', 'CreatedTimestamp': datetime(2015, 1, 1), 'LastUpdatedTimestamp': datetime(2015, 1, 1), 'Impact': 'LOW'|'HIGH' }, ], 'NextToken': 'string' } - Response Structure- (dict) – - Contains the response to your request to retrieve the list of recommendations for your account. - Recommendations (list) – - The recommendations applicable to your account. - (dict) – - A recommendation generated for your account. - ResourceArn (string) – - The resource affected by the recommendation, with values like - arn:aws:ses:us-east-1:123456789012:identity/example.com.
- Type (string) – - The recommendation type, with values like - DKIM,- SPF,- DMARCor- BIMI.
- Description (string) – - The recommendation description / disambiguator - e.g. - DKIM1and- DKIM2are different recommendations about your DKIM setup.
- Status (string) – - The recommendation status, with values like - OPENor- FIXED.
- CreatedTimestamp (datetime) – - The first time this issue was encountered and the recommendation was generated. 
- LastUpdatedTimestamp (datetime) – - The last time the recommendation was updated. 
- Impact (string) – - The recommendation impact, with values like - HIGHor- LOW.
 
 
- NextToken (string) – - A string token indicating that there might be additional recommendations available to be listed. Use the token provided in the - ListRecommendationsResponseto use in the subsequent call to- ListRecommendationswith the same parameters to retrieve the next page of recommendations.
 
 
 - Exceptions- SESV2.Client.exceptions.TooManyRequestsException
- SESV2.Client.exceptions.BadRequestException
- SESV2.Client.exceptions.NotFoundException