aws-sdk 2.1640.0 → 2.1642.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 (34) hide show
  1. package/README.md +1 -1
  2. package/apis/cloudhsmv2-2017-04-28.min.json +26 -19
  3. package/apis/datazone-2018-05-10.min.json +792 -403
  4. package/apis/datazone-2018-05-10.paginators.json +6 -0
  5. package/apis/glue-2017-03-31.min.json +99 -98
  6. package/apis/iotwireless-2020-11-22.min.json +4 -1
  7. package/apis/kms-2014-11-01.examples.json +29 -0
  8. package/apis/kms-2014-11-01.min.json +76 -23
  9. package/apis/macie2-2020-01-01.min.json +254 -143
  10. package/apis/macie2-2020-01-01.paginators.json +6 -0
  11. package/apis/mediaconvert-2017-08-29.min.json +57 -5
  12. package/apis/mediaconvert-2017-08-29.paginators.json +6 -0
  13. package/apis/mediapackagev2-2022-12-25.examples.json +1271 -0
  14. package/apis/mediapackagev2-2022-12-25.min.json +108 -71
  15. package/apis/route53domains-2014-05-15.min.json +7 -1
  16. package/clients/cloudhsmv2.d.ts +18 -1
  17. package/clients/datazone.d.ts +398 -4
  18. package/clients/ec2.d.ts +258 -258
  19. package/clients/glue.d.ts +6 -1
  20. package/clients/iotwireless.d.ts +1 -1
  21. package/clients/kms.d.ts +80 -14
  22. package/clients/macie2.d.ts +149 -44
  23. package/clients/mediaconvert.d.ts +46 -2
  24. package/clients/mediapackagev2.d.ts +57 -4
  25. package/dist/aws-sdk-core-react-native.js +1 -1
  26. package/dist/aws-sdk-react-native.js +22 -13
  27. package/dist/aws-sdk.js +121 -46
  28. package/dist/aws-sdk.min.js +61 -61
  29. package/lib/core.js +1 -1
  30. package/lib/credentials/cognito_identity_credentials.js +9 -0
  31. package/lib/shared-ini/ini-loader.d.ts +24 -1
  32. package/lib/shared-ini/ini-loader.js +0 -6
  33. package/package.json +1 -1
  34. package/scripts/region-checker/allowlist.js +3 -3
package/lib/core.js CHANGED
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.1640.0',
23
+ VERSION: '2.1642.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -23,6 +23,15 @@ var STS = require('../../clients/sts');
23
23
  * identity providers. See {constructor} for an example on creating a credentials
24
24
  * object with proper property values.
25
25
  *
26
+ * DISCLAIMER: This convenience method leverages the Enhanced (simplified) Authflow. The underlying
27
+ * implementation calls Cognito's `getId()` and `GetCredentialsForIdentity()`.
28
+ * In this flow there is no way to explicitly set a session policy, resulting in
29
+ * STS attaching the default policy and limiting the permissions of the federated role.
30
+ * To be able to explicitly set a session policy, do not use this convenience method.
31
+ * Instead, you can use the Cognito client to call `getId()`, `GetOpenIdToken()` and then use
32
+ * that token with your desired session policy to call STS's `AssumeRoleWithWebIdentity()`
33
+ * For further reading refer to: https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html
34
+ *
26
35
  * ## Refreshing Credentials from Identity Service
27
36
  *
28
37
  * In addition to AWS credentials expiring after a given amount of time, the
@@ -24,7 +24,30 @@ export class IniLoader{
24
24
  * Load configurations from config/credentials files and cache them
25
25
  * for later use. If no file is specified it will try to load default
26
26
  * files.
27
- * @returns {object} object of all profile information in the file
27
+ * @returns {Record<string, string>} object of all profile information in the file
28
28
  */
29
29
  loadFrom(options: LoadFileOptions): IniFileContent;
30
+
31
+ /**
32
+ * Load sso sessions from config/credentials files and cache them
33
+ * for later use. If no file is specified it will try to load default
34
+ * files.
35
+ * @returns {Record<string, string>} object of all sso sessions information in the file
36
+ */
37
+ loadSsoSessionsFrom(options: LoadFileOptions): IniFileContent;
38
+
39
+ /**
40
+ * Get default file path for config/credentials files.
41
+ *
42
+ * @param isConfig whether the file is a config file or a credentials file
43
+ * @returns {string} default file path
44
+ */
45
+ getDefaultFilePath(isConfig: boolean): string;
46
+
47
+ /**
48
+ * Get Home directory of the current user.
49
+ *
50
+ * @returns {string} home directory path
51
+ * */
52
+ getHomeDir(): string;
30
53
  }
@@ -103,9 +103,6 @@ AWS.IniLoader = AWS.util.inherit({
103
103
  return this.resolvedSsoSessions[filename];
104
104
  },
105
105
 
106
- /**
107
- * @api private
108
- */
109
106
  getDefaultFilePath: function getDefaultFilePath(isConfig) {
110
107
  return path.join(
111
108
  this.getHomeDir(),
@@ -114,9 +111,6 @@ AWS.IniLoader = AWS.util.inherit({
114
111
  );
115
112
  },
116
113
 
117
- /**
118
- * @api private
119
- */
120
114
  getHomeDir: function getHomeDir() {
121
115
  var env = process.env;
122
116
  var home = env.HOME ||
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.1640.0",
4
+ "version": "2.1642.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",
@@ -9,9 +9,9 @@ var allowlist = {
9
9
  262
10
10
  ],
11
11
  '/credentials/cognito_identity_credentials.js': [
12
- 78,
13
- 79,
14
- 109
12
+ 87,
13
+ 88,
14
+ 118
15
15
  ],
16
16
  '/credentials/shared_ini_file_credentials.js': [
17
17
  4,