Configure storage access for authenticated users. Requires defineAuth
in the backend definition.
https://docs.amplify.aws/gen2/build-a-backend/storage/#authenticated-user-access
When configuring access for paths with the {entity_id}
token, the token is replaced with a wildcard (*
).
For a path like media/profile-pictures/{entity_id}/*
, this means access is configured for authenticated users for any file within
media/profile-pictures/*
.
Configure owner-based access. Requires defineAuth
in the backend definition.
Defines the identifier that is used to identify owners. Currently only "identity" is supported.
Configure storage access for User Pool groups. Requires defineAuth
with groups config in the backend definition.
Configure storage access for guest (unauthenticated) users. Requires defineAuth
in the backend definition.
https://docs.amplify.aws/gen2/build-a-backend/storage/#guest-user-access
When configuring access for paths with the {entity_id}
token, the token is replaced with a wildcard (*
).
For a path like media/profile-pictures/{entity_id}/*
, this means access is configured for guest users for any file within
media/profile-pictures/*
.
Grant other resources in the Amplify backend access to storage.
The target resource to grant access to. Currently only the return value of defineFunction
is supported.
When configuring access for paths with the {entity_id}
token, the token is replaced with a wildcard (*
).
For a path like media/profile-pictures/{entity_id}/*
, this means access is configured for resources for any file within
media/profile-pictures/*
.
Utility object for configuring storage access