Skip to content

Verified Permissions

CloudMock emulates Amazon Verified Permissions, supporting policy stores, policies, schemas, authorization decisions, policy templates, and identity sources.

OperationStatusNotes
CreatePolicyStoreSupportedCreates a policy store
GetPolicyStoreSupportedReturns policy store details
ListPolicyStoresSupportedLists policy stores
UpdatePolicyStoreSupportedUpdates a policy store
DeletePolicyStoreSupportedDeletes a policy store
CreatePolicySupportedCreates a policy
GetPolicySupportedReturns policy details
ListPoliciesSupportedLists policies
UpdatePolicySupportedUpdates a policy
DeletePolicySupportedDeletes a policy
PutSchemaSupportedSets the schema for a policy store
GetSchemaSupportedReturns the schema
IsAuthorizedSupportedMakes an authorization decision
IsAuthorizedWithTokenSupportedAuthorization with identity token
CreatePolicyTemplateSupportedCreates a policy template
GetPolicyTemplateSupportedReturns template details
ListPolicyTemplatesSupportedLists policy templates
DeletePolicyTemplateSupportedDeletes a policy template
CreateIdentitySourceSupportedCreates an identity source
GetIdentitySourceSupportedReturns identity source details
ListIdentitySourcesSupportedLists identity sources
DeleteIdentitySourceSupportedDeletes an identity source
import { VerifiedPermissionsClient, CreatePolicyStoreCommand, IsAuthorizedCommand } from '@aws-sdk/client-verifiedpermissions';
const client = new VerifiedPermissionsClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
const { policyStoreId } = await client.send(new CreatePolicyStoreCommand({
validationSettings: { mode: 'OFF' },
}));
const authResult = await client.send(new IsAuthorizedCommand({
policyStoreId,
principal: { entityType: 'User', entityId: 'alice' },
action: { actionType: 'Action', actionId: 'view' },
resource: { entityType: 'Document', entityId: 'doc-123' },
}));
console.log(authResult.decision);
import boto3
client = boto3.client('verifiedpermissions',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
response = client.create_policy_store(
validationSettings={'mode': 'OFF'})
policy_store_id = response['policyStoreId']
auth_result = client.is_authorized(
policyStoreId=policy_store_id,
principal={'entityType': 'User', 'entityId': 'alice'},
action={'actionType': 'Action', 'actionId': 'view'},
resource={'entityType': 'Document', 'entityId': 'doc-123'})
print(auth_result['decision'])
cloudmock.yml
services:
verifiedpermissions:
enabled: true
  • Cedar policy evaluation is simplified
  • IsAuthorized returns stub decisions, not full Cedar engine evaluation
  • Schema validation is not enforced on policies
  • Identity source token verification is not performed