-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic transformation for AWS.Config constructor (#534)
- Loading branch information
Showing
59 changed files
with
437 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"aws-sdk-js-codemod": minor | ||
--- | ||
|
||
Basic transformation for AWS.Config constructor |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/computeChecksums.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
computeChecksums: true | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/computeChecksums.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key computeChecksums is no longer supported in v3, and can be removed. | ||
// @deprecated Applicable commands of S3 will automatically compute the MD5 checksums. | ||
computeChecksums: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/convertResponseTypes.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
convertResponseTypes: true | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/convertResponseTypes.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key convertResponseTypes is no longer supported in v3, and can be removed. | ||
// @deprecated Not type-safe. It doesn't convert time stamp or base64 binaries from the JSON response. | ||
convertResponseTypes: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/correctClockSkew.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
correctClockSkew: true | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/correctClockSkew.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key correctClockSkew is no longer supported in v3, and can be removed. | ||
// @deprecated The clock skew correction is applied by default. | ||
correctClockSkew: true | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/transforms/v2-to-v3/__fixtures__/config/credentials.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
credentials: { | ||
accessKeyId: "AKID", | ||
secretAccessKey: "SECRET" | ||
} | ||
}); |
6 changes: 6 additions & 0 deletions
6
src/transforms/v2-to-v3/__fixtures__/config/credentials.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const config = { | ||
credentials: { | ||
accessKeyId: "AKID", | ||
secretAccessKey: "SECRET" | ||
} | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
endpointCacheSize: 100 | ||
}); |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/config/endpointCacheSize.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = { | ||
endpointCacheSize: 100 | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/endpointDiscoveryEnabled.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
endpointDiscoveryEnabled: true | ||
}); |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/config/endpointDiscoveryEnabled.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = { | ||
endpointDiscoveryEnabled: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/hostPrefixEnabled.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
hostPrefixEnabled: true | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/hostPrefixEnabled.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key hostPrefixEnabled is no longer supported in v3, and can be removed. | ||
// @deprecated The hostname prefix is automatically inserted when necessary. | ||
hostPrefixEnabled: true | ||
}; |
7 changes: 7 additions & 0 deletions
7
src/transforms/v2-to-v3/__fixtures__/config/httpOptions.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
httpOptions: { | ||
connectTimeout: 1000, | ||
} | ||
}); |
8 changes: 8 additions & 0 deletions
8
src/transforms/v2-to-v3/__fixtures__/config/httpOptions.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const config = { | ||
// The transformation for httpOptions is not implemented. | ||
// Refer to UPGRADING.md on aws-sdk-js-v3 for changes needed. | ||
// Please create/upvote feature request on aws-sdk-js-codemod for httpOptions. | ||
httpOptions: { | ||
connectTimeout: 1000, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
logger: console | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = { | ||
logger: console | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/maxRedirects.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
maxRedirects: 10 | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/maxRedirects.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key maxRedirects is no longer supported in v3, and can be removed. | ||
// @deprecated SDK does not follow redirects to avoid unintentional cross-region requests. | ||
maxRedirects: 10 | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/maxRetries.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
maxRetries: 5 | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/maxRetries.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key maxRetries is renamed to maxAttempts. | ||
// The value of maxAttempts needs to be maxRetries + 1. | ||
maxAttempts: 5 | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/paramValidation.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
paramValidation: true | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/paramValidation.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key paramValidation is no longer supported in v3, and can be removed. | ||
// @deprecated The SDK no longer validates input parameters. | ||
paramValidation: true | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
region: "us-east-1" | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = { | ||
region: "us-east-1" | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/retryDelayOptions.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
retryDelayOptions: { base: 300 } | ||
}); |
6 changes: 6 additions & 0 deletions
6
src/transforms/v2-to-v3/__fixtures__/config/retryDelayOptions.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const config = { | ||
// Reference: https://www.npmjs.com/package/@smithy/util-retry | ||
// The key retryDelayOptions is no longer supported in v3, and can be removed. | ||
// @deprecated The SDK supports more flexible retry strategies in retryStrategy option. | ||
retryDelayOptions: { base: 300 } | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/s3BucketEndpoint.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
s3BucketEndpoint: true | ||
}); |
4 changes: 4 additions & 0 deletions
4
src/transforms/v2-to-v3/__fixtures__/config/s3BucketEndpoint.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const config = { | ||
// The key s3BucketEndpoint is renamed to bucketEndpoint. | ||
bucketEndpoint: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/s3ForcePathStyle.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
s3ForcePathStyle: true | ||
}); |
4 changes: 4 additions & 0 deletions
4
src/transforms/v2-to-v3/__fixtures__/config/s3ForcePathStyle.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const config = { | ||
// The key s3ForcePathStyle is renamed to forcePathStyle. | ||
forcePathStyle: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/s3UsEast1RegionalEndpoint.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
s3UsEast1RegionalEndpoint: "legacy" | ||
}); |
6 changes: 6 additions & 0 deletions
6
src/transforms/v2-to-v3/__fixtures__/config/s3UsEast1RegionalEndpoint.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const config = { | ||
// S3 client will always use regional endpoint if region is set to "us-east-1". | ||
// The key s3UsEast1RegionalEndpoint is no longer supported in v3, and can be removed. | ||
// @deprecated Set region to "aws-global" to send requests to S3 global endpoint. | ||
s3UsEast1RegionalEndpoint: "legacy" | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/s3UseArnRegion.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
s3UseArnRegion: true | ||
}); |
4 changes: 4 additions & 0 deletions
4
src/transforms/v2-to-v3/__fixtures__/config/s3UseArnRegion.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const config = { | ||
// The key s3UseArnRegion is renamed to useArnRegion. | ||
useArnRegion: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/signatureCache.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
signatureCache: true | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/signatureCache.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key signatureCache is no longer supported in v3, and can be removed. | ||
// @deprecated SDK always caches the hashed signing keys. | ||
signatureCache: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/signatureVersion.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
signatureVersion: "v2" | ||
}); |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/signatureVersion.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const config = { | ||
// The key signatureVersion is no longer supported in v3, and can be removed. | ||
// @deprecated SDK v3 only supports signature v4. | ||
signatureVersion: "v2" | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/sslEnabled.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
sslEnabled: true | ||
}); |
4 changes: 4 additions & 0 deletions
4
src/transforms/v2-to-v3/__fixtures__/config/sslEnabled.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const config = { | ||
// The key sslEnabled is renamed to tls. | ||
tls: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/stsRegionalEndpoints.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
stsRegionalEndpoints: "legacy" | ||
}); |
6 changes: 6 additions & 0 deletions
6
src/transforms/v2-to-v3/__fixtures__/config/stsRegionalEndpoints.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const config = { | ||
// STS client will always use regional endpoints if set to a specific region. | ||
// The key stsRegionalEndpoints is no longer supported in v3, and can be removed. | ||
// @deprecated Set region to "aws-global" to send requests to STS global endpoint. | ||
stsRegionalEndpoints: "legacy" | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/systemClockOffset.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
systemClockOffset: 100 | ||
}); |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/config/systemClockOffset.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = { | ||
systemClockOffset: 100 | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/useAccelerateEndpoint.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
useAccelerateEndpoint: true | ||
}); |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/config/useAccelerateEndpoint.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = { | ||
useAccelerateEndpoint: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/useDualstackEndpoint.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
useDualstackEndpoint: true | ||
}); |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/config/useDualstackEndpoint.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = { | ||
useDualstackEndpoint: true | ||
}; |
5 changes: 5 additions & 0 deletions
5
src/transforms/v2-to-v3/__fixtures__/config/useFipsEndpoint.input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import AWS from "aws-sdk"; | ||
|
||
const config = new AWS.Config({ | ||
useFipsEndpoint: true | ||
}); |
3 changes: 3 additions & 0 deletions
3
src/transforms/v2-to-v3/__fixtures__/config/useFipsEndpoint.output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = { | ||
useFipsEndpoint: true | ||
}; |
Oops, something went wrong.