Key validates S3 object key according to AWS S3 specifications.
AWS S3 object key naming rules:
- Keys can be up to 1024 bytes in length
- Keys can contain any UTF-8 character
- However, we add security constraints to prevent path traversal attacks
Prefix validates S3 object prefix for listing operations.
Prefixes are used to filter objects in ListObjects operations.
They follow similar rules to keys but are more lenient since they're for filtering.
An empty prefix is valid (lists all objects).