aws-sdk 2.1379.0 → 2.1381.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 +19 -1
- package/README.md +3 -4
- package/apis/athena-2017-05-18.min.json +0 -3
- package/apis/backup-2018-11-15.min.json +4 -1
- 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/mediapackagev2-2022-12-25.examples.json +5 -0
- package/apis/mediapackagev2-2022-12-25.min.json +1346 -0
- package/apis/mediapackagev2-2022-12-25.paginators.json +22 -0
- package/apis/mediapackagev2-2022-12-25.waiters2.json +5 -0
- package/apis/metadata.json +3 -0
- package/apis/sagemaker-geospatial-2020-05-27.min.json +67 -89
- package/apis/sesv2-2019-09-27.examples.json +19 -0
- package/apis/sesv2-2019-09-27.min.json +38 -13
- package/apis/sts-2011-06-15.min.json +12 -3
- package/clients/all.d.ts +1 -0
- package/clients/all.js +2 -1
- package/clients/athena.d.ts +0 -4
- package/clients/backup.d.ts +16 -4
- package/clients/cloudtrail.d.ts +11 -11
- package/clients/computeoptimizer.d.ts +17 -1
- package/clients/connect.d.ts +171 -0
- package/clients/connectcases.d.ts +1 -1
- package/clients/ec2.d.ts +7 -6
- package/clients/ecs.d.ts +2 -2
- package/clients/mediaconvert.d.ts +9 -9
- package/clients/mediapackagev2.d.ts +1363 -0
- package/clients/mediapackagev2.js +19 -0
- package/clients/rds.d.ts +1 -1
- package/clients/sagemakergeospatial.d.ts +2 -31
- package/clients/sesv2.d.ts +24 -4
- package/dist/aws-sdk-core-react-native.js +41 -4
- package/dist/aws-sdk-react-native.js +115 -16
- package/dist/aws-sdk.js +780 -561
- package/dist/aws-sdk.min.js +83 -83
- package/lib/config_service_placeholders.d.ts +2 -0
- 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
| @@ -345,6 +345,7 @@ export abstract class ConfigurationServicePlaceholders { | |
| 345 345 | 
             
              ivsrealtime?: AWS.IVSRealTime.Types.ClientConfiguration;
         | 
| 346 346 | 
             
              vpclattice?: AWS.VPCLattice.Types.ClientConfiguration;
         | 
| 347 347 | 
             
              osis?: AWS.OSIS.Types.ClientConfiguration;
         | 
| 348 | 
            +
              mediapackagev2?: AWS.MediaPackageV2.Types.ClientConfiguration;
         | 
| 348 349 | 
             
            }
         | 
| 349 350 | 
             
            export interface ConfigurationServiceApiVersions {
         | 
| 350 351 | 
             
              acm?: AWS.ACM.Types.apiVersion;
         | 
| @@ -692,4 +693,5 @@ export interface ConfigurationServiceApiVersions { | |
| 692 693 | 
             
              ivsrealtime?: AWS.IVSRealTime.Types.apiVersion;
         | 
| 693 694 | 
             
              vpclattice?: AWS.VPCLattice.Types.apiVersion;
         | 
| 694 695 | 
             
              osis?: AWS.OSIS.Types.apiVersion;
         | 
| 696 | 
            +
              mediapackagev2?: AWS.MediaPackageV2.Types.apiVersion;
         | 
| 695 697 | 
             
            }
         | 
    
        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 | 
             
              },
         |