Skip to content

Commit 734411c

Browse files
authored
Basic transformation for AWS.Config constructor (#534)
1 parent c0e3384 commit 734411c

File tree

59 files changed

+437
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+437
-1
lines changed

.changeset/hungry-camels-enjoy.md

Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import AWS from "aws-sdk";
2+
3+
const config = new AWS.Config({
4+
computeChecksums: true
5+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = {
2+
// The key computeChecksums is no longer supported in v3, and can be removed.
3+
// @deprecated Applicable commands of S3 will automatically compute the MD5 checksums.
4+
computeChecksums: true
5+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import AWS from "aws-sdk";
2+
3+
const config = new AWS.Config({
4+
convertResponseTypes: true
5+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = {
2+
// The key convertResponseTypes is no longer supported in v3, and can be removed.
3+
// @deprecated Not type-safe. It doesn't convert time stamp or base64 binaries from the JSON response.
4+
convertResponseTypes: true
5+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import AWS from "aws-sdk";
2+
3+
const config = new AWS.Config({
4+
correctClockSkew: true
5+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = {
2+
// The key correctClockSkew is no longer supported in v3, and can be removed.
3+
// @deprecated The clock skew correction is applied by default.
4+
correctClockSkew: true
5+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import AWS from "aws-sdk";
2+
3+
const config = new AWS.Config({
4+
credentials: {
5+
accessKeyId: "AKID",
6+
secretAccessKey: "SECRET"
7+
}
8+
});
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const config = {
2+
credentials: {
3+
accessKeyId: "AKID",
4+
secretAccessKey: "SECRET"
5+
}
6+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import AWS from "aws-sdk";
2+
3+
const config = new AWS.Config({
4+
endpointCacheSize: 100
5+
});

0 commit comments

Comments
 (0)