Skip to content

Commit cf5a104

Browse files
authored
Simplify comment about providers (#642)
1 parent 311b8fc commit cf5a104

13 files changed

+13
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { chain as providerChain } from "@smithy/property-provider";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// The CredentialProviderChain is now a chain of providers.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
providerChain(providers);

src/transforms/v2-to-v3/__fixtures__/credentials/chainable.output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromTemporaryCredentials } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromTemporaryCredentials({
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromCognitoIdentity } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromCognitoIdentity();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromInstanceMetadata } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromInstanceMetadata();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromContainerMetadata } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromContainerMetadata();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromEnv } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromEnv("AWS");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromIni } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromIni({ profile: "profile-name" });
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromProcess } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromProcess({ profile: "profile-name" });
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromContainerMetadata } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromContainerMetadata();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fromSSO } from "@aws-sdk/credential-providers";
22

3-
// JS SDK v3 switched to credential providers to functions instead of objects.
3+
// JS SDK v3 switched credential providers from classes to functions.
44
// This is the closest approximation from codemod of what your application needs.
55
// Reference: https://www.npmjs.com/package/@aws-sdk/credential-providers
66
fromSSO({ profile: "profile-name" });

0 commit comments

Comments
 (0)