0.1.0 • Published 2 years ago
@xaaskit-cdk/aws-lambda-dotnet v0.1.0
CDK AWS Lambda for .NET
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.
Install
TypeScript
npm install @xaaskit-cdk/aws-lambda-dotnetor
yarn add @xaaskit-cdk/aws-lambda-dotnetC# / .Net
dotnet add package XaasKit.CDK.AWS.Lambda.DotNetUsage
Create a .NET Function
new DotNetFunction(this, 'MyFunction', {
projectDir: 'src/MyFunction'
});See DotNetFunction
Create a exposed .NET Web API
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