Skip to content

Commit f0b7475

Browse files
authored
Merge pull request #301 from sliedig/sliedig-docs
2 parents 69bde6d + 1293472 commit f0b7475

File tree

11 files changed

+78
-37
lines changed

11 files changed

+78
-37
lines changed

.github/ISSUE_TEMPLATE/maintenance.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,12 @@ body:
3131
options:
3232
- Automation
3333
- Governance
34-
- .NET sdk
34+
- .NET SDK
3535
- Tests
36-
- Tracer
37-
- Logger
36+
- Tracing
37+
- Logging
3838
- Metrics
39-
- Event Handler - REST API
40-
- Event Handler - GraphQL API
41-
- Middleware factory
4239
- Parameters
43-
- Batch processing
44-
- Typing
45-
- Validation
46-
- Event Source Data Classes
47-
- Parser
4840
- Idempotency
4941
- Feature flags
5042
- Other

CODEOWNERS

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ Powertools for AWS Lambda (.NET) provides three core utilities:
2020

2121
* **[Tracing](https://docs.powertools.aws.dev/lambda-dotnet/core/tracing/)** - provides a simple way to send traces from functions to AWS X-Ray to provide visibility into function calls, interactions with other AWS services, or external HTTP requests. Annotations can easily be added to traces to allow filtering traces based on key information. For example, when using Tracer, a ColdStart annotation is created for you so you can easily group and analyze traces where there was an initialization overhead.
2222

23-
* **[Parameters (developer preview)](https://docs.powertools.aws.dev/lambda-dotnet/core/parameters/)** - provides high-level functionality to retrieve one or multiple parameter values from [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html){target="_blank"}, [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/){target="_blank"}, or [Amazon DynamoDB](https://aws.amazon.com/dynamodb/){target="_blank"}. We also provide extensibility to bring your own providers.
23+
* **[Parameters (developer preview)](https://docs.powertools.aws.dev/lambda-dotnet/utilities/parameters/)** - provides high-level functionality to retrieve one or multiple parameter values from [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html), [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/), or [Amazon DynamoDB](https://aws.amazon.com/dynamodb/). We also provide extensibility to bring your own providers.
24+
25+
* **[Idempotency (developer preview)](https://docs.powertools.aws.dev/lambda-dotnet/utilities/idempotency/)** - The idempotency utility provides a simple solution to convert your Lambda functions into idempotent operations which are safe to retry.
2426

2527
### Installation
2628

27-
The Powertools for AWS Lambda (.NET) utilities (.NET 6) are available as NuGet packages. You can install the packages from [NuGet Gallery](https://www.nuget.org/packages?q=AWS+Lambda+Powertools*){target="_blank"} or from Visual Studio editor by searching `AWS.Lambda.Powertools*` to see various utilities available.
29+
The Powertools for AWS Lambda (.NET) utilities (.NET 6) are available as NuGet packages. You can install the packages from [NuGet Gallery](https://www.nuget.org/packages?q=AWS+Lambda+Powertools*) or from Visual Studio editor by searching `AWS.Lambda.Powertools*` to see various utilities available.
2830

2931
* [AWS.Lambda.Powertools.Logging](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Logging):
3032

@@ -40,7 +42,11 @@ The Powertools for AWS Lambda (.NET) utilities (.NET 6) are available as NuGet p
4042

4143
* [AWS.Lambda.Powertools.Parameters](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Parameters):
4244

43-
`dotnet add package AWS.Lambda.Powertools.AWS.Lambda.Powertools.Parameters`
45+
`dotnet add package AWS.Lambda.Powertools.Parameters`
46+
47+
* [AWS.Lambda.Powertools.Idempotency](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Idempotency):
48+
49+
`dotnet add package AWS.Lambda.Powertools.Idempotency`
4450

4551
## Examples
4652

@@ -49,6 +55,8 @@ We have provided examples focused specifically on each of the utilities. Each so
4955
* **[Logging example](examples/Logging/)**
5056
* **[Metrics example](examples/Metrics/)**
5157
* **[Tracing example](examples/Tracing/)**
58+
* **[Parameters example](examples/Parameters/)**
59+
* **[Idempotency example](examples/Idempotency)**
5260

5361
## Other members of the Powertools for AWS Lambda family
5462

docs/index.md

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,44 +29,83 @@ Core utilities such as Tracing, Logging, and Metrics will be available across al
2929
[Tracing](./core/tracing.md) | Decorators and utilities to trace Lambda function handlers, and both synchronous and asynchronous functions
3030
[Logger](./core/logging.md) | Structured logging made easier, and decorator to enrich structured logging with key Lambda context details
3131
[Metrics](./core/metrics.md) | Custom AWS metrics created asynchronously via CloudWatch Embedded Metric Format (EMF)
32+
[Parameters (developer preview)](./utilities/parameters/) | provides high-level functionality to retrieve one or multiple parameter values from [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html){target="_blank"}, [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/){target="_blank"}, or [Amazon DynamoDB](https://aws.amazon.com/dynamodb/){target="_blank"}. We also provide extensibility to bring your own providers.
33+
[Idempotency (developer preview)](./utilities/idempotency/) | The idempotency utility provides a simple solution to convert your Lambda functions into idempotent operations which are safe to retry.
3234

3335
## Install
3436

3537
Powertools for AWS Lambda (.NET) is available as NuGet packages. You can install the packages from NuGet gallery or from Visual Studio editor. Search `AWS.Lambda.Powertools*` to see various utilities available.
3638

3739
* [AWS.Lambda.Powertools.Tracing](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Tracing):
3840

39-
`dotnet nuget add AWS.Lambda.Powertools.Tracing`
41+
`dotnet add package AWS.Lambda.Powertools.Tracing`
4042

4143
* [AWS.Lambda.Powertools.Logging](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Logging):
4244

43-
`dotnet nuget add AWS.Lambda.Powertools.Logging`
45+
`dotnet add package AWS.Lambda.Powertools.Logging`
4446

4547
* [AWS.Lambda.Powertools.Metrics](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Metrics):
4648

47-
`dotnet nuget add AWS.Lambda.Powertools.Metrics`
49+
`dotnet add package AWS.Lambda.Powertools.Metrics`
4850

49-
### SAM CLI custom template
51+
* [AWS.Lambda.Powertools.Parameters](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Parameters):
5052

51-
We have provided you with a custom template for the Serverless Application Model (AWS SAM) command-line interface (CLI). This generates a starter project that allows you to interactively choose the Powertools for AWS Lambda (.NET) features that enables you to include in your project.
53+
`dotnet add package AWS.Lambda.Powertools.Parameters`
54+
55+
* [AWS.Lambda.Powertools.Idempotency](https://www.nuget.org/packages?q=AWS.Lambda.Powertools.Idempotency):
56+
57+
`dotnet add package AWS.Lambda.Powertools.Idempotency`
5258

53-
```bash
54-
sam init --location https://github.com/aws-samples/cookiecutter-aws-sam-dotnet
55-
```
59+
### Using SAM CLI template
60+
61+
We have provided you with a custom template for the Serverless Application Model (AWS SAM) command-line interface (CLI). This generates a starter project that allows you to interactively choose the Powertools for AWS Lambda (.NET) features that enables you to include in your project.
5662

5763
To use the SAM CLI, you need the following tools.
5864

5965
* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
6066
* .NET 6.0 (LTS) - [Install .NET 6.0](https://www.microsoft.com/net/download)
6167
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
6268

69+
Once you have SAM CLI installed, follow the these steps to initialize a .NET 6 project using Powertools for AWS (.NET)
70+
71+
1. Run the following command in your command line
72+
```bash
73+
sam init -r dotnet6
74+
```
75+
2. Select option 1 as your template source
76+
77+
```bash
78+
Which template source would you like to use?
79+
1 - AWS Quick Start Templates
80+
2 - Custom Template Location
81+
```
82+
3. Select the `Hello World Example with Powertools for AWS Lambda` template
83+
84+
```
85+
Choose an AWS Quick Start application template
86+
1 - Hello World Example
87+
2 - Data processing
88+
3 - Hello World Example with Powertools for AWS Lambda
89+
4 - Multi-step workflow
90+
5 - Scheduled task
91+
6 - Standalone function
92+
7 - Serverless API
93+
Template: 3
94+
```
95+
96+
4. Follow the rest of the prompts and give your project a name
97+
98+
Viola! You now have a SAM application pre-configured with Powertools!
99+
63100
## Examples
64101

65102
We have provided a few examples that should you how to use the each of the core Powertools for AWS Lambda (.NET) features.
66103

67-
* [Tracing](https://github.com/aws-powertools/powertools-lambda-dotnet/tree/main/examples/Tracing){target="_blank"} example
68-
* [Logging](https://github.com/aws-powertools/powertools-lambda-dotnet/tree/main/examples/Logging/){target="_blank"} example
69-
* [Metrics](https://github.com/aws-powertools/powertools-lambda-dotnet/tree/main/examples/Metrics/){target="_blank"} example
104+
* [Tracing](https://github.com/aws-powertools/powertools-lambda-dotnet/tree/main/examples/Tracing){target="_blank"}
105+
* [Logging](https://github.com/aws-powertools/powertools-lambda-dotnet/tree/main/examples/Logging/){target="_blank"}
106+
* [Metrics](https://github.com/aws-powertools/powertools-lambda-dotnet/tree/main/examples/Metrics/){target="_blank"}
107+
* [Parameters](https://github.com/aws-powertools/powertools-lambda-dotnet/tree/main/examples/Parameters/){target="_blank"}
108+
* [Idempotency](https://github.com/aws-powertools/powertools-lambda-dotnet/tree/main/examples/Idempotency/){target="_blank"}
70109

71110
## Connect
72111

docs/core/idempotency.md renamed to docs/utilities/idempotency.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
title: Idempotency
33
description: Utility
44
---
5+
???+ warning
6+
**This utility is currently in developer preview** and is intended strictly for feedback and testing purposes **and not for production workloads**. The version and all future versions tagged with the `-preview` suffix should be treated as not stable. Until this utility is [General Availability](https://github.com/aws-powertools/powertools-lambda-dotnet/milestone/3) we may introduce significant breaking changes and improvements in response to customers feedback.
7+
8+
<!-- markdownlint-disable MD013 -->
59

610
The idempotency utility provides a simple solution to convert your Lambda functions into idempotent operations which are safe to retry.
711

@@ -23,15 +27,16 @@ The property of idempotency means that an operation does not cause additional si
2327
## Getting started
2428

2529
### Installation
30+
2631
You should install with NuGet:
2732

28-
```
33+
```powershell
2934
Install-Package AWS.Lambda.Powertools.Idempotency
3035
```
3136

3237
Or via the .NET Core command line interface:
3338

34-
```
39+
```bash
3540
dotnet add package AWS.Lambda.Powertools.Idempotency
3641
```
3742

docs/we_made_this.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Blog posts, tutorials, and videos about Powertools for AWS Lambda c
77

88
This space is dedicated to highlight our awesome community content featuring Powertools for AWS Lambda (.NET) 🙏!
99

10-
!!! info "[Get your content featured here](https://github.com/aws-powertools/powertools-lambda-python/issues/new?assignees=&labels=community-content&template=share_your_work.yml&title=%5BI+Made+This%5D%3A+%3CTITLE%3E){target="_blank"}!"
10+
!!! info "[Get your content featured here](https://github.com/aws-powertools/powertools-lambda-dotnet/issues/new?assignees=&labels=community-content&template=share_your_work.yml&title=%5BI+Made+This%5D%3A+%3CTITLE%3E){target="_blank"}!"
1111

1212
## Connect
1313

libraries/src/AWS.Lambda.Powertools.Common/AWS.Lambda.Powertools.Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<LangVersion>default</LangVersion>
1010
<Title>Powertools for AWS Lambda (.NET)</Title>
1111
<Description>Powertools for AWS Lambda (.NET) - Core package.</Description>
12-
<Copyright>Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.</Copyright>
12+
<Copyright>Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.</Copyright>
1313
<RepositoryUrl>https://github.com/aws-powertools/powertools-lambda-dotnet</RepositoryUrl>
1414
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1515
<PackageTags>AWS;Amazon;Lambda;Powertools</PackageTags>

libraries/src/AWS.Lambda.Powertools.Logging/AWS.Lambda.Powertools.Logging.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Company>Amazon.com, Inc</Company>
1010
<Title>Powertools for AWS Lambda (.NET)</Title>
1111
<Description>Powertools for AWS Lambda (.NET) - Logging package.</Description>
12-
<Copyright>Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.</Copyright>
12+
<Copyright>Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.</Copyright>
1313
<RepositoryUrl>https://github.com/aws-powertools/powertools-lambda-dotnet</RepositoryUrl>
1414
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1515
<PackageTags>AWS;Amazon;Lambda;Powertools</PackageTags>

libraries/src/AWS.Lambda.Powertools.Metrics/AWS.Lambda.Powertools.Metrics.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Company>Amazon.com, Inc</Company>
99
<Title>Powertools for AWS Lambda (.NET)</Title>
1010
<Description>Powertools for AWS Lambda (.NET) - Metrics package.</Description>
11-
<Copyright>Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.</Copyright>
11+
<Copyright>Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.</Copyright>
1212
<RepositoryUrl>https://github.com/aws-powertools/powertools-lambda-dotnet</RepositoryUrl>
1313
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1414
<PackageTags>AWS;Amazon;Lambda;Powertools</PackageTags>

libraries/src/AWS.Lambda.Powertools.Tracing/AWS.Lambda.Powertools.Tracing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Company>Amazon.com, Inc</Company>
1010
<Title>Powertools for AWS Lambda (.NET)</Title>
1111
<Description>Powertools for AWS Lambda (.NET) - Tracing package.</Description>
12-
<Copyright>Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.</Copyright>
12+
<Copyright>Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.</Copyright>
1313
<RepositoryUrl>https://github.com/aws-powertools/powertools-lambda-dotnet</RepositoryUrl>
1414
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1515
<PackageTags>AWS;Amazon;Lambda;Powertools</PackageTags>

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ nav:
1717
- core/tracing.md
1818
- Utilities:
1919
- utilities/parameters.md
20+
- utilities/idempotency.md
2021

2122
theme:
2223
name: material
@@ -62,8 +63,7 @@ markdown_extensions:
6263
- pymdownx.details
6364
- pymdownx.snippets:
6465
base_path: "."
65-
check_paths: true
66-
restrict_base_path: false
66+
check_paths: True
6767
- meta
6868
- toc:
6969
permalink: true

0 commit comments

Comments
 (0)