Skip to main content

AwsContextResolver

@h4ad/serverless-adapter > AwsContextResolver

(class) AwsContextResolver

Warning: This API is now obsolete.

From the AWS Documentation, describing the functions used in this resolver: Functions for compatibility with earlier Node.js Runtime v0.10.42. No longer documented, so they are deprecated, but they still work as of the 12.x runtime, so they are not removed from the types.

The class that implements the resolver by using the AWS Context object.

Signature:

export declare class AwsContextResolver<TEvent, TCallback, TResponse> implements ResolverContract<TEvent, Context, TCallback, TResponse, void> 

Implements: ResolverContract <TEvent, Context, TCallback, TResponse, void>

Remarks

To use this resolver, you MUST leave \{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html | callbackWaitsForEmptyEventLoop} as true, otherwise, AWS will not wait for this resolver to resolve.

(method) createResolver

Signature:

createResolver(\{ context, event, log, respondWithErrors, adapter, }: ResolverProps<any, Context, any, any>): Resolver<any, void>;

Parameters

ParameterTypeDescription
{ context, event, log, respondWithErrors, adapter, }ResolverProps <any, Context, any, any>

Returns:

Resolver <any, void>