@aws-sdk/client-dynamodb 3.476.0 → 3.478.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/DynamoDBClient.js +17 -4
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/pagination/ListContributorInsightsPaginator.js +2 -24
- package/dist-cjs/pagination/ListExportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTablesPaginator.js +2 -24
- package/dist-cjs/pagination/QueryPaginator.js +2 -24
- package/dist-cjs/pagination/ScanPaginator.js +2 -24
- package/dist-cjs/runtimeConfig.shared.js +10 -0
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/DynamoDBClient.js +17 -4
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/pagination/ListContributorInsightsPaginator.js +2 -23
- package/dist-es/pagination/ListExportsPaginator.js +2 -23
- package/dist-es/pagination/ListImportsPaginator.js +2 -23
- package/dist-es/pagination/ListTablesPaginator.js +2 -23
- package/dist-es/pagination/QueryPaginator.js +2 -23
- package/dist-es/pagination/ScanPaginator.js +2 -23
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/DynamoDBClient.d.ts +19 -17
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/pagination/ListContributorInsightsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTablesPaginator.d.ts +1 -1
- package/dist-types/pagination/QueryPaginator.d.ts +1 -1
- package/dist-types/pagination/ScanPaginator.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +5 -3
- package/dist-types/runtimeConfig.d.ts +5 -3
- package/dist-types/runtimeConfig.native.d.ts +7 -5
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/DynamoDBClient.d.ts +12 -10
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/pagination/ListContributorInsightsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/QueryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ScanPaginator.d.ts +3 -3
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +11 -11
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +8 -7
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { QueryCommand } from "../commands/QueryCommand";
|
|
2
3
|
import { DynamoDBClient } from "../DynamoDBClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new QueryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateQuery(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.ExclusiveStartKey = token;
|
|
12
|
-
input["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof DynamoDBClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.LastEvaluatedKey;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateQuery = createPaginator(DynamoDBClient, QueryCommand, "ExclusiveStartKey", "LastEvaluatedKey", "Limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ScanCommand } from "../commands/ScanCommand";
|
|
2
3
|
import { DynamoDBClient } from "../DynamoDBClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ScanCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateScan(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.ExclusiveStartKey = token;
|
|
12
|
-
input["Limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof DynamoDBClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.LastEvaluatedKey;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateScan = createPaginator(DynamoDBClient, ScanCommand, "ExclusiveStartKey", "LastEvaluatedKey", "Limit");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { AWSSDKSigV4Signer } from "@aws-sdk/core";
|
|
1
2
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
2
3
|
import { parseUrl } from "@smithy/url-parser";
|
|
3
4
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
5
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
6
|
+
import { defaultDynamoDBHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
5
7
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
8
|
export const getRuntimeConfig = (config) => {
|
|
7
9
|
return {
|
|
@@ -11,6 +13,14 @@ export const getRuntimeConfig = (config) => {
|
|
|
11
13
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
14
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
15
|
extensions: config?.extensions ?? [],
|
|
16
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDynamoDBHttpAuthSchemeProvider,
|
|
17
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
18
|
+
{
|
|
19
|
+
schemeId: "aws.auth#sigv4",
|
|
20
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
21
|
+
signer: new AWSSDKSigV4Signer(),
|
|
22
|
+
},
|
|
23
|
+
],
|
|
14
24
|
logger: config?.logger ?? new NoOpLogger(),
|
|
15
25
|
serviceId: config?.serviceId ?? "DynamoDB",
|
|
16
26
|
urlParser: config?.urlParser ?? parseUrl,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
const asPartial = (t) => t;
|
|
5
6
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
7
|
const extensionConfiguration = {
|
|
7
8
|
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
8
9
|
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
9
10
|
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
10
12
|
};
|
|
11
13
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
12
14
|
return {
|
|
@@ -14,5 +16,6 @@ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
|
14
16
|
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
15
17
|
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
16
18
|
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
17
20
|
};
|
|
18
21
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { EndpointDiscoveryInputConfig, EndpointDiscoveryResolvedConfig } from "@aws-sdk/middleware-endpoint-discovery";
|
|
2
2
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
-
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
4
3
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
5
|
-
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
6
4
|
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
|
|
7
5
|
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
8
6
|
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
9
7
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
10
8
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
11
|
-
import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
10
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
12
11
|
import { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
13
12
|
import { BatchGetItemCommandInput, BatchGetItemCommandOutput } from "./commands/BatchGetItemCommand";
|
|
14
13
|
import { BatchWriteItemCommandInput, BatchWriteItemCommandOutput } from "./commands/BatchWriteItemCommand";
|
|
@@ -145,26 +144,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
145
144
|
* Enables FIPS compatible endpoints.
|
|
146
145
|
*/
|
|
147
146
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
148
|
-
/**
|
|
149
|
-
* The AWS region to which this client will send requests
|
|
150
|
-
*/
|
|
151
|
-
region?: string | __Provider<string>;
|
|
152
|
-
/**
|
|
153
|
-
* Default credentials provider; Not available in browser runtime.
|
|
154
|
-
* @internal
|
|
155
|
-
*/
|
|
156
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
157
147
|
/**
|
|
158
148
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
159
149
|
* @internal
|
|
160
150
|
*/
|
|
161
151
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
162
152
|
/**
|
|
163
|
-
* The
|
|
164
|
-
|
|
153
|
+
* The AWS region to which this client will send requests
|
|
154
|
+
*/
|
|
155
|
+
region?: string | __Provider<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Default credentials provider; Not available in browser runtime.
|
|
158
|
+
* @deprecated
|
|
165
159
|
* @internal
|
|
166
160
|
*/
|
|
167
|
-
|
|
161
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
168
162
|
/**
|
|
169
163
|
* Value for how many times a request will be made at most in case of retry.
|
|
170
164
|
*/
|
|
@@ -187,11 +181,17 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
187
181
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
188
182
|
*/
|
|
189
183
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
184
|
+
/**
|
|
185
|
+
* The provider which populates default for endpointDiscoveryEnabled configuration, if it's
|
|
186
|
+
* not passed during client creation.
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
192
|
* @public
|
|
193
193
|
*/
|
|
194
|
-
export type DynamoDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig &
|
|
194
|
+
export type DynamoDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & EndpointDiscoveryInputConfig & ClientInputEndpointParameters;
|
|
195
195
|
/**
|
|
196
196
|
* @public
|
|
197
197
|
*
|
|
@@ -202,7 +202,7 @@ export interface DynamoDBClientConfig extends DynamoDBClientConfigType {
|
|
|
202
202
|
/**
|
|
203
203
|
* @public
|
|
204
204
|
*/
|
|
205
|
-
export type DynamoDBClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig &
|
|
205
|
+
export type DynamoDBClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & EndpointDiscoveryResolvedConfig & ClientResolvedEndpointParameters;
|
|
206
206
|
/**
|
|
207
207
|
* @public
|
|
208
208
|
*
|
|
@@ -235,6 +235,8 @@ export declare class DynamoDBClient extends __Client<__HttpHandlerOptions, Servi
|
|
|
235
235
|
* The resolved configuration of DynamoDBClient class. This is resolved and normalized from the {@link DynamoDBClientConfig | constructor configuration interface}.
|
|
236
236
|
*/
|
|
237
237
|
readonly config: DynamoDBClientResolvedConfig;
|
|
238
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
239
|
+
private getIdentityProviderConfigProvider;
|
|
238
240
|
constructor(...[configuration]: __CheckOptionalClientConfig<DynamoDBClientConfig>);
|
|
239
241
|
/**
|
|
240
242
|
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import { DynamoDBHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): DynamoDBHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AWSSDKSigV4AuthInputConfig, AWSSDKSigV4AuthResolvedConfig, AWSSDKSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
|
+
import { DynamoDBClientResolvedConfig } from "../DynamoDBClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface DynamoDBHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface DynamoDBHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<DynamoDBClientResolvedConfig, HandlerExecutionContext, DynamoDBHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultDynamoDBHttpAuthSchemeParametersProvider: (config: DynamoDBClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<DynamoDBHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface DynamoDBHttpAuthSchemeProvider extends HttpAuthSchemeProvider<DynamoDBHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultDynamoDBHttpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
37
|
+
/**
|
|
38
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
httpAuthSchemeProvider?: DynamoDBHttpAuthSchemeProvider;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export interface HttpAuthSchemeResolvedConfig extends AWSSDKSigV4AuthResolvedConfig {
|
|
47
|
+
/**
|
|
48
|
+
* experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
52
|
+
/**
|
|
53
|
+
* experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
readonly httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AWSSDKSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
/**
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
7
|
-
export interface DynamoDBExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
|
8
|
+
export interface DynamoDBExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
8
9
|
}
|
|
@@ -4,4 +4,4 @@ import { DynamoDBPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListContributorInsights: (config: DynamoDBPaginationConfiguration, input: ListContributorInsightsCommandInput, ...rest: any[]) => Paginator<ListContributorInsightsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { DynamoDBPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExports: (config: DynamoDBPaginationConfiguration, input: ListExportsCommandInput, ...rest: any[]) => Paginator<ListExportsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { DynamoDBPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListImports: (config: DynamoDBPaginationConfiguration, input: ListImportsCommandInput, ...rest: any[]) => Paginator<ListImportsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { DynamoDBPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTables: (config: DynamoDBPaginationConfiguration, input: ListTablesCommandInput, ...rest: any[]) => Paginator<ListTablesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { DynamoDBPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateQuery: (config: DynamoDBPaginationConfiguration, input: QueryCommandInput, ...rest: any[]) => Paginator<QueryCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { DynamoDBPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateScan: (config: DynamoDBPaginationConfiguration, input: ScanCommandInput, ...rest: any[]) => Paginator<ScanCommandOutput>;
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
11
11
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
12
|
endpointDiscoveryEnabledProvider: import("@smithy/types").Provider<boolean | undefined>;
|
|
13
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -37,13 +37,15 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
37
37
|
}) => import("@smithy/types").EndpointV2;
|
|
38
38
|
tls?: boolean | undefined;
|
|
39
39
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
40
|
-
|
|
40
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
41
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
42
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
43
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
41
44
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
42
45
|
signingEscapePath?: boolean | undefined;
|
|
43
46
|
systemClockOffset?: number | undefined;
|
|
44
47
|
signingRegion?: string | undefined;
|
|
45
48
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
46
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
47
49
|
endpointCacheSize?: number | undefined;
|
|
48
50
|
endpointDiscoveryEnabled?: boolean | undefined;
|
|
49
51
|
};
|
|
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
11
11
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
12
|
endpointDiscoveryEnabledProvider: import("@smithy/types").Provider<boolean | undefined>;
|
|
13
13
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -37,13 +37,15 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
37
37
|
}) => import("@smithy/types").EndpointV2;
|
|
38
38
|
tls?: boolean | undefined;
|
|
39
39
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
40
|
-
|
|
40
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
41
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
42
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
43
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
41
44
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
42
45
|
signingEscapePath?: boolean | undefined;
|
|
43
46
|
systemClockOffset?: number | undefined;
|
|
44
47
|
signingRegion?: string | undefined;
|
|
45
48
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
46
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
47
49
|
endpointCacheSize?: number | undefined;
|
|
48
50
|
endpointDiscoveryEnabled?: boolean | undefined;
|
|
49
51
|
};
|
|
@@ -21,28 +21,30 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
21
21
|
serviceId: string;
|
|
22
22
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
|
-
region: string | import("@smithy/types").Provider<any>;
|
|
25
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
24
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
27
|
-
|
|
25
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
26
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
28
27
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
29
28
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
30
29
|
logger: import("@smithy/types").Logger;
|
|
31
30
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
31
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
32
|
+
endpointDiscoveryEnabledProvider: import("@smithy/types").Provider<boolean | undefined>;
|
|
33
33
|
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
34
34
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
35
35
|
logger?: import("@smithy/types").Logger | undefined;
|
|
36
36
|
}) => import("@smithy/types").EndpointV2;
|
|
37
37
|
tls?: boolean | undefined;
|
|
38
38
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
39
|
-
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
41
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
42
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
40
43
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
41
44
|
signingEscapePath?: boolean | undefined;
|
|
42
45
|
systemClockOffset?: number | undefined;
|
|
43
46
|
signingRegion?: string | undefined;
|
|
44
47
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
45
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
46
48
|
endpointCacheSize?: number | undefined;
|
|
47
49
|
endpointDiscoveryEnabled?: boolean | undefined;
|
|
48
50
|
};
|
|
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
11
11
|
logger?: import("@smithy/types").Logger | undefined;
|
|
12
12
|
}) => import("@smithy/types").EndpointV2;
|
|
13
13
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
14
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
15
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
14
16
|
logger: import("@smithy/types").Logger;
|
|
15
17
|
serviceId: string;
|
|
16
18
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -6,15 +6,10 @@ import {
|
|
|
6
6
|
HostHeaderInputConfig,
|
|
7
7
|
HostHeaderResolvedConfig,
|
|
8
8
|
} from "@aws-sdk/middleware-host-header";
|
|
9
|
-
import {
|
|
10
|
-
AwsAuthInputConfig,
|
|
11
|
-
AwsAuthResolvedConfig,
|
|
12
|
-
} from "@aws-sdk/middleware-signing";
|
|
13
9
|
import {
|
|
14
10
|
UserAgentInputConfig,
|
|
15
11
|
UserAgentResolvedConfig,
|
|
16
12
|
} from "@aws-sdk/middleware-user-agent";
|
|
17
|
-
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
18
13
|
import {
|
|
19
14
|
RegionInputConfig,
|
|
20
15
|
RegionResolvedConfig,
|
|
@@ -35,6 +30,7 @@ import {
|
|
|
35
30
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
36
31
|
} from "@smithy/smithy-client";
|
|
37
32
|
import {
|
|
33
|
+
AwsCredentialIdentityProvider,
|
|
38
34
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
39
35
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
40
36
|
ChecksumConstructor as __ChecksumConstructor,
|
|
@@ -49,6 +45,10 @@ import {
|
|
|
49
45
|
UrlParser as __UrlParser,
|
|
50
46
|
UserAgent as __UserAgent,
|
|
51
47
|
} from "@smithy/types";
|
|
48
|
+
import {
|
|
49
|
+
HttpAuthSchemeInputConfig,
|
|
50
|
+
HttpAuthSchemeResolvedConfig,
|
|
51
|
+
} from "./auth/httpAuthSchemeProvider";
|
|
52
52
|
import {
|
|
53
53
|
BatchExecuteStatementCommandInput,
|
|
54
54
|
BatchExecuteStatementCommandOutput,
|
|
@@ -386,15 +386,15 @@ export interface ClientDefaults
|
|
|
386
386
|
serviceId?: string;
|
|
387
387
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
388
388
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
389
|
-
region?: string | __Provider<string>;
|
|
390
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
391
389
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
392
|
-
|
|
390
|
+
region?: string | __Provider<string>;
|
|
391
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
393
392
|
maxAttempts?: number | __Provider<number>;
|
|
394
393
|
retryMode?: string | __Provider<string>;
|
|
395
394
|
logger?: __Logger;
|
|
396
395
|
extensions?: RuntimeExtension[];
|
|
397
396
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
397
|
+
endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
|
|
398
398
|
}
|
|
399
399
|
export type DynamoDBClientConfigType = Partial<
|
|
400
400
|
__SmithyConfiguration<__HttpHandlerOptions>
|
|
@@ -404,8 +404,8 @@ export type DynamoDBClientConfigType = Partial<
|
|
|
404
404
|
EndpointInputConfig<EndpointParameters> &
|
|
405
405
|
RetryInputConfig &
|
|
406
406
|
HostHeaderInputConfig &
|
|
407
|
-
AwsAuthInputConfig &
|
|
408
407
|
UserAgentInputConfig &
|
|
408
|
+
HttpAuthSchemeInputConfig &
|
|
409
409
|
EndpointDiscoveryInputConfig &
|
|
410
410
|
ClientInputEndpointParameters;
|
|
411
411
|
export interface DynamoDBClientConfig extends DynamoDBClientConfigType {}
|
|
@@ -417,8 +417,8 @@ export type DynamoDBClientResolvedConfigType =
|
|
|
417
417
|
EndpointResolvedConfig<EndpointParameters> &
|
|
418
418
|
RetryResolvedConfig &
|
|
419
419
|
HostHeaderResolvedConfig &
|
|
420
|
-
AwsAuthResolvedConfig &
|
|
421
420
|
UserAgentResolvedConfig &
|
|
421
|
+
HttpAuthSchemeResolvedConfig &
|
|
422
422
|
EndpointDiscoveryResolvedConfig &
|
|
423
423
|
ClientResolvedEndpointParameters;
|
|
424
424
|
export interface DynamoDBClientResolvedConfig
|
|
@@ -430,6 +430,8 @@ export declare class DynamoDBClient extends __Client<
|
|
|
430
430
|
DynamoDBClientResolvedConfig
|
|
431
431
|
> {
|
|
432
432
|
readonly config: DynamoDBClientResolvedConfig;
|
|
433
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
434
|
+
private getIdentityProviderConfigProvider;
|
|
433
435
|
constructor(
|
|
434
436
|
...[configuration]: __CheckOptionalClientConfig<DynamoDBClientConfig>
|
|
435
437
|
);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
AwsCredentialIdentityProvider,
|
|
4
|
+
HttpAuthScheme,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import { DynamoDBHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(
|
|
11
|
+
httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider
|
|
12
|
+
): void;
|
|
13
|
+
httpAuthSchemeProvider(): DynamoDBHttpAuthSchemeProvider;
|
|
14
|
+
setCredentials(
|
|
15
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
|
|
16
|
+
): void;
|
|
17
|
+
credentials():
|
|
18
|
+
| AwsCredentialIdentity
|
|
19
|
+
| AwsCredentialIdentityProvider
|
|
20
|
+
| undefined;
|
|
21
|
+
}
|
|
22
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
23
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
24
|
+
httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
25
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const getHttpAuthExtensionConfiguration: (
|
|
28
|
+
runtimeConfig: HttpAuthRuntimeConfig
|
|
29
|
+
) => HttpAuthExtensionConfiguration;
|
|
30
|
+
export declare const resolveHttpAuthRuntimeConfig: (
|
|
31
|
+
config: HttpAuthExtensionConfiguration
|
|
32
|
+
) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AWSSDKSigV4AuthInputConfig,
|
|
3
|
+
AWSSDKSigV4AuthResolvedConfig,
|
|
4
|
+
AWSSDKSigV4PreviouslyResolved,
|
|
5
|
+
} from "@aws-sdk/core";
|
|
6
|
+
import {
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpAuthScheme,
|
|
9
|
+
HttpAuthSchemeParameters,
|
|
10
|
+
HttpAuthSchemeParametersProvider,
|
|
11
|
+
HttpAuthSchemeProvider,
|
|
12
|
+
} from "@smithy/types";
|
|
13
|
+
import { DynamoDBClientResolvedConfig } from "../DynamoDBClient";
|
|
14
|
+
export interface DynamoDBHttpAuthSchemeParameters
|
|
15
|
+
extends HttpAuthSchemeParameters {
|
|
16
|
+
region?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface DynamoDBHttpAuthSchemeParametersProvider
|
|
19
|
+
extends HttpAuthSchemeParametersProvider<
|
|
20
|
+
DynamoDBClientResolvedConfig,
|
|
21
|
+
HandlerExecutionContext,
|
|
22
|
+
DynamoDBHttpAuthSchemeParameters,
|
|
23
|
+
object
|
|
24
|
+
> {}
|
|
25
|
+
export declare const defaultDynamoDBHttpAuthSchemeParametersProvider: (
|
|
26
|
+
config: DynamoDBClientResolvedConfig,
|
|
27
|
+
context: HandlerExecutionContext,
|
|
28
|
+
input: object
|
|
29
|
+
) => Promise<DynamoDBHttpAuthSchemeParameters>;
|
|
30
|
+
export interface DynamoDBHttpAuthSchemeProvider
|
|
31
|
+
extends HttpAuthSchemeProvider<DynamoDBHttpAuthSchemeParameters> {}
|
|
32
|
+
export declare const defaultDynamoDBHttpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
33
|
+
export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
|
|
34
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
35
|
+
httpAuthSchemeProvider?: DynamoDBHttpAuthSchemeProvider;
|
|
36
|
+
}
|
|
37
|
+
export interface HttpAuthSchemeResolvedConfig
|
|
38
|
+
extends AWSSDKSigV4AuthResolvedConfig {
|
|
39
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
40
|
+
readonly httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
41
|
+
}
|
|
42
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
43
|
+
config: T & HttpAuthSchemeInputConfig & AWSSDKSigV4PreviouslyResolved
|
|
44
|
+
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
export interface DynamoDBExtensionConfiguration
|
|
5
6
|
extends HttpHandlerExtensionConfiguration,
|
|
6
7
|
DefaultExtensionConfiguration,
|
|
7
|
-
AwsRegionExtensionConfiguration
|
|
8
|
+
AwsRegionExtensionConfiguration,
|
|
9
|
+
HttpAuthExtensionConfiguration {}
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListContributorInsightsCommandOutput,
|
|
5
5
|
} from "../commands/ListContributorInsightsCommand";
|
|
6
6
|
import { DynamoDBPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListContributorInsights: (
|
|
8
8
|
config: DynamoDBPaginationConfiguration,
|
|
9
9
|
input: ListContributorInsightsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListContributorInsightsCommandOutput>;
|