@aws-sdk/client-dynamodb 3.796.0 → 3.798.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/auth/httpAuthSchemeProvider.js +3 -1
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -1
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/dist-types/models/models_0.d.ts +6 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/package.json +11 -11
|
@@ -40,6 +40,8 @@ const defaultDynamoDBHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultDynamoDBHttpAuthSchemeProvider = defaultDynamoDBHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return Object.assign(config_0, {
|
|
43
|
+
return Object.assign(config_0, {
|
|
44
|
+
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
45
|
+
});
|
|
44
46
|
};
|
|
45
47
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const S = "required", T = "type", U = "fn", V = "argv", W = "ref", X = "properties", Y = "headers";
|
|
5
5
|
const a = false, b = "isSet", c = "error", d = "endpoint", e = "tree", f = "PartitionResult", g = "stringEquals", h = "dynamodb", i = "getAttr", j = "aws.parseArn", k = "ParsedArn", l = "isValidHostLabel", m = "FirstArn", n = { [S]: false, [T]: "String" }, o = { [S]: true, "default": false, [T]: "Boolean" }, p = { [U]: "booleanEquals", [V]: [{ [W]: "UseFIPS" }, true] }, q = { [U]: "booleanEquals", [V]: [{ [W]: "UseDualStack" }, true] }, r = {}, s = { [W]: "Region" }, t = { [U]: "booleanEquals", [V]: [{ [U]: i, [V]: [{ [W]: f }, "supportsFIPS"] }, true] }, u = { [U]: "booleanEquals", [V]: [{ [U]: i, [V]: [{ [W]: f }, "supportsDualStack"] }, true] }, v = { "conditions": [{ [U]: b, [V]: [{ [W]: "AccountIdEndpointMode" }] }, { [U]: g, [V]: [{ [W]: "AccountIdEndpointMode" }, "required"] }], "rules": [{ [c]: "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported", [T]: c }], [T]: e }, w = { [U]: b, [V]: [{ [W]: "AccountIdEndpointMode" }] }, x = { [c]: "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported", [T]: c }, y = { [U]: i, [V]: [{ [W]: f }, "name"] }, z = { [d]: { "url": "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", [X]: {}, [Y]: {} }, [T]: d }, A = { [U]: "not", [V]: [p] }, B = { [c]: "Invalid Configuration: AccountIdEndpointMode is required and DualStack is enabled, but DualStack account endpoints are not supported", [T]: c }, C = { [U]: "not", [V]: [{ [U]: g, [V]: [{ [W]: "AccountIdEndpointMode" }, "disabled"] }] }, D = { [U]: g, [V]: [y, "aws"] }, E = { [U]: "not", [V]: [q] }, F = { [U]: g, [V]: [{ [U]: i, [V]: [{ [W]: k }, "service"] }, h] }, G = { [U]: l, [V]: [{ [U]: i, [V]: [{ [W]: k }, "region"] }, false] }, H = { [U]: g, [V]: [{ [U]: i, [V]: [{ [W]: k }, "region"] }, "{Region}"] }, I = { [U]: l, [V]: [{ [U]: i, [V]: [{ [W]: k }, "accountId"] }, false] }, J = { "url": "https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", [X]: {}, [Y]: {} }, K = { [W]: "ResourceArnList" }, L = { [W]: "AccountId" }, M = [p], N = [q], O = [s], P = [w, { [U]: g, [V]: [{ [W]: "AccountIdEndpointMode" }, "required"] }], Q = [A], R = [{ [W]: "ResourceArn" }];
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: n, UseDualStack: o, UseFIPS: o, Endpoint: n, AccountId: n, AccountIdEndpointMode: n, ResourceArn: n, ResourceArnList: { [S]: a, [T]: "stringArray" } }, rules: [{ conditions: [{ [U]: b, [V]: [{ [W]: "Endpoint" }] }], rules: [{ conditions: M, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [T]: c }, { conditions: N, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [T]: c }, { endpoint: { url: "{Endpoint}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { conditions: [{ [U]: b, [V]: O }], rules: [{ conditions: [{ [U]: "aws.partition", [V]: O, assign: f }], rules: [{ conditions: [{ [U]: g, [V]: [s, "local"] }], rules: [{ conditions: M, error: "Invalid Configuration: FIPS and local endpoint are not supported", [T]: c }, { conditions: N, error: "Invalid Configuration: Dualstack and local endpoint are not supported", [T]: c }, { endpoint: { url: "http://localhost:8000", [X]: { authSchemes: [{ signingRegion: "us-east-1",
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: n, UseDualStack: o, UseFIPS: o, Endpoint: n, AccountId: n, AccountIdEndpointMode: n, ResourceArn: n, ResourceArnList: { [S]: a, [T]: "stringArray" } }, rules: [{ conditions: [{ [U]: b, [V]: [{ [W]: "Endpoint" }] }], rules: [{ conditions: M, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [T]: c }, { conditions: N, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [T]: c }, { endpoint: { url: "{Endpoint}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { conditions: [{ [U]: b, [V]: O }], rules: [{ conditions: [{ [U]: "aws.partition", [V]: O, assign: f }], rules: [{ conditions: [{ [U]: g, [V]: [s, "local"] }], rules: [{ conditions: M, error: "Invalid Configuration: FIPS and local endpoint are not supported", [T]: c }, { conditions: N, error: "Invalid Configuration: Dualstack and local endpoint are not supported", [T]: c }, { endpoint: { url: "http://localhost:8000", [X]: { authSchemes: [{ signingRegion: "us-east-1", name: "sigv4", signingName: h }] }, [Y]: r }, [T]: d }], [T]: e }, { conditions: [p, q], rules: [{ conditions: [t, u], rules: [v, { endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [T]: c }], [T]: e }, { conditions: M, rules: [{ conditions: [t], rules: [{ conditions: [{ [U]: g, [V]: [y, "aws-us-gov"] }], rules: [v, z], [T]: e }, v, { endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { error: "FIPS is enabled but this partition does not support FIPS", [T]: c }], [T]: e }, { conditions: N, rules: [{ conditions: [u], rules: [{ conditions: P, rules: [{ conditions: Q, rules: [B], [T]: e }, x], [T]: e }, { endpoint: { url: "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { error: "DualStack is enabled but this partition does not support DualStack", [T]: c }], [T]: e }, { conditions: [w, C, D, A, E, { [U]: b, [V]: R }, { [U]: j, [V]: R, assign: k }, F, G, H, I], endpoint: J, [T]: d }, { conditions: [w, C, D, A, E, { [U]: b, [V]: [K] }, { [U]: i, [V]: [K, "[0]"], assign: m }, { [U]: j, [V]: [{ [W]: m }], assign: k }, F, G, H, I], endpoint: J, [T]: d }, { conditions: [w, C, D, A, E, { [U]: b, [V]: [L] }], rules: [{ conditions: [{ [U]: l, [V]: [L, a] }], rules: [{ endpoint: { url: "https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { error: "Credentials-sourced account ID parameter is invalid", [T]: c }], [T]: e }, { conditions: P, rules: [{ conditions: Q, rules: [{ conditions: [E], rules: [{ conditions: [D], rules: [{ error: "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded", [T]: c }], [T]: e }, { error: "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition", [T]: c }], [T]: e }, B], [T]: e }, x], [T]: e }, z], [T]: e }], [T]: e }, { error: "Invalid Configuration: Missing Region", [T]: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -35,5 +35,7 @@ export const defaultDynamoDBHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return Object.assign(config_0, {
|
|
38
|
+
return Object.assign(config_0, {
|
|
39
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
40
|
+
});
|
|
39
41
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const S = "required", T = "type", U = "fn", V = "argv", W = "ref", X = "properties", Y = "headers";
|
|
2
2
|
const a = false, b = "isSet", c = "error", d = "endpoint", e = "tree", f = "PartitionResult", g = "stringEquals", h = "dynamodb", i = "getAttr", j = "aws.parseArn", k = "ParsedArn", l = "isValidHostLabel", m = "FirstArn", n = { [S]: false, [T]: "String" }, o = { [S]: true, "default": false, [T]: "Boolean" }, p = { [U]: "booleanEquals", [V]: [{ [W]: "UseFIPS" }, true] }, q = { [U]: "booleanEquals", [V]: [{ [W]: "UseDualStack" }, true] }, r = {}, s = { [W]: "Region" }, t = { [U]: "booleanEquals", [V]: [{ [U]: i, [V]: [{ [W]: f }, "supportsFIPS"] }, true] }, u = { [U]: "booleanEquals", [V]: [{ [U]: i, [V]: [{ [W]: f }, "supportsDualStack"] }, true] }, v = { "conditions": [{ [U]: b, [V]: [{ [W]: "AccountIdEndpointMode" }] }, { [U]: g, [V]: [{ [W]: "AccountIdEndpointMode" }, "required"] }], "rules": [{ [c]: "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported", [T]: c }], [T]: e }, w = { [U]: b, [V]: [{ [W]: "AccountIdEndpointMode" }] }, x = { [c]: "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported", [T]: c }, y = { [U]: i, [V]: [{ [W]: f }, "name"] }, z = { [d]: { "url": "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", [X]: {}, [Y]: {} }, [T]: d }, A = { [U]: "not", [V]: [p] }, B = { [c]: "Invalid Configuration: AccountIdEndpointMode is required and DualStack is enabled, but DualStack account endpoints are not supported", [T]: c }, C = { [U]: "not", [V]: [{ [U]: g, [V]: [{ [W]: "AccountIdEndpointMode" }, "disabled"] }] }, D = { [U]: g, [V]: [y, "aws"] }, E = { [U]: "not", [V]: [q] }, F = { [U]: g, [V]: [{ [U]: i, [V]: [{ [W]: k }, "service"] }, h] }, G = { [U]: l, [V]: [{ [U]: i, [V]: [{ [W]: k }, "region"] }, false] }, H = { [U]: g, [V]: [{ [U]: i, [V]: [{ [W]: k }, "region"] }, "{Region}"] }, I = { [U]: l, [V]: [{ [U]: i, [V]: [{ [W]: k }, "accountId"] }, false] }, J = { "url": "https://{ParsedArn#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", [X]: {}, [Y]: {} }, K = { [W]: "ResourceArnList" }, L = { [W]: "AccountId" }, M = [p], N = [q], O = [s], P = [w, { [U]: g, [V]: [{ [W]: "AccountIdEndpointMode" }, "required"] }], Q = [A], R = [{ [W]: "ResourceArn" }];
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: n, UseDualStack: o, UseFIPS: o, Endpoint: n, AccountId: n, AccountIdEndpointMode: n, ResourceArn: n, ResourceArnList: { [S]: a, [T]: "stringArray" } }, rules: [{ conditions: [{ [U]: b, [V]: [{ [W]: "Endpoint" }] }], rules: [{ conditions: M, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [T]: c }, { conditions: N, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [T]: c }, { endpoint: { url: "{Endpoint}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { conditions: [{ [U]: b, [V]: O }], rules: [{ conditions: [{ [U]: "aws.partition", [V]: O, assign: f }], rules: [{ conditions: [{ [U]: g, [V]: [s, "local"] }], rules: [{ conditions: M, error: "Invalid Configuration: FIPS and local endpoint are not supported", [T]: c }, { conditions: N, error: "Invalid Configuration: Dualstack and local endpoint are not supported", [T]: c }, { endpoint: { url: "http://localhost:8000", [X]: { authSchemes: [{ signingRegion: "us-east-1",
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: n, UseDualStack: o, UseFIPS: o, Endpoint: n, AccountId: n, AccountIdEndpointMode: n, ResourceArn: n, ResourceArnList: { [S]: a, [T]: "stringArray" } }, rules: [{ conditions: [{ [U]: b, [V]: [{ [W]: "Endpoint" }] }], rules: [{ conditions: M, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [T]: c }, { conditions: N, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [T]: c }, { endpoint: { url: "{Endpoint}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { conditions: [{ [U]: b, [V]: O }], rules: [{ conditions: [{ [U]: "aws.partition", [V]: O, assign: f }], rules: [{ conditions: [{ [U]: g, [V]: [s, "local"] }], rules: [{ conditions: M, error: "Invalid Configuration: FIPS and local endpoint are not supported", [T]: c }, { conditions: N, error: "Invalid Configuration: Dualstack and local endpoint are not supported", [T]: c }, { endpoint: { url: "http://localhost:8000", [X]: { authSchemes: [{ signingRegion: "us-east-1", name: "sigv4", signingName: h }] }, [Y]: r }, [T]: d }], [T]: e }, { conditions: [p, q], rules: [{ conditions: [t, u], rules: [v, { endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [T]: c }], [T]: e }, { conditions: M, rules: [{ conditions: [t], rules: [{ conditions: [{ [U]: g, [V]: [y, "aws-us-gov"] }], rules: [v, z], [T]: e }, v, { endpoint: { url: "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { error: "FIPS is enabled but this partition does not support FIPS", [T]: c }], [T]: e }, { conditions: N, rules: [{ conditions: [u], rules: [{ conditions: P, rules: [{ conditions: Q, rules: [B], [T]: e }, x], [T]: e }, { endpoint: { url: "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { error: "DualStack is enabled but this partition does not support DualStack", [T]: c }], [T]: e }, { conditions: [w, C, D, A, E, { [U]: b, [V]: R }, { [U]: j, [V]: R, assign: k }, F, G, H, I], endpoint: J, [T]: d }, { conditions: [w, C, D, A, E, { [U]: b, [V]: [K] }, { [U]: i, [V]: [K, "[0]"], assign: m }, { [U]: j, [V]: [{ [W]: m }], assign: k }, F, G, H, I], endpoint: J, [T]: d }, { conditions: [w, C, D, A, E, { [U]: b, [V]: [L] }], rules: [{ conditions: [{ [U]: l, [V]: [L, a] }], rules: [{ endpoint: { url: "https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", [X]: r, [Y]: r }, [T]: d }], [T]: e }, { error: "Credentials-sourced account ID parameter is invalid", [T]: c }], [T]: e }, { conditions: P, rules: [{ conditions: Q, rules: [{ conditions: [E], rules: [{ conditions: [D], rules: [{ error: "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded", [T]: c }], [T]: e }, { error: "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition", [T]: c }], [T]: e }, B], [T]: e }, x], [T]: e }, z], [T]: e }], [T]: e }, { error: "Invalid Configuration: Missing Region", [T]: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
-
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
3
|
import { DynamoDBClientResolvedConfig } from "../DynamoDBClient";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
@@ -29,6 +29,13 @@ export declare const defaultDynamoDBHttpAuthSchemeProvider: DynamoDBHttpAuthSche
|
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
31
|
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
32
39
|
/**
|
|
33
40
|
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
41
|
* @internal
|
|
@@ -44,6 +51,13 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
|
44
51
|
* @internal
|
|
45
52
|
*/
|
|
46
53
|
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
47
61
|
/**
|
|
48
62
|
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
63
|
* @internal
|
|
@@ -2146,7 +2146,9 @@ export interface GlobalSecondaryIndex {
|
|
|
2146
2146
|
Projection: Projection | undefined;
|
|
2147
2147
|
/**
|
|
2148
2148
|
* <p>Represents the provisioned throughput settings for the specified global secondary
|
|
2149
|
-
* index
|
|
2149
|
+
* index. You must use either
|
|
2150
|
+
* <code>OnDemandThroughput</code> or <code>ProvisionedThroughput</code> based
|
|
2151
|
+
* on your table's capacity mode.</p>
|
|
2150
2152
|
* <p>For current minimum and maximum provisioned throughput values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Service,
|
|
2151
2153
|
* Account, and Table Quotas</a> in the <i>Amazon DynamoDB Developer
|
|
2152
2154
|
* Guide</i>.</p>
|
|
@@ -2156,7 +2158,9 @@ export interface GlobalSecondaryIndex {
|
|
|
2156
2158
|
/**
|
|
2157
2159
|
* <p>The maximum number of read and write units for the specified global secondary index.
|
|
2158
2160
|
* If you use this parameter, you must specify <code>MaxReadRequestUnits</code>,
|
|
2159
|
-
* <code>MaxWriteRequestUnits</code>, or both
|
|
2161
|
+
* <code>MaxWriteRequestUnits</code>, or both. You must use either
|
|
2162
|
+
* <code>OnDemandThroughput</code> or <code>ProvisionedThroughput</code> based
|
|
2163
|
+
* on your table's capacity mode.</p>
|
|
2160
2164
|
* @public
|
|
2161
2165
|
*/
|
|
2162
2166
|
OnDemandThroughput?: OnDemandThroughput | undefined;
|
|
@@ -40,6 +40,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
40
40
|
}) => import("@smithy/types").EndpointV2;
|
|
41
41
|
tls?: boolean | undefined;
|
|
42
42
|
serviceConfiguredEndpoint?: undefined;
|
|
43
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
|
|
43
44
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
44
45
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
45
46
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -40,6 +40,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
40
40
|
}) => import("@smithy/types").EndpointV2;
|
|
41
41
|
tls?: boolean | undefined;
|
|
42
42
|
serviceConfiguredEndpoint?: undefined;
|
|
43
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
|
|
43
44
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
44
45
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
45
46
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
39
39
|
}) => import("@smithy/types").EndpointV2;
|
|
40
40
|
tls?: boolean | undefined;
|
|
41
41
|
serviceConfiguredEndpoint?: undefined;
|
|
42
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
|
|
42
43
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
43
44
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
44
45
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
HttpAuthSchemeParameters,
|
|
10
10
|
HttpAuthSchemeParametersProvider,
|
|
11
11
|
HttpAuthSchemeProvider,
|
|
12
|
+
Provider,
|
|
12
13
|
} from "@smithy/types";
|
|
13
14
|
import { DynamoDBClientResolvedConfig } from "../DynamoDBClient";
|
|
14
15
|
export interface DynamoDBHttpAuthSchemeParameters
|
|
@@ -31,11 +32,13 @@ export interface DynamoDBHttpAuthSchemeProvider
|
|
|
31
32
|
extends HttpAuthSchemeProvider<DynamoDBHttpAuthSchemeParameters> {}
|
|
32
33
|
export declare const defaultDynamoDBHttpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
33
34
|
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
35
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
34
36
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
35
37
|
httpAuthSchemeProvider?: DynamoDBHttpAuthSchemeProvider;
|
|
36
38
|
}
|
|
37
39
|
export interface HttpAuthSchemeResolvedConfig
|
|
38
40
|
extends AwsSdkSigV4AuthResolvedConfig {
|
|
41
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
39
42
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
40
43
|
readonly httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider;
|
|
41
44
|
}
|
|
@@ -80,6 +80,10 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
80
80
|
) => import("@smithy/types").EndpointV2;
|
|
81
81
|
tls?: boolean | undefined;
|
|
82
82
|
serviceConfiguredEndpoint?: undefined;
|
|
83
|
+
authSchemePreference?:
|
|
84
|
+
| string[]
|
|
85
|
+
| import("@smithy/types").Provider<string[]>
|
|
86
|
+
| undefined;
|
|
83
87
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
84
88
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
85
89
|
credentials?:
|
|
@@ -83,6 +83,10 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
83
83
|
) => import("@smithy/types").EndpointV2;
|
|
84
84
|
tls?: boolean | undefined;
|
|
85
85
|
serviceConfiguredEndpoint?: undefined;
|
|
86
|
+
authSchemePreference?:
|
|
87
|
+
| string[]
|
|
88
|
+
| import("@smithy/types").Provider<string[]>
|
|
89
|
+
| undefined;
|
|
86
90
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
87
91
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
88
92
|
credentials?:
|
|
@@ -84,6 +84,10 @@ export declare const getRuntimeConfig: (config: DynamoDBClientConfig) => {
|
|
|
84
84
|
) => import("@smithy/types").EndpointV2;
|
|
85
85
|
tls?: boolean | undefined;
|
|
86
86
|
serviceConfiguredEndpoint?: undefined;
|
|
87
|
+
authSchemePreference?:
|
|
88
|
+
| string[]
|
|
89
|
+
| import("@smithy/types").Provider<string[]>
|
|
90
|
+
| undefined;
|
|
87
91
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
88
92
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").DynamoDBHttpAuthSchemeProvider;
|
|
89
93
|
credentials?:
|
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.
|
|
4
|
+
"version": "3.798.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-dynamodb",
|
|
@@ -20,39 +20,39 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.798.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.798.0",
|
|
25
25
|
"@aws-sdk/middleware-endpoint-discovery": "3.775.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.775.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.798.0",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
31
31
|
"@aws-sdk/types": "3.775.0",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.787.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.798.0",
|
|
35
35
|
"@smithy/config-resolver": "^4.1.0",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.3.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.0.2",
|
|
38
38
|
"@smithy/hash-node": "^4.0.2",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.0.2",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.0.2",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.1.
|
|
42
|
-
"@smithy/middleware-retry": "^4.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.1.1",
|
|
42
|
+
"@smithy/middleware-retry": "^4.1.1",
|
|
43
43
|
"@smithy/middleware-serde": "^4.0.3",
|
|
44
44
|
"@smithy/middleware-stack": "^4.0.2",
|
|
45
45
|
"@smithy/node-config-provider": "^4.0.2",
|
|
46
46
|
"@smithy/node-http-handler": "^4.0.4",
|
|
47
47
|
"@smithy/protocol-http": "^5.1.0",
|
|
48
|
-
"@smithy/smithy-client": "^4.2.
|
|
48
|
+
"@smithy/smithy-client": "^4.2.1",
|
|
49
49
|
"@smithy/types": "^4.2.0",
|
|
50
50
|
"@smithy/url-parser": "^4.0.2",
|
|
51
51
|
"@smithy/util-base64": "^4.0.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.0.9",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.0.9",
|
|
56
56
|
"@smithy/util-endpoints": "^3.0.2",
|
|
57
57
|
"@smithy/util-middleware": "^4.0.2",
|
|
58
58
|
"@smithy/util-retry": "^4.0.2",
|