@aws-sdk/client-dynamodb 3.485.0 → 3.490.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.
@@ -19,14 +19,6 @@ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
19
19
  const runtimeConfig_1 = require("./runtimeConfig");
20
20
  const runtimeExtensions_1 = require("./runtimeExtensions");
21
21
  class DynamoDBClient extends smithy_client_1.Client {
22
- getDefaultHttpAuthSchemeParametersProvider() {
23
- return httpAuthSchemeProvider_1.defaultDynamoDBHttpAuthSchemeParametersProvider;
24
- }
25
- getIdentityProviderConfigProvider() {
26
- return async (config) => new core_1.DefaultIdentityProviderConfig({
27
- "aws.auth#sigv4": config.credentials,
28
- });
29
- }
30
22
  constructor(...[configuration]) {
31
23
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
32
24
  const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
@@ -57,5 +49,13 @@ class DynamoDBClient extends smithy_client_1.Client {
57
49
  destroy() {
58
50
  super.destroy();
59
51
  }
52
+ getDefaultHttpAuthSchemeParametersProvider() {
53
+ return httpAuthSchemeProvider_1.defaultDynamoDBHttpAuthSchemeParametersProvider;
54
+ }
55
+ getIdentityProviderConfigProvider() {
56
+ return async (config) => new core_1.DefaultIdentityProviderConfig({
57
+ "aws.auth#sigv4": config.credentials,
58
+ });
59
+ }
60
60
  }
61
61
  exports.DynamoDBClient = DynamoDBClient;
@@ -39,7 +39,7 @@ const defaultDynamoDBHttpAuthSchemeProvider = (authParameters) => {
39
39
  };
40
40
  exports.defaultDynamoDBHttpAuthSchemeProvider = defaultDynamoDBHttpAuthSchemeProvider;
41
41
  const resolveHttpAuthSchemeConfig = (config) => {
42
- const config_0 = (0, core_1.resolveAWSSDKSigV4Config)(config);
42
+ const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
43
43
  return {
44
44
  ...config_0,
45
45
  };
@@ -21,7 +21,7 @@ const getRuntimeConfig = (config) => {
21
21
  {
22
22
  schemeId: "aws.auth#sigv4",
23
23
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
24
- signer: new core_1.AWSSDKSigV4Signer(),
24
+ signer: new core_1.AwsSdkSigV4Signer(),
25
25
  },
26
26
  ],
27
27
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
@@ -16,14 +16,6 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
16
16
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
17
17
  export { __Client };
18
18
  export class DynamoDBClient extends __Client {
19
- getDefaultHttpAuthSchemeParametersProvider() {
20
- return defaultDynamoDBHttpAuthSchemeParametersProvider;
21
- }
22
- getIdentityProviderConfigProvider() {
23
- return async (config) => new DefaultIdentityProviderConfig({
24
- "aws.auth#sigv4": config.credentials,
25
- });
26
- }
27
19
  constructor(...[configuration]) {
28
20
  const _config_0 = __getRuntimeConfig(configuration || {});
29
21
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -54,4 +46,12 @@ export class DynamoDBClient extends __Client {
54
46
  destroy() {
55
47
  super.destroy();
56
48
  }
49
+ getDefaultHttpAuthSchemeParametersProvider() {
50
+ return defaultDynamoDBHttpAuthSchemeParametersProvider;
51
+ }
52
+ getIdentityProviderConfigProvider() {
53
+ return async (config) => new DefaultIdentityProviderConfig({
54
+ "aws.auth#sigv4": config.credentials,
55
+ });
56
+ }
57
57
  }
@@ -1,4 +1,4 @@
1
- import { resolveAWSSDKSigV4Config, } from "@aws-sdk/core";
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
2
  import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultDynamoDBHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
@@ -34,7 +34,7 @@ export const defaultDynamoDBHttpAuthSchemeProvider = (authParameters) => {
34
34
  return options;
35
35
  };
36
36
  export const resolveHttpAuthSchemeConfig = (config) => {
37
- const config_0 = resolveAWSSDKSigV4Config(config);
37
+ const config_0 = resolveAwsSdkSigV4Config(config);
38
38
  return {
39
39
  ...config_0,
40
40
  };
@@ -1,4 +1,4 @@
1
- import { AWSSDKSigV4Signer } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
2
  import { NoOpLogger } from "@smithy/smithy-client";
3
3
  import { parseUrl } from "@smithy/url-parser";
4
4
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -18,7 +18,7 @@ export const getRuntimeConfig = (config) => {
18
18
  {
19
19
  schemeId: "aws.auth#sigv4",
20
20
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
21
- signer: new AWSSDKSigV4Signer(),
21
+ signer: new AwsSdkSigV4Signer(),
22
22
  },
23
23
  ],
24
24
  logger: config?.logger ?? new NoOpLogger(),
@@ -235,8 +235,6 @@ 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;
240
238
  constructor(...[configuration]: __CheckOptionalClientConfig<DynamoDBClientConfig>);
241
239
  /**
242
240
  * Destroy underlying resources, like sockets. It's usually not necessary to do this.
@@ -244,4 +242,6 @@ export declare class DynamoDBClient extends __Client<__HttpHandlerOptions, Servi
244
242
  * Otherwise, sockets might stay open for quite a long time before the server terminates them.
245
243
  */
246
244
  destroy(): void;
245
+ private getDefaultHttpAuthSchemeParametersProvider;
246
+ private getIdentityProviderConfigProvider;
247
247
  }
@@ -1,4 +1,4 @@
1
- import { AWSSDKSigV4AuthInputConfig, AWSSDKSigV4AuthResolvedConfig, AWSSDKSigV4PreviouslyResolved } from "@aws-sdk/core";
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
2
  import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
3
  import { DynamoDBClientResolvedConfig } from "../DynamoDBClient";
4
4
  /**
@@ -28,7 +28,7 @@ export declare const defaultDynamoDBHttpAuthSchemeProvider: DynamoDBHttpAuthSche
28
28
  /**
29
29
  * @internal
30
30
  */
31
- export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
32
  /**
33
33
  * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
34
  * @internal
@@ -43,7 +43,7 @@ export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
43
43
  /**
44
44
  * @internal
45
45
  */
46
- export interface HttpAuthSchemeResolvedConfig extends AWSSDKSigV4AuthResolvedConfig {
46
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
47
47
  /**
48
48
  * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
49
  * @internal
@@ -58,4 +58,4 @@ export interface HttpAuthSchemeResolvedConfig extends AWSSDKSigV4AuthResolvedCon
58
58
  /**
59
59
  * @internal
60
60
  */
61
- export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AWSSDKSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
61
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -430,10 +430,10 @@ export declare class DynamoDBClient extends __Client<
430
430
  DynamoDBClientResolvedConfig
431
431
  > {
432
432
  readonly config: DynamoDBClientResolvedConfig;
433
- private getDefaultHttpAuthSchemeParametersProvider;
434
- private getIdentityProviderConfigProvider;
435
433
  constructor(
436
434
  ...[configuration]: __CheckOptionalClientConfig<DynamoDBClientConfig>
437
435
  );
438
436
  destroy(): void;
437
+ private getDefaultHttpAuthSchemeParametersProvider;
438
+ private getIdentityProviderConfigProvider;
439
439
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
- AWSSDKSigV4AuthInputConfig,
3
- AWSSDKSigV4AuthResolvedConfig,
4
- AWSSDKSigV4PreviouslyResolved,
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
5
  } from "@aws-sdk/core";
6
6
  import {
7
7
  HandlerExecutionContext,
@@ -30,15 +30,15 @@ export declare const defaultDynamoDBHttpAuthSchemeParametersProvider: (
30
30
  export interface DynamoDBHttpAuthSchemeProvider
31
31
  extends HttpAuthSchemeProvider<DynamoDBHttpAuthSchemeParameters> {}
32
32
  export declare const defaultDynamoDBHttpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
33
- export interface HttpAuthSchemeInputConfig extends AWSSDKSigV4AuthInputConfig {
33
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
34
34
  httpAuthSchemes?: HttpAuthScheme[];
35
35
  httpAuthSchemeProvider?: DynamoDBHttpAuthSchemeProvider;
36
36
  }
37
37
  export interface HttpAuthSchemeResolvedConfig
38
- extends AWSSDKSigV4AuthResolvedConfig {
38
+ extends AwsSdkSigV4AuthResolvedConfig {
39
39
  readonly httpAuthSchemes: HttpAuthScheme[];
40
40
  readonly httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
41
41
  }
42
42
  export declare const resolveHttpAuthSchemeConfig: <T>(
43
- config: T & HttpAuthSchemeInputConfig & AWSSDKSigV4PreviouslyResolved
43
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
44
44
  ) => T & HttpAuthSchemeResolvedConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dynamodb",
3
3
  "description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
4
- "version": "3.485.0",
4
+ "version": "3.490.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.485.0",
24
- "@aws-sdk/core": "3.485.0",
25
- "@aws-sdk/credential-provider-node": "3.485.0",
26
- "@aws-sdk/middleware-endpoint-discovery": "3.485.0",
27
- "@aws-sdk/middleware-host-header": "3.485.0",
28
- "@aws-sdk/middleware-logger": "3.485.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.485.0",
30
- "@aws-sdk/middleware-user-agent": "3.485.0",
31
- "@aws-sdk/region-config-resolver": "3.485.0",
32
- "@aws-sdk/types": "3.485.0",
33
- "@aws-sdk/util-endpoints": "3.485.0",
34
- "@aws-sdk/util-user-agent-browser": "3.485.0",
35
- "@aws-sdk/util-user-agent-node": "3.485.0",
23
+ "@aws-sdk/client-sts": "3.490.0",
24
+ "@aws-sdk/core": "3.490.0",
25
+ "@aws-sdk/credential-provider-node": "3.490.0",
26
+ "@aws-sdk/middleware-endpoint-discovery": "3.489.0",
27
+ "@aws-sdk/middleware-host-header": "3.489.0",
28
+ "@aws-sdk/middleware-logger": "3.489.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.489.0",
30
+ "@aws-sdk/middleware-user-agent": "3.489.0",
31
+ "@aws-sdk/region-config-resolver": "3.489.0",
32
+ "@aws-sdk/types": "3.489.0",
33
+ "@aws-sdk/util-endpoints": "3.489.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.489.0",
35
+ "@aws-sdk/util-user-agent-node": "3.489.0",
36
36
  "@smithy/config-resolver": "^2.0.23",
37
37
  "@smithy/core": "^1.2.2",
38
38
  "@smithy/fetch-http-handler": "^2.3.2",