Skip to content

Commit

Permalink
updates to deprecate @aws-sdk/credential-provider-cognito-identity an…
Browse files Browse the repository at this point in the history
…d use @aws-sdk/credential-providers instead
  • Loading branch information
ypliu-AWS committed Nov 16, 2023
1 parent c3edee1 commit a97108a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit a97108a

Please sign in to comment.