@aws-sdk/client-s3 3.42.0 → 3.43.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 +11 -0
- package/dist-cjs/models/models_0.js +8 -0
- package/dist-cjs/protocols/Aws_restXml.js +62 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/protocols/Aws_restXml.js +62 -0
- package/dist-types/S3.d.ts +11 -4
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +4 -0
- package/dist-types/commands/GetObjectCommand.d.ts +7 -4
- package/dist-types/models/models_0.d.ts +57 -1
- package/dist-types/ts3.4/models/models_0.d.ts +37 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -598,6 +598,10 @@ var LifecycleRuleFilter;
|
|
|
598
598
|
return visitor.Prefix(value.Prefix);
|
|
599
599
|
if (value.Tag !== undefined)
|
|
600
600
|
return visitor.Tag(value.Tag);
|
|
601
|
+
if (value.ObjectSizeGreaterThan !== undefined)
|
|
602
|
+
return visitor.ObjectSizeGreaterThan(value.ObjectSizeGreaterThan);
|
|
603
|
+
if (value.ObjectSizeLessThan !== undefined)
|
|
604
|
+
return visitor.ObjectSizeLessThan(value.ObjectSizeLessThan);
|
|
601
605
|
if (value.And !== undefined)
|
|
602
606
|
return visitor.And(value.And);
|
|
603
607
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -607,6 +611,10 @@ var LifecycleRuleFilter;
|
|
|
607
611
|
return { Prefix: obj.Prefix };
|
|
608
612
|
if (obj.Tag !== undefined)
|
|
609
613
|
return { Tag: Tag.filterSensitiveLog(obj.Tag) };
|
|
614
|
+
if (obj.ObjectSizeGreaterThan !== undefined)
|
|
615
|
+
return { ObjectSizeGreaterThan: obj.ObjectSizeGreaterThan };
|
|
616
|
+
if (obj.ObjectSizeLessThan !== undefined)
|
|
617
|
+
return { ObjectSizeLessThan: obj.ObjectSizeLessThan };
|
|
610
618
|
if (obj.And !== undefined)
|
|
611
619
|
return { And: LifecycleRuleAndOperator.filterSensitiveLog(obj.And) };
|
|
612
620
|
if (obj.$unknown !== undefined)
|
|
@@ -9839,6 +9839,18 @@ const serializeAws_restXmlLifecycleRuleAndOperator = (input, context) => {
|
|
|
9839
9839
|
bodyNode.addChildNode(node);
|
|
9840
9840
|
});
|
|
9841
9841
|
}
|
|
9842
|
+
if (input.ObjectSizeGreaterThan !== undefined && input.ObjectSizeGreaterThan !== null) {
|
|
9843
|
+
const node = new xml_builder_1.XmlNode("ObjectSizeGreaterThanBytes")
|
|
9844
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.ObjectSizeGreaterThan)))
|
|
9845
|
+
.withName("ObjectSizeGreaterThan");
|
|
9846
|
+
bodyNode.addChildNode(node);
|
|
9847
|
+
}
|
|
9848
|
+
if (input.ObjectSizeLessThan !== undefined && input.ObjectSizeLessThan !== null) {
|
|
9849
|
+
const node = new xml_builder_1.XmlNode("ObjectSizeLessThanBytes")
|
|
9850
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.ObjectSizeLessThan)))
|
|
9851
|
+
.withName("ObjectSizeLessThan");
|
|
9852
|
+
bodyNode.addChildNode(node);
|
|
9853
|
+
}
|
|
9842
9854
|
return bodyNode;
|
|
9843
9855
|
};
|
|
9844
9856
|
const serializeAws_restXmlLifecycleRuleFilter = (input, context) => {
|
|
@@ -9852,6 +9864,18 @@ const serializeAws_restXmlLifecycleRuleFilter = (input, context) => {
|
|
|
9852
9864
|
const node = serializeAws_restXmlTag(value, context).withName("Tag");
|
|
9853
9865
|
bodyNode.addChildNode(node);
|
|
9854
9866
|
},
|
|
9867
|
+
ObjectSizeGreaterThan: (value) => {
|
|
9868
|
+
const node = new xml_builder_1.XmlNode("ObjectSizeGreaterThanBytes")
|
|
9869
|
+
.addChildNode(new xml_builder_1.XmlText(String(value)))
|
|
9870
|
+
.withName("ObjectSizeGreaterThan");
|
|
9871
|
+
bodyNode.addChildNode(node);
|
|
9872
|
+
},
|
|
9873
|
+
ObjectSizeLessThan: (value) => {
|
|
9874
|
+
const node = new xml_builder_1.XmlNode("ObjectSizeLessThanBytes")
|
|
9875
|
+
.addChildNode(new xml_builder_1.XmlText(String(value)))
|
|
9876
|
+
.withName("ObjectSizeLessThan");
|
|
9877
|
+
bodyNode.addChildNode(node);
|
|
9878
|
+
},
|
|
9855
9879
|
And: (value) => {
|
|
9856
9880
|
const node = serializeAws_restXmlLifecycleRuleAndOperator(value, context).withName("And");
|
|
9857
9881
|
bodyNode.addChildNode(node);
|
|
@@ -9989,6 +10013,12 @@ const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
|
|
|
9989
10013
|
.withName("NoncurrentDays");
|
|
9990
10014
|
bodyNode.addChildNode(node);
|
|
9991
10015
|
}
|
|
10016
|
+
if (input.NewerNoncurrentVersions !== undefined && input.NewerNoncurrentVersions !== null) {
|
|
10017
|
+
const node = new xml_builder_1.XmlNode("VersionCount")
|
|
10018
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.NewerNoncurrentVersions)))
|
|
10019
|
+
.withName("NewerNoncurrentVersions");
|
|
10020
|
+
bodyNode.addChildNode(node);
|
|
10021
|
+
}
|
|
9992
10022
|
return bodyNode;
|
|
9993
10023
|
};
|
|
9994
10024
|
const serializeAws_restXmlNoncurrentVersionTransition = (input, context) => {
|
|
@@ -10005,6 +10035,12 @@ const serializeAws_restXmlNoncurrentVersionTransition = (input, context) => {
|
|
|
10005
10035
|
.withName("StorageClass");
|
|
10006
10036
|
bodyNode.addChildNode(node);
|
|
10007
10037
|
}
|
|
10038
|
+
if (input.NewerNoncurrentVersions !== undefined && input.NewerNoncurrentVersions !== null) {
|
|
10039
|
+
const node = new xml_builder_1.XmlNode("VersionCount")
|
|
10040
|
+
.addChildNode(new xml_builder_1.XmlText(String(input.NewerNoncurrentVersions)))
|
|
10041
|
+
.withName("NewerNoncurrentVersions");
|
|
10042
|
+
bodyNode.addChildNode(node);
|
|
10043
|
+
}
|
|
10008
10044
|
return bodyNode;
|
|
10009
10045
|
};
|
|
10010
10046
|
const serializeAws_restXmlNoncurrentVersionTransitionList = (input, context) => {
|
|
@@ -11762,6 +11798,8 @@ const deserializeAws_restXmlLifecycleRuleAndOperator = (output, context) => {
|
|
|
11762
11798
|
const contents = {
|
|
11763
11799
|
Prefix: undefined,
|
|
11764
11800
|
Tags: undefined,
|
|
11801
|
+
ObjectSizeGreaterThan: undefined,
|
|
11802
|
+
ObjectSizeLessThan: undefined,
|
|
11765
11803
|
};
|
|
11766
11804
|
if (output["Prefix"] !== undefined) {
|
|
11767
11805
|
contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
|
|
@@ -11772,6 +11810,12 @@ const deserializeAws_restXmlLifecycleRuleAndOperator = (output, context) => {
|
|
|
11772
11810
|
if (output["Tag"] !== undefined) {
|
|
11773
11811
|
contents.Tags = deserializeAws_restXmlTagSet(smithy_client_1.getArrayIfSingleItem(output["Tag"]), context);
|
|
11774
11812
|
}
|
|
11813
|
+
if (output["ObjectSizeGreaterThan"] !== undefined) {
|
|
11814
|
+
contents.ObjectSizeGreaterThan = smithy_client_1.strictParseLong(output["ObjectSizeGreaterThan"]);
|
|
11815
|
+
}
|
|
11816
|
+
if (output["ObjectSizeLessThan"] !== undefined) {
|
|
11817
|
+
contents.ObjectSizeLessThan = smithy_client_1.strictParseLong(output["ObjectSizeLessThan"]);
|
|
11818
|
+
}
|
|
11775
11819
|
return contents;
|
|
11776
11820
|
};
|
|
11777
11821
|
const deserializeAws_restXmlLifecycleRuleFilter = (output, context) => {
|
|
@@ -11785,6 +11829,16 @@ const deserializeAws_restXmlLifecycleRuleFilter = (output, context) => {
|
|
|
11785
11829
|
Tag: deserializeAws_restXmlTag(output["Tag"], context),
|
|
11786
11830
|
};
|
|
11787
11831
|
}
|
|
11832
|
+
if (output["ObjectSizeGreaterThan"] !== undefined) {
|
|
11833
|
+
return {
|
|
11834
|
+
ObjectSizeGreaterThan: smithy_client_1.strictParseLong(output["ObjectSizeGreaterThan"]),
|
|
11835
|
+
};
|
|
11836
|
+
}
|
|
11837
|
+
if (output["ObjectSizeLessThan"] !== undefined) {
|
|
11838
|
+
return {
|
|
11839
|
+
ObjectSizeLessThan: smithy_client_1.strictParseLong(output["ObjectSizeLessThan"]),
|
|
11840
|
+
};
|
|
11841
|
+
}
|
|
11788
11842
|
if (output["And"] !== undefined) {
|
|
11789
11843
|
return {
|
|
11790
11844
|
And: deserializeAws_restXmlLifecycleRuleAndOperator(output["And"], context),
|
|
@@ -11943,16 +11997,21 @@ const deserializeAws_restXmlMultipartUploadList = (output, context) => {
|
|
|
11943
11997
|
const deserializeAws_restXmlNoncurrentVersionExpiration = (output, context) => {
|
|
11944
11998
|
const contents = {
|
|
11945
11999
|
NoncurrentDays: undefined,
|
|
12000
|
+
NewerNoncurrentVersions: undefined,
|
|
11946
12001
|
};
|
|
11947
12002
|
if (output["NoncurrentDays"] !== undefined) {
|
|
11948
12003
|
contents.NoncurrentDays = smithy_client_1.strictParseInt32(output["NoncurrentDays"]);
|
|
11949
12004
|
}
|
|
12005
|
+
if (output["NewerNoncurrentVersions"] !== undefined) {
|
|
12006
|
+
contents.NewerNoncurrentVersions = smithy_client_1.strictParseInt32(output["NewerNoncurrentVersions"]);
|
|
12007
|
+
}
|
|
11950
12008
|
return contents;
|
|
11951
12009
|
};
|
|
11952
12010
|
const deserializeAws_restXmlNoncurrentVersionTransition = (output, context) => {
|
|
11953
12011
|
const contents = {
|
|
11954
12012
|
NoncurrentDays: undefined,
|
|
11955
12013
|
StorageClass: undefined,
|
|
12014
|
+
NewerNoncurrentVersions: undefined,
|
|
11956
12015
|
};
|
|
11957
12016
|
if (output["NoncurrentDays"] !== undefined) {
|
|
11958
12017
|
contents.NoncurrentDays = smithy_client_1.strictParseInt32(output["NoncurrentDays"]);
|
|
@@ -11960,6 +12019,9 @@ const deserializeAws_restXmlNoncurrentVersionTransition = (output, context) => {
|
|
|
11960
12019
|
if (output["StorageClass"] !== undefined) {
|
|
11961
12020
|
contents.StorageClass = smithy_client_1.expectString(output["StorageClass"]);
|
|
11962
12021
|
}
|
|
12022
|
+
if (output["NewerNoncurrentVersions"] !== undefined) {
|
|
12023
|
+
contents.NewerNoncurrentVersions = smithy_client_1.strictParseInt32(output["NewerNoncurrentVersions"]);
|
|
12024
|
+
}
|
|
11963
12025
|
return contents;
|
|
11964
12026
|
};
|
|
11965
12027
|
const deserializeAws_restXmlNoncurrentVersionTransitionList = (output, context) => {
|
|
@@ -392,6 +392,10 @@ export var LifecycleRuleFilter;
|
|
|
392
392
|
return visitor.Prefix(value.Prefix);
|
|
393
393
|
if (value.Tag !== undefined)
|
|
394
394
|
return visitor.Tag(value.Tag);
|
|
395
|
+
if (value.ObjectSizeGreaterThan !== undefined)
|
|
396
|
+
return visitor.ObjectSizeGreaterThan(value.ObjectSizeGreaterThan);
|
|
397
|
+
if (value.ObjectSizeLessThan !== undefined)
|
|
398
|
+
return visitor.ObjectSizeLessThan(value.ObjectSizeLessThan);
|
|
395
399
|
if (value.And !== undefined)
|
|
396
400
|
return visitor.And(value.And);
|
|
397
401
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -402,6 +406,10 @@ export var LifecycleRuleFilter;
|
|
|
402
406
|
return { Prefix: obj.Prefix };
|
|
403
407
|
if (obj.Tag !== undefined)
|
|
404
408
|
return { Tag: Tag.filterSensitiveLog(obj.Tag) };
|
|
409
|
+
if (obj.ObjectSizeGreaterThan !== undefined)
|
|
410
|
+
return { ObjectSizeGreaterThan: obj.ObjectSizeGreaterThan };
|
|
411
|
+
if (obj.ObjectSizeLessThan !== undefined)
|
|
412
|
+
return { ObjectSizeLessThan: obj.ObjectSizeLessThan };
|
|
405
413
|
if (obj.And !== undefined)
|
|
406
414
|
return { And: LifecycleRuleAndOperator.filterSensitiveLog(obj.And) };
|
|
407
415
|
if (obj.$unknown !== undefined)
|
|
@@ -10581,6 +10581,18 @@ var serializeAws_restXmlLifecycleRuleAndOperator = function (input, context) {
|
|
|
10581
10581
|
bodyNode.addChildNode(node);
|
|
10582
10582
|
});
|
|
10583
10583
|
}
|
|
10584
|
+
if (input.ObjectSizeGreaterThan !== undefined && input.ObjectSizeGreaterThan !== null) {
|
|
10585
|
+
var node = new __XmlNode("ObjectSizeGreaterThanBytes")
|
|
10586
|
+
.addChildNode(new __XmlText(String(input.ObjectSizeGreaterThan)))
|
|
10587
|
+
.withName("ObjectSizeGreaterThan");
|
|
10588
|
+
bodyNode.addChildNode(node);
|
|
10589
|
+
}
|
|
10590
|
+
if (input.ObjectSizeLessThan !== undefined && input.ObjectSizeLessThan !== null) {
|
|
10591
|
+
var node = new __XmlNode("ObjectSizeLessThanBytes")
|
|
10592
|
+
.addChildNode(new __XmlText(String(input.ObjectSizeLessThan)))
|
|
10593
|
+
.withName("ObjectSizeLessThan");
|
|
10594
|
+
bodyNode.addChildNode(node);
|
|
10595
|
+
}
|
|
10584
10596
|
return bodyNode;
|
|
10585
10597
|
};
|
|
10586
10598
|
var serializeAws_restXmlLifecycleRuleFilter = function (input, context) {
|
|
@@ -10594,6 +10606,18 @@ var serializeAws_restXmlLifecycleRuleFilter = function (input, context) {
|
|
|
10594
10606
|
var node = serializeAws_restXmlTag(value, context).withName("Tag");
|
|
10595
10607
|
bodyNode.addChildNode(node);
|
|
10596
10608
|
},
|
|
10609
|
+
ObjectSizeGreaterThan: function (value) {
|
|
10610
|
+
var node = new __XmlNode("ObjectSizeGreaterThanBytes")
|
|
10611
|
+
.addChildNode(new __XmlText(String(value)))
|
|
10612
|
+
.withName("ObjectSizeGreaterThan");
|
|
10613
|
+
bodyNode.addChildNode(node);
|
|
10614
|
+
},
|
|
10615
|
+
ObjectSizeLessThan: function (value) {
|
|
10616
|
+
var node = new __XmlNode("ObjectSizeLessThanBytes")
|
|
10617
|
+
.addChildNode(new __XmlText(String(value)))
|
|
10618
|
+
.withName("ObjectSizeLessThan");
|
|
10619
|
+
bodyNode.addChildNode(node);
|
|
10620
|
+
},
|
|
10597
10621
|
And: function (value) {
|
|
10598
10622
|
var node = serializeAws_restXmlLifecycleRuleAndOperator(value, context).withName("And");
|
|
10599
10623
|
bodyNode.addChildNode(node);
|
|
@@ -10731,6 +10755,12 @@ var serializeAws_restXmlNoncurrentVersionExpiration = function (input, context)
|
|
|
10731
10755
|
.withName("NoncurrentDays");
|
|
10732
10756
|
bodyNode.addChildNode(node);
|
|
10733
10757
|
}
|
|
10758
|
+
if (input.NewerNoncurrentVersions !== undefined && input.NewerNoncurrentVersions !== null) {
|
|
10759
|
+
var node = new __XmlNode("VersionCount")
|
|
10760
|
+
.addChildNode(new __XmlText(String(input.NewerNoncurrentVersions)))
|
|
10761
|
+
.withName("NewerNoncurrentVersions");
|
|
10762
|
+
bodyNode.addChildNode(node);
|
|
10763
|
+
}
|
|
10734
10764
|
return bodyNode;
|
|
10735
10765
|
};
|
|
10736
10766
|
var serializeAws_restXmlNoncurrentVersionTransition = function (input, context) {
|
|
@@ -10747,6 +10777,12 @@ var serializeAws_restXmlNoncurrentVersionTransition = function (input, context)
|
|
|
10747
10777
|
.withName("StorageClass");
|
|
10748
10778
|
bodyNode.addChildNode(node);
|
|
10749
10779
|
}
|
|
10780
|
+
if (input.NewerNoncurrentVersions !== undefined && input.NewerNoncurrentVersions !== null) {
|
|
10781
|
+
var node = new __XmlNode("VersionCount")
|
|
10782
|
+
.addChildNode(new __XmlText(String(input.NewerNoncurrentVersions)))
|
|
10783
|
+
.withName("NewerNoncurrentVersions");
|
|
10784
|
+
bodyNode.addChildNode(node);
|
|
10785
|
+
}
|
|
10750
10786
|
return bodyNode;
|
|
10751
10787
|
};
|
|
10752
10788
|
var serializeAws_restXmlNoncurrentVersionTransitionList = function (input, context) {
|
|
@@ -12504,6 +12540,8 @@ var deserializeAws_restXmlLifecycleRuleAndOperator = function (output, context)
|
|
|
12504
12540
|
var contents = {
|
|
12505
12541
|
Prefix: undefined,
|
|
12506
12542
|
Tags: undefined,
|
|
12543
|
+
ObjectSizeGreaterThan: undefined,
|
|
12544
|
+
ObjectSizeLessThan: undefined,
|
|
12507
12545
|
};
|
|
12508
12546
|
if (output["Prefix"] !== undefined) {
|
|
12509
12547
|
contents.Prefix = __expectString(output["Prefix"]);
|
|
@@ -12514,6 +12552,12 @@ var deserializeAws_restXmlLifecycleRuleAndOperator = function (output, context)
|
|
|
12514
12552
|
if (output["Tag"] !== undefined) {
|
|
12515
12553
|
contents.Tags = deserializeAws_restXmlTagSet(__getArrayIfSingleItem(output["Tag"]), context);
|
|
12516
12554
|
}
|
|
12555
|
+
if (output["ObjectSizeGreaterThan"] !== undefined) {
|
|
12556
|
+
contents.ObjectSizeGreaterThan = __strictParseLong(output["ObjectSizeGreaterThan"]);
|
|
12557
|
+
}
|
|
12558
|
+
if (output["ObjectSizeLessThan"] !== undefined) {
|
|
12559
|
+
contents.ObjectSizeLessThan = __strictParseLong(output["ObjectSizeLessThan"]);
|
|
12560
|
+
}
|
|
12517
12561
|
return contents;
|
|
12518
12562
|
};
|
|
12519
12563
|
var deserializeAws_restXmlLifecycleRuleFilter = function (output, context) {
|
|
@@ -12527,6 +12571,16 @@ var deserializeAws_restXmlLifecycleRuleFilter = function (output, context) {
|
|
|
12527
12571
|
Tag: deserializeAws_restXmlTag(output["Tag"], context),
|
|
12528
12572
|
};
|
|
12529
12573
|
}
|
|
12574
|
+
if (output["ObjectSizeGreaterThan"] !== undefined) {
|
|
12575
|
+
return {
|
|
12576
|
+
ObjectSizeGreaterThan: __strictParseLong(output["ObjectSizeGreaterThan"]),
|
|
12577
|
+
};
|
|
12578
|
+
}
|
|
12579
|
+
if (output["ObjectSizeLessThan"] !== undefined) {
|
|
12580
|
+
return {
|
|
12581
|
+
ObjectSizeLessThan: __strictParseLong(output["ObjectSizeLessThan"]),
|
|
12582
|
+
};
|
|
12583
|
+
}
|
|
12530
12584
|
if (output["And"] !== undefined) {
|
|
12531
12585
|
return {
|
|
12532
12586
|
And: deserializeAws_restXmlLifecycleRuleAndOperator(output["And"], context),
|
|
@@ -12685,16 +12739,21 @@ var deserializeAws_restXmlMultipartUploadList = function (output, context) {
|
|
|
12685
12739
|
var deserializeAws_restXmlNoncurrentVersionExpiration = function (output, context) {
|
|
12686
12740
|
var contents = {
|
|
12687
12741
|
NoncurrentDays: undefined,
|
|
12742
|
+
NewerNoncurrentVersions: undefined,
|
|
12688
12743
|
};
|
|
12689
12744
|
if (output["NoncurrentDays"] !== undefined) {
|
|
12690
12745
|
contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]);
|
|
12691
12746
|
}
|
|
12747
|
+
if (output["NewerNoncurrentVersions"] !== undefined) {
|
|
12748
|
+
contents.NewerNoncurrentVersions = __strictParseInt32(output["NewerNoncurrentVersions"]);
|
|
12749
|
+
}
|
|
12692
12750
|
return contents;
|
|
12693
12751
|
};
|
|
12694
12752
|
var deserializeAws_restXmlNoncurrentVersionTransition = function (output, context) {
|
|
12695
12753
|
var contents = {
|
|
12696
12754
|
NoncurrentDays: undefined,
|
|
12697
12755
|
StorageClass: undefined,
|
|
12756
|
+
NewerNoncurrentVersions: undefined,
|
|
12698
12757
|
};
|
|
12699
12758
|
if (output["NoncurrentDays"] !== undefined) {
|
|
12700
12759
|
contents.NoncurrentDays = __strictParseInt32(output["NoncurrentDays"]);
|
|
@@ -12702,6 +12761,9 @@ var deserializeAws_restXmlNoncurrentVersionTransition = function (output, contex
|
|
|
12702
12761
|
if (output["StorageClass"] !== undefined) {
|
|
12703
12762
|
contents.StorageClass = __expectString(output["StorageClass"]);
|
|
12704
12763
|
}
|
|
12764
|
+
if (output["NewerNoncurrentVersions"] !== undefined) {
|
|
12765
|
+
contents.NewerNoncurrentVersions = __strictParseInt32(output["NewerNoncurrentVersions"]);
|
|
12766
|
+
}
|
|
12705
12767
|
return contents;
|
|
12706
12768
|
};
|
|
12707
12769
|
var deserializeAws_restXmlNoncurrentVersionTransitionList = function (output, context) {
|
package/dist-types/S3.d.ts
CHANGED
|
@@ -158,6 +158,10 @@ export declare class S3 extends S3Client {
|
|
|
158
158
|
* to determine whether the request succeeded.</p>
|
|
159
159
|
* <p>Note that if <code>CompleteMultipartUpload</code> fails, applications should be prepared
|
|
160
160
|
* to retry the failed requests. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html">Amazon S3 Error Best Practices</a>.</p>
|
|
161
|
+
* <important>
|
|
162
|
+
* <p>You cannot use <code>Content-Type: application/x-www-form-urlencoded</code> with Complete
|
|
163
|
+
* Multipart Upload requests. Also, if you do not provide a <code>Content-Type</code> header, <code>CompleteMultipartUpload</code> returns a 200 OK response.</p>
|
|
164
|
+
* </important>
|
|
161
165
|
* <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
|
|
162
166
|
* Upload</a>.</p>
|
|
163
167
|
* <p>For information about permissions required to use the multipart upload API, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
|
|
@@ -2077,13 +2081,16 @@ export declare class S3 extends S3Client {
|
|
|
2077
2081
|
* <note>
|
|
2078
2082
|
* <ul>
|
|
2079
2083
|
* <li>
|
|
2080
|
-
* <p>
|
|
2081
|
-
*
|
|
2084
|
+
* <p>
|
|
2085
|
+
* If you supply a <code>versionId</code>, you need the <code>s3:GetObjectVersion</code> permission to
|
|
2086
|
+
* access a specific version of an object. If you request a specific version, you do not need to have
|
|
2087
|
+
* the <code>s3:GetObject</code> permission.
|
|
2088
|
+
* </p>
|
|
2082
2089
|
* </li>
|
|
2083
2090
|
* <li>
|
|
2084
2091
|
* <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the
|
|
2085
|
-
*
|
|
2086
|
-
*
|
|
2092
|
+
* object was deleted and includes <code>x-amz-delete-marker: true</code> in the
|
|
2093
|
+
* response.</p>
|
|
2087
2094
|
* </li>
|
|
2088
2095
|
* </ul>
|
|
2089
2096
|
* </note>
|
|
@@ -24,6 +24,10 @@ export interface CompleteMultipartUploadCommandOutput extends CompleteMultipartU
|
|
|
24
24
|
* to determine whether the request succeeded.</p>
|
|
25
25
|
* <p>Note that if <code>CompleteMultipartUpload</code> fails, applications should be prepared
|
|
26
26
|
* to retry the failed requests. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html">Amazon S3 Error Best Practices</a>.</p>
|
|
27
|
+
* <important>
|
|
28
|
+
* <p>You cannot use <code>Content-Type: application/x-www-form-urlencoded</code> with Complete
|
|
29
|
+
* Multipart Upload requests. Also, if you do not provide a <code>Content-Type</code> header, <code>CompleteMultipartUpload</code> returns a 200 OK response.</p>
|
|
30
|
+
* </important>
|
|
27
31
|
* <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
|
|
28
32
|
* Upload</a>.</p>
|
|
29
33
|
* <p>For information about permissions required to use the multipart upload API, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
|
|
@@ -91,13 +91,16 @@ export interface GetObjectCommandOutput extends GetObjectOutput, __MetadataBeare
|
|
|
91
91
|
* <note>
|
|
92
92
|
* <ul>
|
|
93
93
|
* <li>
|
|
94
|
-
* <p>
|
|
95
|
-
*
|
|
94
|
+
* <p>
|
|
95
|
+
* If you supply a <code>versionId</code>, you need the <code>s3:GetObjectVersion</code> permission to
|
|
96
|
+
* access a specific version of an object. If you request a specific version, you do not need to have
|
|
97
|
+
* the <code>s3:GetObject</code> permission.
|
|
98
|
+
* </p>
|
|
96
99
|
* </li>
|
|
97
100
|
* <li>
|
|
98
101
|
* <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the
|
|
99
|
-
*
|
|
100
|
-
*
|
|
102
|
+
* object was deleted and includes <code>x-amz-delete-marker: true</code> in the
|
|
103
|
+
* response.</p>
|
|
101
104
|
* </li>
|
|
102
105
|
* </ul>
|
|
103
106
|
* </note>
|
|
@@ -326,6 +326,8 @@ export declare namespace CompletedPart {
|
|
|
326
326
|
export interface CompletedMultipartUpload {
|
|
327
327
|
/**
|
|
328
328
|
* <p>Array of CompletedPart data types.</p>
|
|
329
|
+
* <p>If you do not supply a valid <code>Part</code> with your request, the service sends back an HTTP
|
|
330
|
+
* 400 response.</p>
|
|
329
331
|
*/
|
|
330
332
|
Parts?: CompletedPart[];
|
|
331
333
|
}
|
|
@@ -4362,6 +4364,14 @@ export interface LifecycleRuleAndOperator {
|
|
|
4362
4364
|
* apply.</p>
|
|
4363
4365
|
*/
|
|
4364
4366
|
Tags?: Tag[];
|
|
4367
|
+
/**
|
|
4368
|
+
* <p>Minimum object size to which the rule applies.</p>
|
|
4369
|
+
*/
|
|
4370
|
+
ObjectSizeGreaterThan?: number;
|
|
4371
|
+
/**
|
|
4372
|
+
* <p>Maximum object size to which the rule applies.</p>
|
|
4373
|
+
*/
|
|
4374
|
+
ObjectSizeLessThan?: number;
|
|
4365
4375
|
}
|
|
4366
4376
|
export declare namespace LifecycleRuleAndOperator {
|
|
4367
4377
|
/**
|
|
@@ -4374,7 +4384,7 @@ export declare namespace LifecycleRuleAndOperator {
|
|
|
4374
4384
|
* <code>Filter</code> must have exactly one of <code>Prefix</code>, <code>Tag</code>, or
|
|
4375
4385
|
* <code>And</code> specified.</p>
|
|
4376
4386
|
*/
|
|
4377
|
-
export declare type LifecycleRuleFilter = LifecycleRuleFilter.AndMember | LifecycleRuleFilter.PrefixMember | LifecycleRuleFilter.TagMember | LifecycleRuleFilter.$UnknownMember;
|
|
4387
|
+
export declare type LifecycleRuleFilter = LifecycleRuleFilter.AndMember | LifecycleRuleFilter.ObjectSizeGreaterThanMember | LifecycleRuleFilter.ObjectSizeLessThanMember | LifecycleRuleFilter.PrefixMember | LifecycleRuleFilter.TagMember | LifecycleRuleFilter.$UnknownMember;
|
|
4378
4388
|
export declare namespace LifecycleRuleFilter {
|
|
4379
4389
|
/**
|
|
4380
4390
|
* <p>Prefix identifying one or more objects to which the rule applies.</p>
|
|
@@ -4387,6 +4397,8 @@ export declare namespace LifecycleRuleFilter {
|
|
|
4387
4397
|
interface PrefixMember {
|
|
4388
4398
|
Prefix: string;
|
|
4389
4399
|
Tag?: never;
|
|
4400
|
+
ObjectSizeGreaterThan?: never;
|
|
4401
|
+
ObjectSizeLessThan?: never;
|
|
4390
4402
|
And?: never;
|
|
4391
4403
|
$unknown?: never;
|
|
4392
4404
|
}
|
|
@@ -4396,6 +4408,30 @@ export declare namespace LifecycleRuleFilter {
|
|
|
4396
4408
|
interface TagMember {
|
|
4397
4409
|
Prefix?: never;
|
|
4398
4410
|
Tag: Tag;
|
|
4411
|
+
ObjectSizeGreaterThan?: never;
|
|
4412
|
+
ObjectSizeLessThan?: never;
|
|
4413
|
+
And?: never;
|
|
4414
|
+
$unknown?: never;
|
|
4415
|
+
}
|
|
4416
|
+
/**
|
|
4417
|
+
* <p>Minimum object size to which the rule applies.</p>
|
|
4418
|
+
*/
|
|
4419
|
+
interface ObjectSizeGreaterThanMember {
|
|
4420
|
+
Prefix?: never;
|
|
4421
|
+
Tag?: never;
|
|
4422
|
+
ObjectSizeGreaterThan: number;
|
|
4423
|
+
ObjectSizeLessThan?: never;
|
|
4424
|
+
And?: never;
|
|
4425
|
+
$unknown?: never;
|
|
4426
|
+
}
|
|
4427
|
+
/**
|
|
4428
|
+
* <p>Maximum object size to which the rule applies.</p>
|
|
4429
|
+
*/
|
|
4430
|
+
interface ObjectSizeLessThanMember {
|
|
4431
|
+
Prefix?: never;
|
|
4432
|
+
Tag?: never;
|
|
4433
|
+
ObjectSizeGreaterThan?: never;
|
|
4434
|
+
ObjectSizeLessThan: number;
|
|
4399
4435
|
And?: never;
|
|
4400
4436
|
$unknown?: never;
|
|
4401
4437
|
}
|
|
@@ -4407,18 +4443,24 @@ export declare namespace LifecycleRuleFilter {
|
|
|
4407
4443
|
interface AndMember {
|
|
4408
4444
|
Prefix?: never;
|
|
4409
4445
|
Tag?: never;
|
|
4446
|
+
ObjectSizeGreaterThan?: never;
|
|
4447
|
+
ObjectSizeLessThan?: never;
|
|
4410
4448
|
And: LifecycleRuleAndOperator;
|
|
4411
4449
|
$unknown?: never;
|
|
4412
4450
|
}
|
|
4413
4451
|
interface $UnknownMember {
|
|
4414
4452
|
Prefix?: never;
|
|
4415
4453
|
Tag?: never;
|
|
4454
|
+
ObjectSizeGreaterThan?: never;
|
|
4455
|
+
ObjectSizeLessThan?: never;
|
|
4416
4456
|
And?: never;
|
|
4417
4457
|
$unknown: [string, any];
|
|
4418
4458
|
}
|
|
4419
4459
|
interface Visitor<T> {
|
|
4420
4460
|
Prefix: (value: string) => T;
|
|
4421
4461
|
Tag: (value: Tag) => T;
|
|
4462
|
+
ObjectSizeGreaterThan: (value: number) => T;
|
|
4463
|
+
ObjectSizeLessThan: (value: number) => T;
|
|
4422
4464
|
And: (value: LifecycleRuleAndOperator) => T;
|
|
4423
4465
|
_: (name: string, value: any) => T;
|
|
4424
4466
|
}
|
|
@@ -4441,6 +4483,13 @@ export interface NoncurrentVersionExpiration {
|
|
|
4441
4483
|
* Amazon S3 Calculates When an Object Became Noncurrent</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
4442
4484
|
*/
|
|
4443
4485
|
NoncurrentDays?: number;
|
|
4486
|
+
/**
|
|
4487
|
+
* <p>Specifies how many noncurrent versions Amazon S3 will retain. If there are this many more recent
|
|
4488
|
+
* noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent
|
|
4489
|
+
* versions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html">Lifecycle configuration elements</a>
|
|
4490
|
+
* in the <i>Amazon S3 User Guide</i>.</p>
|
|
4491
|
+
*/
|
|
4492
|
+
NewerNoncurrentVersions?: number;
|
|
4444
4493
|
}
|
|
4445
4494
|
export declare namespace NoncurrentVersionExpiration {
|
|
4446
4495
|
/**
|
|
@@ -4471,6 +4520,13 @@ export interface NoncurrentVersionTransition {
|
|
|
4471
4520
|
* <p>The class of storage used to store the object.</p>
|
|
4472
4521
|
*/
|
|
4473
4522
|
StorageClass?: TransitionStorageClass | string;
|
|
4523
|
+
/**
|
|
4524
|
+
* <p>Specifies how many noncurrent versions Amazon S3 will retain. If there are this many more recent
|
|
4525
|
+
* noncurrent versions, Amazon S3 will take the associated action. For more information about noncurrent
|
|
4526
|
+
* versions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html">Lifecycle configuration elements</a>
|
|
4527
|
+
* in the <i>Amazon S3 User Guide</i>.</p>
|
|
4528
|
+
*/
|
|
4529
|
+
NewerNoncurrentVersions?: number;
|
|
4474
4530
|
}
|
|
4475
4531
|
export declare namespace NoncurrentVersionTransition {
|
|
4476
4532
|
/**
|
|
@@ -1236,18 +1236,24 @@ export interface LifecycleRuleAndOperator {
|
|
|
1236
1236
|
Prefix?: string;
|
|
1237
1237
|
|
|
1238
1238
|
Tags?: Tag[];
|
|
1239
|
+
|
|
1240
|
+
ObjectSizeGreaterThan?: number;
|
|
1241
|
+
|
|
1242
|
+
ObjectSizeLessThan?: number;
|
|
1239
1243
|
}
|
|
1240
1244
|
export declare namespace LifecycleRuleAndOperator {
|
|
1241
1245
|
|
|
1242
1246
|
const filterSensitiveLog: (obj: LifecycleRuleAndOperator) => any;
|
|
1243
1247
|
}
|
|
1244
1248
|
|
|
1245
|
-
export declare type LifecycleRuleFilter = LifecycleRuleFilter.AndMember | LifecycleRuleFilter.PrefixMember | LifecycleRuleFilter.TagMember | LifecycleRuleFilter.$UnknownMember;
|
|
1249
|
+
export declare type LifecycleRuleFilter = LifecycleRuleFilter.AndMember | LifecycleRuleFilter.ObjectSizeGreaterThanMember | LifecycleRuleFilter.ObjectSizeLessThanMember | LifecycleRuleFilter.PrefixMember | LifecycleRuleFilter.TagMember | LifecycleRuleFilter.$UnknownMember;
|
|
1246
1250
|
export declare namespace LifecycleRuleFilter {
|
|
1247
1251
|
|
|
1248
1252
|
interface PrefixMember {
|
|
1249
1253
|
Prefix: string;
|
|
1250
1254
|
Tag?: never;
|
|
1255
|
+
ObjectSizeGreaterThan?: never;
|
|
1256
|
+
ObjectSizeLessThan?: never;
|
|
1251
1257
|
And?: never;
|
|
1252
1258
|
$unknown?: never;
|
|
1253
1259
|
}
|
|
@@ -1255,6 +1261,26 @@ export declare namespace LifecycleRuleFilter {
|
|
|
1255
1261
|
interface TagMember {
|
|
1256
1262
|
Prefix?: never;
|
|
1257
1263
|
Tag: Tag;
|
|
1264
|
+
ObjectSizeGreaterThan?: never;
|
|
1265
|
+
ObjectSizeLessThan?: never;
|
|
1266
|
+
And?: never;
|
|
1267
|
+
$unknown?: never;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
interface ObjectSizeGreaterThanMember {
|
|
1271
|
+
Prefix?: never;
|
|
1272
|
+
Tag?: never;
|
|
1273
|
+
ObjectSizeGreaterThan: number;
|
|
1274
|
+
ObjectSizeLessThan?: never;
|
|
1275
|
+
And?: never;
|
|
1276
|
+
$unknown?: never;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
interface ObjectSizeLessThanMember {
|
|
1280
|
+
Prefix?: never;
|
|
1281
|
+
Tag?: never;
|
|
1282
|
+
ObjectSizeGreaterThan?: never;
|
|
1283
|
+
ObjectSizeLessThan: number;
|
|
1258
1284
|
And?: never;
|
|
1259
1285
|
$unknown?: never;
|
|
1260
1286
|
}
|
|
@@ -1262,12 +1288,16 @@ export declare namespace LifecycleRuleFilter {
|
|
|
1262
1288
|
interface AndMember {
|
|
1263
1289
|
Prefix?: never;
|
|
1264
1290
|
Tag?: never;
|
|
1291
|
+
ObjectSizeGreaterThan?: never;
|
|
1292
|
+
ObjectSizeLessThan?: never;
|
|
1265
1293
|
And: LifecycleRuleAndOperator;
|
|
1266
1294
|
$unknown?: never;
|
|
1267
1295
|
}
|
|
1268
1296
|
interface $UnknownMember {
|
|
1269
1297
|
Prefix?: never;
|
|
1270
1298
|
Tag?: never;
|
|
1299
|
+
ObjectSizeGreaterThan?: never;
|
|
1300
|
+
ObjectSizeLessThan?: never;
|
|
1271
1301
|
And?: never;
|
|
1272
1302
|
$unknown: [
|
|
1273
1303
|
string,
|
|
@@ -1277,6 +1307,8 @@ export declare namespace LifecycleRuleFilter {
|
|
|
1277
1307
|
interface Visitor<T> {
|
|
1278
1308
|
Prefix: (value: string) => T;
|
|
1279
1309
|
Tag: (value: Tag) => T;
|
|
1310
|
+
ObjectSizeGreaterThan: (value: number) => T;
|
|
1311
|
+
ObjectSizeLessThan: (value: number) => T;
|
|
1280
1312
|
And: (value: LifecycleRuleAndOperator) => T;
|
|
1281
1313
|
_: (name: string, value: any) => T;
|
|
1282
1314
|
}
|
|
@@ -1288,6 +1320,8 @@ export declare namespace LifecycleRuleFilter {
|
|
|
1288
1320
|
export interface NoncurrentVersionExpiration {
|
|
1289
1321
|
|
|
1290
1322
|
NoncurrentDays?: number;
|
|
1323
|
+
|
|
1324
|
+
NewerNoncurrentVersions?: number;
|
|
1291
1325
|
}
|
|
1292
1326
|
export declare namespace NoncurrentVersionExpiration {
|
|
1293
1327
|
|
|
@@ -1300,6 +1334,8 @@ export interface NoncurrentVersionTransition {
|
|
|
1300
1334
|
NoncurrentDays?: number;
|
|
1301
1335
|
|
|
1302
1336
|
StorageClass?: TransitionStorageClass | string;
|
|
1337
|
+
|
|
1338
|
+
NewerNoncurrentVersions?: number;
|
|
1303
1339
|
}
|
|
1304
1340
|
export declare namespace NoncurrentVersionTransition {
|
|
1305
1341
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.43.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
26
|
+
"@aws-sdk/client-sts": "3.43.0",
|
|
27
27
|
"@aws-sdk/config-resolver": "3.40.0",
|
|
28
28
|
"@aws-sdk/credential-provider-node": "3.41.0",
|
|
29
29
|
"@aws-sdk/eventstream-serde-browser": "3.40.0",
|