@aws-sdk/core 3.974.28 → 3.975.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/submodules/client/index.js +49 -20
- package/dist-es/submodules/account-id-endpoint/index.js +3 -3
- package/dist-es/submodules/client/middleware-recursion-detection/configuration.js +1 -1
- package/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js +48 -19
- package/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.browser.js +1 -1
- package/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +3 -3
- package/dist-es/submodules/httpAuthSchemes/index.js +2 -2
- package/dist-es/submodules/httpAuthSchemes/utils/index.js +3 -3
- package/dist-es/submodules/protocols/index.js +19 -20
- package/dist-types/submodules/account-id-endpoint/index.d.ts +5 -3
- package/dist-types/submodules/client/index.browser.d.ts +5 -5
- package/dist-types/submodules/client/index.d.ts +5 -5
- package/dist-types/submodules/client/index.native.d.ts +5 -5
- package/dist-types/submodules/client/middleware-recursion-detection/configuration.d.ts +1 -0
- package/dist-types/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +5 -1
- package/dist-types/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +1 -1
- package/dist-types/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
- package/dist-types/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
- package/dist-types/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
- package/dist-types/submodules/client/util-endpoints/types/shared.d.ts +1 -1
- package/dist-types/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +2 -1
- package/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +5 -3
- package/dist-types/submodules/httpAuthSchemes/index.d.ts +3 -2
- package/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +3 -3
- package/dist-types/submodules/protocols/index.d.ts +22 -20
- package/dist-types/submodules/util/index.d.ts +2 -1
- package/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -3
- package/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -1
- package/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -3
- package/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +24 -2
- package/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +3 -3
- package/dist-types/ts3.4/submodules/protocols/index.d.ts +31 -20
- package/dist-types/ts3.4/submodules/util/index.d.ts +2 -1
- package/package.json +6 -6
|
@@ -167,39 +167,68 @@ const getLoggerPlugin = (options) => ({
|
|
|
167
167
|
|
|
168
168
|
const recursionDetectionMiddlewareOptions = {
|
|
169
169
|
step: "build",
|
|
170
|
-
tags: ["RECURSION_DETECTION"],
|
|
170
|
+
tags: ["RECURSION_DETECTION", "TRACE_CONTEXT_PROPAGATION"],
|
|
171
171
|
name: "recursionDetectionMiddleware",
|
|
172
172
|
override: true,
|
|
173
173
|
priority: "low",
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
const
|
|
177
|
-
const
|
|
178
|
-
const
|
|
176
|
+
const AWS_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
177
|
+
const _X_AMZN_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
178
|
+
const X_AMZN_TRACE_ID = "X-Amzn-Trace-Id";
|
|
179
|
+
const TRACEPARENT = "traceparent";
|
|
180
|
+
const TRACESTATE = "tracestate";
|
|
181
|
+
const BAGGAGE = "baggage";
|
|
179
182
|
const recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
180
183
|
const { request } = args;
|
|
181
184
|
if (!HttpRequest.isInstance(request)) {
|
|
182
185
|
return next(args);
|
|
183
186
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
let invokeStore;
|
|
188
|
+
{
|
|
189
|
+
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === X_AMZN_TRACE_ID.toLowerCase()) ??
|
|
190
|
+
X_AMZN_TRACE_ID;
|
|
191
|
+
if (!request.headers.hasOwnProperty(traceIdHeader)) {
|
|
192
|
+
const functionName = process.env[AWS_LAMBDA_FUNCTION_NAME];
|
|
193
|
+
const traceIdFromEnv = process.env[_X_AMZN_TRACE_ID];
|
|
194
|
+
invokeStore ??= await InvokeStore.getInstanceAsync();
|
|
195
|
+
const traceIdFromInvokeStore = invokeStore?.getXRayTraceId();
|
|
196
|
+
const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
|
|
197
|
+
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
198
|
+
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
|
199
|
+
request.headers[X_AMZN_TRACE_ID] = traceId;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
188
202
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
203
|
+
{
|
|
204
|
+
sanitizeTraceHeaders(request.headers);
|
|
205
|
+
const existingTraceparent = request.headers[TRACEPARENT];
|
|
206
|
+
if (!existingTraceparent) {
|
|
207
|
+
const traceparent = (invokeStore ??= await InvokeStore.getInstanceAsync())?.getTraceparent?.();
|
|
208
|
+
if (traceparent) {
|
|
209
|
+
request.headers[TRACEPARENT] = traceparent;
|
|
210
|
+
const tracestate = invokeStore?.getTracestate?.();
|
|
211
|
+
if (tracestate) {
|
|
212
|
+
request.headers[TRACESTATE] = tracestate;
|
|
213
|
+
}
|
|
214
|
+
const baggage = invokeStore?.getBaggage?.();
|
|
215
|
+
if (baggage) {
|
|
216
|
+
request.headers[BAGGAGE] = baggage;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
197
220
|
}
|
|
198
|
-
return next(
|
|
199
|
-
...args,
|
|
200
|
-
request,
|
|
201
|
-
});
|
|
221
|
+
return next(args);
|
|
202
222
|
};
|
|
223
|
+
function sanitizeTraceHeaders(headers) {
|
|
224
|
+
for (const header of Object.keys(headers)) {
|
|
225
|
+
const lower = header.toLowerCase();
|
|
226
|
+
if (header !== lower && (lower === TRACEPARENT || lower === TRACESTATE || lower === BAGGAGE)) {
|
|
227
|
+
headers[lower] = headers[header];
|
|
228
|
+
delete headers[header];
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
203
232
|
|
|
204
233
|
const getRecursionDetectionPlugin = (options) => ({
|
|
205
234
|
applyToStack: (clientStack) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver";
|
|
2
|
+
export { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE, ACCOUNT_ID_ENDPOINT_MODE_VALUES, validateAccountIdEndpointMode, } from "./AccountIdEndpointModeConstants";
|
|
3
|
+
export { ENV_ACCOUNT_ID_ENDPOINT_MODE, CONFIG_ACCOUNT_ID_ENDPOINT_MODE, NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, } from "./NodeAccountIdEndpointModeConfigOptions";
|
package/dist-es/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.js
CHANGED
|
@@ -1,29 +1,58 @@
|
|
|
1
1
|
import { InvokeStore } from "@aws/lambda-invoke-store";
|
|
2
2
|
import { HttpRequest } from "@smithy/core/protocols";
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
3
|
+
const AWS_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
4
|
+
const _X_AMZN_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
5
|
+
const X_AMZN_TRACE_ID = "X-Amzn-Trace-Id";
|
|
6
|
+
const TRACEPARENT = "traceparent";
|
|
7
|
+
const TRACESTATE = "tracestate";
|
|
8
|
+
const BAGGAGE = "baggage";
|
|
6
9
|
export const recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
7
10
|
const { request } = args;
|
|
8
11
|
if (!HttpRequest.isInstance(request)) {
|
|
9
12
|
return next(args);
|
|
10
13
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
let invokeStore;
|
|
15
|
+
{
|
|
16
|
+
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === X_AMZN_TRACE_ID.toLowerCase()) ??
|
|
17
|
+
X_AMZN_TRACE_ID;
|
|
18
|
+
if (!request.headers.hasOwnProperty(traceIdHeader)) {
|
|
19
|
+
const functionName = process.env[AWS_LAMBDA_FUNCTION_NAME];
|
|
20
|
+
const traceIdFromEnv = process.env[_X_AMZN_TRACE_ID];
|
|
21
|
+
invokeStore ??= await InvokeStore.getInstanceAsync();
|
|
22
|
+
const traceIdFromInvokeStore = invokeStore?.getXRayTraceId();
|
|
23
|
+
const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
|
|
24
|
+
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
25
|
+
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
|
26
|
+
request.headers[X_AMZN_TRACE_ID] = traceId;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
15
29
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
{
|
|
31
|
+
sanitizeTraceHeaders(request.headers);
|
|
32
|
+
const existingTraceparent = request.headers[TRACEPARENT];
|
|
33
|
+
if (!existingTraceparent) {
|
|
34
|
+
const traceparent = (invokeStore ??= await InvokeStore.getInstanceAsync())?.getTraceparent?.();
|
|
35
|
+
if (traceparent) {
|
|
36
|
+
request.headers[TRACEPARENT] = traceparent;
|
|
37
|
+
const tracestate = invokeStore?.getTracestate?.();
|
|
38
|
+
if (tracestate) {
|
|
39
|
+
request.headers[TRACESTATE] = tracestate;
|
|
40
|
+
}
|
|
41
|
+
const baggage = invokeStore?.getBaggage?.();
|
|
42
|
+
if (baggage) {
|
|
43
|
+
request.headers[BAGGAGE] = baggage;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
24
47
|
}
|
|
25
|
-
return next(
|
|
26
|
-
...args,
|
|
27
|
-
request,
|
|
28
|
-
});
|
|
48
|
+
return next(args);
|
|
29
49
|
};
|
|
50
|
+
function sanitizeTraceHeaders(headers) {
|
|
51
|
+
for (const header of Object.keys(headers)) {
|
|
52
|
+
const lower = header.toLowerCase();
|
|
53
|
+
if (header !== lower && (lower === TRACEPARENT || lower === TRACESTATE || lower === BAGGAGE)) {
|
|
54
|
+
headers[lower] = headers[header];
|
|
55
|
+
delete headers[header];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { createUserAgentStringParsingProvider, createDefaultUserAgentProvider, fallback, defaultUserAgent, } from "./defaultUserAgent";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from "./AwsSdkSigV4Signer";
|
|
2
2
|
export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
|
|
4
|
+
export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
|
|
5
|
+
export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config, } from "./aws_sdk";
|
|
2
|
+
export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { getDateHeader } from "./getDateHeader";
|
|
2
|
+
export { getSkewCorrectedDate } from "./getSkewCorrectedDate";
|
|
3
|
+
export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export * from "./xml/parseXmlBody";
|
|
1
|
+
export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol";
|
|
2
|
+
export { _toStr, _toBool, _toNum } from "./coercing-serializers";
|
|
3
|
+
export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
|
|
4
|
+
export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
|
|
5
|
+
export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
|
|
6
|
+
export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
|
|
7
|
+
export { JsonCodec } from "./json/JsonCodec";
|
|
8
|
+
export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer";
|
|
9
|
+
export { JsonShapeSerializer } from "./json/JsonShapeSerializer";
|
|
10
|
+
export { awsExpectUnion } from "./json/awsExpectUnion";
|
|
11
|
+
export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
|
|
12
|
+
export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
|
|
13
|
+
export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
|
|
14
|
+
export { QueryShapeSerializer } from "./query/QueryShapeSerializer";
|
|
15
|
+
export { AwsRestXmlProtocol } from "./xml/AwsRestXmlProtocol";
|
|
16
|
+
export { XmlCodec } from "./xml/XmlCodec";
|
|
17
|
+
export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer";
|
|
18
|
+
export { XmlShapeSerializer } from "./xml/XmlShapeSerializer";
|
|
19
|
+
export { parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode } from "./xml/parseXmlBody";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver";
|
|
2
|
+
export type { AccountIdEndpointModeInputConfig, AccountIdEndpointModeResolvedConfig, } from "./AccountIdEndpointModeConfigResolver";
|
|
3
|
+
export { DEFAULT_ACCOUNT_ID_ENDPOINT_MODE, ACCOUNT_ID_ENDPOINT_MODE_VALUES, validateAccountIdEndpointMode, } from "./AccountIdEndpointModeConstants";
|
|
4
|
+
export type { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
5
|
+
export { ENV_ACCOUNT_ID_ENDPOINT_MODE, CONFIG_ACCOUNT_ID_ENDPOINT_MODE, NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS, } from "./NodeAccountIdEndpointModeConfigOptions";
|
|
@@ -30,11 +30,11 @@ export { parseArn } from "./util-endpoints/lib/aws/parseArn";
|
|
|
30
30
|
export { partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix, } from "./util-endpoints/lib/aws/partition";
|
|
31
31
|
export type { PartitionsInfo } from "./util-endpoints/lib/aws/partition";
|
|
32
32
|
export { EndpointError } from "./util-endpoints/types/EndpointError";
|
|
33
|
-
export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject";
|
|
34
|
-
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
35
|
-
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
36
|
-
export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject";
|
|
37
|
-
export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared";
|
|
33
|
+
export type { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject";
|
|
34
|
+
export type { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
35
|
+
export type { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
36
|
+
export type { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject";
|
|
37
|
+
export type { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared";
|
|
38
38
|
export declare const REGION_ENV_NAME: symbol;
|
|
39
39
|
export declare const REGION_INI_NAME: symbol;
|
|
40
40
|
export declare const NODE_REGION_CONFIG_OPTIONS: symbol;
|
|
@@ -27,11 +27,11 @@ export { parseArn } from "./util-endpoints/lib/aws/parseArn";
|
|
|
27
27
|
export { partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix, } from "./util-endpoints/lib/aws/partition";
|
|
28
28
|
export type { PartitionsInfo } from "./util-endpoints/lib/aws/partition";
|
|
29
29
|
export { EndpointError } from "./util-endpoints/types/EndpointError";
|
|
30
|
-
export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject";
|
|
31
|
-
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
32
|
-
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
33
|
-
export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject";
|
|
34
|
-
export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared";
|
|
30
|
+
export type { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject";
|
|
31
|
+
export type { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
32
|
+
export type { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
33
|
+
export type { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject";
|
|
34
|
+
export type { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared";
|
|
35
35
|
export { REGION_ENV_NAME, REGION_INI_NAME, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig, } from "./region-config-resolver/awsRegionConfig";
|
|
36
36
|
export type { RegionInputConfig, RegionResolvedConfig } from "./region-config-resolver/awsRegionConfig";
|
|
37
37
|
export { stsRegionDefaultResolver, warning as stsRegionWarning, } from "./region-config-resolver/stsRegionDefaultResolver";
|
|
@@ -31,11 +31,11 @@ export { parseArn } from "./util-endpoints/lib/aws/parseArn";
|
|
|
31
31
|
export { partition, setPartitionInfo, useDefaultPartitionInfo, getUserAgentPrefix, } from "./util-endpoints/lib/aws/partition";
|
|
32
32
|
export type { PartitionsInfo } from "./util-endpoints/lib/aws/partition";
|
|
33
33
|
export { EndpointError } from "./util-endpoints/types/EndpointError";
|
|
34
|
-
export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject";
|
|
35
|
-
export { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
36
|
-
export { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
37
|
-
export { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject";
|
|
38
|
-
export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared";
|
|
34
|
+
export type { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "./util-endpoints/types/EndpointRuleObject";
|
|
35
|
+
export type { ErrorRuleObject } from "./util-endpoints/types/ErrorRuleObject";
|
|
36
|
+
export type { RuleSetRules, TreeRuleObject } from "./util-endpoints/types/TreeRuleObject";
|
|
37
|
+
export type { DeprecatedObject, ParameterObject, RuleSetObject } from "./util-endpoints/types/RuleSetObject";
|
|
38
|
+
export type { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "./util-endpoints/types/shared";
|
|
39
39
|
export declare const REGION_ENV_NAME: symbol;
|
|
40
40
|
export declare const REGION_INI_NAME: symbol;
|
|
41
41
|
export declare const NODE_REGION_CONFIG_OPTIONS: symbol;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { BuildMiddleware } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Used for two Lambda-related responsibilities:
|
|
4
|
+
* - Inject to trace ID to request header to detect recursion invocation in Lambda.
|
|
5
|
+
* - Propagate W3C trace context headers from
|
|
6
|
+
* the Lambda InvokeStore onto outbound requests, enabling distributed trace
|
|
7
|
+
* context to flow to downstream calls without creating any spans.
|
|
4
8
|
* @internal
|
|
5
9
|
*/
|
|
6
10
|
export declare const recursionDetectionMiddleware: () => BuildMiddleware<any, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/core/endpoints";
|
|
1
|
+
export type { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ErrorRuleObject } from "@smithy/core/endpoints";
|
|
1
|
+
export type { ErrorRuleObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints";
|
|
1
|
+
export type { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
|
|
1
|
+
export type { RuleSetRules, TreeRuleObject } from "@smithy/core/endpoints";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/core/endpoints";
|
|
1
|
+
export type { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/core/endpoints";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { createUserAgentStringParsingProvider, createDefaultUserAgentProvider, fallback, defaultUserAgent, } from "./defaultUserAgent";
|
|
2
|
+
export type { PreviouslyResolved } from "./defaultUserAgent";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from "./AwsSdkSigV4Signer";
|
|
2
2
|
export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
|
|
4
|
+
export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
|
|
5
|
+
export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, } from "./resolveAwsSdkSigV4AConfig";
|
|
6
|
+
export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
|
|
7
|
+
export type { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./resolveAwsSdkSigV4Config";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config, } from "./aws_sdk";
|
|
2
|
+
export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4Memoized, AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig, AWSSDKSigV4AuthInputConfig, AWSSDKSigV4PreviouslyResolved, AWSSDKSigV4AuthResolvedConfig, } from "./aws_sdk";
|
|
3
|
+
export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { getDateHeader } from "./getDateHeader";
|
|
2
|
+
export { getSkewCorrectedDate } from "./getSkewCorrectedDate";
|
|
3
|
+
export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
1
|
+
export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol";
|
|
2
|
+
export { _toStr, _toBool, _toNum } from "./coercing-serializers";
|
|
3
|
+
export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
|
|
4
|
+
export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
|
|
5
|
+
export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
|
|
6
|
+
export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
|
|
7
|
+
export { JsonCodec } from "./json/JsonCodec";
|
|
8
|
+
export type { JsonSettings } from "./json/JsonCodec";
|
|
9
|
+
export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer";
|
|
10
|
+
export { JsonShapeSerializer } from "./json/JsonShapeSerializer";
|
|
11
|
+
export { awsExpectUnion } from "./json/awsExpectUnion";
|
|
12
|
+
export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
|
|
13
|
+
export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
|
|
14
|
+
export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
|
|
15
|
+
export type { QuerySerializerSettings } from "./query/QuerySerializerSettings";
|
|
16
|
+
export { QueryShapeSerializer } from "./query/QueryShapeSerializer";
|
|
17
|
+
export { AwsRestXmlProtocol } from "./xml/AwsRestXmlProtocol";
|
|
18
|
+
export { XmlCodec } from "./xml/XmlCodec";
|
|
19
|
+
export type { XmlSettings } from "./xml/XmlCodec";
|
|
20
|
+
export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer";
|
|
21
|
+
export { XmlShapeSerializer } from "./xml/XmlShapeSerializer";
|
|
22
|
+
export { parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode } from "./xml/parseXmlBody";
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
export { resolveAccountIdEndpointModeConfig } from "./AccountIdEndpointModeConfigResolver";
|
|
2
|
+
export {
|
|
3
|
+
AccountIdEndpointModeInputConfig,
|
|
4
|
+
AccountIdEndpointModeResolvedConfig,
|
|
5
|
+
} from "./AccountIdEndpointModeConfigResolver";
|
|
6
|
+
export {
|
|
7
|
+
DEFAULT_ACCOUNT_ID_ENDPOINT_MODE,
|
|
8
|
+
ACCOUNT_ID_ENDPOINT_MODE_VALUES,
|
|
9
|
+
validateAccountIdEndpointMode,
|
|
10
|
+
} from "./AccountIdEndpointModeConstants";
|
|
11
|
+
export { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
|
|
12
|
+
export {
|
|
13
|
+
ENV_ACCOUNT_ID_ENDPOINT_MODE,
|
|
14
|
+
CONFIG_ACCOUNT_ID_ENDPOINT_MODE,
|
|
15
|
+
NODE_ACCOUNT_ID_ENDPOINT_MODE_CONFIG_OPTIONS,
|
|
16
|
+
} from "./NodeAccountIdEndpointModeConfigOptions";
|
|
@@ -4,6 +4,26 @@ export {
|
|
|
4
4
|
validateSigningProperties,
|
|
5
5
|
} from "./AwsSdkSigV4Signer";
|
|
6
6
|
export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
|
|
7
|
+
export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
|
|
8
|
+
export {
|
|
9
|
+
resolveAwsSdkSigV4AConfig,
|
|
10
|
+
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
11
|
+
} from "./resolveAwsSdkSigV4AConfig";
|
|
12
|
+
export {
|
|
13
|
+
AwsSdkSigV4AAuthInputConfig,
|
|
14
|
+
AwsSdkSigV4APreviouslyResolved,
|
|
15
|
+
AwsSdkSigV4AAuthResolvedConfig,
|
|
16
|
+
} from "./resolveAwsSdkSigV4AConfig";
|
|
17
|
+
export {
|
|
18
|
+
resolveAwsSdkSigV4Config,
|
|
19
|
+
resolveAWSSDKSigV4Config,
|
|
20
|
+
} from "./resolveAwsSdkSigV4Config";
|
|
21
|
+
export {
|
|
22
|
+
AwsSdkSigV4AuthInputConfig,
|
|
23
|
+
AwsSdkSigV4Memoized,
|
|
24
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
25
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
26
|
+
AWSSDKSigV4AuthInputConfig,
|
|
27
|
+
AWSSDKSigV4PreviouslyResolved,
|
|
28
|
+
AWSSDKSigV4AuthResolvedConfig,
|
|
29
|
+
} from "./resolveAwsSdkSigV4Config";
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export {
|
|
2
|
+
AwsSdkSigV4Signer,
|
|
3
|
+
AWSSDKSigV4Signer,
|
|
4
|
+
validateSigningProperties,
|
|
5
|
+
AwsSdkSigV4ASigner,
|
|
6
|
+
NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
|
|
7
|
+
resolveAwsSdkSigV4AConfig,
|
|
8
|
+
NODE_SIGV4A_CONFIG_OPTIONS,
|
|
9
|
+
resolveAwsSdkSigV4Config,
|
|
10
|
+
resolveAWSSDKSigV4Config,
|
|
11
|
+
} from "./aws_sdk";
|
|
12
|
+
export {
|
|
13
|
+
AwsSdkSigV4AAuthInputConfig,
|
|
14
|
+
AwsSdkSigV4APreviouslyResolved,
|
|
15
|
+
AwsSdkSigV4AAuthResolvedConfig,
|
|
16
|
+
AwsSdkSigV4AuthInputConfig,
|
|
17
|
+
AwsSdkSigV4Memoized,
|
|
18
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
19
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
20
|
+
AWSSDKSigV4AuthInputConfig,
|
|
21
|
+
AWSSDKSigV4PreviouslyResolved,
|
|
22
|
+
AWSSDKSigV4AuthResolvedConfig,
|
|
23
|
+
} from "./aws_sdk";
|
|
24
|
+
export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { getDateHeader } from "./getDateHeader";
|
|
2
|
+
export { getSkewCorrectedDate } from "./getSkewCorrectedDate";
|
|
3
|
+
export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
|
|
@@ -1,20 +1,31 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
1
|
+
export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol";
|
|
2
|
+
export { _toStr, _toBool, _toNum } from "./coercing-serializers";
|
|
3
|
+
export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
|
|
4
|
+
export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
|
|
5
|
+
export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
|
|
6
|
+
export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
|
|
7
|
+
export { JsonCodec } from "./json/JsonCodec";
|
|
8
|
+
export { JsonSettings } from "./json/JsonCodec";
|
|
9
|
+
export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer";
|
|
10
|
+
export { JsonShapeSerializer } from "./json/JsonShapeSerializer";
|
|
11
|
+
export { awsExpectUnion } from "./json/awsExpectUnion";
|
|
12
|
+
export {
|
|
13
|
+
parseJsonBody,
|
|
14
|
+
parseJsonErrorBody,
|
|
15
|
+
loadRestJsonErrorCode,
|
|
16
|
+
loadJsonRpcErrorCode,
|
|
17
|
+
} from "./json/parseJsonBody";
|
|
18
|
+
export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
|
|
19
|
+
export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
|
|
20
|
+
export { QuerySerializerSettings } from "./query/QuerySerializerSettings";
|
|
21
|
+
export { QueryShapeSerializer } from "./query/QueryShapeSerializer";
|
|
22
|
+
export { AwsRestXmlProtocol } from "./xml/AwsRestXmlProtocol";
|
|
23
|
+
export { XmlCodec } from "./xml/XmlCodec";
|
|
24
|
+
export { XmlSettings } from "./xml/XmlCodec";
|
|
25
|
+
export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer";
|
|
26
|
+
export { XmlShapeSerializer } from "./xml/XmlShapeSerializer";
|
|
27
|
+
export {
|
|
28
|
+
parseXmlBody,
|
|
29
|
+
parseXmlErrorBody,
|
|
30
|
+
loadRestXmlErrorCode,
|
|
31
|
+
} from "./xml/parseXmlBody";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.975.0",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
},
|
|
104
104
|
"license": "Apache-2.0",
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@aws-sdk/types": "^3.
|
|
107
|
-
"@aws-sdk/xml-builder": "^3.972.
|
|
106
|
+
"@aws-sdk/types": "^3.974.0",
|
|
107
|
+
"@aws-sdk/xml-builder": "^3.972.34",
|
|
108
108
|
"@aws/lambda-invoke-store": "^0.3.0",
|
|
109
|
-
"@smithy/core": "^3.29.
|
|
110
|
-
"@smithy/signature-v4": "^5.6.
|
|
111
|
-
"@smithy/types": "^4.
|
|
109
|
+
"@smithy/core": "^3.29.2",
|
|
110
|
+
"@smithy/signature-v4": "^5.6.3",
|
|
111
|
+
"@smithy/types": "^4.16.0",
|
|
112
112
|
"bowser": "^2.11.0",
|
|
113
113
|
"tslib": "^2.6.2"
|
|
114
114
|
},
|