:doc:`CloudWatchLogs <../../logs>` / Paginator / DescribeResourcePolicies

************************
DescribeResourcePolicies
************************



.. py:class:: CloudWatchLogs.Paginator.DescribeResourcePolicies

  ::

    
    paginator = client.get_paginator('describe_resource_policies')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`CloudWatchLogs.Client.describe_resource_policies`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          resourceArn='string',
          policyScope='ACCOUNT'|'RESOURCE',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type resourceArn: string
    :param resourceArn: 

      The ARN of the CloudWatch Logs resource for which to query the resource policy.

      

    
    :type policyScope: string
    :param policyScope: 

      Specifies the scope of the resource policy. Valid values are ``ACCOUNT`` or ``RESOURCE``. When not specified, defaults to ``ACCOUNT``.

      

    
    :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**

      
      ::

        {
            'resourcePolicies': [
                {
                    'policyName': 'string',
                    'policyDocument': 'string',
                    'lastUpdatedTime': 123,
                    'policyScope': 'ACCOUNT'|'RESOURCE',
                    'resourceArn': 'string',
                    'revisionId': 'string'
                },
            ],
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **resourcePolicies** *(list) --* 

          The resource policies that exist in this account.

          
          

          - *(dict) --* 

            A policy enabling one or more entities to put logs to a log group in this account.

            
            

            - **policyName** *(string) --* 

              The name of the resource policy.

              
            

            - **policyDocument** *(string) --* 

              The details of the policy.

              
            

            - **lastUpdatedTime** *(integer) --* 

              Timestamp showing when this policy was last updated, expressed as the number of milliseconds after ``Jan 1, 1970 00:00:00 UTC``.

              
            

            - **policyScope** *(string) --* 

              Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.

              
            

            - **resourceArn** *(string) --* 

              The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies.

              
            

            - **revisionId** *(string) --* 

              The revision ID of the resource policy. Only populated for resource-scoped policies.

              
        
      
        

        - **NextToken** *(string) --* 

          A token to resume pagination.

          
    