Skip to content

Commit 066d27d

Browse files
authored
Add test s3-upload/param-identifier (#442)
1 parent 4b17da0 commit 066d27d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import AWS from "aws-sdk";
2+
3+
const client = new AWS.S3({ region: "REGION" });
4+
const uploadParams = {
5+
Body: "BODY",
6+
Bucket: "Bucket",
7+
ContentType: "ContentType",
8+
Key: "Key",
9+
};
10+
11+
await client.upload(uploadParams).promise();
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Upload } from "@aws-sdk/lib-storage";
2+
import { S3 } from "@aws-sdk/client-s3";
3+
4+
const client = new S3({ region: "REGION" });
5+
const uploadParams = {
6+
Body: "BODY",
7+
Bucket: "Bucket",
8+
ContentType: "ContentType",
9+
Key: "Key",
10+
};
11+
12+
await new Upload({
13+
client,
14+
params: uploadParams
15+
}).done();

0 commit comments

Comments
 (0)