@aws-sdk/client-s3 3.697.0 → 3.698.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/dist-cjs/index.js +152 -5
  2. package/dist-es/models/models_1.js +48 -0
  3. package/dist-es/protocols/Aws_restXml.js +75 -4
  4. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +16 -13
  5. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +47 -42
  6. package/dist-types/commands/CopyObjectCommand.d.ts +77 -57
  7. package/dist-types/commands/CreateBucketCommand.d.ts +60 -45
  8. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +92 -66
  9. package/dist-types/commands/CreateSessionCommand.d.ts +30 -16
  10. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteBucketCommand.d.ts +10 -3
  12. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +1 -1
  13. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +18 -10
  14. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +52 -9
  17. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +25 -21
  20. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteObjectCommand.d.ts +3 -0
  24. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteObjectsCommand.d.ts +41 -27
  26. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -1
  27. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -1
  28. package/dist-types/commands/GetBucketAclCommand.d.ts +1 -1
  29. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -1
  30. package/dist-types/commands/GetBucketCorsCommand.d.ts +1 -1
  31. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +18 -10
  32. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  33. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  34. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +61 -17
  35. package/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
  36. package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -1
  37. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -1
  38. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -1
  39. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -1
  40. package/dist-types/commands/GetBucketPolicyCommand.d.ts +30 -21
  41. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -1
  42. package/dist-types/commands/GetBucketReplicationCommand.d.ts +1 -1
  43. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +1 -1
  44. package/dist-types/commands/GetBucketTaggingCommand.d.ts +1 -1
  45. package/dist-types/commands/GetBucketVersioningCommand.d.ts +1 -1
  46. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +1 -1
  47. package/dist-types/commands/GetObjectAclCommand.d.ts +1 -1
  48. package/dist-types/commands/GetObjectAttributesCommand.d.ts +62 -44
  49. package/dist-types/commands/GetObjectCommand.d.ts +79 -60
  50. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -1
  51. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -1
  52. package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -1
  53. package/dist-types/commands/GetObjectTaggingCommand.d.ts +1 -1
  54. package/dist-types/commands/GetObjectTorrentCommand.d.ts +1 -1
  55. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -1
  56. package/dist-types/commands/HeadBucketCommand.d.ts +32 -16
  57. package/dist-types/commands/HeadObjectCommand.d.ts +60 -38
  58. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -1
  59. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -1
  60. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  61. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -1
  62. package/dist-types/commands/ListBucketsCommand.d.ts +6 -6
  63. package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +10 -4
  64. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +50 -33
  65. package/dist-types/commands/ListObjectVersionsCommand.d.ts +1 -1
  66. package/dist-types/commands/ListObjectsCommand.d.ts +1 -1
  67. package/dist-types/commands/ListObjectsV2Command.d.ts +23 -14
  68. package/dist-types/commands/ListPartsCommand.d.ts +22 -17
  69. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
  70. package/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
  71. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
  72. package/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
  73. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +47 -32
  74. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  75. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  76. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +84 -45
  77. package/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
  78. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  79. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
  80. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
  81. package/dist-types/commands/PutBucketPolicyCommand.d.ts +30 -21
  82. package/dist-types/commands/PutBucketReplicationCommand.d.ts +3 -4
  83. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  84. package/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
  85. package/dist-types/commands/PutBucketVersioningCommand.d.ts +3 -6
  86. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +1 -1
  87. package/dist-types/commands/PutObjectAclCommand.d.ts +1 -1
  88. package/dist-types/commands/PutObjectCommand.d.ts +83 -35
  89. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  90. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +3 -3
  91. package/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -2
  92. package/dist-types/commands/PutObjectTaggingCommand.d.ts +1 -1
  93. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  94. package/dist-types/commands/RestoreObjectCommand.d.ts +1 -1
  95. package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -1
  96. package/dist-types/commands/UploadPartCommand.d.ts +52 -41
  97. package/dist-types/commands/UploadPartCopyCommand.d.ts +53 -39
  98. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -1
  99. package/dist-types/models/models_0.d.ts +938 -632
  100. package/dist-types/models/models_1.d.ts +230 -135
  101. package/dist-types/ts3.4/models/models_0.d.ts +7 -0
  102. package/dist-types/ts3.4/models/models_1.d.ts +24 -0
  103. package/package.json +1 -1
package/dist-cjs/index.js CHANGED
@@ -70,6 +70,7 @@ __export(src_exports, {
70
70
  DeletePublicAccessBlockCommand: () => DeletePublicAccessBlockCommand,
71
71
  EncodingType: () => EncodingType,
72
72
  EncryptionFilterSensitiveLog: () => EncryptionFilterSensitiveLog,
73
+ EncryptionTypeMismatch: () => EncryptionTypeMismatch,
73
74
  Event: () => Event,
74
75
  ExistingObjectReplicationStatus: () => ExistingObjectReplicationStatus,
75
76
  ExpirationStatus: () => ExpirationStatus,
@@ -118,6 +119,8 @@ __export(src_exports, {
118
119
  IntelligentTieringAccessTier: () => IntelligentTieringAccessTier,
119
120
  IntelligentTieringStatus: () => IntelligentTieringStatus,
120
121
  InvalidObjectState: () => InvalidObjectState,
122
+ InvalidRequest: () => InvalidRequest,
123
+ InvalidWriteOffset: () => InvalidWriteOffset,
121
124
  InventoryConfigurationFilterSensitiveLog: () => InventoryConfigurationFilterSensitiveLog,
122
125
  InventoryDestinationFilterSensitiveLog: () => InventoryDestinationFilterSensitiveLog,
123
126
  InventoryEncryptionFilterSensitiveLog: () => InventoryEncryptionFilterSensitiveLog,
@@ -229,6 +232,7 @@ __export(src_exports, {
229
232
  StorageClassAnalysisSchemaVersion: () => StorageClassAnalysisSchemaVersion,
230
233
  TaggingDirective: () => TaggingDirective,
231
234
  Tier: () => Tier,
235
+ TooManyParts: () => TooManyParts,
232
236
  TransitionDefaultMinimumObjectSize: () => TransitionDefaultMinimumObjectSize,
233
237
  TransitionStorageClass: () => TransitionStorageClass,
234
238
  Type: () => Type,
@@ -973,6 +977,74 @@ var MFADelete = {
973
977
  Disabled: "Disabled",
974
978
  Enabled: "Enabled"
975
979
  };
980
+ var _EncryptionTypeMismatch = class _EncryptionTypeMismatch extends S3ServiceException {
981
+ /**
982
+ * @internal
983
+ */
984
+ constructor(opts) {
985
+ super({
986
+ name: "EncryptionTypeMismatch",
987
+ $fault: "client",
988
+ ...opts
989
+ });
990
+ this.name = "EncryptionTypeMismatch";
991
+ this.$fault = "client";
992
+ Object.setPrototypeOf(this, _EncryptionTypeMismatch.prototype);
993
+ }
994
+ };
995
+ __name(_EncryptionTypeMismatch, "EncryptionTypeMismatch");
996
+ var EncryptionTypeMismatch = _EncryptionTypeMismatch;
997
+ var _InvalidRequest = class _InvalidRequest extends S3ServiceException {
998
+ /**
999
+ * @internal
1000
+ */
1001
+ constructor(opts) {
1002
+ super({
1003
+ name: "InvalidRequest",
1004
+ $fault: "client",
1005
+ ...opts
1006
+ });
1007
+ this.name = "InvalidRequest";
1008
+ this.$fault = "client";
1009
+ Object.setPrototypeOf(this, _InvalidRequest.prototype);
1010
+ }
1011
+ };
1012
+ __name(_InvalidRequest, "InvalidRequest");
1013
+ var InvalidRequest = _InvalidRequest;
1014
+ var _InvalidWriteOffset = class _InvalidWriteOffset extends S3ServiceException {
1015
+ /**
1016
+ * @internal
1017
+ */
1018
+ constructor(opts) {
1019
+ super({
1020
+ name: "InvalidWriteOffset",
1021
+ $fault: "client",
1022
+ ...opts
1023
+ });
1024
+ this.name = "InvalidWriteOffset";
1025
+ this.$fault = "client";
1026
+ Object.setPrototypeOf(this, _InvalidWriteOffset.prototype);
1027
+ }
1028
+ };
1029
+ __name(_InvalidWriteOffset, "InvalidWriteOffset");
1030
+ var InvalidWriteOffset = _InvalidWriteOffset;
1031
+ var _TooManyParts = class _TooManyParts extends S3ServiceException {
1032
+ /**
1033
+ * @internal
1034
+ */
1035
+ constructor(opts) {
1036
+ super({
1037
+ name: "TooManyParts",
1038
+ $fault: "client",
1039
+ ...opts
1040
+ });
1041
+ this.name = "TooManyParts";
1042
+ this.$fault = "client";
1043
+ Object.setPrototypeOf(this, _TooManyParts.prototype);
1044
+ }
1045
+ };
1046
+ __name(_TooManyParts, "TooManyParts");
1047
+ var TooManyParts = _TooManyParts;
976
1048
  var _ObjectAlreadyInActiveTierError = class _ObjectAlreadyInActiveTierError extends S3ServiceException {
977
1049
  /**
978
1050
  * @internal
@@ -1115,7 +1187,8 @@ var se_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (input, contex
1115
1187
  const b = (0, import_core2.requestBuilder)(input, context);
1116
1188
  const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1117
1189
  [_xarp]: input[_RP],
1118
- [_xaebo]: input[_EBO]
1190
+ [_xaebo]: input[_EBO],
1191
+ [_xaimit]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMIT]), () => (0, import_smithy_client.dateToUtcString)(input[_IMIT]).toString()]
1119
1192
  });
1120
1193
  b.bp("/{Key+}");
1121
1194
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
@@ -1493,7 +1566,10 @@ var se_DeleteObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
1493
1566
  [_xam]: input[_MFA],
1494
1567
  [_xarp]: input[_RP],
1495
1568
  [_xabgr]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_BGR]), () => input[_BGR].toString()],
1496
- [_xaebo]: input[_EBO]
1569
+ [_xaebo]: input[_EBO],
1570
+ [_im]: input[_IM],
1571
+ [_xaimlmt]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMLMT]), () => (0, import_smithy_client.dateToUtcString)(input[_IMLMT]).toString()],
1572
+ [_xaims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMS]), () => input[_IMS].toString()]
1497
1573
  });
1498
1574
  b.bp("/{Key+}");
1499
1575
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
@@ -1853,7 +1929,7 @@ var se_GetObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
1853
1929
  const b = (0, import_core2.requestBuilder)(input, context);
1854
1930
  const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
1855
1931
  [_im]: input[_IM],
1856
- [_ims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMS]), () => (0, import_smithy_client.dateToUtcString)(input[_IMS]).toString()],
1932
+ [_ims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client.dateToUtcString)(input[_IMSf]).toString()],
1857
1933
  [_inm]: input[_INM],
1858
1934
  [_ius]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client.dateToUtcString)(input[_IUS]).toString()],
1859
1935
  [_ra]: input[_R],
@@ -2032,7 +2108,7 @@ var se_HeadObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
2032
2108
  const b = (0, import_core2.requestBuilder)(input, context);
2033
2109
  const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
2034
2110
  [_im]: input[_IM],
2035
- [_ims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMS]), () => (0, import_smithy_client.dateToUtcString)(input[_IMS]).toString()],
2111
+ [_ims]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IMSf]), () => (0, import_smithy_client.dateToUtcString)(input[_IMSf]).toString()],
2036
2112
  [_inm]: input[_INM],
2037
2113
  [_ius]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_IUS]), () => (0, import_smithy_client.dateToUtcString)(input[_IUS]).toString()],
2038
2114
  [_ra]: input[_R],
@@ -2712,6 +2788,7 @@ var se_PutObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
2712
2788
  [_xagr]: input[_GR],
2713
2789
  [_xagra]: input[_GRACP],
2714
2790
  [_xagwa]: input[_GWACP],
2791
+ [_xawob]: [() => (0, import_smithy_client.isSerializableHeaderValue)(input[_WOB]), () => input[_WOB].toString()],
2715
2792
  [_xasse]: input[_SSE],
2716
2793
  [_xasc]: input[_SC],
2717
2794
  [_xawrl]: input[_WRL],
@@ -4558,6 +4635,7 @@ var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
4558
4635
  [_SSEKMSKI]: [, output.headers[_xasseakki]],
4559
4636
  [_SSEKMSEC]: [, output.headers[_xassec]],
4560
4637
  [_BKE]: [() => void 0 !== output.headers[_xassebke], () => (0, import_smithy_client.parseBoolean)(output.headers[_xassebke])],
4638
+ [_Si]: [() => void 0 !== output.headers[_xaos], () => (0, import_smithy_client.strictParseLong)(output.headers[_xaos])],
4561
4639
  [_RC]: [, output.headers[_xarc]]
4562
4640
  });
4563
4641
  await (0, import_smithy_client.collectBody)(output.body, context);
@@ -4731,6 +4809,18 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
4731
4809
  case "NotFound":
4732
4810
  case "com.amazonaws.s3#NotFound":
4733
4811
  throw await de_NotFoundRes(parsedOutput, context);
4812
+ case "EncryptionTypeMismatch":
4813
+ case "com.amazonaws.s3#EncryptionTypeMismatch":
4814
+ throw await de_EncryptionTypeMismatchRes(parsedOutput, context);
4815
+ case "InvalidRequest":
4816
+ case "com.amazonaws.s3#InvalidRequest":
4817
+ throw await de_InvalidRequestRes(parsedOutput, context);
4818
+ case "InvalidWriteOffset":
4819
+ case "com.amazonaws.s3#InvalidWriteOffset":
4820
+ throw await de_InvalidWriteOffsetRes(parsedOutput, context);
4821
+ case "TooManyParts":
4822
+ case "com.amazonaws.s3#TooManyParts":
4823
+ throw await de_TooManyPartsRes(parsedOutput, context);
4734
4824
  case "ObjectAlreadyInActiveTierError":
4735
4825
  case "com.amazonaws.s3#ObjectAlreadyInActiveTierError":
4736
4826
  throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context);
@@ -4762,6 +4852,15 @@ var de_BucketAlreadyOwnedByYouRes = /* @__PURE__ */ __name(async (parsedOutput,
4762
4852
  });
4763
4853
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4764
4854
  }, "de_BucketAlreadyOwnedByYouRes");
4855
+ var de_EncryptionTypeMismatchRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4856
+ const contents = (0, import_smithy_client.map)({});
4857
+ const data = parsedOutput.body;
4858
+ const exception = new EncryptionTypeMismatch({
4859
+ $metadata: deserializeMetadata(parsedOutput),
4860
+ ...contents
4861
+ });
4862
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4863
+ }, "de_EncryptionTypeMismatchRes");
4765
4864
  var de_InvalidObjectStateRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4766
4865
  const contents = (0, import_smithy_client.map)({});
4767
4866
  const data = parsedOutput.body;
@@ -4777,6 +4876,24 @@ var de_InvalidObjectStateRes = /* @__PURE__ */ __name(async (parsedOutput, conte
4777
4876
  });
4778
4877
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4779
4878
  }, "de_InvalidObjectStateRes");
4879
+ var de_InvalidRequestRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4880
+ const contents = (0, import_smithy_client.map)({});
4881
+ const data = parsedOutput.body;
4882
+ const exception = new InvalidRequest({
4883
+ $metadata: deserializeMetadata(parsedOutput),
4884
+ ...contents
4885
+ });
4886
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4887
+ }, "de_InvalidRequestRes");
4888
+ var de_InvalidWriteOffsetRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4889
+ const contents = (0, import_smithy_client.map)({});
4890
+ const data = parsedOutput.body;
4891
+ const exception = new InvalidWriteOffset({
4892
+ $metadata: deserializeMetadata(parsedOutput),
4893
+ ...contents
4894
+ });
4895
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4896
+ }, "de_InvalidWriteOffsetRes");
4780
4897
  var de_NoSuchBucketRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4781
4898
  const contents = (0, import_smithy_client.map)({});
4782
4899
  const data = parsedOutput.body;
@@ -4831,6 +4948,15 @@ var de_ObjectNotInActiveTierErrorRes = /* @__PURE__ */ __name(async (parsedOutpu
4831
4948
  });
4832
4949
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4833
4950
  }, "de_ObjectNotInActiveTierErrorRes");
4951
+ var de_TooManyPartsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4952
+ const contents = (0, import_smithy_client.map)({});
4953
+ const data = parsedOutput.body;
4954
+ const exception = new TooManyParts({
4955
+ $metadata: deserializeMetadata(parsedOutput),
4956
+ ...contents
4957
+ });
4958
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
4959
+ }, "de_TooManyPartsRes");
4834
4960
  var de_SelectObjectContentEventStream = /* @__PURE__ */ __name((output, context) => {
4835
4961
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
4836
4962
  if (event["Records"] != null) {
@@ -5633,6 +5759,13 @@ var se_ObjectIdentifier = /* @__PURE__ */ __name((input, context) => {
5633
5759
  if (input[_VI] != null) {
5634
5760
  bn.c(import_xml_builder.XmlNode.of(_OVI, input[_VI]).n(_VI));
5635
5761
  }
5762
+ bn.cc(input, _ETa);
5763
+ if (input[_LMT] != null) {
5764
+ bn.c(import_xml_builder.XmlNode.of(_LMT, (0, import_smithy_client.dateToUtcString)(input[_LMT]).toString()).n(_LMT));
5765
+ }
5766
+ if (input[_Si] != null) {
5767
+ bn.c(import_xml_builder.XmlNode.of(_Si, String(input[_Si])).n(_Si));
5768
+ }
5636
5769
  return bn;
5637
5770
  }, "se_ObjectIdentifier");
5638
5771
  var se_ObjectIdentifierList = /* @__PURE__ */ __name((input, context) => {
@@ -7870,7 +8003,10 @@ var _II = "InventoryId";
7870
8003
  var _IIOV = "InventoryIncludedObjectVersions";
7871
8004
  var _IL = "IsLatest";
7872
8005
  var _IM = "IfMatch";
7873
- var _IMS = "IfModifiedSince";
8006
+ var _IMIT = "IfMatchInitiatedTime";
8007
+ var _IMLMT = "IfMatchLastModifiedTime";
8008
+ var _IMS = "IfMatchSize";
8009
+ var _IMSf = "IfModifiedSince";
7874
8010
  var _INM = "IfNoneMatch";
7875
8011
  var _IOF = "InventoryOptionalField";
7876
8012
  var _IOV = "IncludedObjectVersions";
@@ -7913,6 +8049,7 @@ var _LFC = "LambdaFunctionConfigurations";
7913
8049
  var _LFCa = "LambdaFunctionConfiguration";
7914
8050
  var _LI = "LocationInfo";
7915
8051
  var _LM = "LastModified";
8052
+ var _LMT = "LastModifiedTime";
7916
8053
  var _LNAS = "LocationNameAsString";
7917
8054
  var _LP = "LocationPrefix";
7918
8055
  var _LR = "LifecycleRule";
@@ -8139,6 +8276,7 @@ var _VIM = "VersionIdMarker";
8139
8276
  var _Va = "Value";
8140
8277
  var _Ve = "Versions";
8141
8278
  var _WC = "WebsiteConfiguration";
8279
+ var _WOB = "WriteOffsetBytes";
8142
8280
  var _WRL = "WebsiteRedirectLocation";
8143
8281
  var _Y = "Years";
8144
8282
  var _a = "analytics";
@@ -8295,6 +8433,9 @@ var _xagr = "x-amz-grant-read";
8295
8433
  var _xagra = "x-amz-grant-read-acp";
8296
8434
  var _xagw = "x-amz-grant-write";
8297
8435
  var _xagwa = "x-amz-grant-write-acp";
8436
+ var _xaimit = "x-amz-if-match-initiated-time";
8437
+ var _xaimlmt = "x-amz-if-match-last-modified-time";
8438
+ var _xaims = "x-amz-if-match-size";
8298
8439
  var _xam = "x-amz-mfa";
8299
8440
  var _xamd = "x-amz-metadata-directive";
8300
8441
  var _xamm = "x-amz-missing-meta";
@@ -8306,6 +8447,7 @@ var _xaolm = "x-amz-object-lock-mode";
8306
8447
  var _xaolrud = "x-amz-object-lock-retain-until-date";
8307
8448
  var _xaoo = "x-amz-object-ownership";
8308
8449
  var _xaooa = "x-amz-optional-object-attributes";
8450
+ var _xaos = "x-amz-object-size";
8309
8451
  var _xapnm = "x-amz-part-number-marker";
8310
8452
  var _xar = "x-amz-restore";
8311
8453
  var _xarc = "x-amz-request-charged";
@@ -8330,6 +8472,7 @@ var _xatc = "x-amz-tagging-count";
8330
8472
  var _xatd = "x-amz-tagging-directive";
8331
8473
  var _xatdmos = "x-amz-transition-default-minimum-object-size";
8332
8474
  var _xavi = "x-amz-version-id";
8475
+ var _xawob = "x-amz-write-offset-bytes";
8333
8476
  var _xawrl = "x-amz-website-redirect-location";
8334
8477
  var _xi = "x-id";
8335
8478
 
@@ -10848,6 +10991,10 @@ var waitUntilObjectNotExists = /* @__PURE__ */ __name(async (params, input) => {
10848
10991
  PutBucketEncryptionRequestFilterSensitiveLog,
10849
10992
  PutBucketInventoryConfigurationRequestFilterSensitiveLog,
10850
10993
  MFADelete,
10994
+ EncryptionTypeMismatch,
10995
+ InvalidRequest,
10996
+ InvalidWriteOffset,
10997
+ TooManyParts,
10851
10998
  ObjectAlreadyInActiveTierError,
10852
10999
  Tier,
10853
11000
  ExpressionType,
@@ -4,6 +4,54 @@ export const MFADelete = {
4
4
  Disabled: "Disabled",
5
5
  Enabled: "Enabled",
6
6
  };
7
+ export class EncryptionTypeMismatch extends __BaseException {
8
+ constructor(opts) {
9
+ super({
10
+ name: "EncryptionTypeMismatch",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ this.name = "EncryptionTypeMismatch";
15
+ this.$fault = "client";
16
+ Object.setPrototypeOf(this, EncryptionTypeMismatch.prototype);
17
+ }
18
+ }
19
+ export class InvalidRequest extends __BaseException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "InvalidRequest",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "InvalidRequest";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, InvalidRequest.prototype);
29
+ }
30
+ }
31
+ export class InvalidWriteOffset extends __BaseException {
32
+ constructor(opts) {
33
+ super({
34
+ name: "InvalidWriteOffset",
35
+ $fault: "client",
36
+ ...opts,
37
+ });
38
+ this.name = "InvalidWriteOffset";
39
+ this.$fault = "client";
40
+ Object.setPrototypeOf(this, InvalidWriteOffset.prototype);
41
+ }
42
+ }
43
+ export class TooManyParts extends __BaseException {
44
+ constructor(opts) {
45
+ super({
46
+ name: "TooManyParts",
47
+ $fault: "client",
48
+ ...opts,
49
+ });
50
+ this.name = "TooManyParts";
51
+ this.$fault = "client";
52
+ Object.setPrototypeOf(this, TooManyParts.prototype);
53
+ }
54
+ }
7
55
  export class ObjectAlreadyInActiveTierError extends __BaseException {
8
56
  constructor(opts) {
9
57
  super({
@@ -4,13 +4,14 @@ import { requestBuilder as rb } from "@smithy/core";
4
4
  import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
5
5
  import { collectBody, dateToUtcString as __dateToUtcString, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, getArrayIfSingleItem as __getArrayIfSingleItem, isSerializableHeaderValue, map, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, parseRfc7231DateTime as __parseRfc7231DateTime, quoteHeader as __quoteHeader, serializeDateTime as __serializeDateTime, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
6
6
  import { AnalyticsFilter, BucketAlreadyExists, BucketAlreadyOwnedByYou, InvalidObjectState, MetricsFilter, NoSuchBucket, NoSuchKey, NoSuchUpload, NotFound, ObjectNotInActiveTierError, } from "../models/models_0";
7
- import { ObjectAlreadyInActiveTierError, } from "../models/models_1";
7
+ import { EncryptionTypeMismatch, InvalidRequest, InvalidWriteOffset, ObjectAlreadyInActiveTierError, TooManyParts, } from "../models/models_1";
8
8
  import { S3ServiceException as __BaseException } from "../models/S3ServiceException";
9
9
  export const se_AbortMultipartUploadCommand = async (input, context) => {
10
10
  const b = rb(input, context);
11
11
  const headers = map({}, isSerializableHeaderValue, {
12
12
  [_xarp]: input[_RP],
13
13
  [_xaebo]: input[_EBO],
14
+ [_xaimit]: [() => isSerializableHeaderValue(input[_IMIT]), () => __dateToUtcString(input[_IMIT]).toString()],
14
15
  });
15
16
  b.bp("/{Key+}");
16
17
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
@@ -391,6 +392,9 @@ export const se_DeleteObjectCommand = async (input, context) => {
391
392
  [_xarp]: input[_RP],
392
393
  [_xabgr]: [() => isSerializableHeaderValue(input[_BGR]), () => input[_BGR].toString()],
393
394
  [_xaebo]: input[_EBO],
395
+ [_im]: input[_IM],
396
+ [_xaimlmt]: [() => isSerializableHeaderValue(input[_IMLMT]), () => __dateToUtcString(input[_IMLMT]).toString()],
397
+ [_xaims]: [() => isSerializableHeaderValue(input[_IMS]), () => input[_IMS].toString()],
394
398
  });
395
399
  b.bp("/{Key+}");
396
400
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
@@ -750,7 +754,7 @@ export const se_GetObjectCommand = async (input, context) => {
750
754
  const b = rb(input, context);
751
755
  const headers = map({}, isSerializableHeaderValue, {
752
756
  [_im]: input[_IM],
753
- [_ims]: [() => isSerializableHeaderValue(input[_IMS]), () => __dateToUtcString(input[_IMS]).toString()],
757
+ [_ims]: [() => isSerializableHeaderValue(input[_IMSf]), () => __dateToUtcString(input[_IMSf]).toString()],
754
758
  [_inm]: input[_INM],
755
759
  [_ius]: [() => isSerializableHeaderValue(input[_IUS]), () => __dateToUtcString(input[_IUS]).toString()],
756
760
  [_ra]: input[_R],
@@ -929,7 +933,7 @@ export const se_HeadObjectCommand = async (input, context) => {
929
933
  const b = rb(input, context);
930
934
  const headers = map({}, isSerializableHeaderValue, {
931
935
  [_im]: input[_IM],
932
- [_ims]: [() => isSerializableHeaderValue(input[_IMS]), () => __dateToUtcString(input[_IMS]).toString()],
936
+ [_ims]: [() => isSerializableHeaderValue(input[_IMSf]), () => __dateToUtcString(input[_IMSf]).toString()],
933
937
  [_inm]: input[_INM],
934
938
  [_ius]: [() => isSerializableHeaderValue(input[_IUS]), () => __dateToUtcString(input[_IUS]).toString()],
935
939
  [_ra]: input[_R],
@@ -1609,6 +1613,7 @@ export const se_PutObjectCommand = async (input, context) => {
1609
1613
  [_xagr]: input[_GR],
1610
1614
  [_xagra]: input[_GRACP],
1611
1615
  [_xagwa]: input[_GWACP],
1616
+ [_xawob]: [() => isSerializableHeaderValue(input[_WOB]), () => input[_WOB].toString()],
1612
1617
  [_xasse]: input[_SSE],
1613
1618
  [_xasc]: input[_SC],
1614
1619
  [_xawrl]: input[_WRL],
@@ -3489,6 +3494,7 @@ export const de_PutObjectCommand = async (output, context) => {
3489
3494
  [_SSEKMSKI]: [, output.headers[_xasseakki]],
3490
3495
  [_SSEKMSEC]: [, output.headers[_xassec]],
3491
3496
  [_BKE]: [() => void 0 !== output.headers[_xassebke], () => __parseBoolean(output.headers[_xassebke])],
3497
+ [_Si]: [() => void 0 !== output.headers[_xaos], () => __strictParseLong(output.headers[_xaos])],
3492
3498
  [_RC]: [, output.headers[_xarc]],
3493
3499
  });
3494
3500
  await collectBody(output.body, context);
@@ -3662,6 +3668,18 @@ const de_CommandError = async (output, context) => {
3662
3668
  case "NotFound":
3663
3669
  case "com.amazonaws.s3#NotFound":
3664
3670
  throw await de_NotFoundRes(parsedOutput, context);
3671
+ case "EncryptionTypeMismatch":
3672
+ case "com.amazonaws.s3#EncryptionTypeMismatch":
3673
+ throw await de_EncryptionTypeMismatchRes(parsedOutput, context);
3674
+ case "InvalidRequest":
3675
+ case "com.amazonaws.s3#InvalidRequest":
3676
+ throw await de_InvalidRequestRes(parsedOutput, context);
3677
+ case "InvalidWriteOffset":
3678
+ case "com.amazonaws.s3#InvalidWriteOffset":
3679
+ throw await de_InvalidWriteOffsetRes(parsedOutput, context);
3680
+ case "TooManyParts":
3681
+ case "com.amazonaws.s3#TooManyParts":
3682
+ throw await de_TooManyPartsRes(parsedOutput, context);
3665
3683
  case "ObjectAlreadyInActiveTierError":
3666
3684
  case "com.amazonaws.s3#ObjectAlreadyInActiveTierError":
3667
3685
  throw await de_ObjectAlreadyInActiveTierErrorRes(parsedOutput, context);
@@ -3693,6 +3711,15 @@ const de_BucketAlreadyOwnedByYouRes = async (parsedOutput, context) => {
3693
3711
  });
3694
3712
  return __decorateServiceException(exception, parsedOutput.body);
3695
3713
  };
3714
+ const de_EncryptionTypeMismatchRes = async (parsedOutput, context) => {
3715
+ const contents = map({});
3716
+ const data = parsedOutput.body;
3717
+ const exception = new EncryptionTypeMismatch({
3718
+ $metadata: deserializeMetadata(parsedOutput),
3719
+ ...contents,
3720
+ });
3721
+ return __decorateServiceException(exception, parsedOutput.body);
3722
+ };
3696
3723
  const de_InvalidObjectStateRes = async (parsedOutput, context) => {
3697
3724
  const contents = map({});
3698
3725
  const data = parsedOutput.body;
@@ -3708,6 +3735,24 @@ const de_InvalidObjectStateRes = async (parsedOutput, context) => {
3708
3735
  });
3709
3736
  return __decorateServiceException(exception, parsedOutput.body);
3710
3737
  };
3738
+ const de_InvalidRequestRes = async (parsedOutput, context) => {
3739
+ const contents = map({});
3740
+ const data = parsedOutput.body;
3741
+ const exception = new InvalidRequest({
3742
+ $metadata: deserializeMetadata(parsedOutput),
3743
+ ...contents,
3744
+ });
3745
+ return __decorateServiceException(exception, parsedOutput.body);
3746
+ };
3747
+ const de_InvalidWriteOffsetRes = async (parsedOutput, context) => {
3748
+ const contents = map({});
3749
+ const data = parsedOutput.body;
3750
+ const exception = new InvalidWriteOffset({
3751
+ $metadata: deserializeMetadata(parsedOutput),
3752
+ ...contents,
3753
+ });
3754
+ return __decorateServiceException(exception, parsedOutput.body);
3755
+ };
3711
3756
  const de_NoSuchBucketRes = async (parsedOutput, context) => {
3712
3757
  const contents = map({});
3713
3758
  const data = parsedOutput.body;
@@ -3762,6 +3807,15 @@ const de_ObjectNotInActiveTierErrorRes = async (parsedOutput, context) => {
3762
3807
  });
3763
3808
  return __decorateServiceException(exception, parsedOutput.body);
3764
3809
  };
3810
+ const de_TooManyPartsRes = async (parsedOutput, context) => {
3811
+ const contents = map({});
3812
+ const data = parsedOutput.body;
3813
+ const exception = new TooManyParts({
3814
+ $metadata: deserializeMetadata(parsedOutput),
3815
+ ...contents,
3816
+ });
3817
+ return __decorateServiceException(exception, parsedOutput.body);
3818
+ };
3765
3819
  const de_SelectObjectContentEventStream = (output, context) => {
3766
3820
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
3767
3821
  if (event["Records"] != null) {
@@ -4580,6 +4634,13 @@ const se_ObjectIdentifier = (input, context) => {
4580
4634
  if (input[_VI] != null) {
4581
4635
  bn.c(__XmlNode.of(_OVI, input[_VI]).n(_VI));
4582
4636
  }
4637
+ bn.cc(input, _ETa);
4638
+ if (input[_LMT] != null) {
4639
+ bn.c(__XmlNode.of(_LMT, __dateToUtcString(input[_LMT]).toString()).n(_LMT));
4640
+ }
4641
+ if (input[_Si] != null) {
4642
+ bn.c(__XmlNode.of(_Si, String(input[_Si])).n(_Si));
4643
+ }
4583
4644
  return bn;
4584
4645
  };
4585
4646
  const se_ObjectIdentifierList = (input, context) => {
@@ -6941,7 +7002,10 @@ const _II = "InventoryId";
6941
7002
  const _IIOV = "InventoryIncludedObjectVersions";
6942
7003
  const _IL = "IsLatest";
6943
7004
  const _IM = "IfMatch";
6944
- const _IMS = "IfModifiedSince";
7005
+ const _IMIT = "IfMatchInitiatedTime";
7006
+ const _IMLMT = "IfMatchLastModifiedTime";
7007
+ const _IMS = "IfMatchSize";
7008
+ const _IMSf = "IfModifiedSince";
6945
7009
  const _INM = "IfNoneMatch";
6946
7010
  const _IOF = "InventoryOptionalField";
6947
7011
  const _IOV = "IncludedObjectVersions";
@@ -6984,6 +7048,7 @@ const _LFC = "LambdaFunctionConfigurations";
6984
7048
  const _LFCa = "LambdaFunctionConfiguration";
6985
7049
  const _LI = "LocationInfo";
6986
7050
  const _LM = "LastModified";
7051
+ const _LMT = "LastModifiedTime";
6987
7052
  const _LNAS = "LocationNameAsString";
6988
7053
  const _LP = "LocationPrefix";
6989
7054
  const _LR = "LifecycleRule";
@@ -7210,6 +7275,7 @@ const _VIM = "VersionIdMarker";
7210
7275
  const _Va = "Value";
7211
7276
  const _Ve = "Versions";
7212
7277
  const _WC = "WebsiteConfiguration";
7278
+ const _WOB = "WriteOffsetBytes";
7213
7279
  const _WRL = "WebsiteRedirectLocation";
7214
7280
  const _Y = "Years";
7215
7281
  const _a = "analytics";
@@ -7366,6 +7432,9 @@ const _xagr = "x-amz-grant-read";
7366
7432
  const _xagra = "x-amz-grant-read-acp";
7367
7433
  const _xagw = "x-amz-grant-write";
7368
7434
  const _xagwa = "x-amz-grant-write-acp";
7435
+ const _xaimit = "x-amz-if-match-initiated-time";
7436
+ const _xaimlmt = "x-amz-if-match-last-modified-time";
7437
+ const _xaims = "x-amz-if-match-size";
7369
7438
  const _xam = "x-amz-mfa";
7370
7439
  const _xamd = "x-amz-metadata-directive";
7371
7440
  const _xamm = "x-amz-missing-meta";
@@ -7377,6 +7446,7 @@ const _xaolm = "x-amz-object-lock-mode";
7377
7446
  const _xaolrud = "x-amz-object-lock-retain-until-date";
7378
7447
  const _xaoo = "x-amz-object-ownership";
7379
7448
  const _xaooa = "x-amz-optional-object-attributes";
7449
+ const _xaos = "x-amz-object-size";
7380
7450
  const _xapnm = "x-amz-part-number-marker";
7381
7451
  const _xar = "x-amz-restore";
7382
7452
  const _xarc = "x-amz-request-charged";
@@ -7401,5 +7471,6 @@ const _xatc = "x-amz-tagging-count";
7401
7471
  const _xatd = "x-amz-tagging-directive";
7402
7472
  const _xatdmos = "x-amz-transition-default-minimum-object-size";
7403
7473
  const _xavi = "x-amz-version-id";
7474
+ const _xawob = "x-amz-write-offset-bytes";
7404
7475
  const _xawrl = "x-amz-website-redirect-location";
7405
7476
  const _xi = "x-id";
@@ -34,23 +34,24 @@ declare const AbortMultipartUploadCommand_base: {
34
34
  * to abort a given multipart upload multiple times in order to completely free all storage
35
35
  * consumed by all parts. </p>
36
36
  * <p>To verify that all parts have been removed and prevent getting charged for the part
37
- * storage, you should call the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a> API operation and ensure that
38
- * the parts list is empty.</p>
37
+ * storage, you should call the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a> API operation and ensure
38
+ * that the parts list is empty.</p>
39
39
  * <note>
40
40
  * <ul>
41
41
  * <li>
42
42
  * <p>
43
- * <b>Directory buckets</b> -
44
- * If multipart uploads in a directory bucket are in progress, you can't delete the bucket until all the in-progress multipart uploads are aborted or completed.
45
- * To delete these in-progress multipart uploads, use the
46
- * <code>ListMultipartUploads</code> operation to list the in-progress multipart
47
- * uploads in the bucket and use the <code>AbortMultipartUpload</code> operation to
48
- * abort all the in-progress multipart uploads.
49
- * </p>
43
+ * <b>Directory buckets</b> - If multipart
44
+ * uploads in a directory bucket are in progress, you can't delete the bucket until
45
+ * all the in-progress multipart uploads are aborted or completed. To delete these
46
+ * in-progress multipart uploads, use the <code>ListMultipartUploads</code> operation
47
+ * to list the in-progress multipart uploads in the bucket and use the
48
+ * <code>AbortMultipartUpload</code> operation to abort all the in-progress
49
+ * multipart uploads. </p>
50
50
  * </li>
51
51
  * <li>
52
52
  * <p>
53
- * <b>Directory buckets</b> - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i>
53
+ * <b>Directory buckets</b> -
54
+ * For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format <code>https://<i>bucket_name</i>.s3express-<i>az_id</i>.<i>region</i>.amazonaws.com/<i>key-name</i>
54
55
  * </code>. Path-style requests are not supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html">Regional and Zonal endpoints</a> in the
55
56
  * <i>Amazon S3 User Guide</i>.</p>
56
57
  * </li>
@@ -62,9 +63,10 @@ declare const AbortMultipartUploadCommand_base: {
62
63
  * <ul>
63
64
  * <li>
64
65
  * <p>
65
- * <b>General purpose bucket permissions</b> - For information about permissions required to use the multipart upload, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload
66
- * and Permissions</a> in the <i>Amazon S3
67
- * User Guide</i>.</p>
66
+ * <b>General purpose bucket permissions</b> - For
67
+ * information about permissions required to use the multipart upload, see
68
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
69
+ * Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
68
70
  * </li>
69
71
  * <li>
70
72
  * <p>
@@ -124,6 +126,7 @@ declare const AbortMultipartUploadCommand_base: {
124
126
  * UploadId: "STRING_VALUE", // required
125
127
  * RequestPayer: "requester",
126
128
  * ExpectedBucketOwner: "STRING_VALUE",
129
+ * IfMatchInitiatedTime: new Date("TIMESTAMP"),
127
130
  * };
128
131
  * const command = new AbortMultipartUploadCommand(input);
129
132
  * const response = await client.send(command);