aws-sdk 2.852.0 → 2.853.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/dist/aws-sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- // AWS SDK for JavaScript v2.852.0
1
+ // AWS SDK for JavaScript v2.853.0
2
2
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
4
4
  (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
@@ -104689,7 +104689,8 @@ module.exports={
104689
104689
  "ServiceRole",
104690
104690
  "UserRole",
104691
104691
  "WorkspaceSecurityGroupId",
104692
- "EngineSecurityGroupId"
104692
+ "EngineSecurityGroupId",
104693
+ "DefaultS3Location"
104693
104694
  ],
104694
104695
  "members": {
104695
104696
  "Name": {},
@@ -106218,6 +106219,23 @@ module.exports={
106218
106219
  }
106219
106220
  }
106220
106221
  },
106222
+ "UpdateStudio": {
106223
+ "input": {
106224
+ "type": "structure",
106225
+ "required": [
106226
+ "StudioId"
106227
+ ],
106228
+ "members": {
106229
+ "StudioId": {},
106230
+ "Name": {},
106231
+ "Description": {},
106232
+ "SubnetIds": {
106233
+ "shape": "S26"
106234
+ },
106235
+ "DefaultS3Location": {}
106236
+ }
106237
+ }
106238
+ },
106221
106239
  "UpdateStudioSessionMapping": {
106222
106240
  "input": {
106223
106241
  "type": "structure",
@@ -183997,6 +184015,10 @@ module.exports={
183997
184015
  "ExpectedBucketOwner": {
183998
184016
  "location": "header",
183999
184017
  "locationName": "x-amz-expected-bucket-owner"
184018
+ },
184019
+ "RequestPayer": {
184020
+ "location": "header",
184021
+ "locationName": "x-amz-request-payer"
184000
184022
  }
184001
184023
  }
184002
184024
  },
@@ -186275,6 +186297,10 @@ module.exports={
186275
186297
  "ExpectedBucketOwner": {
186276
186298
  "location": "header",
186277
186299
  "locationName": "x-amz-expected-bucket-owner"
186300
+ },
186301
+ "RequestPayer": {
186302
+ "location": "header",
186303
+ "locationName": "x-amz-request-payer"
186278
186304
  }
186279
186305
  },
186280
186306
  "payload": "Tagging"
@@ -213417,7 +213443,7 @@ AWS.util.update(AWS, {
213417
213443
  /**
213418
213444
  * @constant
213419
213445
  */
213420
- VERSION: '2.852.0',
213446
+ VERSION: '2.853.0',
213421
213447
 
213422
213448
  /**
213423
213449
  * @api private
@@ -223971,6 +223997,7 @@ AWS.util.update(AWS.S3.prototype, {
223971
223997
  var accessPointArn = req.service._parsedArn;
223972
223998
 
223973
223999
  var isOutpostArn = accessPointArn.service === 's3-outposts';
224000
+ var isObjectLambdaArn = accessPointArn.service === 's3-object-lambda';
223974
224001
 
223975
224002
  var outpostsSuffix = isOutpostArn ? '.' + accessPointArn.outpostId: '';
223976
224003
  var serviceName = isOutpostArn ? 's3-outposts': 's3-accesspoint';
@@ -223986,8 +224013,19 @@ AWS.util.update(AWS.S3.prototype, {
223986
224013
  useArnRegion ? accessPointArn.region : req.service.config.region,
223987
224014
  dnsSuffix
223988
224015
  ].join('.');
223989
- endpoint.host = endpoint.hostname;
223990
224016
 
224017
+ if (isObjectLambdaArn) {
224018
+ // should be in the format: "accesspoint/${accesspointName}"
224019
+ var serviceName = 's3-object-lambda';
224020
+ var accesspointName = accessPointArn.resource.split('/')[1];
224021
+ endpoint.hostname = [
224022
+ accesspointName + '-' + accessPointArn.accountId,
224023
+ serviceName,
224024
+ useArnRegion ? accessPointArn.region : req.service.config.region,
224025
+ dnsSuffix
224026
+ ].join('.');
224027
+ }
224028
+ endpoint.host = endpoint.hostname;
223991
224029
  var encodedArn = AWS.util.uriEscape(req.params.Bucket);
223992
224030
  var path = req.httpRequest.path;
223993
224031
  //remove the Bucket value from path
@@ -224927,10 +224965,12 @@ var s3util = {
224927
224965
  validateArnService: function validateArnService(req) {
224928
224966
  var parsedArn = req.service._parsedArn;
224929
224967
 
224930
- if (parsedArn.service !== 's3' && parsedArn.service !== 's3-outposts') {
224968
+ if (parsedArn.service !== 's3'
224969
+ && parsedArn.service !== 's3-outposts'
224970
+ && parsedArn.service !== 's3-object-lambda') {
224931
224971
  throw AWS.util.error(new Error(), {
224932
224972
  code: 'InvalidARN',
224933
- message: 'expect \'s3\' or \'s3-outposts\' in ARN service component'
224973
+ message: 'expect \'s3\' or \'s3-outposts\' or \'s3-object-lambda\' in ARN service component'
224934
224974
  });
224935
224975
  }
224936
224976
  },
@@ -234593,7 +234633,7 @@ var LRUCache = /** @class */ (function () {
234593
234633
  }());
234594
234634
  exports.LRUCache = LRUCache;
234595
234635
  },{}],441:[function(require,module,exports){
234596
- // AWS SDK for JavaScript v2.852.0
234636
+ // AWS SDK for JavaScript v2.853.0
234597
234637
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
234598
234638
  // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
234599
234639
  require('./browser_loader');