@aws-sdk/client-s3 3.696.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 (127) hide show
  1. package/dist-cjs/index.js +152 -29
  2. package/dist-es/commands/DeleteObjectsCommand.js +0 -1
  3. package/dist-es/commands/GetObjectCommand.js +0 -1
  4. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +0 -1
  5. package/dist-es/commands/PutBucketAclCommand.js +0 -1
  6. package/dist-es/commands/PutBucketCorsCommand.js +0 -1
  7. package/dist-es/commands/PutBucketEncryptionCommand.js +0 -1
  8. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +0 -1
  9. package/dist-es/commands/PutBucketLoggingCommand.js +0 -1
  10. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +0 -1
  11. package/dist-es/commands/PutBucketPolicyCommand.js +0 -1
  12. package/dist-es/commands/PutBucketReplicationCommand.js +0 -1
  13. package/dist-es/commands/PutBucketRequestPaymentCommand.js +0 -1
  14. package/dist-es/commands/PutBucketTaggingCommand.js +0 -1
  15. package/dist-es/commands/PutBucketVersioningCommand.js +0 -1
  16. package/dist-es/commands/PutBucketWebsiteCommand.js +0 -1
  17. package/dist-es/commands/PutObjectAclCommand.js +0 -1
  18. package/dist-es/commands/PutObjectCommand.js +0 -1
  19. package/dist-es/commands/PutObjectLegalHoldCommand.js +0 -1
  20. package/dist-es/commands/PutObjectLockConfigurationCommand.js +0 -1
  21. package/dist-es/commands/PutObjectRetentionCommand.js +0 -1
  22. package/dist-es/commands/PutObjectTaggingCommand.js +0 -1
  23. package/dist-es/commands/PutPublicAccessBlockCommand.js +0 -1
  24. package/dist-es/commands/RestoreObjectCommand.js +0 -1
  25. package/dist-es/commands/UploadPartCommand.js +0 -1
  26. package/dist-es/models/models_1.js +48 -0
  27. package/dist-es/protocols/Aws_restXml.js +75 -4
  28. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +16 -13
  29. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +47 -42
  30. package/dist-types/commands/CopyObjectCommand.d.ts +77 -57
  31. package/dist-types/commands/CreateBucketCommand.d.ts +60 -45
  32. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +92 -66
  33. package/dist-types/commands/CreateSessionCommand.d.ts +30 -16
  34. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteBucketCommand.d.ts +10 -3
  36. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +1 -1
  37. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +18 -10
  38. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  39. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +52 -9
  41. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -1
  42. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -1
  43. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +25 -21
  44. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +1 -1
  45. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +1 -1
  46. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +1 -1
  47. package/dist-types/commands/DeleteObjectCommand.d.ts +3 -0
  48. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +1 -1
  49. package/dist-types/commands/DeleteObjectsCommand.d.ts +41 -27
  50. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -1
  51. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -1
  52. package/dist-types/commands/GetBucketAclCommand.d.ts +1 -1
  53. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -1
  54. package/dist-types/commands/GetBucketCorsCommand.d.ts +1 -1
  55. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +18 -10
  56. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  57. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -1
  58. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +61 -17
  59. package/dist-types/commands/GetBucketLocationCommand.d.ts +1 -1
  60. package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -1
  61. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -1
  62. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -1
  63. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -1
  64. package/dist-types/commands/GetBucketPolicyCommand.d.ts +30 -21
  65. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -1
  66. package/dist-types/commands/GetBucketReplicationCommand.d.ts +1 -1
  67. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +1 -1
  68. package/dist-types/commands/GetBucketTaggingCommand.d.ts +1 -1
  69. package/dist-types/commands/GetBucketVersioningCommand.d.ts +1 -1
  70. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +1 -1
  71. package/dist-types/commands/GetObjectAclCommand.d.ts +1 -1
  72. package/dist-types/commands/GetObjectAttributesCommand.d.ts +62 -44
  73. package/dist-types/commands/GetObjectCommand.d.ts +79 -60
  74. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -1
  75. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -1
  76. package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -1
  77. package/dist-types/commands/GetObjectTaggingCommand.d.ts +1 -1
  78. package/dist-types/commands/GetObjectTorrentCommand.d.ts +1 -1
  79. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -1
  80. package/dist-types/commands/HeadBucketCommand.d.ts +32 -16
  81. package/dist-types/commands/HeadObjectCommand.d.ts +60 -38
  82. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -1
  83. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -1
  84. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -1
  85. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -1
  86. package/dist-types/commands/ListBucketsCommand.d.ts +6 -6
  87. package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +10 -4
  88. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +50 -33
  89. package/dist-types/commands/ListObjectVersionsCommand.d.ts +1 -1
  90. package/dist-types/commands/ListObjectsCommand.d.ts +1 -1
  91. package/dist-types/commands/ListObjectsV2Command.d.ts +23 -14
  92. package/dist-types/commands/ListPartsCommand.d.ts +22 -17
  93. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -1
  94. package/dist-types/commands/PutBucketAclCommand.d.ts +1 -1
  95. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -1
  96. package/dist-types/commands/PutBucketCorsCommand.d.ts +1 -1
  97. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +47 -32
  98. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -1
  99. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -1
  100. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +84 -45
  101. package/dist-types/commands/PutBucketLoggingCommand.d.ts +1 -1
  102. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -1
  103. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +1 -1
  104. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -1
  105. package/dist-types/commands/PutBucketPolicyCommand.d.ts +30 -21
  106. package/dist-types/commands/PutBucketReplicationCommand.d.ts +3 -4
  107. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +1 -1
  108. package/dist-types/commands/PutBucketTaggingCommand.d.ts +1 -1
  109. package/dist-types/commands/PutBucketVersioningCommand.d.ts +3 -6
  110. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +1 -1
  111. package/dist-types/commands/PutObjectAclCommand.d.ts +1 -1
  112. package/dist-types/commands/PutObjectCommand.d.ts +83 -35
  113. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  114. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +3 -3
  115. package/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -2
  116. package/dist-types/commands/PutObjectTaggingCommand.d.ts +1 -1
  117. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  118. package/dist-types/commands/RestoreObjectCommand.d.ts +1 -1
  119. package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -1
  120. package/dist-types/commands/UploadPartCommand.d.ts +52 -41
  121. package/dist-types/commands/UploadPartCopyCommand.d.ts +53 -39
  122. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -1
  123. package/dist-types/models/models_0.d.ts +938 -632
  124. package/dist-types/models/models_1.d.ts +230 -135
  125. package/dist-types/ts3.4/models/models_0.d.ts +7 -0
  126. package/dist-types/ts3.4/models/models_1.d.ts +24 -0
  127. package/package.json +2 -2
@@ -17,7 +17,6 @@ export class PutObjectLockConfigurationCommand extends $Command
17
17
  getSerdePlugin(config, this.serialize, this.deserialize),
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
- input: this.input,
21
20
  requestAlgorithmMember: "ChecksumAlgorithm",
22
21
  requestChecksumRequired: true,
23
22
  }),
@@ -17,7 +17,6 @@ export class PutObjectRetentionCommand extends $Command
17
17
  getSerdePlugin(config, this.serialize, this.deserialize),
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
- input: this.input,
21
20
  requestAlgorithmMember: "ChecksumAlgorithm",
22
21
  requestChecksumRequired: true,
23
22
  }),
@@ -17,7 +17,6 @@ export class PutObjectTaggingCommand extends $Command
17
17
  getSerdePlugin(config, this.serialize, this.deserialize),
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
- input: this.input,
21
20
  requestAlgorithmMember: "ChecksumAlgorithm",
22
21
  requestChecksumRequired: true,
23
22
  }),
@@ -17,7 +17,6 @@ export class PutPublicAccessBlockCommand extends $Command
17
17
  getSerdePlugin(config, this.serialize, this.deserialize),
18
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
19
  getFlexibleChecksumsPlugin(config, {
20
- input: this.input,
21
20
  requestAlgorithmMember: "ChecksumAlgorithm",
22
21
  requestChecksumRequired: true,
23
22
  }),
@@ -18,7 +18,6 @@ export class RestoreObjectCommand extends $Command
18
18
  getSerdePlugin(config, this.serialize, this.deserialize),
19
19
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
20
  getFlexibleChecksumsPlugin(config, {
21
- input: this.input,
22
21
  requestAlgorithmMember: "ChecksumAlgorithm",
23
22
  requestChecksumRequired: false,
24
23
  }),
@@ -20,7 +20,6 @@ export class UploadPartCommand extends $Command
20
20
  getSerdePlugin(config, this.serialize, this.deserialize),
21
21
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
22
22
  getFlexibleChecksumsPlugin(config, {
23
- input: this.input,
24
23
  requestAlgorithmMember: "ChecksumAlgorithm",
25
24
  requestChecksumRequired: false,
26
25
  }),
@@ -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);
@@ -29,41 +29,44 @@ declare const CompleteMultipartUploadCommand_base: {
29
29
  /**
30
30
  * <p>Completes a multipart upload by assembling previously uploaded parts.</p>
31
31
  * <p>You first initiate the multipart upload and then upload all parts using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
32
- * operation or the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a>
33
- * operation. After successfully uploading all relevant parts of an upload, you call this
34
- * <code>CompleteMultipartUpload</code> operation to complete the upload. Upon receiving this request, Amazon S3 concatenates all the parts
35
- * in ascending order by part number to create a new object. In the CompleteMultipartUpload
36
- * request, you must provide the parts list and ensure that the parts list is complete.
37
- * The CompleteMultipartUpload API operation concatenates the parts that you provide in the list. For each part in the list,
38
- * you must provide the <code>PartNumber</code> value and the <code>ETag</code> value that are returned after that part
39
- * was uploaded.</p>
32
+ * operation or the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> operation.
33
+ * After successfully uploading all relevant parts of an upload, you call this
34
+ * <code>CompleteMultipartUpload</code> operation to complete the upload. Upon receiving
35
+ * this request, Amazon S3 concatenates all the parts in ascending order by part number to create a
36
+ * new object. In the CompleteMultipartUpload request, you must provide the parts list and
37
+ * ensure that the parts list is complete. The CompleteMultipartUpload API operation
38
+ * concatenates the parts that you provide in the list. For each part in the list, you must
39
+ * provide the <code>PartNumber</code> value and the <code>ETag</code> value that are returned
40
+ * after that part was uploaded.</p>
40
41
  * <p>The processing of a CompleteMultipartUpload request could take several minutes to
41
42
  * finalize. After Amazon S3 begins processing the request, it sends an HTTP response header that
42
- * specifies a <code>200 OK</code> response. While processing is in progress, Amazon S3 periodically sends white
43
- * space characters to keep the connection from timing out. A request could fail after the
44
- * initial <code>200 OK</code> response has been sent. This means that a <code>200 OK</code> response can
45
- * contain either a success or an error. The error response might be embedded in the <code>200 OK</code> response.
46
- * If you call this API operation directly, make sure to design
47
- * your application to parse the contents of the response and handle it appropriately. If you
48
- * use Amazon Web Services SDKs, SDKs handle this condition. The SDKs detect the embedded error and apply
49
- * error handling per your configuration settings (including automatically retrying the
50
- * request as appropriate). If the condition persists, the SDKs throw an exception (or, for
51
- * the SDKs that don't use exceptions, they return an error). </p>
43
+ * specifies a <code>200 OK</code> response. While processing is in progress, Amazon S3
44
+ * periodically sends white space characters to keep the connection from timing out. A request
45
+ * could fail after the initial <code>200 OK</code> response has been sent. This means that a
46
+ * <code>200 OK</code> response can contain either a success or an error. The error
47
+ * response might be embedded in the <code>200 OK</code> response. If you call this API
48
+ * operation directly, make sure to design your application to parse the contents of the
49
+ * response and handle it appropriately. If you use Amazon Web Services SDKs, SDKs handle this condition.
50
+ * The SDKs detect the embedded error and apply error handling per your configuration settings
51
+ * (including automatically retrying the request as appropriate). If the condition persists,
52
+ * the SDKs throw an exception (or, for the SDKs that don't use exceptions, they return an
53
+ * error). </p>
52
54
  * <p>Note that if <code>CompleteMultipartUpload</code> fails, applications should be prepared
53
- * to retry any failed requests (including 500 error responses). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html">Amazon S3 Error Best
54
- * Practices</a>.</p>
55
+ * to retry any failed requests (including 500 error responses). For more information, see
56
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html">Amazon S3 Error
57
+ * Best Practices</a>.</p>
55
58
  * <important>
56
59
  * <p>You can't use <code>Content-Type: application/x-www-form-urlencoded</code> for the
57
- * CompleteMultipartUpload requests. Also, if you don't provide a
58
- * <code>Content-Type</code> header, <code>CompleteMultipartUpload</code> can still return a <code>200
59
- * OK</code> response.</p>
60
+ * CompleteMultipartUpload requests. Also, if you don't provide a <code>Content-Type</code>
61
+ * header, <code>CompleteMultipartUpload</code> can still return a <code>200 OK</code>
62
+ * response.</p>
60
63
  * </important>
61
64
  * <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html">Uploading Objects Using Multipart
62
- * Upload</a> in the <i>Amazon S3
63
- * User Guide</i>.</p>
65
+ * Upload</a> in the <i>Amazon S3 User Guide</i>.</p>
64
66
  * <note>
65
67
  * <p>
66
- * <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>
68
+ * <b>Directory buckets</b> -
69
+ * 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>
67
70
  * </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
68
71
  * <i>Amazon S3 User Guide</i>.</p>
69
72
  * </note>
@@ -78,10 +81,10 @@ declare const CompleteMultipartUploadCommand_base: {
78
81
  * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
79
82
  * Permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
80
83
  * <p>If you provide an <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html">additional checksum
81
- * value</a> in your <code>MultipartUpload</code> requests and the
84
+ * value</a> in your <code>MultipartUpload</code> requests and the
82
85
  * object is encrypted with Key Management Service, you must have permission to use the
83
- * <code>kms:Decrypt</code> action for the
84
- * <code>CompleteMultipartUpload</code> request to succeed.</p>
86
+ * <code>kms:Decrypt</code> action for the
87
+ * <code>CompleteMultipartUpload</code> request to succeed.</p>
85
88
  * </li>
86
89
  * <li>
87
90
  * <p>
@@ -91,9 +94,10 @@ declare const CompleteMultipartUploadCommand_base: {
91
94
  * Amazon Web Services CLI or SDKs create session and refresh the session token automatically to avoid service interruptions when a session expires. For more information about authorization, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html">
92
95
  * <code>CreateSession</code>
93
96
  * </a>.</p>
94
- * <p>If the object is encrypted with
95
- * SSE-KMS, you must also have the
96
- * <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions in IAM identity-based policies and KMS key policies for the KMS key.</p>
97
+ * <p>If the object is encrypted with SSE-KMS, you must also have the
98
+ * <code>kms:GenerateDataKey</code> and <code>kms:Decrypt</code> permissions
99
+ * in IAM identity-based policies and KMS key policies for the KMS
100
+ * key.</p>
97
101
  * </li>
98
102
  * </ul>
99
103
  * </dd>
@@ -105,8 +109,9 @@ declare const CompleteMultipartUploadCommand_base: {
105
109
  * </p>
106
110
  * <ul>
107
111
  * <li>
108
- * <p>Description: Your proposed upload is smaller than the minimum allowed object
109
- * size. Each part must be at least 5 MB in size, except the last part.</p>
112
+ * <p>Description: Your proposed upload is smaller than the minimum
113
+ * allowed object size. Each part must be at least 5 MB in size, except
114
+ * the last part.</p>
110
115
  * </li>
111
116
  * <li>
112
117
  * <p>HTTP Status Code: 400 Bad Request</p>
@@ -118,9 +123,9 @@ declare const CompleteMultipartUploadCommand_base: {
118
123
  * </p>
119
124
  * <ul>
120
125
  * <li>
121
- * <p>Description: One or more of the specified parts could not be found. The part
122
- * might not have been uploaded, or the specified ETag might not have
123
- * matched the uploaded part's ETag.</p>
126
+ * <p>Description: One or more of the specified parts could not be found.
127
+ * The part might not have been uploaded, or the specified ETag might not
128
+ * have matched the uploaded part's ETag.</p>
124
129
  * </li>
125
130
  * <li>
126
131
  * <p>HTTP Status Code: 400 Bad Request</p>
@@ -132,8 +137,8 @@ declare const CompleteMultipartUploadCommand_base: {
132
137
  * </p>
133
138
  * <ul>
134
139
  * <li>
135
- * <p>Description: The list of parts was not in ascending order. The parts list
136
- * must be specified in order by part number.</p>
140
+ * <p>Description: The list of parts was not in ascending order. The
141
+ * parts list must be specified in order by part number.</p>
137
142
  * </li>
138
143
  * <li>
139
144
  * <p>HTTP Status Code: 400 Bad Request</p>
@@ -145,9 +150,9 @@ declare const CompleteMultipartUploadCommand_base: {
145
150
  * </p>
146
151
  * <ul>
147
152
  * <li>
148
- * <p>Description: The specified multipart upload does not exist. The upload ID
149
- * might be invalid, or the multipart upload might have been aborted or
150
- * completed.</p>
153
+ * <p>Description: The specified multipart upload does not exist. The
154
+ * upload ID might be invalid, or the multipart upload might have been
155
+ * aborted or completed.</p>
151
156
  * </li>
152
157
  * <li>
153
158
  * <p>HTTP Status Code: 404 Not Found</p>