Update checked-in dependencies

This commit is contained in:
github-actions[bot] 2025-04-21 18:01:41 +00:00
parent c9f0d30a86
commit 95d52b7807
647 changed files with 498055 additions and 3880 deletions

View file

@ -8,7 +8,7 @@ This package contains type definitions for aws-lambda (http://docs.aws.amazon.co
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda.
### Additional Details
* Last updated: Fri, 03 Jan 2025 00:04:09 GMT
* Last updated: Wed, 09 Apr 2025 18:39:53 GMT
* Dependencies: none
# Credits

View file

@ -1,3 +1,4 @@
import type { Writable } from "node:stream";
/**
* The interface that AWS Lambda will invoke your handler with.
* There are more specialized types for many cases where AWS services
@ -170,3 +171,97 @@ export interface ClientContextEnv {
* Pass `null` or `undefined` for the `error` parameter to use this parameter.
*/
export type Callback<TResult = any> = (error?: Error | string | null, result?: TResult) => void;
/**
* Interface for using response streaming from AWS Lambda.
* To indicate to the runtime that Lambda should stream your functions responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
*
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
*
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
*
* @example <caption>Writing to the response stream</caption>
* import 'aws-lambda';
*
* export const handler = awslambda.streamifyResponse(
* async (event, responseStream, context) => {
* responseStream.setContentType("text/plain");
* responseStream.write("Hello, world!");
* responseStream.end();
* }
* );
*
* @example <caption>Using pipeline</caption>
* import 'aws-lambda';
* import { Readable } from 'stream';
* import { pipeline } from 'stream/promises';
* import zlib from 'zlib';
*
* export const handler = awslambda.streamifyResponse(
* async (event, responseStream, context) => {
* // As an example, convert event to a readable stream.
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
*
* await pipeline(requestStream, zlib.createGzip(), responseStream);
* }
* );
*/
export type StreamifyHandler<TEvent = any, TResult = any> = (
event: TEvent,
responseStream: awslambda.HttpResponseStream,
context: Context,
) => TResult | Promise<TResult>;
declare global {
namespace awslambda {
class HttpResponseStream extends Writable {
static from(
writable: Writable,
metadata: Record<string, unknown>,
): HttpResponseStream;
setContentType: (contentType: string) => void;
}
/**
* Decorator for using response streaming from AWS Lambda.
* To indicate to the runtime that Lambda should stream your functions responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
*
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
*
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
*
* @example <caption>Writing to the response stream</caption>
* import 'aws-lambda';
*
* export const handler = awslambda.streamifyResponse(
* async (event, responseStream, context) => {
* responseStream.setContentType("text/plain");
* responseStream.write("Hello, world!");
* responseStream.end();
* }
* );
*
* @example <caption>Using pipeline</caption>
* import 'aws-lambda';
* import { Readable } from 'stream';
* import { pipeline } from 'stream/promises';
* import zlib from 'zlib';
*
* export const handler = awslambda.streamifyResponse(
* async (event, responseStream, context) => {
* // As an example, convert event to a readable stream.
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
*
* await pipeline(requestStream, zlib.createGzip(), responseStream);
* }
* );
*/
function streamifyResponse<TEvent = any, TResult = void>(
handler: StreamifyHandler<TEvent, TResult>,
): StreamifyHandler<TEvent, TResult>;
}
}

View file

@ -1,6 +1,6 @@
{
"name": "@types/aws-lambda",
"version": "8.10.147",
"version": "8.10.149",
"description": "TypeScript definitions for aws-lambda",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda",
"license": "MIT",
@ -221,6 +221,6 @@
"scripts": {},
"dependencies": {},
"peerDependencies": {},
"typesPublisherContentHash": "c61fda39cd2f8e15ec3e08c58f4bbff834919ab754ed2653832203474b96c3b9",
"typeScriptVersion": "5.0"
"typesPublisherContentHash": "c81874d4cc10b4be40e344a39f04f615284abe3e369bde369e03adb59a3722d4",
"typeScriptVersion": "5.1"
}

View file

@ -24,7 +24,7 @@ export interface GuardDutyScanResultNotificationEventDetail {
s3Throttled: boolean;
};
scanResultDetails: {
scanResultStatus: "NO_THREATS_FOUND" | "THREAT_FOUND" | "UNSUPPORTED" | "ACCESS_DENIED" | "FAILED";
scanResultStatus: "NO_THREATS_FOUND" | "THREATS_FOUND" | "UNSUPPORTED" | "ACCESS_DENIED" | "FAILED";
threats: GuardDutyThreatDetail[] | null;
};
}