:doc:`VerifiedPermissions <../../verifiedpermissions>` / Client / get_policy_template

*******************
get_policy_template
*******************



.. py:method:: VerifiedPermissions.Client.get_policy_template(**kwargs)

  

  Retrieve the details for the specified policy template in the specified policy store.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/GetPolicyTemplate>`_  


  **Request Syntax**
  ::

    response = client.get_policy_template(
        policyStoreId='string',
        policyTemplateId='string'
    )
    
  :type policyStoreId: string
  :param policyStoreId: **[REQUIRED]** 

    Specifies the ID of the policy store that contains the policy template that you want information about.

    

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

    Specifies the ID of the policy template that you want information about.

    

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

    
    ::

      {
          'policyStoreId': 'string',
          'policyTemplateId': 'string',
          'description': 'string',
          'statement': 'string',
          'createdDate': datetime(2015, 1, 1),
          'lastUpdatedDate': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **policyStoreId** *(string) --* 

        The ID of the policy store that contains the policy template.

        
      

      - **policyTemplateId** *(string) --* 

        The ID of the policy template.

        
      

      - **description** *(string) --* 

        The description of the policy template.

        
      

      - **statement** *(string) --* 

        The content of the body of the policy template written in the Cedar policy language.

        
      

      - **createdDate** *(datetime) --* 

        The date and time that the policy template was originally created.

        
      

      - **lastUpdatedDate** *(datetime) --* 

        The date and time that the policy template was most recently updated.

        
  
  **Exceptions**
  
  *   :py:class:`VerifiedPermissions.Client.exceptions.ValidationException`

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

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

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

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

  