v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1434249272.1 KB

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

post/#X-Amz-Target=VerifiedPermissions.GetPolicyTemplate

Headers

X-Amz-Target'VerifiedPermissions.GetPolicyTemplate' required

Request body

policyStoreIdstring required
<p>Specifies the ID of the policy store that contains the policy template that you want information about.</p> <p>To specify a policy store, use its ID or alias name. When using an alias name, prefix it with <code>policy-store-alias/</code>. For example:</p> <ul> <li> <p>ID: <code>PSEXAMPLEabcdefg111111</code> </p> </li> <li> <p>Alias name: <code>policy-store-alias/example-policy-store</code> </p> </li> </ul> <p>To view aliases, use <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListPolicyStoreAliases.html">ListPolicyStoreAliases</a>.</p>
policyTemplateIdstring required
<p>Specifies the ID of the policy template that you want information about.</p> <p>You can use the policy template name in place of the policy template ID. When using a name, prefix it with <code>name/</code>. For example:</p> <ul> <li> <p>ID: <code>PTEXAMPLEabcdefg111111</code> </p> </li> <li> <p>Name: <code>name/example-policy-template</code> </p> </li> </ul>

Response

Success

policyStoreIdstring required

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

policyTemplateIdstring required

The ID of the policy template.

descriptionstring password

The description of the policy template.

statementstring password required

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

createdDatestring date-time required

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

lastUpdatedDatestring date-time required

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

namestring

The name of the policy template, if one was assigned when the policy template was created or last updated.