diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/chain.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/chain.output.js index 4b7d30460..636116e7c 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/chain.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/chain.output.js @@ -1,6 +1,6 @@ import { chain as providerChain } from "@smithy/property-provider"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // The CredentialProviderChain is now a chain of providers. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers providerChain(providers); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/chainable.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/chainable.output.js index 6b14ef394..58def52a0 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/chainable.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/chainable.output.js @@ -1,6 +1,6 @@ import { fromTemporaryCredentials } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromTemporaryCredentials({ diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/cognito-identity.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/cognito-identity.output.js index b81904f5d..9c58ebcf9 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/cognito-identity.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/cognito-identity.output.js @@ -1,6 +1,6 @@ import { fromCognitoIdentity } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromCognitoIdentity(); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/ec2-metadata.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/ec2-metadata.output.js index ad9c9962e..09528a84d 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/ec2-metadata.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/ec2-metadata.output.js @@ -1,6 +1,6 @@ import { fromInstanceMetadata } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromInstanceMetadata(); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/ecs.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/ecs.output.js index 6fa78f781..3c4e53288 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/ecs.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/ecs.output.js @@ -1,6 +1,6 @@ import { fromContainerMetadata } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromContainerMetadata(); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/env.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/env.output.js index a8379d98d..70a652239 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/env.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/env.output.js @@ -1,6 +1,6 @@ import { fromEnv } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromEnv("AWS"); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/ini.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/ini.output.js index c9a48b28c..b2d242a76 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/ini.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/ini.output.js @@ -1,6 +1,6 @@ import { fromIni } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromIni({ profile: "profile-name" }); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/process.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/process.output.js index 7374a624c..7f9960fec 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/process.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/process.output.js @@ -1,6 +1,6 @@ import { fromProcess } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromProcess({ profile: "profile-name" }); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/remote.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/remote.output.js index 6fa78f781..3c4e53288 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/remote.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/remote.output.js @@ -1,6 +1,6 @@ import { fromContainerMetadata } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromContainerMetadata(); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/sso.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/sso.output.js index 5f11088ff..c1789b7e4 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/sso.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/sso.output.js @@ -1,6 +1,6 @@ import { fromSSO } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromSSO({ profile: "profile-name" }); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/token-file.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/token-file.output.js index 0c05cccaa..169f83a75 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/token-file.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/token-file.output.js @@ -1,6 +1,6 @@ import { fromTokenFile } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromTokenFile(); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/__fixtures__/credentials/token-web.output.js b/src/transforms/v2-to-v3/__fixtures__/credentials/token-web.output.js index 210f24537..2117808e8 100644 --- a/src/transforms/v2-to-v3/__fixtures__/credentials/token-web.output.js +++ b/src/transforms/v2-to-v3/__fixtures__/credentials/token-web.output.js @@ -1,6 +1,6 @@ import { fromWebToken } from "@aws-sdk/credential-providers"; -// JS SDK v3 switched to credential providers to functions instead of objects. +// JS SDK v3 switched credential providers from classes to functions. // This is the closest approximation from codemod of what your application needs. // Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers fromWebToken(); \ No newline at end of file diff --git a/src/transforms/v2-to-v3/apis/replaceAwsIdentity.ts b/src/transforms/v2-to-v3/apis/replaceAwsIdentity.ts index 3b6a99788..7a5811ea4 100644 --- a/src/transforms/v2-to-v3/apis/replaceAwsIdentity.ts +++ b/src/transforms/v2-to-v3/apis/replaceAwsIdentity.ts @@ -7,7 +7,7 @@ export interface ReplaceAwsCredentialsOptions { importType: ImportType; } -const PROVIDER_SWITCH_COMMENT = ` JS SDK v3 switched to credential providers to functions instead of objects.`; +const PROVIDER_SWITCH_COMMENT = ` JS SDK v3 switched credential providers from classes to functions.`; const getNewExpression = (identifier: string, className: string) => ({