UNPKG

cdk-encrypted-secret

Version:

CDK Construct that creates an AWS Secret Manager Secret and sets the value from an encrypted Ciphertext.

10 lines (9 loc) 365 B
import { Readable } from "stream"; /** * @internal * @param stream - to be read. * @param bytes - read head bytes from the stream and discard the rest of it. * * Caution: the input stream must be destroyed separately, this function does not do so. */ export declare const headStream: (stream: Readable | ReadableStream, bytes: number) => Promise<Uint8Array>;