:doc:`MultipartyApproval <../../mpa>` / Client / get_policy_version

******************
get_policy_version
******************



.. py:method:: MultipartyApproval.Client.get_policy_version(**kwargs)

  

  Returns details for the version of a policy. Policies define the permissions for team resources.

  

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


  **Request Syntax**
  ::

    response = client.get_policy_version(
        PolicyVersionArn='string'
    )
    
  :type PolicyVersionArn: string
  :param PolicyVersionArn: **[REQUIRED]** 

    Amazon Resource Name (ARN) for the policy.

    

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

    
    ::

      {
          'PolicyVersion': {
              '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),
              'Document': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PolicyVersion** *(dict) --* 

        A ``PolicyVersion`` object. Contains details for the version of the policy. Policies 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) --* 

          Verison ID

          
        

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

          
        

        - **Document** *(string) --* 

          Document that contains the policy contents.

          
    
  
  **Exceptions**
  
  *   :py:class:`MultipartyApproval.Client.exceptions.AccessDeniedException`

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

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

  
  *   :py:class:`MultipartyApproval.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MultipartyApproval.Client.exceptions.InternalServerException`

  