Skip to content

Commit 77a1207

Browse files
committed
fix(supplemental-docs): temp creds clarification and import fix
1 parent c0cf066 commit 77a1207

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

supplemental-docs/CLIENTS.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Using ignoreCache with an S3 client:
161161

162162
```typescript
163163
import { S3Client } from "@aws-sdk/client-s3";
164-
import { fromIni } from "@aws-sdk/credential-provider-ini";
164+
import { fromIni } from "@aws-sdk/credential-providers";
165165

166166
// Create client with credentials that will reload from file
167167
const client = new S3Client({
@@ -173,7 +173,7 @@ Refreshing credentials for an existing client:
173173

174174
```typescript
175175
import { S3Client } from "@aws-sdk/client-s3";
176-
import { fromIni } from "@aws-sdk/credential-provider-ini";
176+
import { fromIni } from "@aws-sdk/credential-providers";
177177

178178
// Initial client setup
179179
const client = new S3Client({
@@ -191,6 +191,8 @@ async function refreshClientCredentials() {
191191

192192
For temporary credentials:
193193

194+
You can use the `fromTemporaryCredentials` provider that creates a credential provider function that retrieves temporary credentials from STS AssumeRole API.
195+
194196
```typescript
195197
import { fromTemporaryCredentials } from "@aws-sdk/credential-providers";
196198

0 commit comments

Comments
 (0)