This library provides constructs for .NET Lambda functions.
To use this module you will either need to have the .NET CLI installed (.NET SDK 6.0 or later) with the AWS Lambda .NET Tools or Docker installed.
npm install @xaaskit-cdk/aws-lambda-dotnet
or
yarn add @xaaskit-cdk/aws-lambda-dotnet
dotnet add package XaasKit.CDK.AWS.Lambda.DotNet
new DotNetFunction(this, 'MyFunction', {
projectDir: 'src/MyFunction'
});
See DotNetFunction
const function = new DotNetFunction(this, 'MyWebApi', {
projectDir: 'src/MyWebApi'
});
const functionUrl = function.addFunctionUrl({
authType: lambda.FunctionUrlAuthType.NONE,
});
new CfnOutput(this, 'MyWebApiUrl', {
value: functionUrl.url,
});
See DotNetFunction