Function: AwsLambda()
Function: AwsLambda()
function AwsLambda<T>(options): ClassDecorator;
A Stone.js decorator that integrates the AWS Lambda Adapter with a class.
This decorator modifies the class to seamlessly enable AWS Lambda as the execution environment for a Stone.js application. By applying this decorator, the class is automatically configured with the necessary blueprint for AWS Lambda.
Type Parameters
T
T
extends ClassType
= ClassType
The type of the class being decorated. Defaults to ClassType
.
Parameters
options
AwsLambdaOptions
= {}
Optional configuration to customize the AWS Lambda Adapter.
Returns
ClassDecorator
A class decorator that applies the AWS Lambda adapter configuration.
Example
import { AwsLambda } from '@stone-js/aws-lambda-adapter';
@AwsLambda({
alias: 'MyAWSLambda',
})
class App {
// Your application logic here
}