Skip to content

Commit fe6aa54

Browse files
committed
chore(codegen): sync for internal checksum impls and IMDSv2 region fallback
1 parent 8941c2b commit fe6aa54

2,347 files changed

Lines changed: 4487 additions & 8199 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

clients/client-accessanalyzer/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@
1919
"module": "./dist-es/index.js",
2020
"sideEffects": false,
2121
"dependencies": {
22-
"@aws-crypto/sha256-browser": "5.2.0",
23-
"@aws-crypto/sha256-js": "5.2.0",
2422
"@aws-sdk/core": "workspace:^3.974.24",
2523
"@aws-sdk/credential-provider-node": "workspace:^3.972.59",
2624
"@aws-sdk/types": "workspace:^3.973.14",
27-
"@smithy/core": "^3.27.0",
28-
"@smithy/fetch-http-handler": "^5.6.0",
29-
"@smithy/node-http-handler": "^4.9.0",
25+
"@smithy/core": "^3.28.0",
26+
"@smithy/fetch-http-handler": "^5.6.1",
27+
"@smithy/node-http-handler": "^4.9.1",
3028
"@smithy/types": "^4.15.0",
3129
"tslib": "^2.6.2"
3230
},

clients/client-accessanalyzer/src/runtimeConfig.browser.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// @ts-ignore: package.json will be imported from dist folders
33
import packageInfo from "../package.json"; // eslint-disable-line
44

5-
import { Sha256 } from "@aws-crypto/sha256-browser";
65
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
76
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
87
import {
@@ -36,7 +35,6 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
3635
region: config?.region ?? invalidProvider("Region is missing"),
3736
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
3837
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
39-
sha256: config?.sha256 ?? Sha256,
4038
streamCollector: config?.streamCollector ?? streamCollector,
4139
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
4240
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),

clients/client-accessanalyzer/src/runtimeConfig.native.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// smithy-typescript generated code
2-
import { Sha256 } from "@aws-crypto/sha256-js";
3-
42
import type { AccessAnalyzerClientConfig } from "./AccessAnalyzerClient";
53
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
64

@@ -13,6 +11,5 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
1311
...browserDefaults,
1412
...config,
1513
runtime: "react-native",
16-
sha256: config?.sha256 ?? Sha256,
1714
};
1815
};

clients/client-accessanalyzer/src/runtimeConfig.shared.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// smithy-typescript generated code
22
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
33
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
4+
import { Sha256 } from "@smithy/core/checksum";
45
import { NoOpLogger } from "@smithy/core/client";
56
import { parseUrl } from "@smithy/core/protocols";
67
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -40,6 +41,7 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
4041
serviceTarget: "AccessAnalyzer",
4142
},
4243
serviceId: config?.serviceId ?? "AccessAnalyzer",
44+
sha256: config?.sha256 ?? Sha256,
4345
urlParser: config?.urlParser ?? parseUrl,
4446
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
4547
utf8Encoder: config?.utf8Encoder ?? toUtf8,

clients/client-accessanalyzer/src/runtimeConfig.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
2424
NODE_RETRY_MODE_CONFIG_OPTIONS,
2525
} from "@smithy/core/retry";
26-
import { calculateBodyLength, Hash } from "@smithy/core/serde";
26+
import { calculateBodyLength } from "@smithy/core/serde";
2727
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
2828

2929
import type { AccessAnalyzerClientConfig } from "./AccessAnalyzerClient";
@@ -66,7 +66,6 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
6666
},
6767
config
6868
),
69-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
7069
streamCollector: config?.streamCollector ?? streamCollector,
7170
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
7271
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),

clients/client-account/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@
1919
"module": "./dist-es/index.js",
2020
"sideEffects": false,
2121
"dependencies": {
22-
"@aws-crypto/sha256-browser": "5.2.0",
23-
"@aws-crypto/sha256-js": "5.2.0",
2422
"@aws-sdk/core": "workspace:^3.974.24",
2523
"@aws-sdk/credential-provider-node": "workspace:^3.972.59",
2624
"@aws-sdk/types": "workspace:^3.973.14",
27-
"@smithy/core": "^3.27.0",
28-
"@smithy/fetch-http-handler": "^5.6.0",
29-
"@smithy/node-http-handler": "^4.9.0",
25+
"@smithy/core": "^3.28.0",
26+
"@smithy/fetch-http-handler": "^5.6.1",
27+
"@smithy/node-http-handler": "^4.9.1",
3028
"@smithy/types": "^4.15.0",
3129
"tslib": "^2.6.2"
3230
},

clients/client-account/src/runtimeConfig.browser.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// @ts-ignore: package.json will be imported from dist folders
33
import packageInfo from "../package.json"; // eslint-disable-line
44

5-
import { Sha256 } from "@aws-crypto/sha256-browser";
65
import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
76
import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
87
import {
@@ -36,7 +35,6 @@ export const getRuntimeConfig = (config: AccountClientConfig) => {
3635
region: config?.region ?? invalidProvider("Region is missing"),
3736
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
3837
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
39-
sha256: config?.sha256 ?? Sha256,
4038
streamCollector: config?.streamCollector ?? streamCollector,
4139
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
4240
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),

clients/client-account/src/runtimeConfig.native.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// smithy-typescript generated code
2-
import { Sha256 } from "@aws-crypto/sha256-js";
3-
42
import type { AccountClientConfig } from "./AccountClient";
53
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
64

@@ -13,6 +11,5 @@ export const getRuntimeConfig = (config: AccountClientConfig) => {
1311
...browserDefaults,
1412
...config,
1513
runtime: "react-native",
16-
sha256: config?.sha256 ?? Sha256,
1714
};
1815
};

clients/client-account/src/runtimeConfig.shared.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// smithy-typescript generated code
22
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
33
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
4+
import { Sha256 } from "@smithy/core/checksum";
45
import { NoOpLogger } from "@smithy/core/client";
56
import { parseUrl } from "@smithy/core/protocols";
67
import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -40,6 +41,7 @@ export const getRuntimeConfig = (config: AccountClientConfig) => {
4041
serviceTarget: "Account",
4142
},
4243
serviceId: config?.serviceId ?? "Account",
44+
sha256: config?.sha256 ?? Sha256,
4345
urlParser: config?.urlParser ?? parseUrl,
4446
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
4547
utf8Encoder: config?.utf8Encoder ?? toUtf8,

clients/client-account/src/runtimeConfig.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
2424
NODE_RETRY_MODE_CONFIG_OPTIONS,
2525
} from "@smithy/core/retry";
26-
import { calculateBodyLength, Hash } from "@smithy/core/serde";
26+
import { calculateBodyLength } from "@smithy/core/serde";
2727
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
2828

2929
import type { AccountClientConfig } from "./AccountClient";
@@ -66,7 +66,6 @@ export const getRuntimeConfig = (config: AccountClientConfig) => {
6666
},
6767
config
6868
),
69-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
7069
streamCollector: config?.streamCollector ?? streamCollector,
7170
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
7271
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),

0 commit comments

Comments
 (0)