@aws-sdk/client-s3 3.40.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/endpoints.js +24 -0
  3. package/dist-cjs/models/models_0.js +8 -0
  4. package/dist-cjs/protocols/Aws_restXml.js +62 -0
  5. package/dist-es/endpoints.js +24 -0
  6. package/dist-es/models/models_0.js +8 -0
  7. package/dist-es/protocols/Aws_restXml.js +62 -0
  8. package/dist-types/S3.d.ts +11 -4
  9. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +1 -1
  10. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +5 -1
  11. package/dist-types/commands/CopyObjectCommand.d.ts +1 -1
  12. package/dist-types/commands/CreateBucketCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +1 -1
  14. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteBucketCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +1 -1
  26. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteObjectCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +1 -1
  29. package/dist-types/commands/DeleteObjectsCommand.d.ts +1 -1
  30. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -1
  31. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -1
  32. package/dist-types/commands/GetBucketAclCommand.d.ts +1 -1
  33. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -1
  34. package/dist-types/commands/GetBucketCorsCommand.d.ts +1 -1
  35. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +1 -1
  36. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  37. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  38. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +1 -1
  39. package/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
  40. package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -1
  41. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -1
  42. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -1
  43. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -1
  44. package/dist-types/commands/GetBucketPolicyCommand.d.ts +1 -1
  45. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -1
  46. package/dist-types/commands/GetBucketReplicationCommand.d.ts +1 -1
  47. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +1 -1
  48. package/dist-types/commands/GetBucketTaggingCommand.d.ts +1 -1
  49. package/dist-types/commands/GetBucketVersioningCommand.d.ts +1 -1
  50. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +1 -1
  51. package/dist-types/commands/GetObjectAclCommand.d.ts +1 -1
  52. package/dist-types/commands/GetObjectCommand.d.ts +8 -5
  53. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -1
  54. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -1
  55. package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -1
  56. package/dist-types/commands/GetObjectTaggingCommand.d.ts +1 -1
  57. package/dist-types/commands/GetObjectTorrentCommand.d.ts +1 -1
  58. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -1
  59. package/dist-types/commands/HeadBucketCommand.d.ts +1 -1
  60. package/dist-types/commands/HeadObjectCommand.d.ts +1 -1
  61. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -1
  62. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -1
  63. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  64. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -1
  65. package/dist-types/commands/ListBucketsCommand.d.ts +1 -1
  66. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +1 -1
  67. package/dist-types/commands/ListObjectVersionsCommand.d.ts +1 -1
  68. package/dist-types/commands/ListObjectsCommand.d.ts +1 -1
  69. package/dist-types/commands/ListObjectsV2Command.d.ts +1 -1
  70. package/dist-types/commands/ListPartsCommand.d.ts +1 -1
  71. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
  72. package/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
  73. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
  74. package/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
  75. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +1 -1
  76. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  77. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  78. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +1 -1
  79. package/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
  80. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  81. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
  82. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
  83. package/dist-types/commands/PutBucketPolicyCommand.d.ts +1 -1
  84. package/dist-types/commands/PutBucketReplicationCommand.d.ts +1 -1
  85. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  86. package/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
  87. package/dist-types/commands/PutBucketVersioningCommand.d.ts +1 -1
  88. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +1 -1
  89. package/dist-types/commands/PutObjectAclCommand.d.ts +1 -1
  90. package/dist-types/commands/PutObjectCommand.d.ts +1 -1
  91. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  92. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +1 -1
  93. package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -1
  94. package/dist-types/commands/PutObjectTaggingCommand.d.ts +1 -1
  95. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  96. package/dist-types/commands/RestoreObjectCommand.d.ts +1 -1
  97. package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -1
  98. package/dist-types/commands/UploadPartCommand.d.ts +1 -1
  99. package/dist-types/commands/UploadPartCopyCommand.d.ts +1 -1
  100. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -1
  101. package/dist-types/models/models_0.d.ts +57 -1
  102. package/dist-types/ts3.4/models/models_0.d.ts +37 -1
  103. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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
+
17
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** merge default variants by comparing tags ([#3044](https://github.com/aws/aws-sdk-js-v3/issues/3044)) ([d65a310](https://github.com/aws/aws-sdk-js-v3/commit/d65a310ed5a471e72633a18ae6f3c98390e20783))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
29
+
30
+
31
+ ### Features
32
+
33
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
34
+
35
+
36
+
37
+
38
+
39
+ ## [3.40.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.0...v3.40.1) (2021-11-08)
40
+
41
+ **Note:** Version bump only for package @aws-sdk/client-s3
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
48
 
8
49
 
@@ -408,6 +408,10 @@ const partitionHash = {
408
408
  hostname: "s3.{region}.amazonaws.com",
409
409
  tags: [],
410
410
  },
411
+ {
412
+ hostname: "s3-fips.{region}.amazonaws.com",
413
+ tags: ["fips"],
414
+ },
411
415
  {
412
416
  hostname: "s3-fips.dualstack.{region}.amazonaws.com",
413
417
  tags: ["dualstack", "fips"],
@@ -426,6 +430,14 @@ const partitionHash = {
426
430
  hostname: "s3.{region}.amazonaws.com.cn",
427
431
  tags: [],
428
432
  },
433
+ {
434
+ hostname: "s3-fips.{region}.amazonaws.com.cn",
435
+ tags: ["fips"],
436
+ },
437
+ {
438
+ hostname: "s3-fips.{region}.api.amazonwebservices.com.cn",
439
+ tags: ["dualstack", "fips"],
440
+ },
429
441
  {
430
442
  hostname: "s3.dualstack.{region}.amazonaws.com.cn",
431
443
  tags: ["dualstack"],
@@ -440,6 +452,10 @@ const partitionHash = {
440
452
  hostname: "s3.{region}.c2s.ic.gov",
441
453
  tags: [],
442
454
  },
455
+ {
456
+ hostname: "s3-fips.{region}.c2s.ic.gov",
457
+ tags: ["fips"],
458
+ },
443
459
  ],
444
460
  },
445
461
  "aws-iso-b": {
@@ -450,6 +466,10 @@ const partitionHash = {
450
466
  hostname: "s3.{region}.sc2s.sgov.gov",
451
467
  tags: [],
452
468
  },
469
+ {
470
+ hostname: "s3-fips.{region}.sc2s.sgov.gov",
471
+ tags: ["fips"],
472
+ },
453
473
  ],
454
474
  },
455
475
  "aws-us-gov": {
@@ -460,6 +480,10 @@ const partitionHash = {
460
480
  hostname: "s3.{region}.amazonaws.com",
461
481
  tags: [],
462
482
  },
483
+ {
484
+ hostname: "s3-fips.{region}.amazonaws.com",
485
+ tags: ["fips"],
486
+ },
463
487
  {
464
488
  hostname: "s3-fips.dualstack.{region}.amazonaws.com",
465
489
  tags: ["dualstack", "fips"],
@@ -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) => {
@@ -406,6 +406,10 @@ var partitionHash = {
406
406
  hostname: "s3.{region}.amazonaws.com",
407
407
  tags: [],
408
408
  },
409
+ {
410
+ hostname: "s3-fips.{region}.amazonaws.com",
411
+ tags: ["fips"],
412
+ },
409
413
  {
410
414
  hostname: "s3-fips.dualstack.{region}.amazonaws.com",
411
415
  tags: ["dualstack", "fips"],
@@ -424,6 +428,14 @@ var partitionHash = {
424
428
  hostname: "s3.{region}.amazonaws.com.cn",
425
429
  tags: [],
426
430
  },
431
+ {
432
+ hostname: "s3-fips.{region}.amazonaws.com.cn",
433
+ tags: ["fips"],
434
+ },
435
+ {
436
+ hostname: "s3-fips.{region}.api.amazonwebservices.com.cn",
437
+ tags: ["dualstack", "fips"],
438
+ },
427
439
  {
428
440
  hostname: "s3.dualstack.{region}.amazonaws.com.cn",
429
441
  tags: ["dualstack"],
@@ -438,6 +450,10 @@ var partitionHash = {
438
450
  hostname: "s3.{region}.c2s.ic.gov",
439
451
  tags: [],
440
452
  },
453
+ {
454
+ hostname: "s3-fips.{region}.c2s.ic.gov",
455
+ tags: ["fips"],
456
+ },
441
457
  ],
442
458
  },
443
459
  "aws-iso-b": {
@@ -448,6 +464,10 @@ var partitionHash = {
448
464
  hostname: "s3.{region}.sc2s.sgov.gov",
449
465
  tags: [],
450
466
  },
467
+ {
468
+ hostname: "s3-fips.{region}.sc2s.sgov.gov",
469
+ tags: ["fips"],
470
+ },
451
471
  ],
452
472
  },
453
473
  "aws-us-gov": {
@@ -458,6 +478,10 @@ var partitionHash = {
458
478
  hostname: "s3.{region}.amazonaws.com",
459
479
  tags: [],
460
480
  },
481
+ {
482
+ hostname: "s3-fips.{region}.amazonaws.com",
483
+ tags: ["fips"],
484
+ },
461
485
  {
462
486
  hostname: "s3-fips.dualstack.{region}.amazonaws.com",
463
487
  tags: ["dualstack", "fips"],
@@ -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) {
@@ -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>You need the <code>s3:GetObjectVersion</code> permission to access a specific version of an object.
2081
- * </p>
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
- * object was deleted and includes <code>x-amz-delete-marker: true</code> in the
2086
- * response.</p>
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>
@@ -58,7 +58,7 @@ export interface AbortMultipartUploadCommandOutput extends AbortMultipartUploadO
58
58
  *
59
59
  * @see {@link AbortMultipartUploadCommandInput} for command's `input` shape.
60
60
  * @see {@link AbortMultipartUploadCommandOutput} for command's `response` shape.
61
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
61
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
62
62
  *
63
63
  */
64
64
  export declare class AbortMultipartUploadCommand extends $Command<AbortMultipartUploadCommandInput, AbortMultipartUploadCommandOutput, S3ClientResolvedConfig> {
@@ -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
@@ -129,7 +133,7 @@ export interface CompleteMultipartUploadCommandOutput extends CompleteMultipartU
129
133
  *
130
134
  * @see {@link CompleteMultipartUploadCommandInput} for command's `input` shape.
131
135
  * @see {@link CompleteMultipartUploadCommandOutput} for command's `response` shape.
132
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
136
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
133
137
  *
134
138
  */
135
139
  export declare class CompleteMultipartUploadCommand extends $Command<CompleteMultipartUploadCommandInput, CompleteMultipartUploadCommandOutput, S3ClientResolvedConfig> {
@@ -189,7 +189,7 @@ export interface CopyObjectCommandOutput extends CopyObjectOutput, __MetadataBea
189
189
  *
190
190
  * @see {@link CopyObjectCommandInput} for command's `input` shape.
191
191
  * @see {@link CopyObjectCommandOutput} for command's `response` shape.
192
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
192
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
193
193
  *
194
194
  */
195
195
  export declare class CopyObjectCommand extends $Command<CopyObjectCommandInput, CopyObjectCommandOutput, S3ClientResolvedConfig> {
@@ -138,7 +138,7 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat
138
138
  *
139
139
  * @see {@link CreateBucketCommandInput} for command's `input` shape.
140
140
  * @see {@link CreateBucketCommandOutput} for command's `response` shape.
141
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
141
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
142
142
  *
143
143
  */
144
144
  export declare class CreateBucketCommand extends $Command<CreateBucketCommandInput, CreateBucketCommandOutput, S3ClientResolvedConfig> {
@@ -277,7 +277,7 @@ export interface CreateMultipartUploadCommandOutput extends CreateMultipartUploa
277
277
  *
278
278
  * @see {@link CreateMultipartUploadCommandInput} for command's `input` shape.
279
279
  * @see {@link CreateMultipartUploadCommandOutput} for command's `response` shape.
280
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
280
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
281
281
  *
282
282
  */
283
283
  export declare class CreateMultipartUploadCommand extends $Command<CreateMultipartUploadCommandInput, CreateMultipartUploadCommandOutput, S3ClientResolvedConfig> {
@@ -49,7 +49,7 @@ export interface DeleteBucketAnalyticsConfigurationCommandOutput extends __Metad
49
49
  *
50
50
  * @see {@link DeleteBucketAnalyticsConfigurationCommandInput} for command's `input` shape.
51
51
  * @see {@link DeleteBucketAnalyticsConfigurationCommandOutput} for command's `response` shape.
52
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
52
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
53
53
  *
54
54
  */
55
55
  export declare class DeleteBucketAnalyticsConfigurationCommand extends $Command<DeleteBucketAnalyticsConfigurationCommandInput, DeleteBucketAnalyticsConfigurationCommandOutput, S3ClientResolvedConfig> {
@@ -37,7 +37,7 @@ export interface DeleteBucketCommandOutput extends __MetadataBearer {
37
37
  *
38
38
  * @see {@link DeleteBucketCommandInput} for command's `input` shape.
39
39
  * @see {@link DeleteBucketCommandOutput} for command's `response` shape.
40
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
40
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
41
41
  *
42
42
  */
43
43
  export declare class DeleteBucketCommand extends $Command<DeleteBucketCommandInput, DeleteBucketCommandOutput, S3ClientResolvedConfig> {
@@ -41,7 +41,7 @@ export interface DeleteBucketCorsCommandOutput extends __MetadataBearer {
41
41
  *
42
42
  * @see {@link DeleteBucketCorsCommandInput} for command's `input` shape.
43
43
  * @see {@link DeleteBucketCorsCommandOutput} for command's `response` shape.
44
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
44
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
45
45
  *
46
46
  */
47
47
  export declare class DeleteBucketCorsCommand extends $Command<DeleteBucketCorsCommandInput, DeleteBucketCorsCommandOutput, S3ClientResolvedConfig> {
@@ -43,7 +43,7 @@ export interface DeleteBucketEncryptionCommandOutput extends __MetadataBearer {
43
43
  *
44
44
  * @see {@link DeleteBucketEncryptionCommandInput} for command's `input` shape.
45
45
  * @see {@link DeleteBucketEncryptionCommandOutput} for command's `response` shape.
46
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
46
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
47
47
  *
48
48
  */
49
49
  export declare class DeleteBucketEncryptionCommand extends $Command<DeleteBucketEncryptionCommandInput, DeleteBucketEncryptionCommandOutput, S3ClientResolvedConfig> {
@@ -42,7 +42,7 @@ export interface DeleteBucketIntelligentTieringConfigurationCommandOutput extend
42
42
  *
43
43
  * @see {@link DeleteBucketIntelligentTieringConfigurationCommandInput} for command's `input` shape.
44
44
  * @see {@link DeleteBucketIntelligentTieringConfigurationCommandOutput} for command's `response` shape.
45
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
45
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
46
46
  *
47
47
  */
48
48
  export declare class DeleteBucketIntelligentTieringConfigurationCommand extends $Command<DeleteBucketIntelligentTieringConfigurationCommandInput, DeleteBucketIntelligentTieringConfigurationCommandOutput, S3ClientResolvedConfig> {
@@ -45,7 +45,7 @@ export interface DeleteBucketInventoryConfigurationCommandOutput extends __Metad
45
45
  *
46
46
  * @see {@link DeleteBucketInventoryConfigurationCommandInput} for command's `input` shape.
47
47
  * @see {@link DeleteBucketInventoryConfigurationCommandOutput} for command's `response` shape.
48
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
48
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
49
49
  *
50
50
  */
51
51
  export declare class DeleteBucketInventoryConfigurationCommand extends $Command<DeleteBucketInventoryConfigurationCommandInput, DeleteBucketInventoryConfigurationCommandOutput, S3ClientResolvedConfig> {
@@ -45,7 +45,7 @@ export interface DeleteBucketLifecycleCommandOutput extends __MetadataBearer {
45
45
  *
46
46
  * @see {@link DeleteBucketLifecycleCommandInput} for command's `input` shape.
47
47
  * @see {@link DeleteBucketLifecycleCommandOutput} for command's `response` shape.
48
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
48
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
49
49
  *
50
50
  */
51
51
  export declare class DeleteBucketLifecycleCommand extends $Command<DeleteBucketLifecycleCommandInput, DeleteBucketLifecycleCommandOutput, S3ClientResolvedConfig> {
@@ -55,7 +55,7 @@ export interface DeleteBucketMetricsConfigurationCommandOutput extends __Metadat
55
55
  *
56
56
  * @see {@link DeleteBucketMetricsConfigurationCommandInput} for command's `input` shape.
57
57
  * @see {@link DeleteBucketMetricsConfigurationCommandOutput} for command's `response` shape.
58
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
58
+ * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
59
59
  *
60
60
  */
61
61
  export declare class DeleteBucketMetricsConfigurationCommand extends $Command<DeleteBucketMetricsConfigurationCommandInput, DeleteBucketMetricsConfigurationCommandOutput, S3ClientResolvedConfig> {