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/CHANGELOG.md +8 -1
- package/README.md +1 -1
- package/apis/eks-2017-11-01.min.json +154 -122
- package/apis/elasticmapreduce-2009-03-31.min.json +19 -1
- package/apis/s3-2006-03-01.examples.json +109 -109
- package/apis/s3-2006-03-01.min.json +8 -0
- package/clients/eks.d.ts +29 -4
- package/clients/emr.d.ts +80 -50
- package/clients/s3.d.ts +40 -38
- package/dist/aws-sdk-core-react-native.js +1 -1
- package/dist/aws-sdk-react-native.js +21 -7
- package/dist/aws-sdk.js +47 -7
- package/dist/aws-sdk.min.js +48 -48
- package/lib/core.js +1 -1
- package/lib/services/s3.js +13 -1
- package/lib/services/s3util.js +4 -2
- package/package.json +1 -1
- package/scripts/region-checker/allowlist.js +6 -6
package/lib/core.js
CHANGED
package/lib/services/s3.js
CHANGED
|
@@ -341,6 +341,7 @@ AWS.util.update(AWS.S3.prototype, {
|
|
|
341
341
|
var accessPointArn = req.service._parsedArn;
|
|
342
342
|
|
|
343
343
|
var isOutpostArn = accessPointArn.service === 's3-outposts';
|
|
344
|
+
var isObjectLambdaArn = accessPointArn.service === 's3-object-lambda';
|
|
344
345
|
|
|
345
346
|
var outpostsSuffix = isOutpostArn ? '.' + accessPointArn.outpostId: '';
|
|
346
347
|
var serviceName = isOutpostArn ? 's3-outposts': 's3-accesspoint';
|
|
@@ -356,8 +357,19 @@ AWS.util.update(AWS.S3.prototype, {
|
|
|
356
357
|
useArnRegion ? accessPointArn.region : req.service.config.region,
|
|
357
358
|
dnsSuffix
|
|
358
359
|
].join('.');
|
|
359
|
-
endpoint.host = endpoint.hostname;
|
|
360
360
|
|
|
361
|
+
if (isObjectLambdaArn) {
|
|
362
|
+
// should be in the format: "accesspoint/${accesspointName}"
|
|
363
|
+
var serviceName = 's3-object-lambda';
|
|
364
|
+
var accesspointName = accessPointArn.resource.split('/')[1];
|
|
365
|
+
endpoint.hostname = [
|
|
366
|
+
accesspointName + '-' + accessPointArn.accountId,
|
|
367
|
+
serviceName,
|
|
368
|
+
useArnRegion ? accessPointArn.region : req.service.config.region,
|
|
369
|
+
dnsSuffix
|
|
370
|
+
].join('.');
|
|
371
|
+
}
|
|
372
|
+
endpoint.host = endpoint.hostname;
|
|
361
373
|
var encodedArn = AWS.util.uriEscape(req.params.Bucket);
|
|
362
374
|
var path = req.httpRequest.path;
|
|
363
375
|
//remove the Bucket value from path
|
package/lib/services/s3util.js
CHANGED
|
@@ -18,10 +18,12 @@ var s3util = {
|
|
|
18
18
|
validateArnService: function validateArnService(req) {
|
|
19
19
|
var parsedArn = req.service._parsedArn;
|
|
20
20
|
|
|
21
|
-
if (parsedArn.service !== 's3'
|
|
21
|
+
if (parsedArn.service !== 's3'
|
|
22
|
+
&& parsedArn.service !== 's3-outposts'
|
|
23
|
+
&& parsedArn.service !== 's3-object-lambda') {
|
|
22
24
|
throw AWS.util.error(new Error(), {
|
|
23
25
|
code: 'InvalidARN',
|
|
24
|
-
message: 'expect \'s3\' or \'s3-outposts\' in ARN service component'
|
|
26
|
+
message: 'expect \'s3\' or \'s3-outposts\' or \'s3-object-lambda\' in ARN service component'
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
29
|
},
|
package/package.json
CHANGED