TrustedAdvisorPublicAPI / Client / list_recommendation_resources

list_recommendation_resources#

TrustedAdvisorPublicAPI.Client.list_recommendation_resources(**kwargs)#

List Resources of a Recommendation

See also: AWS API Documentation

Request Syntax

response = client.list_recommendation_resources(
    maxResults=123,
    nextToken='string',
    recommendationIdentifier='string',
    regionCode='string',
    status='ok'|'warning'|'error'
)
Parameters:
  • maxResults (integer) – The maximum number of results to return per page.

  • nextToken (string) – 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.

  • recommendationIdentifier (string) –

    [REQUIRED]

    The Recommendation identifier

  • regionCode (string) – The AWS Region code of the resource

  • status (string) – The status of the resource

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'recommendationResourceSummaries': [
        {
            'arn': 'string',
            'awsResourceId': 'string',
            'id': 'string',
            'lastUpdatedAt': datetime(2015, 1, 1),
            'metadata': {
                'string': 'string'
            },
            'recommendationArn': 'string',
            'regionCode': 'string',
            'status': 'ok'|'warning'|'error'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      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.

    • recommendationResourceSummaries (list) –

      A list of Recommendation Resources

      • (dict) –

        Summary of a Recommendation Resource

        • arn (string) –

          The ARN of the Recommendation Resource

        • awsResourceId (string) –

          The AWS resource identifier

        • id (string) –

          The ID of the Recommendation Resource

        • lastUpdatedAt (datetime) –

          When the Recommendation Resource was last updated

        • metadata (dict) –

          Metadata associated with the Recommendation Resource

          • (string) –

            • (string) –

        • recommendationArn (string) –

          The Recommendation ARN

        • regionCode (string) –

          The AWS Region code that the Recommendation Resource is in

        • status (string) –

          The current status of the Recommendation Resource

Exceptions

  • TrustedAdvisorPublicAPI.Client.exceptions.AccessDeniedException

  • TrustedAdvisorPublicAPI.Client.exceptions.InternalServerException

  • TrustedAdvisorPublicAPI.Client.exceptions.ValidationException

  • TrustedAdvisorPublicAPI.Client.exceptions.ResourceNotFoundException

  • TrustedAdvisorPublicAPI.Client.exceptions.ThrottlingException