From 006b2b2a2e21b254a9bacafcbd19dd8564c3f4fc Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:30:22 -0700 Subject: [PATCH] Support endpointCacheSize --- .../v2-to-v3/__fixtures__/config/endpointCacheSize.input.js | 5 +++++ .../v2-to-v3/__fixtures__/config/endpointCacheSize.output.js | 3 +++ src/transforms/v2-to-v3/config/AWS_CONFIG_KEY_MAP.ts | 1 + 3 files changed, 9 insertions(+) create mode 100644 src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.input.js create mode 100644 src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.output.js diff --git a/src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.input.js b/src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.input.js new file mode 100644 index 000000000..82308ec35 --- /dev/null +++ b/src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.input.js @@ -0,0 +1,5 @@ +import AWS from "aws-sdk"; + +const config = new AWS.Config({ + endpointCacheSize: 100 +}); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.output.js b/src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.output.js new file mode 100644 index 000000000..4c57f3057 --- /dev/null +++ b/src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.output.js @@ -0,0 +1,3 @@ +const config = { + endpointCacheSize: 100 +}; \ No newline at end of file diff --git a/src/transforms/v2-to-v3/config/AWS_CONFIG_KEY_MAP.ts b/src/transforms/v2-to-v3/config/AWS_CONFIG_KEY_MAP.ts index cbffe4059..aabe993b9 100644 --- a/src/transforms/v2-to-v3/config/AWS_CONFIG_KEY_MAP.ts +++ b/src/transforms/v2-to-v3/config/AWS_CONFIG_KEY_MAP.ts @@ -19,6 +19,7 @@ export const AWS_CONFIG_KEY_MAP: Record = { deprecationMessage: "The clock skew correction is applied by default.", }, credentials: {}, + endpointCacheSize: {}, systemClockOffset: {}, region: {}, };