Skip to content

Commit 625cf23

Browse files
am29ddreamorosi
andauthored
docs(parameters): review API docs & README for Parameters (#2994)
Co-authored-by: Andrea Amorosi <[email protected]>
1 parent 1bab6ea commit 625cf23

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

packages/parameters/README.md

+13-17
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Powertools for AWS Lambda (TypeScript) is a developer toolkit to implement Serve
55
You can use the package in both TypeScript and JavaScript code bases.
66

77
- [Intro](#intro)
8-
- [Key features](#key-features)
98
- [Usage](#usage)
109
- [Fetching parameters from AWS SSM Parameter Store](#fetching-parameters-from-aws-ssm-parameter-store)
1110
- [Getting secrets from Amazon Secrets Manager](#getting-secrets-from-amazon-secrets-manager)
@@ -18,19 +17,17 @@ You can use the package in both TypeScript and JavaScript code bases.
1817
- [Becoming a reference customer](#becoming-a-reference-customer)
1918
- [Sharing your work](#sharing-your-work)
2019
- [Using Lambda Layer](#using-lambda-layer)
21-
- [Credits](#credits)
2220
- [License](#license)
2321

2422
## Intro
2523

26-
The Parameters utility provides high-level functions 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://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html), [AWS AppConfig](https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html), [Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html), or your own parameter store.
24+
The Parameters utility provides high-level functions to retrieve one or multiple parameter values from
2725

28-
## Key features
29-
30-
- Retrieve one or multiple parameters from the underlying provider
31-
- Cache parameter values for a given amount of time (defaults to 5 seconds)
32-
- Transform parameter values from JSON or base64 encoded strings
33-
- Bring Your Own Parameter Store Provider
26+
- [AWS Systems Manager Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html)
27+
- [AWS Secrets Manager](https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html),
28+
- [AWS AppConfig](https://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html),
29+
- [Amazon DynamoDB](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html),
30+
- or your own parameter store.
3431

3532
## Usage
3633

@@ -73,7 +70,7 @@ export const handler = async (): Promise<void> => {
7370
};
7471
```
7572

76-
To fetch disctinct parameters using their full name, you can use the `getParametersByName` function:
73+
To fetch distinct parameters using their full name, you can use the `getParametersByName` function:
7774

7875
```ts
7976
import { Transform } from '@aws-lambda-powertools/parameters';
@@ -204,7 +201,7 @@ If you are interested in contributing to this project, please refer to our [Cont
204201

205202
## Roadmap
206203

207-
[The roadmap](https://docs.powertools.aws.dev/lambda/typescript/latest/roadmap/) of Powertools for AWS Lambda (TypeScript) is driven by customers’ demand.
204+
The roadmap of Powertools for AWS Lambda (TypeScript) is driven by customers’ demand.
208205
Help us prioritize upcoming functionalities or utilities by [upvoting existing RFCs and feature requests](https://github.com/aws-powertools/powertools-lambda-typescript/issues), or [creating new ones](https://github.com/aws-powertools/powertools-lambda-typescript/issues/new/choose), in this GitHub repository.
209206

210207
## Connect
@@ -216,7 +213,10 @@ Help us prioritize upcoming functionalities or utilities by [upvoting existing R
216213

217214
### Becoming a reference customer
218215

219-
Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (TypeScript), you can request to have your name and logo added to the README file by raising a [Support Powertools for AWS Lambda (TypeScript) (become a reference)](https://github.com/aws-powertools/powertools-lambda-typescript/issues/new?assignees=&labels=customer-reference&template=support_powertools.yml&title=%5BSupport+Lambda+Powertools%5D%3A+%3Cyour+organization+name%3E) issue.
216+
Knowing which companies are using this library is important to help prioritize the project internally. If your company
217+
is using Powertools for AWS Lambda (TypeScript), you can request to have your name and logo added to the README file by
218+
raising a [Support Powertools for AWS Lambda (TypeScript) (become a reference)](https://s12d.com/become-reference-pt-ts)
219+
issue.
220220

221221
The following companies, among others, use Powertools:
222222

@@ -242,11 +242,7 @@ Share what you did with Powertools for AWS Lambda (TypeScript) 💞💞. Blog po
242242

243243
### Using Lambda Layer
244244

245-
This helps us understand who uses Powertools for AWS Lambda (TypeScript) in a non-intrusive way, and helps us gain future investments for other Powertools for AWS Lambda languages. When [using Layers](#lambda-layers), you can add Powertools for AWS Lambda (TypeScript) as a dev dependency (or as part of your virtual env) to not impact the development process.
246-
247-
## Credits
248-
249-
Credits for the Powertools for AWS Lambda (TypeScript) idea go to [DAZN](https://github.com/getndazn) and their [DAZN Lambda Powertools](https://github.com/getndazn/dazn-lambda-powertools/).
245+
This helps us understand who uses Powertools for AWS Lambda (TypeScript) in a non-intrusive way, and helps us gain future investments for other Powertools for AWS Lambda languages. When [using Layers](https://docs.powertools.aws.dev/lambda/typescript/latest/#lambda-layer), you can add Powertools as a dev dependency to not impact the development process.
250246

251247
## License
252248

packages/parameters/src/secrets/SecretsProvider.ts

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ import type {
141141
* For more usage examples, see [our documentation](https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parameters/).
142142
*
143143
* @class
144-
* @implements {BaseProvider}
145144
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/utilities/parameters/
146145
*/
147146
class SecretsProvider extends BaseProvider {

packages/parameters/src/types/SecretsProvider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type SecretsProviderOptions =
5151
/**
5252
* Options to configure the retrieval of a secret.
5353
*
54-
* @interface SecretsGetOptionsInterface
54+
* @interface SecretsGetOptionsBase
5555
* @extends {GetOptionsInterface}
5656
* @property {number} maxAge - Maximum age of the value in the cache, in seconds.
5757
* @property {boolean} forceFetch - Force fetch the value from the parameter store, ignoring the cache.

0 commit comments

Comments
 (0)