From a97108af2e3cfc144209c3a8359e61a6b3d77da1 Mon Sep 17 00:00:00 2001 From: Ping Liu Date: Wed, 15 Nov 2023 18:17:55 -0600 Subject: [PATCH] updates to deprecate @aws-sdk/credential-provider-cognito-identity and use @aws-sdk/credential-providers instead --- javascriptv3/example_code/cross-services/lex-bot/package.json | 2 +- .../cross-services/lex-bot/src/libs/comprehendClient.js | 2 +- .../example_code/cross-services/lex-bot/src/libs/lexClient.js | 2 +- .../cross-services/lex-bot/src/libs/translateClient.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/javascriptv3/example_code/cross-services/lex-bot/package.json b/javascriptv3/example_code/cross-services/lex-bot/package.json index f32a9d0c227..af0a75415d5 100644 --- a/javascriptv3/example_code/cross-services/lex-bot/package.json +++ b/javascriptv3/example_code/cross-services/lex-bot/package.json @@ -17,7 +17,7 @@ "@aws-sdk/client-iam": "^3.347.1", "@aws-sdk/client-lex-runtime-service": "^3.347.1", "@aws-sdk/client-translate": "^3.347.1", - "@aws-sdk/credential-provider-cognito-identity": "^3.347.1" + "@aws-sdk/credential-providers": "^3.451.0" }, "devDependencies": { "@types/node": "^14.0.23", diff --git a/javascriptv3/example_code/cross-services/lex-bot/src/libs/comprehendClient.js b/javascriptv3/example_code/cross-services/lex-bot/src/libs/comprehendClient.js index 075b4469b11..9a26c41be81 100644 --- a/javascriptv3/example_code/cross-services/lex-bot/src/libs/comprehendClient.js +++ b/javascriptv3/example_code/cross-services/lex-bot/src/libs/comprehendClient.js @@ -12,7 +12,7 @@ Inputs (replace in code): */ // snippet-start:[lex.JavaScript.comprehendClient] import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity"; -import { fromCognitoIdentityPool } from "@aws-sdk/credential-provider-cognito-identity"; +import { fromCognitoIdentityPool } from "@aws-sdk/credential-providers"; import { ComprehendClient } from "@aws-sdk/client-comprehend"; const REGION = "REGION"; diff --git a/javascriptv3/example_code/cross-services/lex-bot/src/libs/lexClient.js b/javascriptv3/example_code/cross-services/lex-bot/src/libs/lexClient.js index 3899c9e93a2..d5d067b7eba 100644 --- a/javascriptv3/example_code/cross-services/lex-bot/src/libs/lexClient.js +++ b/javascriptv3/example_code/cross-services/lex-bot/src/libs/lexClient.js @@ -13,7 +13,7 @@ Inputs (replace in code): */ // snippet-start:[lex.JavaScript.lexClient] import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity"; -import { fromCognitoIdentityPool } from "@aws-sdk/credential-provider-cognito-identity"; +import { fromCognitoIdentityPool } from "@aws-sdk/credential-providers"; import { LexRuntimeServiceClient } from "@aws-sdk/client-lex-runtime-service"; const REGION = "REGION"; diff --git a/javascriptv3/example_code/cross-services/lex-bot/src/libs/translateClient.js b/javascriptv3/example_code/cross-services/lex-bot/src/libs/translateClient.js index bec56e52f15..259577de8bb 100644 --- a/javascriptv3/example_code/cross-services/lex-bot/src/libs/translateClient.js +++ b/javascriptv3/example_code/cross-services/lex-bot/src/libs/translateClient.js @@ -13,7 +13,7 @@ Inputs (replace in code): */ // snippet-start:[lex.JavaScript.translateClient] import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity"; -import { fromCognitoIdentityPool } from "@aws-sdk/credential-provider-cognito-identity"; +import { fromCognitoIdentityPool } from "@aws-sdk/credential-providers"; import { TranslateClient } from "@aws-sdk/client-translate"; const REGION = "REGION";