@aws-sdk/credential-providers 3.1080.0 → 3.1082.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist-cjs/index.js +77 -40
  2. package/dist-es/fromCognitoIdentity.js +6 -4
  3. package/dist-es/fromCognitoIdentityPool.js +6 -4
  4. package/dist-es/fromContainerMetadata.js +5 -3
  5. package/dist-es/fromEnv.js +6 -2
  6. package/dist-es/fromHttp.js +6 -0
  7. package/dist-es/fromIni.js +6 -4
  8. package/dist-es/fromInstanceMetadata.js +6 -4
  9. package/dist-es/fromLoginCredentials.js +6 -4
  10. package/dist-es/fromNodeProviderChain.js +6 -4
  11. package/dist-es/fromProcess.js +6 -2
  12. package/dist-es/fromSSO.js +4 -2
  13. package/dist-es/fromTokenFile.js +6 -4
  14. package/dist-es/fromWebToken.js +6 -4
  15. package/dist-es/index.browser.js +5 -5
  16. package/dist-es/index.js +15 -15
  17. package/dist-types/fromCognitoIdentity.d.ts +0 -5
  18. package/dist-types/fromCognitoIdentityPool.d.ts +3 -2
  19. package/dist-types/fromHttp.d.ts +22 -0
  20. package/dist-types/fromInstanceMetadata.d.ts +2 -3
  21. package/dist-types/fromLoginCredentials.d.ts +1 -1
  22. package/dist-types/fromNodeProviderChain.d.ts +2 -2
  23. package/dist-types/fromProcess.d.ts +2 -2
  24. package/dist-types/fromSSO.d.ts +3 -3
  25. package/dist-types/fromTemporaryCredentials.browser.d.ts +2 -1
  26. package/dist-types/fromTemporaryCredentials.d.ts +1 -1
  27. package/dist-types/fromTokenFile.d.ts +2 -2
  28. package/dist-types/fromWebToken.d.ts +2 -2
  29. package/dist-types/index.browser.d.ts +9 -6
  30. package/dist-types/index.d.ts +21 -15
  31. package/dist-types/ts3.4/fromCognitoIdentity.d.ts +1 -4
  32. package/dist-types/ts3.4/fromCognitoIdentityPool.d.ts +1 -4
  33. package/dist-types/ts3.4/fromHttp.d.ts +9 -0
  34. package/dist-types/ts3.4/fromInstanceMetadata.d.ts +2 -3
  35. package/dist-types/ts3.4/fromNodeProviderChain.d.ts +2 -2
  36. package/dist-types/ts3.4/fromProcess.d.ts +2 -2
  37. package/dist-types/ts3.4/fromSSO.d.ts +7 -4
  38. package/dist-types/ts3.4/fromTemporaryCredentials.browser.d.ts +2 -4
  39. package/dist-types/ts3.4/fromTokenFile.d.ts +2 -2
  40. package/dist-types/ts3.4/fromWebToken.d.ts +2 -2
  41. package/dist-types/ts3.4/index.browser.d.ts +11 -8
  42. package/dist-types/ts3.4/index.d.ts +26 -18
  43. package/package.json +16 -17
package/dist-cjs/index.js CHANGED
@@ -1,17 +1,5 @@
1
1
  const { ProviderError, CredentialsProviderError, loadConfig, NODE_REGION_CONFIG_FILE_OPTIONS } = require("@smithy/core/config");
2
- const { fromCognitoIdentity: fromCognitoIdentity$1, fromCognitoIdentityPool: fromCognitoIdentityPool$1 } = require("@aws-sdk/credential-provider-cognito-identity");
3
- const { fromContainerMetadata: fromContainerMetadata$1, fromInstanceMetadata: fromInstanceMetadata$1 } = require("@smithy/credential-provider-imds");
4
- const { fromEnv: fromEnv$1 } = require("@aws-sdk/credential-provider-env");
5
- const { fromHttp } = require("@aws-sdk/credential-provider-http");
6
- exports.fromHttp = fromHttp;
7
- const { fromIni: fromIni$1 } = require("@aws-sdk/credential-provider-ini");
8
- const { setCredentialFeature } = require("@aws-sdk/core/client");
9
- const { fromLoginCredentials: fromLoginCredentials$1 } = require("@aws-sdk/credential-provider-login");
10
- const { defaultProvider } = require("@aws-sdk/credential-provider-node");
11
- const { fromProcess: fromProcess$1 } = require("@aws-sdk/credential-provider-process");
12
- const { fromSSO: fromSSO$1 } = require("@aws-sdk/credential-provider-sso");
13
2
  const { normalizeProvider } = require("@smithy/core");
14
- const { fromTokenFile: fromTokenFile$1, fromWebToken: fromWebToken$1 } = require("@aws-sdk/credential-provider-web-identity");
15
3
 
16
4
  const createCredentialChain = (...credentialProviders) => {
17
5
  let expireAfter = -1;
@@ -53,42 +41,84 @@ const propertyProviderChain = (...providers) => async (awsIdentityProperties) =>
53
41
  throw lastProviderError;
54
42
  };
55
43
 
56
- const fromCognitoIdentity = (options) => fromCognitoIdentity$1({
57
- ...options,
58
- });
44
+ const fromCognitoIdentity = (options) => {
45
+ return async (args) => {
46
+ const { fromCognitoIdentity: _fromCognitoIdentity } = require('@aws-sdk/credential-provider-cognito-identity');
47
+ return _fromCognitoIdentity(options)(args);
48
+ };
49
+ };
59
50
 
60
- const fromCognitoIdentityPool = (options) => fromCognitoIdentityPool$1({
61
- ...options,
62
- });
51
+ const fromCognitoIdentityPool = (options) => {
52
+ return async (args) => {
53
+ const { fromCognitoIdentityPool: _fromCognitoIdentityPool } = require('@aws-sdk/credential-provider-cognito-identity');
54
+ return _fromCognitoIdentityPool(options)(args);
55
+ };
56
+ };
63
57
 
64
58
  const fromContainerMetadata = (init) => {
65
- init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata");
66
- return fromContainerMetadata$1(init);
59
+ return async (props) => {
60
+ init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata");
61
+ const { fromContainerMetadata: _fromContainerMetadata } = require('@smithy/credential-provider-imds');
62
+ return _fromContainerMetadata(init)();
63
+ };
67
64
  };
68
65
 
69
- const fromEnv = (init) => fromEnv$1(init);
66
+ const fromEnv = (init) => {
67
+ return async (args) => {
68
+ const { fromEnv: _fromEnv } = require('@aws-sdk/credential-provider-env');
69
+ return _fromEnv(init)(args);
70
+ };
71
+ };
72
+
73
+ const fromHttp = (options = {}) => {
74
+ return async (args) => {
75
+ const { fromHttp: _fromHttp } = require('@aws-sdk/credential-provider-http');
76
+ return _fromHttp(options)(args);
77
+ };
78
+ };
70
79
 
71
- const fromIni = (init = {}) => fromIni$1({
72
- ...init,
73
- });
80
+ const fromIni = (init = {}) => {
81
+ return async (args) => {
82
+ const { fromIni: _fromIni } = require('@aws-sdk/credential-provider-ini');
83
+ return _fromIni({ ...init })(args);
84
+ };
85
+ };
74
86
 
75
87
  const fromInstanceMetadata = (init) => {
76
- init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata");
77
- return async () => fromInstanceMetadata$1(init)().then((creds) => setCredentialFeature(creds, "CREDENTIALS_IMDS", "0"));
88
+ return async (props) => {
89
+ init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata");
90
+ const { setCredentialFeature } = require('@aws-sdk/core/client');
91
+ const { fromInstanceMetadata: _fromInstanceMetadata } = require('@smithy/credential-provider-imds');
92
+ return _fromInstanceMetadata(init)().then((creds) => setCredentialFeature(creds, "CREDENTIALS_IMDS", "0"));
93
+ };
78
94
  };
79
95
 
80
- const fromLoginCredentials = (init) => fromLoginCredentials$1({
81
- ...init,
82
- });
96
+ const fromLoginCredentials = (init) => {
97
+ return async (args) => {
98
+ const { fromLoginCredentials: _fromLoginCredentials } = require('@aws-sdk/credential-provider-login');
99
+ return _fromLoginCredentials({ ...init })(args);
100
+ };
101
+ };
83
102
 
84
- const fromNodeProviderChain = (init = {}) => defaultProvider({
85
- ...init,
86
- });
103
+ const fromNodeProviderChain = (init = {}) => {
104
+ return async (args) => {
105
+ const { defaultProvider } = require('@aws-sdk/credential-provider-node');
106
+ return defaultProvider({ ...init })(args);
107
+ };
108
+ };
87
109
 
88
- const fromProcess = (init) => fromProcess$1(init);
110
+ const fromProcess = (init) => {
111
+ return async (args) => {
112
+ const { fromProcess: _fromProcess } = require('@aws-sdk/credential-provider-process');
113
+ return _fromProcess(init)(args);
114
+ };
115
+ };
89
116
 
90
117
  const fromSSO = (init = {}) => {
91
- return fromSSO$1({ ...init });
118
+ return async (args) => {
119
+ const { fromSSO: _fromSSO } = require('@aws-sdk/credential-provider-sso');
120
+ return _fromSSO({ ...init })(args);
121
+ };
92
122
  };
93
123
 
94
124
  const ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
@@ -218,19 +248,26 @@ const fromTemporaryCredentials = (options) => {
218
248
  }, { ...NODE_REGION_CONFIG_FILE_OPTIONS, profile })());
219
249
  };
220
250
 
221
- const fromTokenFile = (init = {}) => fromTokenFile$1({
222
- ...init,
223
- });
251
+ const fromTokenFile = (init = {}) => {
252
+ return async (args) => {
253
+ const { fromTokenFile: _fromTokenFile } = require('@aws-sdk/credential-provider-web-identity');
254
+ return _fromTokenFile({ ...init })(args);
255
+ };
256
+ };
224
257
 
225
- const fromWebToken = (init) => fromWebToken$1({
226
- ...init,
227
- });
258
+ const fromWebToken = (init) => {
259
+ return async (args) => {
260
+ const { fromWebToken: _fromWebToken } = require('@aws-sdk/credential-provider-web-identity');
261
+ return _fromWebToken({ ...init })(args);
262
+ };
263
+ };
228
264
 
229
265
  exports.createCredentialChain = createCredentialChain;
230
266
  exports.fromCognitoIdentity = fromCognitoIdentity;
231
267
  exports.fromCognitoIdentityPool = fromCognitoIdentityPool;
232
268
  exports.fromContainerMetadata = fromContainerMetadata;
233
269
  exports.fromEnv = fromEnv;
270
+ exports.fromHttp = fromHttp;
234
271
  exports.fromIni = fromIni;
235
272
  exports.fromInstanceMetadata = fromInstanceMetadata;
236
273
  exports.fromLoginCredentials = fromLoginCredentials;
@@ -1,4 +1,6 @@
1
- import { fromCognitoIdentity as _fromCognitoIdentity } from "@aws-sdk/credential-provider-cognito-identity";
2
- export const fromCognitoIdentity = (options) => _fromCognitoIdentity({
3
- ...options,
4
- });
1
+ export const fromCognitoIdentity = (options) => {
2
+ return async (args) => {
3
+ const { fromCognitoIdentity: _fromCognitoIdentity } = await import("@aws-sdk/credential-provider-cognito-identity");
4
+ return _fromCognitoIdentity(options)(args);
5
+ };
6
+ };
@@ -1,4 +1,6 @@
1
- import { fromCognitoIdentityPool as _fromCognitoIdentityPool } from "@aws-sdk/credential-provider-cognito-identity";
2
- export const fromCognitoIdentityPool = (options) => _fromCognitoIdentityPool({
3
- ...options,
4
- });
1
+ export const fromCognitoIdentityPool = (options) => {
2
+ return async (args) => {
3
+ const { fromCognitoIdentityPool: _fromCognitoIdentityPool } = await import("@aws-sdk/credential-provider-cognito-identity");
4
+ return _fromCognitoIdentityPool(options)(args);
5
+ };
6
+ };
@@ -1,5 +1,7 @@
1
- import { fromContainerMetadata as _fromContainerMetadata } from "@smithy/credential-provider-imds";
2
1
  export const fromContainerMetadata = (init) => {
3
- init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata");
4
- return _fromContainerMetadata(init);
2
+ return async (props) => {
3
+ init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata");
4
+ const { fromContainerMetadata: _fromContainerMetadata } = await import("@smithy/credential-provider-imds");
5
+ return _fromContainerMetadata(init)();
6
+ };
5
7
  };
@@ -1,2 +1,6 @@
1
- import { fromEnv as _fromEnv } from "@aws-sdk/credential-provider-env";
2
- export const fromEnv = (init) => _fromEnv(init);
1
+ export const fromEnv = (init) => {
2
+ return async (args) => {
3
+ const { fromEnv: _fromEnv } = await import("@aws-sdk/credential-provider-env");
4
+ return _fromEnv(init)(args);
5
+ };
6
+ };
@@ -0,0 +1,6 @@
1
+ export const fromHttp = (options = {}) => {
2
+ return async (args) => {
3
+ const { fromHttp: _fromHttp } = await import("@aws-sdk/credential-provider-http");
4
+ return _fromHttp(options)(args);
5
+ };
6
+ };
@@ -1,4 +1,6 @@
1
- import { fromIni as _fromIni } from "@aws-sdk/credential-provider-ini";
2
- export const fromIni = (init = {}) => _fromIni({
3
- ...init,
4
- });
1
+ export const fromIni = (init = {}) => {
2
+ return async (args) => {
3
+ const { fromIni: _fromIni } = await import("@aws-sdk/credential-provider-ini");
4
+ return _fromIni({ ...init })(args);
5
+ };
6
+ };
@@ -1,6 +1,8 @@
1
- import { setCredentialFeature } from "@aws-sdk/core/client";
2
- import { fromInstanceMetadata as _fromInstanceMetadata } from "@smithy/credential-provider-imds";
3
1
  export const fromInstanceMetadata = (init) => {
4
- init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata");
5
- return async () => _fromInstanceMetadata(init)().then((creds) => setCredentialFeature(creds, "CREDENTIALS_IMDS", "0"));
2
+ return async (props) => {
3
+ init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata");
4
+ const { setCredentialFeature } = await import("@aws-sdk/core/client");
5
+ const { fromInstanceMetadata: _fromInstanceMetadata } = await import("@smithy/credential-provider-imds");
6
+ return _fromInstanceMetadata(init)().then((creds) => setCredentialFeature(creds, "CREDENTIALS_IMDS", "0"));
7
+ };
6
8
  };
@@ -1,4 +1,6 @@
1
- import { fromLoginCredentials as _fromLoginCredentials, } from "@aws-sdk/credential-provider-login";
2
- export const fromLoginCredentials = (init) => _fromLoginCredentials({
3
- ...init,
4
- });
1
+ export const fromLoginCredentials = (init) => {
2
+ return async (args) => {
3
+ const { fromLoginCredentials: _fromLoginCredentials } = await import("@aws-sdk/credential-provider-login");
4
+ return _fromLoginCredentials({ ...init })(args);
5
+ };
6
+ };
@@ -1,4 +1,6 @@
1
- import { defaultProvider } from "@aws-sdk/credential-provider-node";
2
- export const fromNodeProviderChain = (init = {}) => defaultProvider({
3
- ...init,
4
- });
1
+ export const fromNodeProviderChain = (init = {}) => {
2
+ return async (args) => {
3
+ const { defaultProvider } = await import("@aws-sdk/credential-provider-node");
4
+ return defaultProvider({ ...init })(args);
5
+ };
6
+ };
@@ -1,2 +1,6 @@
1
- import { fromProcess as _fromProcess } from "@aws-sdk/credential-provider-process";
2
- export const fromProcess = (init) => _fromProcess(init);
1
+ export const fromProcess = (init) => {
2
+ return async (args) => {
3
+ const { fromProcess: _fromProcess } = await import("@aws-sdk/credential-provider-process");
4
+ return _fromProcess(init)(args);
5
+ };
6
+ };
@@ -1,4 +1,6 @@
1
- import { fromSSO as _fromSSO } from "@aws-sdk/credential-provider-sso";
2
1
  export const fromSSO = (init = {}) => {
3
- return _fromSSO({ ...init });
2
+ return async (args) => {
3
+ const { fromSSO: _fromSSO } = await import("@aws-sdk/credential-provider-sso");
4
+ return _fromSSO({ ...init })(args);
5
+ };
4
6
  };
@@ -1,4 +1,6 @@
1
- import { fromTokenFile as _fromTokenFile } from "@aws-sdk/credential-provider-web-identity";
2
- export const fromTokenFile = (init = {}) => _fromTokenFile({
3
- ...init,
4
- });
1
+ export const fromTokenFile = (init = {}) => {
2
+ return async (args) => {
3
+ const { fromTokenFile: _fromTokenFile } = await import("@aws-sdk/credential-provider-web-identity");
4
+ return _fromTokenFile({ ...init })(args);
5
+ };
6
+ };
@@ -1,4 +1,6 @@
1
- import { fromWebToken as _fromWebToken } from "@aws-sdk/credential-provider-web-identity";
2
- export const fromWebToken = (init) => _fromWebToken({
3
- ...init,
4
- });
1
+ export const fromWebToken = (init) => {
2
+ return async (args) => {
3
+ const { fromWebToken: _fromWebToken } = await import("@aws-sdk/credential-provider-web-identity");
4
+ return _fromWebToken({ ...init })(args);
5
+ };
6
+ };
@@ -1,5 +1,5 @@
1
- export * from "./fromCognitoIdentity";
2
- export * from "./fromCognitoIdentityPool";
3
- export { fromHttp } from "@aws-sdk/credential-provider-http";
4
- export * from "./fromTemporaryCredentials.browser";
5
- export * from "./fromWebToken";
1
+ export { fromCognitoIdentity } from "./fromCognitoIdentity";
2
+ export { fromCognitoIdentityPool } from "./fromCognitoIdentityPool";
3
+ export { fromHttp } from "./fromHttp";
4
+ export { fromTemporaryCredentials } from "./fromTemporaryCredentials.browser";
5
+ export { fromWebToken } from "./fromWebToken";
package/dist-es/index.js CHANGED
@@ -1,15 +1,15 @@
1
- export * from "./createCredentialChain";
2
- export * from "./fromCognitoIdentity";
3
- export * from "./fromCognitoIdentityPool";
4
- export * from "./fromContainerMetadata";
5
- export * from "./fromEnv";
6
- export { fromHttp } from "@aws-sdk/credential-provider-http";
7
- export * from "./fromIni";
8
- export * from "./fromInstanceMetadata";
9
- export * from "./fromLoginCredentials";
10
- export * from "./fromNodeProviderChain";
11
- export * from "./fromProcess";
12
- export * from "./fromSSO";
13
- export * from "./fromTemporaryCredentials";
14
- export * from "./fromTokenFile";
15
- export * from "./fromWebToken";
1
+ export { createCredentialChain, propertyProviderChain } from "./createCredentialChain";
2
+ export { fromCognitoIdentity } from "./fromCognitoIdentity";
3
+ export { fromCognitoIdentityPool } from "./fromCognitoIdentityPool";
4
+ export { fromContainerMetadata } from "./fromContainerMetadata";
5
+ export { fromEnv } from "./fromEnv";
6
+ export { fromHttp } from "./fromHttp";
7
+ export { fromIni } from "./fromIni";
8
+ export { fromInstanceMetadata } from "./fromInstanceMetadata";
9
+ export { fromLoginCredentials } from "./fromLoginCredentials";
10
+ export { fromNodeProviderChain } from "./fromNodeProviderChain";
11
+ export { fromProcess } from "./fromProcess";
12
+ export { fromSSO } from "./fromSSO";
13
+ export { fromTemporaryCredentials } from "./fromTemporaryCredentials";
14
+ export { fromTokenFile } from "./fromTokenFile";
15
+ export { fromWebToken } from "./fromWebToken";
@@ -1,13 +1,8 @@
1
- import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
2
1
  import type { CognitoIdentityCredentialProvider as _CognitoIdentityCredentialProvider, FromCognitoIdentityParameters as _FromCognitoIdentityParameters } from "@aws-sdk/credential-provider-cognito-identity";
3
2
  /**
4
3
  * @public
5
4
  */
6
5
  export interface FromCognitoIdentityParameters extends Omit<_FromCognitoIdentityParameters, "client"> {
7
- /**
8
- * Custom client configuration if you need overwrite default Cognito Identity client configuration.
9
- */
10
- clientConfig?: CognitoIdentityClientConfig;
11
6
  }
12
7
  export type CognitoIdentityCredentialProvider = _CognitoIdentityCredentialProvider;
13
8
  /**
@@ -1,7 +1,8 @@
1
- import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
2
1
  import type { CognitoIdentityCredentialProvider, FromCognitoIdentityPoolParameters as _FromCognitoIdentityPoolParameters } from "@aws-sdk/credential-provider-cognito-identity";
2
+ /**
3
+ * @public
4
+ */
3
5
  export interface FromCognitoIdentityPoolParameters extends Omit<_FromCognitoIdentityPoolParameters, "client"> {
4
- clientConfig?: CognitoIdentityClientConfig;
5
6
  }
6
7
  /**
7
8
  * Creates a credential provider function that retrieves or generates a unique identifier using Amazon Cognito's `GetId`
@@ -0,0 +1,22 @@
1
+ import type { FromHttpOptions, HttpProviderCredentials } from "@aws-sdk/credential-provider-http";
2
+ import type { AwsCredentialIdentityProvider } from "@smithy/types";
3
+ export type { FromHttpOptions, HttpProviderCredentials };
4
+ /**
5
+ * Creates a provider that gets credentials via HTTP request.
6
+ *
7
+ * ```javascript
8
+ * import { fromHttp } from "@aws-sdk/credential-providers"; // ES6 import
9
+ * // const { fromHttp } = require("@aws-sdk/credential-providers"); // CommonJS import
10
+ *
11
+ * const client = new FooClient({
12
+ * credentials: fromHttp({
13
+ * // Optional. The URL to make the HTTP request to. If not specified, the provider will use the value in
14
+ * // the `AWS_CONTAINER_CREDENTIALS_FULL_URI` or `AWS_CONTAINER_CREDENTIALS_RELATIVE_URI` environment variable.
15
+ * awsContainerCredentialsFullUri: "http://localhost:8080/credentials",
16
+ * }),
17
+ * });
18
+ * ```
19
+ *
20
+ * @public
21
+ */
22
+ export declare const fromHttp: (options?: FromHttpOptions) => AwsCredentialIdentityProvider;
@@ -1,6 +1,5 @@
1
- import type { CredentialProviderOptions } from "@aws-sdk/types";
2
- import type { RemoteProviderConfig as _RemoteProviderInit } from "@smithy/credential-provider-imds";
3
1
  import type { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { RemoteProviderInit } from "./fromContainerMetadata";
4
3
  /**
5
4
  * Creates a credential provider function that reads from the EC2 instance metadata service.
6
5
  *
@@ -22,4 +21,4 @@ import type { AwsCredentialIdentityProvider } from "@smithy/types";
22
21
  *
23
22
  * @public
24
23
  */
25
- export declare const fromInstanceMetadata: (init?: _RemoteProviderInit & CredentialProviderOptions) => AwsCredentialIdentityProvider;
24
+ export declare const fromInstanceMetadata: (init?: RemoteProviderInit) => AwsCredentialIdentityProvider;
@@ -1,4 +1,4 @@
1
- import { type FromLoginCredentialsInit } from "@aws-sdk/credential-provider-login";
1
+ import type { FromLoginCredentialsInit } from "@aws-sdk/credential-provider-login";
2
2
  import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  /**
4
4
  * Creates a credential provider that sources credentials from `aws login` cached tokens
@@ -1,5 +1,5 @@
1
1
  import type { DefaultProviderInit } from "@aws-sdk/credential-provider-node";
2
- import type { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  /**
4
4
  * This is the same credential provider as {@link https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-credential-providers/#fromnodeproviderchain|the default provider for Node.js SDK},
5
5
  * but with default role assumers so you don't need to import them from
@@ -31,4 +31,4 @@ import type { AwsCredentialIdentityProvider } from "@smithy/types";
31
31
  *
32
32
  * @public
33
33
  */
34
- export declare const fromNodeProviderChain: (init?: DefaultProviderInit) => AwsCredentialIdentityProvider;
34
+ export declare const fromNodeProviderChain: (init?: DefaultProviderInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,5 +1,5 @@
1
1
  import type { FromProcessInit } from "@aws-sdk/credential-provider-process";
2
- import type { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  /**
4
4
  * Creates a credential provider function that executes a given process and attempt to read its standard output to
5
5
  * receive a JSON payload containing the credentials.
@@ -25,4 +25,4 @@ import type { AwsCredentialIdentityProvider } from "@smithy/types";
25
25
  *
26
26
  * @public
27
27
  */
28
- export declare const fromProcess: (init?: FromProcessInit) => AwsCredentialIdentityProvider;
28
+ export declare const fromProcess: (init?: FromProcessInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,5 +1,5 @@
1
- import { fromSSO as _fromSSO } from "@aws-sdk/credential-provider-sso";
2
- import type { AwsCredentialIdentityProvider } from "@smithy/types";
1
+ import type { FromSSOInit, SsoCredentialsParameters } from "@aws-sdk/credential-provider-sso";
2
+ import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  /**
4
4
  * Creates a credential provider function that reads from the _resolved_ access token from local disk then requests
5
5
  * temporary AWS credentials.
@@ -43,4 +43,4 @@ import type { AwsCredentialIdentityProvider } from "@smithy/types";
43
43
  *
44
44
  * @public
45
45
  */
46
- export declare const fromSSO: (init?: Parameters<typeof _fromSSO>[0]) => AwsCredentialIdentityProvider;
46
+ export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1 +1,2 @@
1
- export { FromTemporaryCredentialsOptions, fromTemporaryCredentials } from "./fromTemporaryCredentials.base";
1
+ export type { FromTemporaryCredentialsOptions } from "./fromTemporaryCredentials.base";
2
+ export { fromTemporaryCredentials } from "./fromTemporaryCredentials.base";
@@ -3,7 +3,7 @@ import type { FromTemporaryCredentialsOptions } from "./fromTemporaryCredentials
3
3
  /**
4
4
  * @public
5
5
  */
6
- export { FromTemporaryCredentialsOptions };
6
+ export type { FromTemporaryCredentialsOptions };
7
7
  /**
8
8
  * Creates a credential provider function that retrieves temporary credentials from STS AssumeRole API.
9
9
  *
@@ -1,5 +1,5 @@
1
1
  import type { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
2
- import type { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  /**
4
4
  * Creates a credential provider function that reads OIDC token from given file, then call STS.AssumeRoleWithWebIdentity
5
5
  * API. The configurations must be specified in environmental variables:
@@ -30,4 +30,4 @@ import type { AwsCredentialIdentityProvider } from "@smithy/types";
30
30
  *
31
31
  * @public
32
32
  */
33
- export declare const fromTokenFile: (init?: FromTokenFileInit) => AwsCredentialIdentityProvider;
33
+ export declare const fromTokenFile: (init?: FromTokenFileInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,5 +1,5 @@
1
1
  import type { FromWebTokenInit } from "@aws-sdk/credential-provider-web-identity";
2
- import type { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  /**
4
4
  * Creates a credential provider function that gets credentials calling STS
5
5
  * AssumeRoleWithWebIdentity API.
@@ -39,4 +39,4 @@ import type { AwsCredentialIdentityProvider } from "@smithy/types";
39
39
  *
40
40
  * @public
41
41
  */
42
- export declare const fromWebToken: (init: FromWebTokenInit) => AwsCredentialIdentityProvider;
42
+ export declare const fromWebToken: (init: FromWebTokenInit) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,6 +1,9 @@
1
- export * from "./fromCognitoIdentity";
2
- export * from "./fromCognitoIdentityPool";
3
- export { fromHttp } from "@aws-sdk/credential-provider-http";
4
- export type { FromHttpOptions, HttpProviderCredentials } from "@aws-sdk/credential-provider-http";
5
- export * from "./fromTemporaryCredentials.browser";
6
- export * from "./fromWebToken";
1
+ export { fromCognitoIdentity } from "./fromCognitoIdentity";
2
+ export type { FromCognitoIdentityParameters, CognitoIdentityCredentialProvider } from "./fromCognitoIdentity";
3
+ export { fromCognitoIdentityPool } from "./fromCognitoIdentityPool";
4
+ export type { FromCognitoIdentityPoolParameters } from "./fromCognitoIdentityPool";
5
+ export { fromHttp } from "./fromHttp";
6
+ export type { FromHttpOptions, HttpProviderCredentials } from "./fromHttp";
7
+ export { fromTemporaryCredentials } from "./fromTemporaryCredentials.browser";
8
+ export type { FromTemporaryCredentialsOptions } from "./fromTemporaryCredentials.browser";
9
+ export { fromWebToken } from "./fromWebToken";
@@ -1,15 +1,21 @@
1
- export * from "./createCredentialChain";
2
- export * from "./fromCognitoIdentity";
3
- export * from "./fromCognitoIdentityPool";
4
- export * from "./fromContainerMetadata";
5
- export * from "./fromEnv";
6
- export { fromHttp, FromHttpOptions, HttpProviderCredentials } from "@aws-sdk/credential-provider-http";
7
- export * from "./fromIni";
8
- export * from "./fromInstanceMetadata";
9
- export * from "./fromLoginCredentials";
10
- export * from "./fromNodeProviderChain";
11
- export * from "./fromProcess";
12
- export * from "./fromSSO";
13
- export * from "./fromTemporaryCredentials";
14
- export * from "./fromTokenFile";
15
- export * from "./fromWebToken";
1
+ export { createCredentialChain, propertyProviderChain } from "./createCredentialChain";
2
+ export type { CustomCredentialChainOptions } from "./createCredentialChain";
3
+ export { fromCognitoIdentity } from "./fromCognitoIdentity";
4
+ export type { FromCognitoIdentityParameters, CognitoIdentityCredentialProvider } from "./fromCognitoIdentity";
5
+ export { fromCognitoIdentityPool } from "./fromCognitoIdentityPool";
6
+ export type { FromCognitoIdentityPoolParameters } from "./fromCognitoIdentityPool";
7
+ export { fromContainerMetadata } from "./fromContainerMetadata";
8
+ export type { RemoteProviderInit } from "./fromContainerMetadata";
9
+ export { fromEnv } from "./fromEnv";
10
+ export { fromHttp } from "./fromHttp";
11
+ export type { FromHttpOptions, HttpProviderCredentials } from "./fromHttp";
12
+ export { fromIni } from "./fromIni";
13
+ export { fromInstanceMetadata } from "./fromInstanceMetadata";
14
+ export { fromLoginCredentials } from "./fromLoginCredentials";
15
+ export { fromNodeProviderChain } from "./fromNodeProviderChain";
16
+ export { fromProcess } from "./fromProcess";
17
+ export { fromSSO } from "./fromSSO";
18
+ export { fromTemporaryCredentials } from "./fromTemporaryCredentials";
19
+ export type { FromTemporaryCredentialsOptions } from "./fromTemporaryCredentials";
20
+ export { fromTokenFile } from "./fromTokenFile";
21
+ export { fromWebToken } from "./fromWebToken";
@@ -1,4 +1,3 @@
1
- import { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
2
1
  import {
3
2
  CognitoIdentityCredentialProvider as _CognitoIdentityCredentialProvider,
4
3
  FromCognitoIdentityParameters as _FromCognitoIdentityParameters,
@@ -7,9 +6,7 @@ export interface FromCognitoIdentityParameters
7
6
  extends Pick<
8
7
  _FromCognitoIdentityParameters,
9
8
  Exclude<keyof _FromCognitoIdentityParameters, "client">
10
- > {
11
- clientConfig?: CognitoIdentityClientConfig;
12
- }
9
+ > {}
13
10
  export type CognitoIdentityCredentialProvider =
14
11
  _CognitoIdentityCredentialProvider;
15
12
  export declare const fromCognitoIdentity: (
@@ -1,4 +1,3 @@
1
- import { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
2
1
  import {
3
2
  CognitoIdentityCredentialProvider,
4
3
  FromCognitoIdentityPoolParameters as _FromCognitoIdentityPoolParameters,
@@ -7,9 +6,7 @@ export interface FromCognitoIdentityPoolParameters
7
6
  extends Pick<
8
7
  _FromCognitoIdentityPoolParameters,
9
8
  Exclude<keyof _FromCognitoIdentityPoolParameters, "client">
10
- > {
11
- clientConfig?: CognitoIdentityClientConfig;
12
- }
9
+ > {}
13
10
  export declare const fromCognitoIdentityPool: (
14
11
  options: FromCognitoIdentityPoolParameters
15
12
  ) => CognitoIdentityCredentialProvider;
@@ -0,0 +1,9 @@
1
+ import {
2
+ FromHttpOptions,
3
+ HttpProviderCredentials,
4
+ } from "@aws-sdk/credential-provider-http";
5
+ import { AwsCredentialIdentityProvider } from "@smithy/types";
6
+ export { FromHttpOptions, HttpProviderCredentials };
7
+ export declare const fromHttp: (
8
+ options?: FromHttpOptions
9
+ ) => AwsCredentialIdentityProvider;
@@ -1,6 +1,5 @@
1
- import { CredentialProviderOptions } from "@aws-sdk/types";
2
- import { RemoteProviderConfig as _RemoteProviderInit } from "@smithy/credential-provider-imds";
3
1
  import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { RemoteProviderInit } from "./fromContainerMetadata";
4
3
  export declare const fromInstanceMetadata: (
5
- init?: _RemoteProviderInit & CredentialProviderOptions
4
+ init?: RemoteProviderInit
6
5
  ) => AwsCredentialIdentityProvider;
@@ -1,5 +1,5 @@
1
1
  import { DefaultProviderInit } from "@aws-sdk/credential-provider-node";
2
- import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  export declare const fromNodeProviderChain: (
4
4
  init?: DefaultProviderInit
5
- ) => AwsCredentialIdentityProvider;
5
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,5 +1,5 @@
1
1
  import { FromProcessInit } from "@aws-sdk/credential-provider-process";
2
- import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  export declare const fromProcess: (
4
4
  init?: FromProcessInit
5
- ) => AwsCredentialIdentityProvider;
5
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,5 +1,8 @@
1
- import { fromSSO as _fromSSO } from "@aws-sdk/credential-provider-sso";
2
- import { AwsCredentialIdentityProvider } from "@smithy/types";
1
+ import {
2
+ FromSSOInit,
3
+ SsoCredentialsParameters,
4
+ } from "@aws-sdk/credential-provider-sso";
5
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
6
  export declare const fromSSO: (
4
- init?: Parameters<typeof _fromSSO>[0]
5
- ) => AwsCredentialIdentityProvider;
7
+ init?: FromSSOInit & Partial<SsoCredentialsParameters>
8
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,4 +1,2 @@
1
- export {
2
- FromTemporaryCredentialsOptions,
3
- fromTemporaryCredentials,
4
- } from "./fromTemporaryCredentials.base";
1
+ export { FromTemporaryCredentialsOptions } from "./fromTemporaryCredentials.base";
2
+ export { fromTemporaryCredentials } from "./fromTemporaryCredentials.base";
@@ -1,5 +1,5 @@
1
1
  import { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
2
- import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  export declare const fromTokenFile: (
4
4
  init?: FromTokenFileInit
5
- ) => AwsCredentialIdentityProvider;
5
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,5 +1,5 @@
1
1
  import { FromWebTokenInit } from "@aws-sdk/credential-provider-web-identity";
2
- import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
3
3
  export declare const fromWebToken: (
4
4
  init: FromWebTokenInit
5
- ) => AwsCredentialIdentityProvider;
5
+ ) => RuntimeConfigAwsCredentialIdentityProvider;
@@ -1,9 +1,12 @@
1
- export * from "./fromCognitoIdentity";
2
- export * from "./fromCognitoIdentityPool";
3
- export { fromHttp } from "@aws-sdk/credential-provider-http";
1
+ export { fromCognitoIdentity } from "./fromCognitoIdentity";
4
2
  export {
5
- FromHttpOptions,
6
- HttpProviderCredentials,
7
- } from "@aws-sdk/credential-provider-http";
8
- export * from "./fromTemporaryCredentials.browser";
9
- export * from "./fromWebToken";
3
+ FromCognitoIdentityParameters,
4
+ CognitoIdentityCredentialProvider,
5
+ } from "./fromCognitoIdentity";
6
+ export { fromCognitoIdentityPool } from "./fromCognitoIdentityPool";
7
+ export { FromCognitoIdentityPoolParameters } from "./fromCognitoIdentityPool";
8
+ export { fromHttp } from "./fromHttp";
9
+ export { FromHttpOptions, HttpProviderCredentials } from "./fromHttp";
10
+ export { fromTemporaryCredentials } from "./fromTemporaryCredentials.browser";
11
+ export { FromTemporaryCredentialsOptions } from "./fromTemporaryCredentials.browser";
12
+ export { fromWebToken } from "./fromWebToken";
@@ -1,19 +1,27 @@
1
- export * from "./createCredentialChain";
2
- export * from "./fromCognitoIdentity";
3
- export * from "./fromCognitoIdentityPool";
4
- export * from "./fromContainerMetadata";
5
- export * from "./fromEnv";
6
1
  export {
7
- fromHttp,
8
- FromHttpOptions,
9
- HttpProviderCredentials,
10
- } from "@aws-sdk/credential-provider-http";
11
- export * from "./fromIni";
12
- export * from "./fromInstanceMetadata";
13
- export * from "./fromLoginCredentials";
14
- export * from "./fromNodeProviderChain";
15
- export * from "./fromProcess";
16
- export * from "./fromSSO";
17
- export * from "./fromTemporaryCredentials";
18
- export * from "./fromTokenFile";
19
- export * from "./fromWebToken";
2
+ createCredentialChain,
3
+ propertyProviderChain,
4
+ } from "./createCredentialChain";
5
+ export { CustomCredentialChainOptions } from "./createCredentialChain";
6
+ export { fromCognitoIdentity } from "./fromCognitoIdentity";
7
+ export {
8
+ FromCognitoIdentityParameters,
9
+ CognitoIdentityCredentialProvider,
10
+ } from "./fromCognitoIdentity";
11
+ export { fromCognitoIdentityPool } from "./fromCognitoIdentityPool";
12
+ export { FromCognitoIdentityPoolParameters } from "./fromCognitoIdentityPool";
13
+ export { fromContainerMetadata } from "./fromContainerMetadata";
14
+ export { RemoteProviderInit } from "./fromContainerMetadata";
15
+ export { fromEnv } from "./fromEnv";
16
+ export { fromHttp } from "./fromHttp";
17
+ export { FromHttpOptions, HttpProviderCredentials } from "./fromHttp";
18
+ export { fromIni } from "./fromIni";
19
+ export { fromInstanceMetadata } from "./fromInstanceMetadata";
20
+ export { fromLoginCredentials } from "./fromLoginCredentials";
21
+ export { fromNodeProviderChain } from "./fromNodeProviderChain";
22
+ export { fromProcess } from "./fromProcess";
23
+ export { fromSSO } from "./fromSSO";
24
+ export { fromTemporaryCredentials } from "./fromTemporaryCredentials";
25
+ export { FromTemporaryCredentialsOptions } from "./fromTemporaryCredentials";
26
+ export { fromTokenFile } from "./fromTokenFile";
27
+ export { fromWebToken } from "./fromWebToken";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-providers",
3
- "version": "3.1080.0",
3
+ "version": "3.1082.0",
4
4
  "description": "A collection of credential providers, without requiring service clients like STS, Cognito",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -37,22 +37,21 @@
37
37
  },
38
38
  "license": "Apache-2.0",
39
39
  "dependencies": {
40
- "@aws-sdk/client-cognito-identity": "3.1080.0",
41
- "@aws-sdk/core": "^3.974.28",
42
- "@aws-sdk/credential-provider-cognito-identity": "^3.972.53",
43
- "@aws-sdk/credential-provider-env": "^3.972.54",
44
- "@aws-sdk/credential-provider-http": "^3.972.56",
45
- "@aws-sdk/credential-provider-ini": "^3.972.61",
46
- "@aws-sdk/credential-provider-login": "^3.972.60",
47
- "@aws-sdk/credential-provider-node": "^3.972.63",
48
- "@aws-sdk/credential-provider-process": "^3.972.54",
49
- "@aws-sdk/credential-provider-sso": "^3.972.60",
50
- "@aws-sdk/credential-provider-web-identity": "^3.972.60",
51
- "@aws-sdk/nested-clients": "^3.997.28",
52
- "@aws-sdk/types": "^3.973.15",
53
- "@smithy/core": "^3.29.0",
54
- "@smithy/credential-provider-imds": "^4.4.5",
55
- "@smithy/types": "^4.15.1",
40
+ "@aws-sdk/core": "^3.975.0",
41
+ "@aws-sdk/credential-provider-cognito-identity": "^3.972.55",
42
+ "@aws-sdk/credential-provider-env": "^3.972.56",
43
+ "@aws-sdk/credential-provider-http": "^3.972.58",
44
+ "@aws-sdk/credential-provider-ini": "^3.973.0",
45
+ "@aws-sdk/credential-provider-login": "^3.972.62",
46
+ "@aws-sdk/credential-provider-node": "^3.972.65",
47
+ "@aws-sdk/credential-provider-process": "^3.972.56",
48
+ "@aws-sdk/credential-provider-sso": "^3.973.0",
49
+ "@aws-sdk/credential-provider-web-identity": "^3.972.62",
50
+ "@aws-sdk/nested-clients": "^3.997.30",
51
+ "@aws-sdk/types": "^3.974.0",
52
+ "@smithy/core": "^3.29.2",
53
+ "@smithy/credential-provider-imds": "^4.4.7",
54
+ "@smithy/types": "^4.16.0",
56
55
  "tslib": "^2.6.2"
57
56
  },
58
57
  "devDependencies": {