AWS SDK for JavaScript STS Client for Node.js, Browser and React Native, providing temporary security credentials and role assumption capabilities
92
Evaluation — 92%
↑ 1.05xAgent success when using this tile
A utility module for uploading large data payloads to AWS services with automatic compression to reduce bandwidth usage and improve performance.
@generates
Your implementation should:
/**
* Configuration options for the uploader
*/
export interface UploaderConfig {
region: string;
bucket: string;
compressionThreshold?: number; // Size in bytes, defaults to 10240 (10KB)
}
/**
* Creates an uploader instance with the specified configuration
*/
export function createUploader(config: UploaderConfig): Uploader;
/**
* Uploader interface for uploading data to S3
*/
export interface Uploader {
/**
* Uploads data to S3 with automatic compression for large payloads
* @param key - The S3 object key
* @param data - The data to upload (string or Buffer)
* @returns Promise that resolves when upload is complete
*/
upload(key: string, data: string | Buffer): Promise<void>;
}AWS SDK S3 client for uploading data to S3 with request compression support.
Install with Tessl CLI
npx tessl i tessl/npm-aws-sdk--client-stsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10