@aws-sdk/credential-provider-node 3.85.0 → 3.87.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * **credential-providers:** expose node.js default credential provider chain ([#3588](https://github.com/aws/aws-sdk-js-v3/issues/3588)) ([51aaffc](https://github.com/aws/aws-sdk-js-v3/commit/51aaffc37838e403b5934132bfe2c277a28c3ea5))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.85.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.84.0...v3.85.0) (2022-05-05)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/credential-provider-node
package/README.md CHANGED
@@ -45,6 +45,18 @@ const provider = defaultProvider({
45
45
  const client = new S3Client({ credentialDefaultProvider: provider });
46
46
  ```
47
47
 
48
+ _IMPORTANT_: We provide a wrapper of this provider in `@aws-sdk/credential-providers`
49
+ package to save you from importing `getDefaultRoleAssumerWithWebIdentity()` or
50
+ `getDefaultRoleAssume()` from STS package. Similarly, you can do:
51
+
52
+ ```js
53
+ const { fromNodeProviderChain } = require("@aws-sdk/credential-providers");
54
+
55
+ const credentials = fromNodeProviderChain();
56
+
57
+ const client = new S3Client({ credentials });
58
+ ```
59
+
48
60
  ## Supported configuration
49
61
 
50
62
  You may customize how credentials are resolved by providing an options hash to
@@ -4,6 +4,7 @@ import { FromProcessInit } from "@aws-sdk/credential-provider-process";
4
4
  import { FromSSOInit } from "@aws-sdk/credential-provider-sso";
5
5
  import { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
6
6
  import { Credentials, MemoizedProvider } from "@aws-sdk/types";
7
+ export declare type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcessInit & FromSSOInit & FromTokenFileInit;
7
8
  /**
8
9
  * Creates a credential provider that will attempt to find credentials from the
9
10
  * following sources (listed in order of precedence):
@@ -23,19 +24,19 @@ import { Credentials, MemoizedProvider } from "@aws-sdk/types";
23
24
  * @param init Configuration that is passed to each individual
24
25
  * provider
25
26
  *
26
- * @see fromEnv The function used to source credentials from
27
+ * @see {@link fromEnv} The function used to source credentials from
27
28
  * environment variables
28
- * @see fromSSO The function used to source credentials from
29
+ * @see {@link fromSSO} The function used to source credentials from
29
30
  * resolved SSO token cache
30
- * @see fromTokenFile The function used to source credentials from
31
+ * @see {@link fromTokenFile} The function used to source credentials from
31
32
  * token file
32
- * @see fromIni The function used to source credentials from INI
33
+ * @see {@link fromIni} The function used to source credentials from INI
33
34
  * files
34
- * @see fromProcess The function used to sources credentials from
35
+ * @see {@link fromProcess} The function used to sources credentials from
35
36
  * credential_process in INI files
36
- * @see fromInstanceMetadata The function used to source credentials from the
37
+ * @see {@link fromInstanceMetadata} The function used to source credentials from the
37
38
  * EC2 Instance Metadata Service
38
- * @see fromContainerMetadata The function used to source credentials from the
39
+ * @see {@link fromContainerMetadata} The function used to source credentials from the
39
40
  * ECS Container Metadata Service
40
41
  */
41
- export declare const defaultProvider: (init?: FromIniInit & RemoteProviderInit & FromProcessInit & FromSSOInit & FromTokenFileInit) => MemoizedProvider<Credentials>;
42
+ export declare const defaultProvider: (init?: DefaultProviderInit) => MemoizedProvider<Credentials>;
@@ -4,5 +4,6 @@ import { FromProcessInit } from "@aws-sdk/credential-provider-process";
4
4
  import { FromSSOInit } from "@aws-sdk/credential-provider-sso";
5
5
  import { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity";
6
6
  import { Credentials, MemoizedProvider } from "@aws-sdk/types";
7
+ export declare type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcessInit & FromSSOInit & FromTokenFileInit;
7
8
 
8
- export declare const defaultProvider: (init?: FromIniInit & RemoteProviderInit & FromProcessInit & FromSSOInit & FromTokenFileInit) => MemoizedProvider<Credentials>;
9
+ export declare const defaultProvider: (init?: DefaultProviderInit) => MemoizedProvider<Credentials>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.85.0",
3
+ "version": "3.87.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=12.0.0"