aws-sdk 2.1640.0 → 2.1641.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/README.md +1 -1
 - package/apis/cloudhsmv2-2017-04-28.min.json +26 -19
 - package/apis/glue-2017-03-31.min.json +99 -98
 - package/apis/iotwireless-2020-11-22.min.json +4 -1
 - package/apis/kms-2014-11-01.examples.json +29 -0
 - package/apis/kms-2014-11-01.min.json +76 -23
 - package/apis/mediapackagev2-2022-12-25.examples.json +1271 -0
 - package/apis/mediapackagev2-2022-12-25.min.json +108 -71
 - package/clients/cloudhsmv2.d.ts +18 -1
 - package/clients/glue.d.ts +6 -1
 - package/clients/iotwireless.d.ts +1 -1
 - package/clients/kms.d.ts +80 -14
 - package/clients/mediapackagev2.d.ts +57 -4
 - package/dist/aws-sdk-core-react-native.js +1 -1
 - package/dist/aws-sdk-react-native.js +15 -6
 - package/dist/aws-sdk.js +114 -45
 - package/dist/aws-sdk.min.js +61 -61
 - package/lib/core.js +1 -1
 - package/lib/credentials/cognito_identity_credentials.js +9 -0
 - package/lib/shared-ini/ini-loader.d.ts +24 -1
 - package/lib/shared-ini/ini-loader.js +0 -6
 - package/package.json +1 -1
 - package/scripts/region-checker/allowlist.js +3 -3
 
    
        package/lib/core.js
    CHANGED
    
    
| 
         @@ -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 { 
     | 
| 
      
 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