# @xaaskit-cdk/aws-lambda-dotnet

> AWS CDK construct library for .NET Lambda functions.

Latest version **0.1.0** (published 2023-12-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @xaaskit-cdk/aws-lambda-dotnet
pnpm add @xaaskit-cdk/aws-lambda-dotnet
yarn add @xaaskit-cdk/aws-lambda-dotnet
bun add @xaaskit-cdk/aws-lambda-dotnet
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-12-22 |
| First published | 2022-12-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 260.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | XaasKit |
| Maintainers | vlesierse |
| Keywords | cdk |

## Links

- npm: https://www.npmjs.com/package/@xaaskit-cdk/aws-lambda-dotnet
- Repository: https://github.com/xaaskit/cdk-aws-lambda-dotnet
- Homepage: https://github.com/xaaskit/cdk-aws-lambda-dotnet#readme
- Issues: https://github.com/xaaskit/cdk-aws-lambda-dotnet/issues
- npm.io page: https://npm.io/package/@xaaskit-cdk/aws-lambda-dotnet

## Recent versions

- 0.1.0 (latest) — 2023-12-22
- 0.0.15 — 2023-10-11
- 0.0.14 — 2023-10-11
- 0.0.13 — 2023-10-11
- 0.0.12 — 2023-10-11
- 0.0.11 — 2023-08-18
- 0.0.10 — 2023-08-18
- 0.0.9 — 2023-04-29
- 0.0.8 — 2023-02-03
- 0.0.7 — 2023-01-08
- 0.0.6 — 2022-12-12
- 0.0.5 — 2022-12-09
- 0.0.4 — 2022-12-09
- 0.0.3 — 2022-12-08

## README

[![GitHub](https://img.shields.io/github/license/xaaskit/cdk-aws-lambda-dotnet?style=flat-square)](https://github.com/xaaskit/cdk-aws-lambda-dotnet/blob/main/LICENSE)
[![npm (scoped)](https://img.shields.io/npm/v/@xaaskit-cdk/aws-lambda-dotnet?style=flat-square)](https://www.npmjs.com/package/@xaaskit-cdk/aws-lambda-dotnet)
[![Nuget](https://img.shields.io/nuget/v/XaasKit.CDK.AWS.Lambda.DotNet?style=flat-square)](https://www.nuget.org/packages/XaasKit.CDK.AWS.Lambda.DotNet/)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/xaaskit/cdk-aws-lambda-dotnet/release.yml?branch=main&label=release&style=flat-square)](https://github.com/xaaskit/cdk-aws-lambda-dotnet/actions/workflows/release.yml)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/xaaskit/cdk-aws-lambda-dotnet?sort=semver&style=flat-square)](https://github.com/xaaskit/cdk-aws-lambda-dotnet/releases)

# 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](https://dotnet.microsoft.com/en-us/download) installed (.NET SDK 6.0 or later) with the [AWS Lambda .NET Tools](https://aws.amazon.com/blogs/developer/net-core-global-tools-for-aws/) or Docker installed.

## Install

### TypeScript

```shell
npm install @xaaskit-cdk/aws-lambda-dotnet
```

or

```shell
yarn add @xaaskit-cdk/aws-lambda-dotnet
```

### C\# / .Net

```
dotnet add package XaasKit.CDK.AWS.Lambda.DotNet
```

## Usage

### Create a .NET Function

```typescript
new DotNetFunction(this, 'MyFunction', {
  projectDir: 'src/MyFunction'
});
```

See [DotNetFunction](https://github.com/xaaskit/cdk-aws-lambda-dotnet/blob/main//API.md#dotnetfunction-)

### Create a exposed .NET Web API

```typescript
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](https://github.com/xaaskit/cdk-aws-lambda-dotnet/blob/main//API.md#dotnetfunction-)

---
_Source: https://npm.io/package/@xaaskit-cdk/aws-lambda-dotnet · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
