Skip to content

Commit 2706de5

Browse files
committed
chore: format parameters package
1 parent 9595bb9 commit 2706de5

25 files changed

+41
-49
lines changed

packages/parameters/src/appconfig/AppConfigProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import type { StartConfigurationSessionCommandInput } from '@aws-sdk/client-appconfigdata';
12
import {
23
AppConfigDataClient,
34
GetLatestConfigurationCommand,
45
StartConfigurationSessionCommand,
56
} from '@aws-sdk/client-appconfigdata';
6-
import type { StartConfigurationSessionCommandInput } from '@aws-sdk/client-appconfigdata';
77
import { BaseProvider } from '../base/BaseProvider.js';
88
import { APPCONFIG_TOKEN_EXPIRATION } from '../constants.js';
99
import type {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { BaseProvider } from './BaseProvider.js';
22
export { DEFAULT_PROVIDERS } from './DefaultProviders.js';
3-
export { GetOptions } from './GetOptions.js';
43
export { GetMultipleOptions } from './GetMultipleOptions.js';
4+
export { GetOptions } from './GetOptions.js';

packages/parameters/src/dynamodb/DynamoDBProvider.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import type { JSONValue } from '@aws-lambda-powertools/commons/types';
2+
import type {
3+
GetItemCommandInput,
4+
QueryCommandInput,
5+
} from '@aws-sdk/client-dynamodb';
26
import {
37
DynamoDBClient,
48
type DynamoDBPaginationConfiguration,
59
GetItemCommand,
610
paginateQuery,
711
} from '@aws-sdk/client-dynamodb';
8-
import type {
9-
GetItemCommandInput,
10-
QueryCommandInput,
11-
} from '@aws-sdk/client-dynamodb';
1212
import { marshall, unmarshall } from '@aws-sdk/util-dynamodb';
1313
import { BaseProvider } from '../base/BaseProvider.js';
1414
import type {

packages/parameters/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export { clearCaches } from './base/DefaultProviders.js';
2-
export { GetParameterError, TransformParameterError } from './errors.js';
32
export { Transform } from './constants.js';
3+
export { GetParameterError, TransformParameterError } from './errors.js';

packages/parameters/src/secrets/SecretsProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import type { GetSecretValueCommandInput } from '@aws-sdk/client-secrets-manager';
12
import {
23
GetSecretValueCommand,
34
SecretsManagerClient,
45
} from '@aws-sdk/client-secrets-manager';
5-
import type { GetSecretValueCommandInput } from '@aws-sdk/client-secrets-manager';
66
import { BaseProvider } from '../base/BaseProvider.js';
77
import type {
88
SecretsGetOptions,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { SecretsProvider } from './SecretsProvider.js';
21
export { getSecret } from './getSecret.js';
2+
export { SecretsProvider } from './SecretsProvider.js';

packages/parameters/src/ssm/SSMProvider.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
import type { JSONValue } from '@aws-lambda-powertools/commons/types';
2-
import {
3-
GetParameterCommand,
4-
GetParametersCommand,
5-
PutParameterCommand,
6-
SSMClient,
7-
paginateGetParametersByPath,
8-
} from '@aws-sdk/client-ssm';
92
import type {
103
GetParameterCommandInput,
114
GetParametersByPathCommandInput,
@@ -15,6 +8,13 @@ import type {
158
PutParameterCommandOutput,
169
SSMPaginationConfiguration,
1710
} from '@aws-sdk/client-ssm';
11+
import {
12+
GetParameterCommand,
13+
GetParametersCommand,
14+
PutParameterCommand,
15+
paginateGetParametersByPath,
16+
SSMClient,
17+
} from '@aws-sdk/client-ssm';
1818
import { BaseProvider } from '../base/BaseProvider.js';
1919
import { transformValue } from '../base/transformValue.js';
2020
import { DEFAULT_MAX_AGE_SECS } from '../constants.js';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { SSMProvider } from './SSMProvider.js';
21
export { getParameter } from './getParameter.js';
3-
export { setParameter } from './setParameter.js';
42
export { getParameters } from './getParameters.js';
53
export { getParametersByName } from './getParametersByName.js';
4+
export { SSMProvider } from './SSMProvider.js';
5+
export { setParameter } from './setParameter.js';

packages/parameters/tests/e2e/appConfigProvider.class.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { join } from 'node:path';
22
import {
3+
invokeFunctionOnce,
34
TestInvocationLogs,
45
TestStack,
5-
invokeFunctionOnce,
66
} from '@aws-lambda-powertools/testing-utils';
77
import { TestNodejsFunction } from '@aws-lambda-powertools/testing-utils/resources/lambda';
88
import { toBase64 } from '@smithy/util-base64';

packages/parameters/tests/e2e/dynamoDBProvider.class.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { join } from 'node:path';
22
import {
3+
invokeFunctionOnce,
34
TestInvocationLogs,
45
TestStack,
5-
invokeFunctionOnce,
66
} from '@aws-lambda-powertools/testing-utils';
77
import { TestNodejsFunction } from '@aws-lambda-powertools/testing-utils/resources/lambda';
88
import { AttributeType } from 'aws-cdk-lib/aws-dynamodb';

0 commit comments

Comments
 (0)