:doc:`MultipartyApproval <../../mpa>` / Paginator / ListPolicyVersions

******************
ListPolicyVersions
******************



.. py:class:: MultipartyApproval.Paginator.ListPolicyVersions

  ::

    
    paginator = client.get_paginator('list_policy_versions')

  
  

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

    Creates an iterator that will paginate through responses from :py:meth:`MultipartyApproval.Client.list_policy_versions`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mpa-2022-07-26/ListPolicyVersions>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          PolicyArn='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type PolicyArn: string
    :param PolicyArn: **[REQUIRED]** 

      Amazon Resource Name (ARN) for the policy.

      

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

      
      ::

        {
            'PolicyVersions': [
                {
                    'Arn': 'string',
                    'PolicyArn': 'string',
                    'VersionId': 123,
                    'PolicyType': 'AWS_MANAGED'|'AWS_RAM',
                    'IsDefault': True|False,
                    'Name': 'string',
                    'Status': 'ATTACHABLE'|'DEPRECATED',
                    'CreationTime': datetime(2015, 1, 1),
                    'LastUpdatedTime': datetime(2015, 1, 1)
                },
            ]
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **PolicyVersions** *(list) --* 

          An array of ``PolicyVersionSummary`` objects. Contains details for the version of the policies that define the permissions for team resources.

          
          

          - *(dict) --* 

            Contains details for the version of a policy. Policies define what operations a team that define the permissions for team resources.

            
            

            - **Arn** *(string) --* 

              Amazon Resource Name (ARN) for the team.

              
            

            - **PolicyArn** *(string) --* 

              Amazon Resource Name (ARN) for the policy.

              
            

            - **VersionId** *(integer) --* 

              Version ID for the policy.

              
            

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

              The type of policy.

              
            

            - **IsDefault** *(boolean) --* 

              Determines if the specified policy is the default for the team.

              
            

            - **Name** *(string) --* 

              Name of the policy

              
            

            - **Status** *(string) --* 

              Status for the policy. For example, if the policy is `attachable <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_groups_manage_attach-policy.html>`__ or `deprecated <https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-deprecated.html>`__.

              
            

            - **CreationTime** *(datetime) --* 

              Timestamp when the policy was created.

              
            

            - **LastUpdatedTime** *(datetime) --* 

              Timestamp when the policy was last updated.

              
        
      
    