:doc:`ResilienceHub <../../resiliencehub>` / Client / list_app_assessment_resource_drifts

***********************************
list_app_assessment_resource_drifts
***********************************



.. py:method:: ResilienceHub.Client.list_app_assessment_resource_drifts(**kwargs)

  

  List of resource drifts that were detected while running an assessment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resiliencehub-2020-04-30/ListAppAssessmentResourceDrifts>`_  


  **Request Syntax**
  ::

    response = client.list_app_assessment_resource_drifts(
        assessmentArn='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type assessmentArn: string
  :param assessmentArn: **[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) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference* guide.

    

  
  :type maxResults: integer
  :param maxResults: 

    Maximum number of drift results to include in the response. If more results exist than the specified ``MaxResults`` value, a token is included in the response so that the remaining results can be retrieved.

    

  
  :type nextToken: string
  :param nextToken: 

    Null, or the token from a previous call to get the next set of results.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'nextToken': 'string',
          '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'
                  }
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        Null, or the token from a previous call to get the next set of results.

        
      

      - **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) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ 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.

              
        
      
    
  
  **Exceptions**
  
  *   :py:class:`ResilienceHub.Client.exceptions.InternalServerException`

  
  *   :py:class:`ResilienceHub.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ResilienceHub.Client.exceptions.ValidationException`

  
  *   :py:class:`ResilienceHub.Client.exceptions.AccessDeniedException`

  