npm.io
0.1.0 • Published 2 years ago

@xaaskit-cdk/aws-lambda-dotnet

Licence
Apache-2.0
Version
0.1.0
Deps
0
Size
260 kB
Vulns
0
Weekly
0
Stars
6

GitHub npm (scoped) Nuget GitHub Workflow Status (branch) GitHub release (latest SemVer)

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

Keywords