TrustedAdvisorPublicAPI / Paginator / ListRecommendationsForResource

ListRecommendationsForResource

class TrustedAdvisorPublicAPI.Paginator.ListRecommendationsForResource
paginator = client.get_paginator('list_recommendations_for_resource')
paginate(**kwargs)

Creates an iterator that will paginate through responses from TrustedAdvisorPublicAPI.Client.list_recommendations_for_resource().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    awsResourceArn='string',
    pillar='cost_optimizing'|'performance'|'security'|'service_limits'|'fault_tolerance'|'operational_excellence',
    status='ok'|'warning'|'error',
    checkArn='string',
    language='en'|'ja'|'zh'|'fr'|'de'|'ko'|'zh_TW'|'it'|'es'|'pt_BR'|'id',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • awsResourceArn (string) –

    [REQUIRED]

    The ARN of the AWS resource to query recommendations for

  • pillar (string) – The pillar that the recommendation belongs to

  • status (string) – The current status of the Recommendation Resource

  • checkArn (string) – The AWS Trusted Advisor Check ARN that relates to the Recommendation

  • language (string) – The ISO 639-1 code for the language that you want your recommendations to appear in.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'recommendationForResourceSummaries': [
        {
            'checkArn': 'string',
            'recommendationArn': 'string',
            'awsResourceArn': 'string',
            'status': 'ok'|'warning'|'error',
            'lastUpdatedAt': datetime(2015, 1, 1),
            'exclusionStatus': 'excluded'|'included',
            'metadata': {
                'string': 'string'
            },
            'pillars': [
                'cost_optimizing'|'performance'|'security'|'service_limits'|'fault_tolerance'|'operational_excellence',
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • recommendationForResourceSummaries (list) –

      List of Trusted Advisor recommendations associated with the given AWS resource

      • (dict) –

        Summary of a Recommendation for a specific AWS Resource

        • checkArn (string) –

          The Check ARN

        • recommendationArn (string) –

          The Recommendation ARN

        • awsResourceArn (string) –

          The AWS Resource ARN

        • status (string) –

          The current status of the recommendation

        • lastUpdatedAt (datetime) –

          When the recommendation was last updated

        • exclusionStatus (string) –

          The exclusion status of the recommendation

        • metadata (dict) –

          Metadata associated with the recommendation

          • (string) –

            • (string) –

        • pillars (list) –

          The Pillars that the Recommendation is optimizing

          • (string) –

    • NextToken (string) –

      A token to resume pagination.