VerifiedPermissions / Client / delete_policy_template
delete_policy_template¶
- VerifiedPermissions.Client.delete_policy_template(**kwargs)¶
Deletes the specified policy template from the policy store.
Warning
This operation also deletes any policies that were created from the specified policy template. Those policies are immediately removed from all future API responses, and are asynchronously deleted from the policy store.
See also: AWS API Documentation
Request Syntax
response = client.delete_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 to delete.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with
policy-store-alias/. For example:ID:
PSEXAMPLEabcdefg111111Alias name:
policy-store-alias/example-policy-store
To view aliases, use ListPolicyStoreAliases.
policyTemplateId (string) –
[REQUIRED]
Specifies the ID of the policy template that you want to delete.
You can use the policy template name in place of the policy template ID. When using a name, prefix it with
name/. For example:ID:
PTEXAMPLEabcdefg111111Name:
name/example-policy-template
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
VerifiedPermissions.Client.exceptions.ValidationExceptionVerifiedPermissions.Client.exceptions.ConflictExceptionVerifiedPermissions.Client.exceptions.AccessDeniedExceptionVerifiedPermissions.Client.exceptions.ResourceNotFoundExceptionVerifiedPermissions.Client.exceptions.ThrottlingExceptionVerifiedPermissions.Client.exceptions.InternalServerException