File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
packages/s3-request-presigner Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ JavaScript Example:
15
15
``` javascript
16
16
const { getSignedUrl } = require (" @aws-sdk/s3-request-presigner" );
17
17
const { S3Client , GetObjectCommand } = require (" @aws-sdk/client-s3" );
18
- const client = new S3Client (construcParams );
18
+ const client = new S3Client (clientParams );
19
19
const command = new GetObjectCommand (getObjectParams);
20
20
const url = await getSignedUrl (client, command, { expiresIn: 3600 });
21
21
```
@@ -25,7 +25,7 @@ ES6 Example
25
25
``` javascript
26
26
import { getSignedUrl } from " @aws-sdk/s3-request-presigner" ;
27
27
import { S3Client , GetObjectCommand } from " @aws-sdk/client-s3" ;
28
- const client = new S3Client (construcParams );
28
+ const client = new S3Client (clientParams );
29
29
const command = new GetObjectCommand (getObjectParams);
30
30
const url = await getSignedUrl (client, command, { expiresIn: 3600 });
31
31
```
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ export const getSignedUrl = async <
52
52
//@ts -ignore the output is faked, so it's not actually OutputType
53
53
presigned = output . presigned ;
54
54
} finally {
55
- // client middleware stack should not be altered by this function
56
55
client . middlewareStack . remove ( "presignInterceptMiddleware" ) ;
57
56
}
58
57
File renamed without changes.
You can’t perform that action at this time.
0 commit comments