Skip to content

Commit 1234534

Browse files
authored
docs: update UPGRADING.md to correct Web Identity Credentials document link and example code (#5927)
1 parent 91ee452 commit 1234534

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UPGRADING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,11 @@ for more information.
393393
Retrieves credentials using OIDC token from a file on disk. It's commonly used in EKS.
394394

395395
- **v2**: [`TokenFileWebIdentityCredentials`](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/TokenFileWebIdentityCredentials.html).
396-
- **v3**: [`fromTokenFile`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/modules/_aws_sdk_credential_provider_web_identity.html#fromtokenfile-1)
396+
- **v3**: [`fromTokenFile`](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-credential-providers/#fromtokenfile)
397397

398398
```javascript
399399
import { fromTokenFile } from "@aws-sdk/credential-providers"; // ES6 import
400-
// const { fromIni } from("@aws-sdk/credential-providers"); // CommonJS import
400+
// const { fromTokenFile } from("@aws-sdk/credential-providers"); // CommonJS import
401401

402402
const client = new FooClient({
403403
credentials: fromTokenFile({

0 commit comments

Comments
 (0)