@aws-sdk/client-s3 3.50.0 → 3.53.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 (228) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist-cjs/S3.js +15 -0
  3. package/dist-cjs/commands/CompleteMultipartUploadCommand.js +2 -0
  4. package/dist-cjs/commands/DeleteObjectsCommand.js +6 -2
  5. package/dist-cjs/commands/GetObjectAttributesCommand.js +40 -0
  6. package/dist-cjs/commands/GetObjectCommand.js +7 -0
  7. package/dist-cjs/commands/ListPartsCommand.js +2 -0
  8. package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +6 -0
  9. package/dist-cjs/commands/PutBucketAclCommand.js +6 -2
  10. package/dist-cjs/commands/PutBucketCorsCommand.js +6 -2
  11. package/dist-cjs/commands/PutBucketEncryptionCommand.js +6 -2
  12. package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +6 -2
  13. package/dist-cjs/commands/PutBucketLoggingCommand.js +6 -2
  14. package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +2 -2
  15. package/dist-cjs/commands/PutBucketPolicyCommand.js +6 -2
  16. package/dist-cjs/commands/PutBucketReplicationCommand.js +6 -2
  17. package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +6 -2
  18. package/dist-cjs/commands/PutBucketTaggingCommand.js +6 -2
  19. package/dist-cjs/commands/PutBucketVersioningCommand.js +6 -2
  20. package/dist-cjs/commands/PutBucketWebsiteCommand.js +6 -2
  21. package/dist-cjs/commands/PutObjectAclCommand.js +6 -2
  22. package/dist-cjs/commands/PutObjectCommand.js +6 -0
  23. package/dist-cjs/commands/PutObjectLegalHoldCommand.js +6 -2
  24. package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +6 -2
  25. package/dist-cjs/commands/PutObjectRetentionCommand.js +9 -5
  26. package/dist-cjs/commands/PutObjectTaggingCommand.js +9 -5
  27. package/dist-cjs/commands/PutPublicAccessBlockCommand.js +8 -4
  28. package/dist-cjs/commands/RestoreObjectCommand.js +7 -2
  29. package/dist-cjs/commands/UploadPartCommand.js +6 -0
  30. package/dist-cjs/commands/WriteGetObjectResponseCommand.js +0 -2
  31. package/dist-cjs/commands/index.js +1 -0
  32. package/dist-cjs/index.js +3 -0
  33. package/dist-cjs/models/S3ServiceException.js +11 -0
  34. package/dist-cjs/models/models_0.js +165 -41
  35. package/dist-cjs/models/models_1.js +51 -1
  36. package/dist-cjs/protocols/Aws_restXml.js +962 -1057
  37. package/dist-cjs/runtimeConfig.browser.js +17 -13
  38. package/dist-cjs/runtimeConfig.js +17 -14
  39. package/dist-es/S3.js +15 -0
  40. package/dist-es/commands/CompleteMultipartUploadCommand.js +2 -0
  41. package/dist-es/commands/DeleteObjectsCommand.js +6 -2
  42. package/dist-es/commands/GetObjectAttributesCommand.js +43 -0
  43. package/dist-es/commands/GetObjectCommand.js +7 -0
  44. package/dist-es/commands/ListPartsCommand.js +2 -0
  45. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +6 -0
  46. package/dist-es/commands/PutBucketAclCommand.js +6 -2
  47. package/dist-es/commands/PutBucketCorsCommand.js +6 -2
  48. package/dist-es/commands/PutBucketEncryptionCommand.js +6 -2
  49. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +6 -2
  50. package/dist-es/commands/PutBucketLoggingCommand.js +6 -2
  51. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +2 -2
  52. package/dist-es/commands/PutBucketPolicyCommand.js +6 -2
  53. package/dist-es/commands/PutBucketReplicationCommand.js +6 -2
  54. package/dist-es/commands/PutBucketRequestPaymentCommand.js +6 -2
  55. package/dist-es/commands/PutBucketTaggingCommand.js +6 -2
  56. package/dist-es/commands/PutBucketVersioningCommand.js +6 -2
  57. package/dist-es/commands/PutBucketWebsiteCommand.js +6 -2
  58. package/dist-es/commands/PutObjectAclCommand.js +6 -2
  59. package/dist-es/commands/PutObjectCommand.js +6 -0
  60. package/dist-es/commands/PutObjectLegalHoldCommand.js +6 -2
  61. package/dist-es/commands/PutObjectLockConfigurationCommand.js +6 -2
  62. package/dist-es/commands/PutObjectRetentionCommand.js +7 -3
  63. package/dist-es/commands/PutObjectTaggingCommand.js +7 -3
  64. package/dist-es/commands/PutPublicAccessBlockCommand.js +7 -3
  65. package/dist-es/commands/RestoreObjectCommand.js +7 -2
  66. package/dist-es/commands/UploadPartCommand.js +6 -0
  67. package/dist-es/commands/WriteGetObjectResponseCommand.js +0 -2
  68. package/dist-es/commands/index.js +1 -0
  69. package/dist-es/index.js +1 -0
  70. package/dist-es/models/S3ServiceException.js +12 -0
  71. package/dist-es/models/models_0.js +141 -27
  72. package/dist-es/models/models_1.js +38 -1
  73. package/dist-es/protocols/Aws_restXml.js +1366 -900
  74. package/dist-es/runtimeConfig.browser.js +5 -3
  75. package/dist-es/runtimeConfig.js +5 -4
  76. package/dist-types/S3.d.ts +332 -90
  77. package/dist-types/S3Client.d.ts +19 -7
  78. package/dist-types/commands/CopyObjectCommand.d.ts +11 -5
  79. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +33 -11
  80. package/dist-types/commands/GetBucketCorsCommand.d.ts +7 -5
  81. package/dist-types/commands/GetBucketTaggingCommand.d.ts +1 -1
  82. package/dist-types/commands/GetObjectAclCommand.d.ts +9 -1
  83. package/dist-types/commands/GetObjectAttributesCommand.d.ts +190 -0
  84. package/dist-types/commands/GetObjectCommand.d.ts +3 -5
  85. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +11 -1
  86. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +9 -0
  87. package/dist-types/commands/GetObjectRetentionCommand.d.ts +9 -0
  88. package/dist-types/commands/GetObjectTaggingCommand.d.ts +8 -3
  89. package/dist-types/commands/HeadObjectCommand.d.ts +6 -1
  90. package/dist-types/commands/ListBucketsCommand.d.ts +2 -1
  91. package/dist-types/commands/ListPartsCommand.d.ts +8 -0
  92. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +4 -4
  93. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +3 -1
  94. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +12 -4
  95. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -1
  96. package/dist-types/commands/PutBucketVersioningCommand.d.ts +4 -4
  97. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -1
  98. package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -8
  99. package/dist-types/commands/PutObjectTaggingCommand.d.ts +1 -1
  100. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -1
  101. package/dist-types/commands/RestoreObjectCommand.d.ts +24 -32
  102. package/dist-types/commands/UploadPartCopyCommand.d.ts +4 -4
  103. package/dist-types/commands/index.d.ts +1 -0
  104. package/dist-types/index.d.ts +1 -0
  105. package/dist-types/models/S3ServiceException.d.ts +10 -0
  106. package/dist-types/models/models_0.d.ts +1065 -406
  107. package/dist-types/models/models_1.d.ts +434 -48
  108. package/dist-types/protocols/Aws_restXml.d.ts +3 -0
  109. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  110. package/dist-types/runtimeConfig.d.ts +2 -0
  111. package/dist-types/runtimeConfig.native.d.ts +3 -1
  112. package/dist-types/ts3.4/S3.d.ts +470 -0
  113. package/dist-types/ts3.4/S3Client.d.ts +184 -0
  114. package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +17 -0
  115. package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +17 -0
  117. package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +17 -0
  118. package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +17 -0
  119. package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +17 -0
  120. package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +17 -0
  121. package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +17 -0
  122. package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +17 -0
  123. package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +17 -0
  124. package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +17 -0
  125. package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +17 -0
  126. package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +17 -0
  127. package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +17 -0
  128. package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +17 -0
  129. package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +17 -0
  130. package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +17 -0
  131. package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +17 -0
  132. package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +17 -0
  133. package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +17 -0
  134. package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +17 -0
  135. package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +17 -0
  136. package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +17 -0
  137. package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +17 -0
  138. package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +17 -0
  139. package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +17 -0
  140. package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +17 -0
  141. package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +17 -0
  142. package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +17 -0
  144. package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +17 -0
  145. package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +17 -0
  146. package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +17 -0
  147. package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +17 -0
  148. package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +17 -0
  149. package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +17 -0
  150. package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +17 -0
  151. package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +17 -0
  152. package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +17 -0
  153. package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +17 -0
  154. package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +17 -0
  155. package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +17 -0
  156. package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +17 -0
  157. package/dist-types/ts3.4/commands/GetObjectAttributesCommand.d.ts +17 -0
  158. package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +17 -0
  159. package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +17 -0
  160. package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +17 -0
  161. package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +17 -0
  162. package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +17 -0
  163. package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +17 -0
  164. package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +17 -0
  165. package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +17 -0
  168. package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +17 -0
  169. package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +17 -0
  170. package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +17 -0
  171. package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +17 -0
  172. package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +17 -0
  173. package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +17 -0
  174. package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +17 -0
  175. package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +17 -0
  176. package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +17 -0
  177. package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +17 -0
  178. package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +17 -0
  179. package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +17 -0
  180. package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +17 -0
  181. package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +17 -0
  182. package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +17 -0
  183. package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +17 -0
  184. package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +17 -0
  185. package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +17 -0
  186. package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +17 -0
  187. package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +17 -0
  188. package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +17 -0
  189. package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +17 -0
  190. package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +17 -0
  191. package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +17 -0
  192. package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +17 -0
  193. package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +17 -0
  194. package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +17 -0
  195. package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +17 -0
  196. package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +24 -0
  197. package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +17 -0
  198. package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +17 -0
  199. package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +17 -0
  200. package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +17 -0
  201. package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +17 -0
  202. package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +17 -0
  203. package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +17 -0
  204. package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +24 -0
  205. package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +17 -0
  206. package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +24 -0
  207. package/dist-types/ts3.4/commands/index.d.ts +93 -0
  208. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  209. package/dist-types/ts3.4/index.d.ts +7 -0
  210. package/dist-types/ts3.4/models/S3ServiceException.d.ts +6 -0
  211. package/dist-types/ts3.4/models/index.d.ts +2 -0
  212. package/dist-types/ts3.4/models/models_0.d.ts +3903 -0
  213. package/dist-types/ts3.4/models/models_1.d.ts +767 -0
  214. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  215. package/dist-types/ts3.4/pagination/ListObjectsV2Paginator.d.ts +4 -0
  216. package/dist-types/ts3.4/pagination/ListPartsPaginator.d.ts +4 -0
  217. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  218. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +281 -0
  219. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +49 -0
  220. package/dist-types/ts3.4/runtimeConfig.d.ts +50 -0
  221. package/dist-types/ts3.4/runtimeConfig.native.d.ts +48 -0
  222. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +15 -0
  223. package/dist-types/ts3.4/waiters/index.d.ts +4 -0
  224. package/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +7 -0
  225. package/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +7 -0
  226. package/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +7 -0
  227. package/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +7 -0
  228. package/package.json +50 -47
@@ -1,6 +1,6 @@
1
1
  import { __extends } from "tslib";
2
- import { getApplyMd5BodyChecksumPlugin } from "@aws-sdk/middleware-apply-body-checksum";
3
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
6
  import { PutObjectLockConfigurationOutput, PutObjectLockConfigurationRequest } from "../models/models_0";
@@ -15,7 +15,11 @@ var PutObjectLockConfigurationCommand = (function (_super) {
15
15
  PutObjectLockConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
16
16
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
17
17
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
18
- this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
18
+ this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
19
+ input: this.input,
20
+ requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestChecksumRequired: true,
22
+ }));
19
23
  var stack = clientStack.concat(this.middlewareStack);
20
24
  var logger = configuration.logger;
21
25
  var clientName = "S3Client";
@@ -1,9 +1,9 @@
1
1
  import { __extends } from "tslib";
2
- import { getApplyMd5BodyChecksumPlugin } from "@aws-sdk/middleware-apply-body-checksum";
3
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- import { PutObjectRetentionOutput, PutObjectRetentionRequest } from "../models/models_0";
6
+ import { PutObjectRetentionOutput, PutObjectRetentionRequest } from "../models/models_1";
7
7
  import { deserializeAws_restXmlPutObjectRetentionCommand, serializeAws_restXmlPutObjectRetentionCommand, } from "../protocols/Aws_restXml";
8
8
  var PutObjectRetentionCommand = (function (_super) {
9
9
  __extends(PutObjectRetentionCommand, _super);
@@ -15,7 +15,11 @@ var PutObjectRetentionCommand = (function (_super) {
15
15
  PutObjectRetentionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
16
16
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
17
17
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
18
- this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
18
+ this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
19
+ input: this.input,
20
+ requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestChecksumRequired: true,
22
+ }));
19
23
  var stack = clientStack.concat(this.middlewareStack);
20
24
  var logger = configuration.logger;
21
25
  var clientName = "S3Client";
@@ -1,9 +1,9 @@
1
1
  import { __extends } from "tslib";
2
- import { getApplyMd5BodyChecksumPlugin } from "@aws-sdk/middleware-apply-body-checksum";
3
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- import { PutObjectTaggingOutput, PutObjectTaggingRequest } from "../models/models_0";
6
+ import { PutObjectTaggingOutput, PutObjectTaggingRequest } from "../models/models_1";
7
7
  import { deserializeAws_restXmlPutObjectTaggingCommand, serializeAws_restXmlPutObjectTaggingCommand, } from "../protocols/Aws_restXml";
8
8
  var PutObjectTaggingCommand = (function (_super) {
9
9
  __extends(PutObjectTaggingCommand, _super);
@@ -15,7 +15,11 @@ var PutObjectTaggingCommand = (function (_super) {
15
15
  PutObjectTaggingCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
16
16
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
17
17
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
18
- this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
18
+ this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
19
+ input: this.input,
20
+ requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestChecksumRequired: true,
22
+ }));
19
23
  var stack = clientStack.concat(this.middlewareStack);
20
24
  var logger = configuration.logger;
21
25
  var clientName = "S3Client";
@@ -1,9 +1,9 @@
1
1
  import { __extends } from "tslib";
2
- import { getApplyMd5BodyChecksumPlugin } from "@aws-sdk/middleware-apply-body-checksum";
3
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
4
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- import { PutPublicAccessBlockRequest } from "../models/models_0";
6
+ import { PutPublicAccessBlockRequest } from "../models/models_1";
7
7
  import { deserializeAws_restXmlPutPublicAccessBlockCommand, serializeAws_restXmlPutPublicAccessBlockCommand, } from "../protocols/Aws_restXml";
8
8
  var PutPublicAccessBlockCommand = (function (_super) {
9
9
  __extends(PutPublicAccessBlockCommand, _super);
@@ -15,7 +15,11 @@ var PutPublicAccessBlockCommand = (function (_super) {
15
15
  PutPublicAccessBlockCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
16
16
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
17
17
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
18
- this.middlewareStack.use(getApplyMd5BodyChecksumPlugin(configuration));
18
+ this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
19
+ input: this.input,
20
+ requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestChecksumRequired: true,
22
+ }));
19
23
  var stack = clientStack.concat(this.middlewareStack);
20
24
  var logger = configuration.logger;
21
25
  var clientName = "S3Client";
@@ -1,9 +1,9 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
3
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
5
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
- import { RestoreObjectOutput } from "../models/models_0";
6
- import { RestoreObjectRequest } from "../models/models_1";
6
+ import { RestoreObjectOutput, RestoreObjectRequest } from "../models/models_1";
7
7
  import { deserializeAws_restXmlRestoreObjectCommand, serializeAws_restXmlRestoreObjectCommand, } from "../protocols/Aws_restXml";
8
8
  var RestoreObjectCommand = (function (_super) {
9
9
  __extends(RestoreObjectCommand, _super);
@@ -15,6 +15,11 @@ var RestoreObjectCommand = (function (_super) {
15
15
  RestoreObjectCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
16
16
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
17
17
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
18
+ this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
19
+ input: this.input,
20
+ requestAlgorithmMember: "ChecksumAlgorithm",
21
+ requestChecksumRequired: false,
22
+ }));
18
23
  var stack = clientStack.concat(this.middlewareStack);
19
24
  var logger = configuration.logger;
20
25
  var clientName = "S3Client";
@@ -1,5 +1,6 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
+ import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
3
4
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
5
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
5
6
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -16,6 +17,11 @@ var UploadPartCommand = (function (_super) {
16
17
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
17
18
  this.middlewareStack.use(getSsecPlugin(configuration));
18
19
  this.middlewareStack.use(getBucketEndpointPlugin(configuration));
20
+ this.middlewareStack.use(getFlexibleChecksumsPlugin(configuration, {
21
+ input: this.input,
22
+ requestAlgorithmMember: "ChecksumAlgorithm",
23
+ requestChecksumRequired: false,
24
+ }));
19
25
  var stack = clientStack.concat(this.middlewareStack);
20
26
  var logger = configuration.logger;
21
27
  var clientName = "S3Client";
@@ -1,5 +1,4 @@
1
1
  import { __extends } from "tslib";
2
- import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
3
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
4
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
5
4
  import { WriteGetObjectResponseRequest } from "../models/models_1";
@@ -13,7 +12,6 @@ var WriteGetObjectResponseCommand = (function (_super) {
13
12
  }
14
13
  WriteGetObjectResponseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
- this.middlewareStack.use(getBucketEndpointPlugin(configuration));
17
15
  var stack = clientStack.concat(this.middlewareStack);
18
16
  var logger = configuration.logger;
19
17
  var clientName = "S3Client";
@@ -41,6 +41,7 @@ export * from "./GetBucketTaggingCommand";
41
41
  export * from "./GetBucketVersioningCommand";
42
42
  export * from "./GetBucketWebsiteCommand";
43
43
  export * from "./GetObjectAclCommand";
44
+ export * from "./GetObjectAttributesCommand";
44
45
  export * from "./GetObjectCommand";
45
46
  export * from "./GetObjectLegalHoldCommand";
46
47
  export * from "./GetObjectLockConfigurationCommand";
package/dist-es/index.js CHANGED
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { S3ServiceException } from "./models/S3ServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var S3ServiceException = (function (_super) {
4
+ __extends(S3ServiceException, _super);
5
+ function S3ServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, S3ServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return S3ServiceException;
11
+ }(__ServiceException));
12
+ export { S3ServiceException };
@@ -1,5 +1,6 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { S3ServiceException as __BaseException } from "./S3ServiceException";
3
4
  export var AbortIncompleteMultipartUpload;
4
5
  (function (AbortIncompleteMultipartUpload) {
5
6
  AbortIncompleteMultipartUpload.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -12,6 +13,18 @@ export var AbortMultipartUploadRequest;
12
13
  (function (AbortMultipartUploadRequest) {
13
14
  AbortMultipartUploadRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
15
  })(AbortMultipartUploadRequest || (AbortMultipartUploadRequest = {}));
16
+ var NoSuchUpload = (function (_super) {
17
+ __extends(NoSuchUpload, _super);
18
+ function NoSuchUpload(opts) {
19
+ var _this = _super.call(this, __assign({ name: "NoSuchUpload", $fault: "client" }, opts)) || this;
20
+ _this.name = "NoSuchUpload";
21
+ _this.$fault = "client";
22
+ Object.setPrototypeOf(_this, NoSuchUpload.prototype);
23
+ return _this;
24
+ }
25
+ return NoSuchUpload;
26
+ }(__BaseException));
27
+ export { NoSuchUpload };
15
28
  export var AccelerateConfiguration;
16
29
  (function (AccelerateConfiguration) {
17
30
  AccelerateConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -50,7 +63,7 @@ export var CompletedMultipartUpload;
50
63
  })(CompletedMultipartUpload || (CompletedMultipartUpload = {}));
51
64
  export var CompleteMultipartUploadRequest;
52
65
  (function (CompleteMultipartUploadRequest) {
53
- CompleteMultipartUploadRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
66
+ CompleteMultipartUploadRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }))); };
54
67
  })(CompleteMultipartUploadRequest || (CompleteMultipartUploadRequest = {}));
55
68
  export var CopyObjectResult;
56
69
  (function (CopyObjectResult) {
@@ -60,10 +73,53 @@ export var CopyObjectOutput;
60
73
  (function (CopyObjectOutput) {
61
74
  CopyObjectOutput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING })), (obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING }))); };
62
75
  })(CopyObjectOutput || (CopyObjectOutput = {}));
76
+ export var ChecksumAlgorithm;
77
+ (function (ChecksumAlgorithm) {
78
+ ChecksumAlgorithm["CRC32"] = "CRC32";
79
+ ChecksumAlgorithm["CRC32C"] = "CRC32C";
80
+ ChecksumAlgorithm["SHA1"] = "SHA1";
81
+ ChecksumAlgorithm["SHA256"] = "SHA256";
82
+ })(ChecksumAlgorithm || (ChecksumAlgorithm = {}));
63
83
  export var CopyObjectRequest;
64
84
  (function (CopyObjectRequest) {
65
85
  CopyObjectRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING })), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING })), (obj.SSEKMSEncryptionContext && { SSEKMSEncryptionContext: SENSITIVE_STRING })), (obj.CopySourceSSECustomerKey && { CopySourceSSECustomerKey: SENSITIVE_STRING }))); };
66
86
  })(CopyObjectRequest || (CopyObjectRequest = {}));
87
+ var ObjectNotInActiveTierError = (function (_super) {
88
+ __extends(ObjectNotInActiveTierError, _super);
89
+ function ObjectNotInActiveTierError(opts) {
90
+ var _this = _super.call(this, __assign({ name: "ObjectNotInActiveTierError", $fault: "client" }, opts)) || this;
91
+ _this.name = "ObjectNotInActiveTierError";
92
+ _this.$fault = "client";
93
+ Object.setPrototypeOf(_this, ObjectNotInActiveTierError.prototype);
94
+ return _this;
95
+ }
96
+ return ObjectNotInActiveTierError;
97
+ }(__BaseException));
98
+ export { ObjectNotInActiveTierError };
99
+ var BucketAlreadyExists = (function (_super) {
100
+ __extends(BucketAlreadyExists, _super);
101
+ function BucketAlreadyExists(opts) {
102
+ var _this = _super.call(this, __assign({ name: "BucketAlreadyExists", $fault: "client" }, opts)) || this;
103
+ _this.name = "BucketAlreadyExists";
104
+ _this.$fault = "client";
105
+ Object.setPrototypeOf(_this, BucketAlreadyExists.prototype);
106
+ return _this;
107
+ }
108
+ return BucketAlreadyExists;
109
+ }(__BaseException));
110
+ export { BucketAlreadyExists };
111
+ var BucketAlreadyOwnedByYou = (function (_super) {
112
+ __extends(BucketAlreadyOwnedByYou, _super);
113
+ function BucketAlreadyOwnedByYou(opts) {
114
+ var _this = _super.call(this, __assign({ name: "BucketAlreadyOwnedByYou", $fault: "client" }, opts)) || this;
115
+ _this.name = "BucketAlreadyOwnedByYou";
116
+ _this.$fault = "client";
117
+ Object.setPrototypeOf(_this, BucketAlreadyOwnedByYou.prototype);
118
+ return _this;
119
+ }
120
+ return BucketAlreadyOwnedByYou;
121
+ }(__BaseException));
122
+ export { BucketAlreadyOwnedByYou };
67
123
  export var CreateBucketOutput;
68
124
  (function (CreateBucketOutput) {
69
125
  CreateBucketOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -710,10 +766,40 @@ export var GetObjectOutput;
710
766
  (function (GetObjectOutput) {
711
767
  GetObjectOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }))); };
712
768
  })(GetObjectOutput || (GetObjectOutput = {}));
769
+ export var ChecksumMode;
770
+ (function (ChecksumMode) {
771
+ ChecksumMode["ENABLED"] = "ENABLED";
772
+ })(ChecksumMode || (ChecksumMode = {}));
713
773
  export var GetObjectRequest;
714
774
  (function (GetObjectRequest) {
715
775
  GetObjectRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }))); };
716
776
  })(GetObjectRequest || (GetObjectRequest = {}));
777
+ var InvalidObjectState = (function (_super) {
778
+ __extends(InvalidObjectState, _super);
779
+ function InvalidObjectState(opts) {
780
+ var _this = _super.call(this, __assign({ name: "InvalidObjectState", $fault: "client" }, opts)) || this;
781
+ _this.name = "InvalidObjectState";
782
+ _this.$fault = "client";
783
+ Object.setPrototypeOf(_this, InvalidObjectState.prototype);
784
+ _this.StorageClass = opts.StorageClass;
785
+ _this.AccessTier = opts.AccessTier;
786
+ return _this;
787
+ }
788
+ return InvalidObjectState;
789
+ }(__BaseException));
790
+ export { InvalidObjectState };
791
+ var NoSuchKey = (function (_super) {
792
+ __extends(NoSuchKey, _super);
793
+ function NoSuchKey(opts) {
794
+ var _this = _super.call(this, __assign({ name: "NoSuchKey", $fault: "client" }, opts)) || this;
795
+ _this.name = "NoSuchKey";
796
+ _this.$fault = "client";
797
+ Object.setPrototypeOf(_this, NoSuchKey.prototype);
798
+ return _this;
799
+ }
800
+ return NoSuchKey;
801
+ }(__BaseException));
802
+ export { NoSuchKey };
717
803
  export var GetObjectAclOutput;
718
804
  (function (GetObjectAclOutput) {
719
805
  GetObjectAclOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -722,6 +808,34 @@ export var GetObjectAclRequest;
722
808
  (function (GetObjectAclRequest) {
723
809
  GetObjectAclRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
724
810
  })(GetObjectAclRequest || (GetObjectAclRequest = {}));
811
+ export var Checksum;
812
+ (function (Checksum) {
813
+ Checksum.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
814
+ })(Checksum || (Checksum = {}));
815
+ export var ObjectPart;
816
+ (function (ObjectPart) {
817
+ ObjectPart.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
818
+ })(ObjectPart || (ObjectPart = {}));
819
+ export var GetObjectAttributesParts;
820
+ (function (GetObjectAttributesParts) {
821
+ GetObjectAttributesParts.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
822
+ })(GetObjectAttributesParts || (GetObjectAttributesParts = {}));
823
+ export var GetObjectAttributesOutput;
824
+ (function (GetObjectAttributesOutput) {
825
+ GetObjectAttributesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
826
+ })(GetObjectAttributesOutput || (GetObjectAttributesOutput = {}));
827
+ export var ObjectAttributes;
828
+ (function (ObjectAttributes) {
829
+ ObjectAttributes["CHECKSUM"] = "Checksum";
830
+ ObjectAttributes["ETAG"] = "ETag";
831
+ ObjectAttributes["OBJECT_PARTS"] = "ObjectParts";
832
+ ObjectAttributes["OBJECT_SIZE"] = "ObjectSize";
833
+ ObjectAttributes["STORAGE_CLASS"] = "StorageClass";
834
+ })(ObjectAttributes || (ObjectAttributes = {}));
835
+ export var GetObjectAttributesRequest;
836
+ (function (GetObjectAttributesRequest) {
837
+ GetObjectAttributesRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }))); };
838
+ })(GetObjectAttributesRequest || (GetObjectAttributesRequest = {}));
725
839
  export var ObjectLockLegalHold;
726
840
  (function (ObjectLockLegalHold) {
727
841
  ObjectLockLegalHold.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -798,6 +912,18 @@ export var HeadBucketRequest;
798
912
  (function (HeadBucketRequest) {
799
913
  HeadBucketRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
800
914
  })(HeadBucketRequest || (HeadBucketRequest = {}));
915
+ var NotFound = (function (_super) {
916
+ __extends(NotFound, _super);
917
+ function NotFound(opts) {
918
+ var _this = _super.call(this, __assign({ name: "NotFound", $fault: "client" }, opts)) || this;
919
+ _this.name = "NotFound";
920
+ _this.$fault = "client";
921
+ Object.setPrototypeOf(_this, NotFound.prototype);
922
+ return _this;
923
+ }
924
+ return NotFound;
925
+ }(__BaseException));
926
+ export { NotFound };
801
927
  export var HeadObjectOutput;
802
928
  (function (HeadObjectOutput) {
803
929
  HeadObjectOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSEKMSKeyId && { SSEKMSKeyId: SENSITIVE_STRING }))); };
@@ -890,6 +1016,18 @@ export var ListObjectsRequest;
890
1016
  (function (ListObjectsRequest) {
891
1017
  ListObjectsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
892
1018
  })(ListObjectsRequest || (ListObjectsRequest = {}));
1019
+ var NoSuchBucket = (function (_super) {
1020
+ __extends(NoSuchBucket, _super);
1021
+ function NoSuchBucket(opts) {
1022
+ var _this = _super.call(this, __assign({ name: "NoSuchBucket", $fault: "client" }, opts)) || this;
1023
+ _this.name = "NoSuchBucket";
1024
+ _this.$fault = "client";
1025
+ Object.setPrototypeOf(_this, NoSuchBucket.prototype);
1026
+ return _this;
1027
+ }
1028
+ return NoSuchBucket;
1029
+ }(__BaseException));
1030
+ export { NoSuchBucket };
893
1031
  export var ListObjectsV2Output;
894
1032
  (function (ListObjectsV2Output) {
895
1033
  ListObjectsV2Output.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -924,7 +1062,7 @@ export var ListPartsOutput;
924
1062
  })(ListPartsOutput || (ListPartsOutput = {}));
925
1063
  export var ListPartsRequest;
926
1064
  (function (ListPartsRequest) {
927
- ListPartsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1065
+ ListPartsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.SSECustomerKey && { SSECustomerKey: SENSITIVE_STRING }))); };
928
1066
  })(ListPartsRequest || (ListPartsRequest = {}));
929
1067
  export var PutBucketAccelerateConfigurationRequest;
930
1068
  (function (PutBucketAccelerateConfigurationRequest) {
@@ -1070,27 +1208,3 @@ export var PutObjectLockConfigurationRequest;
1070
1208
  (function (PutObjectLockConfigurationRequest) {
1071
1209
  PutObjectLockConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1072
1210
  })(PutObjectLockConfigurationRequest || (PutObjectLockConfigurationRequest = {}));
1073
- export var PutObjectRetentionOutput;
1074
- (function (PutObjectRetentionOutput) {
1075
- PutObjectRetentionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1076
- })(PutObjectRetentionOutput || (PutObjectRetentionOutput = {}));
1077
- export var PutObjectRetentionRequest;
1078
- (function (PutObjectRetentionRequest) {
1079
- PutObjectRetentionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1080
- })(PutObjectRetentionRequest || (PutObjectRetentionRequest = {}));
1081
- export var PutObjectTaggingOutput;
1082
- (function (PutObjectTaggingOutput) {
1083
- PutObjectTaggingOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1084
- })(PutObjectTaggingOutput || (PutObjectTaggingOutput = {}));
1085
- export var PutObjectTaggingRequest;
1086
- (function (PutObjectTaggingRequest) {
1087
- PutObjectTaggingRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1088
- })(PutObjectTaggingRequest || (PutObjectTaggingRequest = {}));
1089
- export var PutPublicAccessBlockRequest;
1090
- (function (PutPublicAccessBlockRequest) {
1091
- PutPublicAccessBlockRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1092
- })(PutPublicAccessBlockRequest || (PutPublicAccessBlockRequest = {}));
1093
- export var RestoreObjectOutput;
1094
- (function (RestoreObjectOutput) {
1095
- RestoreObjectOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1096
- })(RestoreObjectOutput || (RestoreObjectOutput = {}));
@@ -1,5 +1,42 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { S3ServiceException as __BaseException } from "./S3ServiceException";
4
+ export var PutObjectRetentionOutput;
5
+ (function (PutObjectRetentionOutput) {
6
+ PutObjectRetentionOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
7
+ })(PutObjectRetentionOutput || (PutObjectRetentionOutput = {}));
8
+ export var PutObjectRetentionRequest;
9
+ (function (PutObjectRetentionRequest) {
10
+ PutObjectRetentionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
11
+ })(PutObjectRetentionRequest || (PutObjectRetentionRequest = {}));
12
+ export var PutObjectTaggingOutput;
13
+ (function (PutObjectTaggingOutput) {
14
+ PutObjectTaggingOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
15
+ })(PutObjectTaggingOutput || (PutObjectTaggingOutput = {}));
16
+ export var PutObjectTaggingRequest;
17
+ (function (PutObjectTaggingRequest) {
18
+ PutObjectTaggingRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
19
+ })(PutObjectTaggingRequest || (PutObjectTaggingRequest = {}));
20
+ export var PutPublicAccessBlockRequest;
21
+ (function (PutPublicAccessBlockRequest) {
22
+ PutPublicAccessBlockRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
23
+ })(PutPublicAccessBlockRequest || (PutPublicAccessBlockRequest = {}));
24
+ var ObjectAlreadyInActiveTierError = (function (_super) {
25
+ __extends(ObjectAlreadyInActiveTierError, _super);
26
+ function ObjectAlreadyInActiveTierError(opts) {
27
+ var _this = _super.call(this, __assign({ name: "ObjectAlreadyInActiveTierError", $fault: "client" }, opts)) || this;
28
+ _this.name = "ObjectAlreadyInActiveTierError";
29
+ _this.$fault = "client";
30
+ Object.setPrototypeOf(_this, ObjectAlreadyInActiveTierError.prototype);
31
+ return _this;
32
+ }
33
+ return ObjectAlreadyInActiveTierError;
34
+ }(__BaseException));
35
+ export { ObjectAlreadyInActiveTierError };
36
+ export var RestoreObjectOutput;
37
+ (function (RestoreObjectOutput) {
38
+ RestoreObjectOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
39
+ })(RestoreObjectOutput || (RestoreObjectOutput = {}));
3
40
  export var GlacierJobParameters;
4
41
  (function (GlacierJobParameters) {
5
42
  GlacierJobParameters.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };