S3 Configuration Fallback MechanismThe function uses a smart fallback system to determine S3 settings:
1
S3Configs Parameter
If provided, uses the explicit
S3Configs object with your custom settings.2
Environment Variables
If no configs provided, automatically reads from environment variables:
AWS_ACCESS_KEY_ID- Your AWS access keyAWS_SECRET_ACCESS_KEY- Your AWS secret keyAWS_REGION- AWS region (e.g., “us-west-1”)AWS_BUCKET- S3 bucket nameAWS_ENDPOINT_URL- Optional custom S3 endpoint
3
Intuned Defaults
If environment variables aren’t set, falls back to Intuned’s managed S3 storage.
Examples
Arguments
- Playwright Download object - bytes (binary data)
Optional S3Configs for customizing the S3 upload. See configuration fallback mechanism above for details. Defaults to None.
Optional custom filename for the uploaded file. If None, uses the original filename or generates a unique name.
Optional MIME type for the uploaded file (e.g., “application/pdf”, “image/png”). If None, uses the original content type.