aws-sdk 2.1378.0 → 2.1380.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 +18 -1
- package/README.md +1 -1
- package/apis/athena-2017-05-18.min.json +0 -3
- package/apis/compute-optimizer-2019-11-01.min.json +17 -10
- package/apis/connect-2017-08-08.min.json +371 -214
- package/apis/ec2-2016-11-15.min.json +347 -336
- package/apis/glue-2017-03-31.min.json +6 -0
- package/apis/sagemaker-geospatial-2020-05-27.min.json +67 -89
- package/apis/sts-2011-06-15.min.json +12 -3
- package/apis/wafv2-2019-07-29.min.json +194 -115
- package/clients/athena.d.ts +0 -4
- package/clients/cloudtrail.d.ts +11 -11
- package/clients/computeoptimizer.d.ts +17 -1
- package/clients/connect.d.ts +171 -0
- package/clients/detective.d.ts +1 -1
- package/clients/directconnect.d.ts +2 -2
- package/clients/ec2.d.ts +7 -6
- package/clients/ecs.d.ts +2 -2
- package/clients/glue.d.ts +8 -0
- package/clients/mediaconvert.d.ts +9 -9
- package/clients/rds.d.ts +1 -1
- package/clients/sagemakergeospatial.d.ts +2 -31
- package/clients/secretsmanager.d.ts +3 -3
- package/clients/wafv2.d.ts +103 -15
- package/dist/aws-sdk-core-react-native.js +40 -3
- package/dist/aws-sdk-react-native.js +68 -13
- package/dist/aws-sdk.js +777 -561
- package/dist/aws-sdk.min.js +83 -83
- package/lib/core.js +1 -1
- package/lib/protocol/json.js +19 -0
- package/lib/region_config_data.json +6 -1
- package/lib/util.js +19 -1
- package/package.json +1 -1
    
        package/lib/core.js
    CHANGED
    
    
    
        package/lib/protocol/json.js
    CHANGED
    
    | @@ -40,6 +40,7 @@ function extractError(resp) { | |
| 40 40 | 
             
              if (httpResponse.body.length > 0) {
         | 
| 41 41 | 
             
                try {
         | 
| 42 42 | 
             
                  var e = JSON.parse(httpResponse.body.toString());
         | 
| 43 | 
            +
             | 
| 43 44 | 
             
                  var code = e.__type || e.code || e.Code;
         | 
| 44 45 | 
             
                  if (code) {
         | 
| 45 46 | 
             
                    error.code = code.split('#').pop();
         | 
| @@ -49,6 +50,24 @@ function extractError(resp) { | |
| 49 50 | 
             
                  } else {
         | 
| 50 51 | 
             
                    error.message = (e.message || e.Message || null);
         | 
| 51 52 | 
             
                  }
         | 
| 53 | 
            +
             | 
| 54 | 
            +
                  // The minimized models do not have error shapes, so
         | 
| 55 | 
            +
                  // without expanding the model size, it's not possible
         | 
| 56 | 
            +
                  // to validate the response shape (members) or
         | 
| 57 | 
            +
                  // check if any are sensitive to logging.
         | 
| 58 | 
            +
             | 
| 59 | 
            +
                  // Assign the fields as non-enumerable, allowing specific access only.
         | 
| 60 | 
            +
                  for (var key in e || {}) {
         | 
| 61 | 
            +
                    if (key === 'code' || key === 'message') {
         | 
| 62 | 
            +
                      continue;
         | 
| 63 | 
            +
                    }
         | 
| 64 | 
            +
                    error['[' + key + ']'] = 'See error.' + key + ' for details.';
         | 
| 65 | 
            +
                    Object.defineProperty(error, key, {
         | 
| 66 | 
            +
                      value: e[key],
         | 
| 67 | 
            +
                      enumerable: false,
         | 
| 68 | 
            +
                      writable: true
         | 
| 69 | 
            +
                    });
         | 
| 70 | 
            +
                  }
         | 
| 52 71 | 
             
                } catch (e) {
         | 
| 53 72 | 
             
                  error.statusCode = httpResponse.statusCode;
         | 
| 54 73 | 
             
                  error.message = httpResponse.statusMessage;
         | 
| @@ -43,8 +43,13 @@ | |
| 43 43 | 
             
                  "globalEndpoint": true,
         | 
| 44 44 | 
             
                  "signingRegion": "cn-north-1"
         | 
| 45 45 | 
             
                },
         | 
| 46 | 
            -
                "us- | 
| 46 | 
            +
                "us-iso-*/iam": {
         | 
| 47 | 
            +
                  "endpoint": "{service}.us-iso-east-1.c2s.ic.gov",
         | 
| 48 | 
            +
                  "globalEndpoint": true,
         | 
| 49 | 
            +
                  "signingRegion": "us-iso-east-1"
         | 
| 50 | 
            +
                },
         | 
| 47 51 |  | 
| 52 | 
            +
                "us-gov-*/iam": "globalGovCloud",
         | 
| 48 53 | 
             
                "us-gov-*/sts": {
         | 
| 49 54 | 
             
                  "endpoint": "{service}.{region}.amazonaws.com"
         | 
| 50 55 | 
             
                },
         | 
    
        package/lib/util.js
    CHANGED
    
    | @@ -610,7 +610,25 @@ var util = { | |
| 610 610 | 
             
                err.name = String(options && options.name || err.name || err.code || 'Error');
         | 
| 611 611 | 
             
                err.time = new Date();
         | 
| 612 612 |  | 
| 613 | 
            -
                if (originalError)  | 
| 613 | 
            +
                if (originalError) {
         | 
| 614 | 
            +
                  err.originalError = originalError;
         | 
| 615 | 
            +
                }
         | 
| 616 | 
            +
             | 
| 617 | 
            +
             | 
| 618 | 
            +
                for (var key in options || {}) {
         | 
| 619 | 
            +
                  if (key[0] === '[' && key[key.length - 1] === ']') {
         | 
| 620 | 
            +
                    key = key.slice(1, -1);
         | 
| 621 | 
            +
                    if (key === 'code' || key === 'message') {
         | 
| 622 | 
            +
                      continue;
         | 
| 623 | 
            +
                    }
         | 
| 624 | 
            +
                    err['[' + key + ']'] = 'See error.' + key + ' for details.';
         | 
| 625 | 
            +
                    Object.defineProperty(err, key, {
         | 
| 626 | 
            +
                      value: err[key] || (options && options[key]) || (originalError && originalError[key]),
         | 
| 627 | 
            +
                      enumerable: false,
         | 
| 628 | 
            +
                      writable: true
         | 
| 629 | 
            +
                    });
         | 
| 630 | 
            +
                  }
         | 
| 631 | 
            +
                }
         | 
| 614 632 |  | 
| 615 633 | 
             
                return err;
         | 
| 616 634 | 
             
              },
         |