Skip to content

Commit 074d644

Browse files
committed
style(parameters): apply stricter linting
1 parent 7777163 commit 074d644

File tree

9 files changed

+71
-72
lines changed

9 files changed

+71
-72
lines changed

packages/parameters/src/appconfig/AppConfigProvider.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ class AppConfigProvider extends BaseProvider {
231231
*
232232
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
233233
*
234-
* @param name - The name of the configuration profile or its ID
235-
* @param options - Options to configure the provider
236-
* @param options.maxAge - Maximum age of the value in the cache, in seconds.
237-
* @param options.forceFetch - Force fetch the value from the parameter store, ignoring the cache.
238-
* @param options.sdkOptions - Additional options to pass to the AWS SDK v3 client. Supports all options from {@link StartConfigurationSessionCommandInput | `StartConfigurationSessionCommandInput`} except `ApplicationIdentifier`, `EnvironmentIdentifier`, and `ConfigurationProfileIdentifier`.
239-
* @param options.transform - Optional transform to be applied, can be 'json' or 'binary'.
234+
* @param name - The name of the configuration profile to retrieve
235+
* @param options - Optional options to configure the provider
236+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
237+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
238+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
239+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link StartConfigurationSessionCommandInput | `StartConfigurationSessionCommandInput`} except `ApplicationIdentifier`, `EnvironmentIdentifier`, and `ConfigurationProfileIdentifier`
240240
*/
241241
public get<
242242
ExplicitUserProvidedType = undefined,

packages/parameters/src/appconfig/getAppConfig.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ import { AppConfigProvider } from './AppConfigProvider.js';
133133
*
134134
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
135135
*
136-
* @param name - The name of the configuration profile or its ID
136+
* @param name - The name of the configuration profile to retrieve
137137
* @param options - Options to configure the provider
138-
* @param options.application - The application ID or the application name.
139-
* @param options.environment - The environment ID or the environment name.
140-
* @param options.maxAge - The maximum age (in seconds) to keep values in cache. Default: 5 seconds.
141-
* @param options.forceFetch - Whether to skip the cache and always fetch the latest value from the store. Default: `false`.
142-
* @param options.transform - Optional transformation to apply to the retrieved value. Supported options are: 'json' and 'binary'.
143-
* @param options.sdkOptions - Optional extra options to pass to the AWS SDK v3 for JavaScript client when retrieving the configuration profile.
138+
* @param options.application - The application ID or the application name
139+
* @param options.environment - The environment ID or the environment name
140+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
141+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
142+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
143+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link StartConfigurationSessionCommandInput | `StartConfigurationSessionCommandInput`} except `ApplicationIdentifier`, `EnvironmentIdentifier`, and `ConfigurationProfileIdentifier`
144144
*/
145145
const getAppConfig = <
146146
ExplicitUserProvidedType = undefined,

packages/parameters/src/dynamodb/DynamoDBProvider.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,12 @@ class DynamoDBProvider extends BaseProvider {
268268
*
269269
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
270270
*
271-
* @param name - The name of the value to retrieve (i.e. the partition key)
272-
* @param options - Options to configure the provider
273-
* @param options.maxAge - Maximum age of the value in the cache, in seconds.
274-
* @param options.forceFetch - Force fetch the value from the parameter store, ignoring the cache.
275-
* @param options.sdkOptions - Additional options to pass to the AWS SDK v3 client, supports all options from {@link GetItemCommandInput | `GetItemCommandInput`} except `Key`, `TableName`, and `ProjectionExpression`.
276-
* @param options.transform - Transform to be applied, can be 'json' or 'binary'.
271+
* @param name - The name of the value to retrieve (partition key)
272+
* @param options - Optional options to configure the provider
273+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
274+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
275+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
276+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link GetItemCommandInput | `GetItemCommandInput`} except `Key`, `TableName`, and `ProjectionExpression`
277277
*/
278278
public get<
279279
ExplicitUserProvidedType = undefined,
@@ -312,13 +312,13 @@ class DynamoDBProvider extends BaseProvider {
312312
*
313313
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
314314
*
315-
* @param path - The path of the values to retrieve (i.e. the partition key)
316-
* @param options - Options to configure the provider
317-
* @param options.maxAge - Maximum age of the value in the cache, in seconds.
318-
* @param options.forceFetch - Force fetch the value from the parameter store, ignoring the cache.
319-
* @param options.sdkOptions - Additional options to pass to the AWS SDK v3 client, supports all options from {@link QueryCommandInput | `QueryCommandInput`} except `TableName` and `KeyConditionExpression`.
320-
* @param options.transform - Transform to be applied, can be 'json' or 'binary'.
321-
* @param options.throwOnTransformError - Whether to throw an error if the transform fails (default: `true`)
315+
* @param path - The path of the values to retrieve (partition key)
316+
* @param options - Optional options to configure the provider
317+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
318+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
319+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
320+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link QueryCommandInput | `QueryCommandInput`} except `TableName` and `KeyConditionExpression`
321+
* @param options.throwOnTransformError - Optional flag to throw an error if the transform fails (default: `true`)
322322
*/
323323
public getMultiple<
324324
ExplicitUserProvidedType = undefined,

packages/parameters/src/secrets/SecretsProvider.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ class SecretsProvider extends BaseProvider {
166166
*
167167
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
168168
*
169-
* @param name - The name of the secret
170-
* @param options - Options to customize the retrieval of the secret
171-
* @param options.maxAge - The maximum age of the value in cache before fetching a new one (in seconds) (default: 5)
172-
* @param options.forceFetch - Whether to always fetch a new value from the store regardless if already available in cache
173-
* @param options.transform - Whether to transform the value before returning it. Supported values: `json`, `binary`
174-
* @param options.sdkOptions - Extra options to pass to the AWS SDK v3 for JavaScript client
169+
* @param name - The name of the secret to retrieve
170+
* @param options - Optional options to configure the provider
171+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
172+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
173+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
174+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link GetSecretValueCommandInput | `GetSecretValueCommandInput`} except `SecretId`
175175
*/
176176
public get<
177177
ExplicitUserProvidedType = undefined,

packages/parameters/src/secrets/getSecret.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { SecretsManagerClientConfig } from '@aws-sdk/client-secrets-manager';
21
import { DEFAULT_PROVIDERS } from '../base/DefaultProviders.js';
32
import type {
43
SecretsGetOptions,
@@ -92,11 +91,11 @@ import { SecretsProvider } from './SecretsProvider.js';
9291
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
9392
*
9493
* @param name - The name of the secret to retrieve
95-
* @param options - Options to configure the provider
96-
* @param options.maxAge - The maximum age of the value in cache before fetching a new one (in seconds) (default: `5`)
97-
* @param options.forceFetch - Whether to always fetch a new value from the store regardless if already available in cache (default: `false`)
98-
* @param options.transform - Whether to transform the value before returning it. Supported values: `json`, `binary`
99-
* @param options.sdkOptions - Extra options to pass to the AWS SDK v3 for JavaScript client, accepts the same configuration object as the AWS SDK v3 client ({@link SecretsManagerClientConfig | `SecretsManagerClientConfig`}).
94+
* @param options - Optional options to configure the provider
95+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
96+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
97+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
98+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link GetSecretValueCommandInput | `GetSecretValueCommandInput`} except `SecretId`
10099
*/
101100
const getSecret = <
102101
ExplicitUserProvidedType = undefined,

packages/parameters/src/ssm/SSMProvider.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ class SSMProvider extends BaseProvider {
291291
292292
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
293293
*
294-
* @param name - The name of the value to retrieve (i.e. the partition key)
295-
* @param options - Options to configure the provider
296-
* @param options.maxAge - The maximum age of the value in cache before fetching a new one (in seconds) (default: 5)
297-
* @param options.forceFetch - Whether to always fetch a new value from the store regardless if already available in cache (default: false)
298-
* @param options.transform - Whether to transform the value before returning it. Supported values: `json`, `binary`
299-
* @param options.sdkOptions - Extra options to pass to the AWS SDK v3 for JavaScript client
300-
* @param options.decrypt - Whether to decrypt the value before returning it. (default: false)
294+
* @param name - The name of the parameter to retrieve
295+
* @param options - Optional options to configure the provider
296+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
297+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
298+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
299+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link GetParameterCommandInput | `GetParameterCommandInput`} except `Name`
300+
* @param options.decrypt - Optional flag to decrypt the value before returning it (default: `false`)
301301
*/
302302
public get<
303303
ExplicitUserProvidedType = undefined,
@@ -390,14 +390,14 @@ class SSMProvider extends BaseProvider {
390390
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
391391
*
392392
* @param path - The path of the parameters to retrieve
393-
* @param options - Options to configure the retrieval
394-
* @param options.maxAge - The maximum age of the value in cache before fetching a new one (in seconds) (default: 5)
395-
* @param options.forceFetch - Whether to always fetch a new value from the store regardless if already available in cache
396-
* @param options.transform - Whether to transform the value before returning it. Supported values: `json`, `binary`
397-
* @param options.sdkOptions - Extra options to pass to the AWS SDK v3 for JavaScript client
398-
* @param options.throwOnTransformError - Whether to throw an error if the transform fails (default: `true`)
399-
* @param options.decrypt - Whether to decrypt the value before returning it.
400-
* @param options.recursive - Whether to recursively retrieve all parameters under the given path (default: `false`)
393+
* @param options - Optional options to configure the retrieval
394+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
395+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
396+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
397+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link GetParametersByPathCommandInput | `GetParametersByPathCommandInput`} except `Path`
398+
* @param options.throwOnTransformError - Optional flag to throw an error if the transform fails (default: `true`)
399+
* @param options.decrypt - Optional flag to decrypt the value before returning it (default: `false`)
400+
* @param options.recursive - Optional flag to recursively retrieve all parameters under the given path (default: `false`)
401401
*/
402402
public getMultiple<
403403
ExplicitUserProvidedType = undefined,

packages/parameters/src/ssm/getParameter.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ import { SSMProvider } from './SSMProvider.js';
114114
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
115115
*
116116
* @param name - The name of the parameter to retrieve
117-
* @param options - Options to configure the provider
118-
* @param options.maxAge - Maximum age of the value in the cache, in seconds. Will be applied after the first API call.
119-
* @param options.forceFetch - Force fetch the value from the parameter store, ignoring the cache.
120-
* @param options.transform - Optional transform to be applied, can be 'json' or 'binary'.
121-
* @param options.sdkOptions - Additional options to pass to the AWS SDK v3 for JavaScript client. Supports all options from {@link GetParameterCommandInput | `GetParameterCommandInput`} except `Name`.
122-
* @param options.decrypt - Whether to decrypt the value before returning it. Defaults to `false`.
117+
* @param options - Optional options to configure the provider
118+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
119+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
120+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
121+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link GetParameterCommandInput | `GetParameterCommandInput`} except `Name`
122+
* @param options.decrypt - Optional flag to decrypt the value before returning it (default: `false`)
123123
*/
124124
const getParameter = <
125125
ExplicitUserProvidedType = undefined,

packages/parameters/src/ssm/getParameters.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ import { SSMProvider } from './SSMProvider.js';
115115
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/features/parameters/
116116
*
117117
* @param path - The path of the parameters to retrieve
118-
* @param options - Options to configure the provider
119-
* @param options.maxAge - The maximum age of the value in cache before fetching a new one (in seconds) (default: 5)
120-
* @param options.forceFetch - Whether to always fetch a new value from the store regardless if already available in cache
121-
* @param options.transform - Whether to transform the value before returning it. Supported values: `json`, `binary`
122-
* @param options.sdkOptions - Extra options to pass to the AWS SDK v3 for JavaScript client, accepts the same options as {@link GetParametersByPathCommandInput | `GetParametersByPathCommandInput`}.
123-
* @param options.decrypt - Whether to decrypt the value before returning it.
124-
* @param options.recursive - Whether to recursively retrieve all parameters within the path.
118+
* @param options - Optional options to configure the provider
119+
* @param options.maxAge - Optional maximum age of the value in the cache, in seconds (default: `5`)
120+
* @param options.forceFetch - Optional flag to always fetch a new value from the store regardless if already available in cache (default: `false`)
121+
* @param options.transform - Optional transform to be applied, can be `json` or `binary`
122+
* @param options.sdkOptions - Optional additional options to pass to the AWS SDK v3 client, supports all options from {@link GetParametersByPathCommandInput | `GetParametersByPathCommandInput`} except `Path`
123+
* @param options.decrypt - Optional flag to decrypt the value before returning it (default: `false`)
124+
* @param options.recursive - Optional flag to recursively retrieve all parameters within the path (default: `false`)
125125
*/
126126
const getParameters = <
127127
ExplicitUserProvidedType = undefined,

packages/parameters/typedoc.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
"readme": "README.md",
1717
"externalSymbolLinkMappings": {
1818
"@aws-sdk/client-secrets-manager": {
19-
"GetSecretValueCommandInput": "#"
19+
"GetSecretValueCommandInput": "https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/GetSecretValueCommandInput/"
2020
},
2121
"@aws-sdk/client-dynamodb": {
22-
"DynamoDBClient": "#",
23-
"GetItemCommandInput": "#",
24-
"QueryCommandInput": "#"
22+
"DynamoDBClient": "https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/dynamodb/",
23+
"GetItemCommandInput": "https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/GetItemCommandInput/",
24+
"QueryCommandInput": "https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-dynamodb/Interface/QueryCommandInput/"
2525
},
2626
"@aws-sdk/client-appconfigdata": {
27-
"AppConfigDataClient": "#",
28-
"StartConfigurationSessionCommandInput": "#"
27+
"AppConfigDataClient": "https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appconfigdata/",
28+
"StartConfigurationSessionCommandInput": "https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appconfigdata/Interface/StartConfigurationSessionCommandInput/"
2929
},
3030
"@aws-sdk/client-ssm": { "GetParameterCommandInput": "#" }
3131
}

0 commit comments

Comments
 (0)