@xaaskit-cdk/aws-lambda-dotnet
v0.1.0
Published
AWS CDK construct library for .NET Lambda functions.
Downloads
19
Readme
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-dotnet
or
yarn add @xaaskit-cdk/aws-lambda-dotnet
C# / .Net
dotnet add package XaasKit.CDK.AWS.Lambda.DotNet
Usage
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