:doc:`Organizations <../../organizations>` / Paginator / ListEffectivePolicyValidationErrors

***********************************
ListEffectivePolicyValidationErrors
***********************************



.. py:class:: Organizations.Paginator.ListEffectivePolicyValidationErrors

  ::

    
    paginator = client.get_paginator('list_effective_policy_validation_errors')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`Organizations.Client.list_effective_policy_validation_errors`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListEffectivePolicyValidationErrors>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          AccountId='string',
          PolicyType='TAG_POLICY'|'BACKUP_POLICY'|'AISERVICES_OPT_OUT_POLICY'|'CHATBOT_POLICY'|'DECLARATIVE_POLICY_EC2'|'SECURITYHUB_POLICY'|'INSPECTOR_POLICY'|'UPGRADE_ROLLOUT_POLICY'|'BEDROCK_POLICY'|'S3_POLICY'|'NETWORK_SECURITY_DIRECTOR_POLICY',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type AccountId: string
    :param AccountId: **[REQUIRED]** 

      The ID of the account that you want details about. Specifying an organization root or organizational unit (OU) as the target is not supported.

      

    
    :type PolicyType: string
    :param PolicyType: **[REQUIRED]** 

      The type of policy that you want information about. You can specify one of the following values:

       

      
      * `DECLARATIVE_POLICY_EC2 <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html>`__
       
      * `BACKUP_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html>`__
       
      * `TAG_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html>`__
       
      * `CHATBOT_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html>`__
       
      * `AISERVICES_OPT_OUT_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html>`__
       
      * `SECURITYHUB_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html>`__
       
      * `UPGRADE_ROLLOUT_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html>`__
       
      * `INSPECTOR_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html>`__
       
      * `BEDROCK_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_bedrock.html>`__
       
      * `S3_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_s3.html>`__
       
      * `NETWORK_SECURITY_DIRECTOR_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_network_security_director.html>`__
      

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      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.

        

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

      
      ::

        {
            'AccountId': 'string',
            'PolicyType': 'TAG_POLICY'|'BACKUP_POLICY'|'AISERVICES_OPT_OUT_POLICY'|'CHATBOT_POLICY'|'DECLARATIVE_POLICY_EC2'|'SECURITYHUB_POLICY'|'INSPECTOR_POLICY'|'UPGRADE_ROLLOUT_POLICY'|'BEDROCK_POLICY'|'S3_POLICY'|'NETWORK_SECURITY_DIRECTOR_POLICY',
            'Path': 'string',
            'EvaluationTimestamp': datetime(2015, 1, 1),
            'EffectivePolicyValidationErrors': [
                {
                    'ErrorCode': 'string',
                    'ErrorMessage': 'string',
                    'PathToError': 'string',
                    'ContributingPolicies': [
                        'string',
                    ]
                },
            ]
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **AccountId** *(string) --* 

          The ID of the specified account.

          
        

        - **PolicyType** *(string) --* 

          The specified policy type. One of the following values:

           

          
          * `DECLARATIVE_POLICY_EC2 <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html>`__
           
          * `BACKUP_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html>`__
           
          * `TAG_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html>`__
           
          * `CHATBOT_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html>`__
           
          * `AISERVICES_OPT_OUT_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html>`__
           
          * `SECURITYHUB_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_security_hub.html>`__
           
          * `UPGRADE_ROLLOUT_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html>`__
           
          * `INSPECTOR_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html>`__
           
          * `BEDROCK_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_bedrock.html>`__
           
          * `S3_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_s3.html>`__
           
          * `NETWORK_SECURITY_DIRECTOR_POLICY <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_network_security_director.html>`__
          

          
        

        - **Path** *(string) --* 

          The path in the organization where the specified account exists.

          
        

        - **EvaluationTimestamp** *(datetime) --* 

          The time when the latest effective policy was generated for the specified account.

          
        

        - **EffectivePolicyValidationErrors** *(list) --* 

          The ``EffectivePolicyValidationError`` object contains details about the validation errors that occurred when generating or enforcing an effective policy, such as which policies contributed to the error and location of the error.

          
          

          - *(dict) --* 

            Contains details about the validation errors that occurred when generating or enforcing an `effective policy <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_effective.html>`__, such as which policies contributed to the error and location of the error.

            
            

            - **ErrorCode** *(string) --* 

              The error code for the validation error. For example, ``ELEMENTS_TOO_MANY``.

              
            

            - **ErrorMessage** *(string) --* 

              The error message for the validation error.

              
            

            - **PathToError** *(string) --* 

              The path within the effective policy where the validation error occurred.

              
            

            - **ContributingPolicies** *(list) --* 

              The individual policies `inherited <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inheritance_mgmt.html>`__ and `attached <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_policies_attach.html>`__ to the account which contributed to the validation error.

              
              

              - *(string) --* 
          
        
      
    