aws_lambda_dart_runtime_ns 0.0.8 aws_lambda_dart_runtime_ns: ^0.0.8 copied to clipboard
A powerful runtime to build AWS Lambda functions in Dart with native AWS events. Sound null safety.
import 'package:aws_lambda_dart_runtime_ns/aws_lambda_dart_runtime_ns.dart';
void main() => AwsLambdaRuntime()
..addHandler(FunctionHandler(
name: 'main.hello',
action: (context, event) {
// Do something here...
return InvocationResult(
requestId: context.requestId,
body: {
'statusCode': 200,
'message': 'Hello, World!',
},
);
},
))
..invoke();