@@ -270,7 +270,7 @@ Load credentials from Cognito Identity service, normally used in browsers.
270270 const client = new FooClient({
271271 region: "us-east-1",
272272 credentials: fromCognitoIdentityPool({
273- client: cognitoIdentityClient // Optional
273+ clientConfig: cognitoIdentityClientConfig // Optional
274274 identityPoolId: "us-east-1:1699ebc0-7900-4099-b910-2df94f52a030",
275275 customRoleArn: "arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity", // Optional
276276 logins: {
@@ -291,7 +291,7 @@ Load credentials from Cognito Identity service, normally used in browsers.
291291 const client = new FooClient({
292292 region: "us-east-1",
293293 credentials: fromCognitoIdentity({
294- client: cognitoIdentityClient , // Optional
294+ clientConfig: cognitoIdentityClientConfig , // Optional
295295 identityId: "us-east-1:128d0a74-c82f-4553-916d-90053e4a8b0f",
296296 customRoleArn: "arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity", // Optional
297297 logins: {
@@ -383,7 +383,7 @@ for more information.
383383 return "some_code";
384384 }, // Optional
385385 profile: "default", // Optional
386- stsConfig : { region }, // Optional
386+ clientConfig : { region }, // Optional
387387 }),
388388 });
389389 ```
@@ -396,14 +396,14 @@ Retrieves credentials using OIDC token from a file on disk. It's commonly used i
396396- **v3**: [`fromTokenFile`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/modules/_aws_sdk_credential_provider_web_identity.html#fromtokenfile-1)
397397
398398 ```javascript
399- import { fromTokenFile } from "@aws-sdk/credential-provider-web-identity "; // ES6 import
400- // const { fromIni } from("@aws-sdk/credential-provider-ini "); // CommonJS import
399+ import { fromTokenFile } from "@aws-sdk/credential-providers "; // ES6 import
400+ // const { fromIni } from("@aws-sdk/credential-providers "); // CommonJS import
401401
402402 const client = new FooClient({
403403 credentials: fromTokenFile({
404404 roleArn: "arn:xxxx" // Optional. Otherwise read from `AWS_ROLE_ARN` environmental variable
405405 roleSessionName: "session:a", // Optional. Otherwise read from `AWS_ROLE_SESSION_NAME` environmental variable
406- stsConfig : { region } // // Optional. STS client config to make the assume role request.
406+ clientConfig : { region } // // Optional. STS client config to make the assume role request.
407407 })
408408 });
409409 ```
@@ -416,14 +416,14 @@ Retrieves credentials from STS web identity federation support.
416416- **v3**: [`fromWebToken`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/modules/_aws_sdk_credential_provider_web_identity.html#fromwebtoken-1)
417417
418418 ```javascript
419- import { fromWebToken } from "@aws-sdk/credential-provider-web-identity "; // ES6 import
420- // const { fromWebToken } from("@aws-sdk/credential-provider-web-identity "); // CommonJS import
419+ import { fromWebToken } from "@aws-sdk/credential-providers "; // ES6 import
420+ // const { fromWebToken } from("@aws-sdk/credential-providers "); // CommonJS import
421421
422422 const client = new FooClient({
423423 credentials: fromWebToken({
424424 roleArn: "arn:xxxx" // Otherwise read from `AWS_ROLE_ARN` environmental variable
425425 roleSessionName: "session:a", // Otherwise read from `AWS_ROLE_SESSION_NAME` environmental variable
426- stsConfig : { region } // // Optional. STS client config to make the assume role request.
426+ clientConfig : { region } // // Optional. STS client config to make the assume role request.
427427 })
428428 });
429429 ```
0 commit comments