VerifiedPermissions / Client / get_policy_template

get_policy_template#

VerifiedPermissions.Client.get_policy_template(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.get_policy_template(
    policyStoreId='string',
    policyTemplateId='string'
)
Parameters:
  • policyStoreId (string) –

    [REQUIRED]

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

  • policyTemplateId (string) –

    [REQUIRED]

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

Return type:

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