ResilienceHub / Paginator / ListAppAssessmentResourceDrifts

ListAppAssessmentResourceDrifts#

class ResilienceHub.Paginator.ListAppAssessmentResourceDrifts#
paginator = client.get_paginator('list_app_assessment_resource_drifts')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from ResilienceHub.Client.list_app_assessment_resource_drifts().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    assessmentArn='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • assessmentArn (string) –

    [REQUIRED]

    Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn: partition:resiliencehub: region: account:app-assessment/ app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

  • 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

{
    'resourceDrifts': [
        {
            'appArn': 'string',
            'appVersion': 'string',
            'diffType': 'NotEqual'|'Added'|'Removed',
            'referenceId': 'string',
            'resourceIdentifier': {
                'logicalResourceId': {
                    'eksSourceName': 'string',
                    'identifier': 'string',
                    'logicalStackName': 'string',
                    'resourceGroupName': 'string',
                    'terraformSourceName': 'string'
                },
                'resourceType': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • resourceDrifts (list) –

      Indicates all the resource drifts detected for an assessed entity.

      • (dict) –

        Indicates the resources that have drifted in the current application version.

        • appArn (string) –

          Amazon Resource Name (ARN) of the application whose resources have drifted. The format for this ARN is: arn: partition:resiliencehub: region: account:app-assessment/ app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

        • appVersion (string) –

          Version of the application whose resources have drifted.

        • diffType (string) –

          Indicates if the resource was added or removed.

        • referenceId (string) –

          Reference identifier of the resource drift.

        • resourceIdentifier (dict) –

          Identifier of the drifted resource.

          • logicalResourceId (dict) –

            Logical identifier of the drifted resource.

            • eksSourceName (string) –

              Name of the Amazon Elastic Kubernetes Service cluster and namespace this resource belongs to.

              Note

              This parameter accepts values in “eks-cluster/namespace” format.

            • identifier (string) –

              Identifier of the resource.

            • logicalStackName (string) –

              The name of the CloudFormation stack this resource belongs to.

            • resourceGroupName (string) –

              The name of the resource group that this resource belongs to.

            • terraformSourceName (string) –

              The name of the Terraform S3 state file this resource belongs to.

          • resourceType (string) –

            Type of the drifted resource.

    • NextToken (string) –

      A token to resume pagination.