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 for securely uploading and downloading files from S3 using customer-provided encryption keys.
Upload a file to S3 with server-side encryption using a customer-provided encryption key.
Download a file from S3 that was encrypted with a customer-provided key.
Ensure encryption keys are properly required for encrypted objects.
@generates
/**
* Uploads a file to S3 with server-side encryption using a customer-provided key.
*
* @param bucket - The S3 bucket name
* @param key - The object key (path) in S3
* @param content - The file content to upload
* @param encryptionKey - A 32-byte encryption key as a Buffer
* @returns Promise that resolves when upload completes
*/
export async function uploadEncrypted(
bucket: string,
key: string,
content: string,
encryptionKey: Buffer
): Promise<void>;
/**
* Downloads a file from S3 that was encrypted with a customer-provided key.
*
* @param bucket - The S3 bucket name
* @param key - The object key (path) in S3
* @param encryptionKey - The 32-byte encryption key used during upload
* @returns Promise that resolves to the decrypted file content as a string
*/
export async function downloadEncrypted(
bucket: string,
key: string,
encryptionKey: Buffer
): Promise<string>;Provides S3 operations with customer-provided encryption key support.
@satisfied-by
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