What is a Resource?
A resource represents an entity in your application that you want to protect with permissions. Documents, projects, users, reports, jobs—anything that subjects need permission to access is a resource.Resource Types
Define categories of resources
Resource Hierarchies
Model parent-child resource relationships
Resource Scope Links
Share resources across scopes
Resource Collections
Dynamic resource grouping with match rules
Resource Policies
Fine-grained allow/deny on resources
Tags
Classify resources with tags
Resource Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique Bedrock identifier |
resourceTypeId | string | Reference to the resource type |
scopeId | string | Owning scope |
externalResourceId | string | Your system’s identifier |
displayName | string? | Human-readable name |
createdAt | string | Creation timestamp |
createdBy | string | Subject who created it |
Creating Resources
Resource-Based Permissions
Permissions can target specific resources or resource patterns:Evaluating Against Resources
When checking permissions, you can specify the resource:Resource Ownership
ThescopeId on a resource indicates ownership. A document owned by the Engineering scope is primarily associated with that scope:
Common Patterns
Pattern 1: Document Management
Pattern 2: Project Management
Pattern 3: E-Commerce
API Reference
Create Resource Type
Define a new resource type
Create Resource
Create a resource instance
Get Resources
List resources
Resource Types API
All resource type operations
Next Steps
Resource Types
Learn how to define resource type schemas