@aws-sdk/client-s3 3.36.0 → 3.39.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 (231) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/S3.js +0 -3
  3. package/dist-cjs/S3Client.js +0 -8
  4. package/dist-cjs/commands/AbortMultipartUploadCommand.js +0 -62
  5. package/dist-cjs/commands/CompleteMultipartUploadCommand.js +0 -133
  6. package/dist-cjs/commands/CopyObjectCommand.js +0 -193
  7. package/dist-cjs/commands/CreateBucketCommand.js +0 -142
  8. package/dist-cjs/commands/CreateMultipartUploadCommand.js +0 -281
  9. package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +0 -53
  10. package/dist-cjs/commands/DeleteBucketCommand.js +0 -41
  11. package/dist-cjs/commands/DeleteBucketCorsCommand.js +0 -45
  12. package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +0 -47
  13. package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +0 -46
  14. package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +0 -49
  15. package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +0 -49
  16. package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +0 -59
  17. package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +0 -42
  18. package/dist-cjs/commands/DeleteBucketPolicyCommand.js +0 -56
  19. package/dist-cjs/commands/DeleteBucketReplicationCommand.js +0 -49
  20. package/dist-cjs/commands/DeleteBucketTaggingCommand.js +0 -41
  21. package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +0 -50
  22. package/dist-cjs/commands/DeleteObjectCommand.js +0 -54
  23. package/dist-cjs/commands/DeleteObjectTaggingCommand.js +0 -48
  24. package/dist-cjs/commands/DeleteObjectsCommand.js +0 -80
  25. package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +0 -52
  26. package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +0 -50
  27. package/dist-cjs/commands/GetBucketAclCommand.js +0 -39
  28. package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +0 -53
  29. package/dist-cjs/commands/GetBucketCorsCommand.js +0 -44
  30. package/dist-cjs/commands/GetBucketEncryptionCommand.js +0 -45
  31. package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +0 -46
  32. package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +0 -53
  33. package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +0 -79
  34. package/dist-cjs/commands/GetBucketLocationCommand.js +0 -44
  35. package/dist-cjs/commands/GetBucketLoggingCommand.js +0 -39
  36. package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +0 -60
  37. package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +0 -44
  38. package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +0 -41
  39. package/dist-cjs/commands/GetBucketPolicyCommand.js +0 -50
  40. package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +0 -54
  41. package/dist-cjs/commands/GetBucketReplicationCommand.js +0 -58
  42. package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +0 -34
  43. package/dist-cjs/commands/GetBucketTaggingCommand.js +0 -55
  44. package/dist-cjs/commands/GetBucketVersioningCommand.js +0 -48
  45. package/dist-cjs/commands/GetBucketWebsiteCommand.js +0 -44
  46. package/dist-cjs/commands/GetObjectAclCommand.js +0 -50
  47. package/dist-cjs/commands/GetObjectCommand.js +0 -204
  48. package/dist-cjs/commands/GetObjectLegalHoldCommand.js +0 -25
  49. package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +0 -27
  50. package/dist-cjs/commands/GetObjectRetentionCommand.js +0 -25
  51. package/dist-cjs/commands/GetObjectTaggingCommand.js +0 -51
  52. package/dist-cjs/commands/GetObjectTorrentCommand.js +0 -40
  53. package/dist-cjs/commands/GetPublicAccessBlockCommand.js +0 -63
  54. package/dist-cjs/commands/HeadBucketCommand.js +0 -39
  55. package/dist-cjs/commands/HeadObjectCommand.js +0 -135
  56. package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +0 -63
  57. package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +0 -46
  58. package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +0 -62
  59. package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +0 -64
  60. package/dist-cjs/commands/ListBucketsCommand.js +0 -24
  61. package/dist-cjs/commands/ListMultipartUploadsCommand.js +0 -74
  62. package/dist-cjs/commands/ListObjectVersionsCommand.js +0 -62
  63. package/dist-cjs/commands/ListObjectsCommand.js +0 -61
  64. package/dist-cjs/commands/ListObjectsV2Command.js +0 -65
  65. package/dist-cjs/commands/ListPartsCommand.js +0 -68
  66. package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +0 -69
  67. package/dist-cjs/commands/PutBucketAclCommand.js +0 -213
  68. package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +0 -139
  69. package/dist-cjs/commands/PutBucketCorsCommand.js +0 -80
  70. package/dist-cjs/commands/PutBucketEncryptionCommand.js +0 -56
  71. package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +0 -106
  72. package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +0 -124
  73. package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +0 -117
  74. package/dist-cjs/commands/PutBucketLoggingCommand.js +0 -103
  75. package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +0 -74
  76. package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +0 -85
  77. package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +0 -40
  78. package/dist-cjs/commands/PutBucketPolicyCommand.js +0 -53
  79. package/dist-cjs/commands/PutBucketReplicationCommand.js +0 -93
  80. package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +0 -42
  81. package/dist-cjs/commands/PutBucketTaggingCommand.js +0 -102
  82. package/dist-cjs/commands/PutBucketVersioningCommand.js +0 -72
  83. package/dist-cjs/commands/PutBucketWebsiteCommand.js +0 -149
  84. package/dist-cjs/commands/PutObjectAclCommand.js +0 -200
  85. package/dist-cjs/commands/PutObjectCommand.js +0 -118
  86. package/dist-cjs/commands/PutObjectLegalHoldCommand.js +0 -27
  87. package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +0 -44
  88. package/dist-cjs/commands/PutObjectRetentionCommand.js +0 -36
  89. package/dist-cjs/commands/PutObjectTaggingCommand.js +0 -127
  90. package/dist-cjs/commands/PutPublicAccessBlockCommand.js +0 -68
  91. package/dist-cjs/commands/RestoreObjectCommand.js +0 -315
  92. package/dist-cjs/commands/SelectObjectContentCommand.js +0 -140
  93. package/dist-cjs/commands/UploadPartCommand.js +0 -161
  94. package/dist-cjs/commands/UploadPartCopyCommand.js +0 -202
  95. package/dist-cjs/commands/WriteGetObjectResponseCommand.js +0 -46
  96. package/dist-cjs/commands/index.js +95 -0
  97. package/dist-cjs/endpoints.js +6 -1
  98. package/dist-cjs/index.js +5 -101
  99. package/dist-cjs/models/models_0.js +0 -753
  100. package/dist-cjs/models/models_1.js +0 -96
  101. package/dist-cjs/pagination/ListObjectsV2Paginator.js +0 -10
  102. package/dist-cjs/pagination/ListPartsPaginator.js +0 -10
  103. package/dist-cjs/pagination/index.js +6 -0
  104. package/dist-cjs/protocols/Aws_restXml.js +0 -2
  105. package/dist-cjs/runtimeConfig.browser.js +1 -5
  106. package/dist-cjs/runtimeConfig.js +1 -5
  107. package/dist-cjs/runtimeConfig.native.js +0 -3
  108. package/dist-cjs/runtimeConfig.shared.js +0 -3
  109. package/dist-cjs/waiters/index.js +7 -0
  110. package/dist-cjs/waiters/waitForBucketExists.js +0 -9
  111. package/dist-cjs/waiters/waitForBucketNotExists.js +0 -9
  112. package/dist-cjs/waiters/waitForObjectExists.js +0 -9
  113. package/dist-cjs/waiters/waitForObjectNotExists.js +0 -9
  114. package/dist-es/commands/index.js +92 -0
  115. package/dist-es/endpoints.js +6 -1
  116. package/dist-es/index.js +5 -101
  117. package/dist-es/pagination/index.js +3 -0
  118. package/dist-es/waiters/index.js +4 -0
  119. package/dist-types/commands/index.d.ts +92 -0
  120. package/dist-types/index.d.ts +5 -101
  121. package/dist-types/pagination/index.d.ts +3 -0
  122. package/dist-types/ts3.4/S3.d.ts +93 -5172
  123. package/dist-types/ts3.4/S3Client.d.ts +30 -109
  124. package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -58
  125. package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -129
  126. package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +2 -189
  127. package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +2 -138
  128. package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +2 -277
  129. package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -49
  130. package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +2 -37
  131. package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +2 -41
  132. package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +2 -43
  133. package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
  134. package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -45
  135. package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +2 -45
  136. package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -55
  137. package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -38
  138. package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +2 -52
  139. package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +2 -45
  140. package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +2 -37
  141. package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +2 -46
  142. package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +2 -50
  143. package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +2 -44
  144. package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +2 -76
  145. package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +2 -48
  146. package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -46
  147. package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +2 -35
  148. package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -49
  149. package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +2 -40
  150. package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +2 -41
  151. package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -42
  152. package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -49
  153. package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -75
  154. package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +2 -40
  155. package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +2 -35
  156. package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -56
  157. package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -40
  158. package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +2 -37
  159. package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +2 -46
  160. package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +2 -50
  161. package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +2 -54
  162. package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +2 -30
  163. package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +2 -51
  164. package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +2 -44
  165. package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +2 -40
  166. package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +2 -46
  167. package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -200
  168. package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +2 -21
  169. package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +2 -23
  170. package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +2 -21
  171. package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +2 -47
  172. package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -36
  173. package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +2 -59
  174. package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +2 -35
  175. package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +2 -131
  176. package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -59
  177. package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -42
  178. package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -58
  179. package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -60
  180. package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +2 -20
  181. package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -70
  182. package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +2 -58
  183. package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +2 -57
  184. package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +2 -61
  185. package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +2 -64
  186. package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -65
  187. package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +2 -209
  188. package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -135
  189. package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +2 -76
  190. package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +2 -52
  191. package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -102
  192. package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -120
  193. package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -113
  194. package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +2 -99
  195. package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -70
  196. package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -81
  197. package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +2 -36
  198. package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +2 -49
  199. package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +2 -89
  200. package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +2 -38
  201. package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +2 -98
  202. package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +2 -68
  203. package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +2 -145
  204. package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +2 -196
  205. package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +5 -121
  206. package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +2 -23
  207. package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +2 -40
  208. package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +2 -32
  209. package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +2 -123
  210. package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +2 -64
  211. package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -311
  212. package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +2 -136
  213. package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +5 -164
  214. package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +2 -198
  215. package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +5 -49
  216. package/dist-types/ts3.4/commands/index.d.ts +92 -0
  217. package/dist-types/ts3.4/index.d.ts +5 -101
  218. package/dist-types/ts3.4/models/models_0.d.ts +1305 -7281
  219. package/dist-types/ts3.4/models/models_1.d.ts +223 -956
  220. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  221. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -4
  222. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -4
  223. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -4
  224. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  225. package/dist-types/ts3.4/waiters/index.d.ts +4 -0
  226. package/dist-types/ts3.4/waiters/waitForBucketExists.d.ts +2 -9
  227. package/dist-types/ts3.4/waiters/waitForBucketNotExists.d.ts +2 -9
  228. package/dist-types/ts3.4/waiters/waitForObjectExists.d.ts +2 -9
  229. package/dist-types/ts3.4/waiters/waitForObjectNotExists.d.ts +2 -9
  230. package/dist-types/waiters/index.d.ts +4 -0
  231. package/package.json +46 -46
@@ -6,65 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>Removes the null version (if there is one) of an object and inserts a delete marker,
11
- * which becomes the latest version of the object. If there isn't a null version, Amazon S3 does
12
- * not remove any objects but will still respond that the command was successful.</p>
13
- *
14
- * <p>To remove a specific version, you must be the bucket owner and you must use the version
15
- * Id subresource. Using this subresource permanently deletes the version. If the object
16
- * deleted is a delete marker, Amazon S3 sets the response header,
17
- * <code>x-amz-delete-marker</code>, to true. </p>
18
- *
19
- * <p>If the object you want to delete is in a bucket where the bucket versioning
20
- * configuration is MFA Delete enabled, you must include the <code>x-amz-mfa</code> request
21
- * header in the DELETE <code>versionId</code> request. Requests that include
22
- * <code>x-amz-mfa</code> must use HTTPS. </p>
23
- *
24
- * <p> For more information about MFA Delete, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMFADelete.html">Using MFA Delete</a>. To see sample requests that use versioning, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectDELETE.html#ExampleVersionObjectDelete">Sample Request</a>. </p>
25
- *
26
- * <p>You can delete objects by explicitly calling DELETE Object or configure its
27
- * lifecycle (<a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycle.html">PutBucketLifecycle</a>) to
28
- * enable Amazon S3 to remove them for you. If you want to block users or accounts from removing or
29
- * deleting objects from your bucket, you must deny them the <code>s3:DeleteObject</code>,
30
- * <code>s3:DeleteObjectVersion</code>, and <code>s3:PutLifeCycleConfiguration</code>
31
- * actions. </p>
32
- *
33
- * <p>The following action is related to <code>DeleteObject</code>:</p>
34
- * <ul>
35
- * <li>
36
- * <p>
37
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a>
38
- * </p>
39
- * </li>
40
- * </ul>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { S3Client, DeleteObjectCommand } from "@aws-sdk/client-s3"; // ES Modules import
45
- * // const { S3Client, DeleteObjectCommand } = require("@aws-sdk/client-s3"); // CommonJS import
46
- * const client = new S3Client(config);
47
- * const command = new DeleteObjectCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link DeleteObjectCommandInput} for command's `input` shape.
52
- * @see {@link DeleteObjectCommandOutput} for command's `response` shape.
53
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
9
  class DeleteObjectCommand extends smithy_client_1.Command {
57
- // Start section: command_properties
58
- // End section: command_properties
59
10
  constructor(input) {
60
- // Start section: command_constructor
61
11
  super();
62
12
  this.input = input;
63
- // End section: command_constructor
64
13
  }
65
- /**
66
- * @internal
67
- */
68
14
  resolveMiddleware(clientStack, configuration, options) {
69
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
70
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,59 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>Removes the entire tag set from the specified object. For more information about
11
- * managing object tags, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-tagging.html"> Object
12
- * Tagging</a>.</p>
13
- *
14
- * <p>To use this operation, you must have permission to perform the
15
- * <code>s3:DeleteObjectTagging</code> action.</p>
16
- *
17
- * <p>To delete tags of a specific object version, add the <code>versionId</code> query
18
- * parameter in the request. You will need permission for the
19
- * <code>s3:DeleteObjectVersionTagging</code> action.</p>
20
- *
21
- * <p>The following operations are related to
22
- * <code>DeleteBucketMetricsConfiguration</code>:</p>
23
- * <ul>
24
- * <li>
25
- * <p>
26
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html">PutObjectTagging</a>
27
- * </p>
28
- * </li>
29
- * <li>
30
- * <p>
31
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a>
32
- * </p>
33
- * </li>
34
- * </ul>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { S3Client, DeleteObjectTaggingCommand } from "@aws-sdk/client-s3"; // ES Modules import
39
- * // const { S3Client, DeleteObjectTaggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import
40
- * const client = new S3Client(config);
41
- * const command = new DeleteObjectTaggingCommand(input);
42
- * const response = await client.send(command);
43
- * ```
44
- *
45
- * @see {@link DeleteObjectTaggingCommandInput} for command's `input` shape.
46
- * @see {@link DeleteObjectTaggingCommandOutput} for command's `response` shape.
47
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
48
- *
49
- */
50
9
  class DeleteObjectTaggingCommand extends smithy_client_1.Command {
51
- // Start section: command_properties
52
- // End section: command_properties
53
10
  constructor(input) {
54
- // Start section: command_constructor
55
11
  super();
56
12
  this.input = input;
57
- // End section: command_constructor
58
13
  }
59
- /**
60
- * @internal
61
- */
62
14
  resolveMiddleware(clientStack, configuration, options) {
63
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
64
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -7,91 +7,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
10
- /**
11
- * <p>This action enables you to delete multiple objects from a bucket using a single HTTP
12
- * request. If you know the object keys that you want to delete, then this action provides
13
- * a suitable alternative to sending individual delete requests, reducing per-request
14
- * overhead.</p>
15
- *
16
- * <p>The request contains a list of up to 1000 keys that you want to delete. In the XML, you
17
- * provide the object key names, and optionally, version IDs if you want to delete a specific
18
- * version of the object from a versioning-enabled bucket. For each key, Amazon S3 performs a
19
- * delete action and returns the result of that delete, success, or failure, in the
20
- * response. Note that if the object specified in the request is not found, Amazon S3 returns the
21
- * result as deleted.</p>
22
- *
23
- * <p> The action supports two modes for the response: verbose and quiet. By default, the
24
- * action uses verbose mode in which the response includes the result of deletion of each
25
- * key in your request. In quiet mode the response includes only keys where the delete
26
- * action encountered an error. For a successful deletion, the action does not return
27
- * any information about the delete in the response body.</p>
28
- *
29
- * <p>When performing this action on an MFA Delete enabled bucket, that attempts to delete
30
- * any versioned objects, you must include an MFA token. If you do not provide one, the entire
31
- * request will fail, even if there are non-versioned objects you are trying to delete. If you
32
- * provide an invalid token, whether there are versioned keys in the request or not, the
33
- * entire Multi-Object Delete request will fail. For information about MFA Delete, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html#MultiFactorAuthenticationDelete"> MFA
34
- * Delete</a>.</p>
35
- *
36
- * <p>Finally, the Content-MD5 header is required for all Multi-Object Delete requests. Amazon
37
- * S3 uses the header value to ensure that your request body has not been altered in
38
- * transit.</p>
39
- *
40
- * <p>The following operations are related to <code>DeleteObjects</code>:</p>
41
- * <ul>
42
- * <li>
43
- * <p>
44
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html">CreateMultipartUpload</a>
45
- * </p>
46
- * </li>
47
- * <li>
48
- * <p>
49
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
50
- * </p>
51
- * </li>
52
- * <li>
53
- * <p>
54
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html">CompleteMultipartUpload</a>
55
- * </p>
56
- * </li>
57
- * <li>
58
- * <p>
59
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a>
60
- * </p>
61
- * </li>
62
- * <li>
63
- * <p>
64
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html">AbortMultipartUpload</a>
65
- * </p>
66
- * </li>
67
- * </ul>
68
- * @example
69
- * Use a bare-bones client and the command you need to make an API call.
70
- * ```javascript
71
- * import { S3Client, DeleteObjectsCommand } from "@aws-sdk/client-s3"; // ES Modules import
72
- * // const { S3Client, DeleteObjectsCommand } = require("@aws-sdk/client-s3"); // CommonJS import
73
- * const client = new S3Client(config);
74
- * const command = new DeleteObjectsCommand(input);
75
- * const response = await client.send(command);
76
- * ```
77
- *
78
- * @see {@link DeleteObjectsCommandInput} for command's `input` shape.
79
- * @see {@link DeleteObjectsCommandOutput} for command's `response` shape.
80
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
81
- *
82
- */
83
10
  class DeleteObjectsCommand extends smithy_client_1.Command {
84
- // Start section: command_properties
85
- // End section: command_properties
86
11
  constructor(input) {
87
- // Start section: command_constructor
88
12
  super();
89
13
  this.input = input;
90
- // End section: command_constructor
91
14
  }
92
- /**
93
- * @internal
94
- */
95
15
  resolveMiddleware(clientStack, configuration, options) {
96
16
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
97
17
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,63 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>Removes the <code>PublicAccessBlock</code> configuration for an Amazon S3 bucket. To use this
11
- * operation, you must have the <code>s3:PutBucketPublicAccessBlock</code> permission. For
12
- * more information about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
13
- * Resources</a>.</p>
14
- *
15
- * <p>The following operations are related to <code>DeletePublicAccessBlock</code>:</p>
16
- * <ul>
17
- * <li>
18
- * <p>
19
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html">Using Amazon S3 Block
20
- * Public Access</a>
21
- * </p>
22
- * </li>
23
- * <li>
24
- * <p>
25
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html">GetPublicAccessBlock</a>
26
- * </p>
27
- * </li>
28
- * <li>
29
- * <p>
30
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutPublicAccessBlock.html">PutPublicAccessBlock</a>
31
- * </p>
32
- * </li>
33
- * <li>
34
- * <p>
35
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketPolicyStatus.html">GetBucketPolicyStatus</a>
36
- * </p>
37
- * </li>
38
- * </ul>
39
- * @example
40
- * Use a bare-bones client and the command you need to make an API call.
41
- * ```javascript
42
- * import { S3Client, DeletePublicAccessBlockCommand } from "@aws-sdk/client-s3"; // ES Modules import
43
- * // const { S3Client, DeletePublicAccessBlockCommand } = require("@aws-sdk/client-s3"); // CommonJS import
44
- * const client = new S3Client(config);
45
- * const command = new DeletePublicAccessBlockCommand(input);
46
- * const response = await client.send(command);
47
- * ```
48
- *
49
- * @see {@link DeletePublicAccessBlockCommandInput} for command's `input` shape.
50
- * @see {@link DeletePublicAccessBlockCommandOutput} for command's `response` shape.
51
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
52
- *
53
- */
54
9
  class DeletePublicAccessBlockCommand extends smithy_client_1.Command {
55
- // Start section: command_properties
56
- // End section: command_properties
57
10
  constructor(input) {
58
- // Start section: command_constructor
59
11
  super();
60
12
  this.input = input;
61
- // End section: command_constructor
62
13
  }
63
- /**
64
- * @internal
65
- */
66
14
  resolveMiddleware(clientStack, configuration, options) {
67
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
68
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,61 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>This implementation of the GET action uses the <code>accelerate</code> subresource to
11
- * return the Transfer Acceleration state of a bucket, which is either <code>Enabled</code> or
12
- * <code>Suspended</code>. Amazon S3 Transfer Acceleration is a bucket-level feature that
13
- * enables you to perform faster data transfers to and from Amazon S3.</p>
14
- * <p>To use this operation, you must have permission to perform the
15
- * <code>s3:GetAccelerateConfiguration</code> action. The bucket owner has this permission
16
- * by default. The bucket owner can grant this permission to others. For more information
17
- * about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to your Amazon S3
18
- * Resources</a> in the <i>Amazon S3 User Guide</i>.</p>
19
- * <p>You set the Transfer Acceleration state of an existing bucket to <code>Enabled</code> or
20
- * <code>Suspended</code> by using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAccelerateConfiguration.html">PutBucketAccelerateConfiguration</a> operation. </p>
21
- * <p>A GET <code>accelerate</code> request does not return a state value for a bucket that
22
- * has no transfer acceleration state. A bucket has no Transfer Acceleration state if a state
23
- * has never been set on the bucket. </p>
24
- *
25
- * <p>For more information about transfer acceleration, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html">Transfer Acceleration</a> in the
26
- * Amazon S3 User Guide.</p>
27
- * <p class="title">
28
- * <b>Related Resources</b>
29
- * </p>
30
- * <ul>
31
- * <li>
32
- * <p>
33
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAccelerateConfiguration.html">PutBucketAccelerateConfiguration</a>
34
- * </p>
35
- * </li>
36
- * </ul>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { S3Client, GetBucketAccelerateConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
41
- * // const { S3Client, GetBucketAccelerateConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
42
- * const client = new S3Client(config);
43
- * const command = new GetBucketAccelerateConfigurationCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link GetBucketAccelerateConfigurationCommandInput} for command's `input` shape.
48
- * @see {@link GetBucketAccelerateConfigurationCommandOutput} for command's `response` shape.
49
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
9
  class GetBucketAccelerateConfigurationCommand extends smithy_client_1.Command {
53
- // Start section: command_properties
54
- // End section: command_properties
55
10
  constructor(input) {
56
- // Start section: command_constructor
57
11
  super();
58
12
  this.input = input;
59
- // End section: command_constructor
60
13
  }
61
- /**
62
- * @internal
63
- */
64
14
  resolveMiddleware(clientStack, configuration, options) {
65
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
66
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,50 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>This implementation of the <code>GET</code> action uses the <code>acl</code>
11
- * subresource to return the access control list (ACL) of a bucket. To use <code>GET</code> to
12
- * return the ACL of the bucket, you must have <code>READ_ACP</code> access to the bucket. If
13
- * <code>READ_ACP</code> permission is granted to the anonymous user, you can return the
14
- * ACL of the bucket without using an authorization header.</p>
15
- *
16
- * <p class="title">
17
- * <b>Related Resources</b>
18
- * </p>
19
- * <ul>
20
- * <li>
21
- * <p>
22
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html">ListObjects</a>
23
- * </p>
24
- * </li>
25
- * </ul>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { S3Client, GetBucketAclCommand } from "@aws-sdk/client-s3"; // ES Modules import
30
- * // const { S3Client, GetBucketAclCommand } = require("@aws-sdk/client-s3"); // CommonJS import
31
- * const client = new S3Client(config);
32
- * const command = new GetBucketAclCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetBucketAclCommandInput} for command's `input` shape.
37
- * @see {@link GetBucketAclCommandOutput} for command's `response` shape.
38
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
9
  class GetBucketAclCommand extends smithy_client_1.Command {
42
- // Start section: command_properties
43
- // End section: command_properties
44
10
  constructor(input) {
45
- // Start section: command_constructor
46
11
  super();
47
12
  this.input = input;
48
- // End section: command_constructor
49
13
  }
50
- /**
51
- * @internal
52
- */
53
14
  resolveMiddleware(clientStack, configuration, options) {
54
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
55
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,64 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>This implementation of the GET action returns an analytics configuration (identified
11
- * by the analytics configuration ID) from the bucket.</p>
12
- * <p>To use this operation, you must have permissions to perform the
13
- * <code>s3:GetAnalyticsConfiguration</code> action. The bucket owner has this permission
14
- * by default. The bucket owner can grant this permission to others. For more information
15
- * about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources"> Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
16
- * Resources</a> in the <i>Amazon S3 User Guide</i>. </p>
17
- * <p>For information about Amazon S3 analytics feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3 Analytics – Storage Class
18
- * Analysis</a> in the <i>Amazon S3 User Guide</i>.</p>
19
- *
20
- * <p class="title">
21
- * <b>Related Resources</b>
22
- * </p>
23
- * <ul>
24
- * <li>
25
- * <p>
26
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketAnalyticsConfiguration.html">DeleteBucketAnalyticsConfiguration</a>
27
- * </p>
28
- * </li>
29
- * <li>
30
- * <p>
31
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketAnalyticsConfigurations.html">ListBucketAnalyticsConfigurations</a>
32
- * </p>
33
- * </li>
34
- * <li>
35
- * <p>
36
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAnalyticsConfiguration.html">PutBucketAnalyticsConfiguration</a>
37
- * </p>
38
- * </li>
39
- * </ul>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { S3Client, GetBucketAnalyticsConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
44
- * // const { S3Client, GetBucketAnalyticsConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
45
- * const client = new S3Client(config);
46
- * const command = new GetBucketAnalyticsConfigurationCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link GetBucketAnalyticsConfigurationCommandInput} for command's `input` shape.
51
- * @see {@link GetBucketAnalyticsConfigurationCommandOutput} for command's `response` shape.
52
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
9
  class GetBucketAnalyticsConfigurationCommand extends smithy_client_1.Command {
56
- // Start section: command_properties
57
- // End section: command_properties
58
10
  constructor(input) {
59
- // Start section: command_constructor
60
11
  super();
61
12
  this.input = input;
62
- // End section: command_constructor
63
13
  }
64
- /**
65
- * @internal
66
- */
67
14
  resolveMiddleware(clientStack, configuration, options) {
68
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
69
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,55 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>Returns the cors configuration information set for the bucket.</p>
11
- *
12
- * <p> To use this operation, you must have permission to perform the s3:GetBucketCORS action.
13
- * By default, the bucket owner has this permission and can grant it to others.</p>
14
- *
15
- * <p> For more information about cors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html"> Enabling
16
- * Cross-Origin Resource Sharing</a>.</p>
17
- *
18
- * <p>The following operations are related to <code>GetBucketCors</code>:</p>
19
- * <ul>
20
- * <li>
21
- * <p>
22
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html">PutBucketCors</a>
23
- * </p>
24
- * </li>
25
- * <li>
26
- * <p>
27
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketCors.html">DeleteBucketCors</a>
28
- * </p>
29
- * </li>
30
- * </ul>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { S3Client, GetBucketCorsCommand } from "@aws-sdk/client-s3"; // ES Modules import
35
- * // const { S3Client, GetBucketCorsCommand } = require("@aws-sdk/client-s3"); // CommonJS import
36
- * const client = new S3Client(config);
37
- * const command = new GetBucketCorsCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link GetBucketCorsCommandInput} for command's `input` shape.
42
- * @see {@link GetBucketCorsCommandOutput} for command's `response` shape.
43
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
9
  class GetBucketCorsCommand extends smithy_client_1.Command {
47
- // Start section: command_properties
48
- // End section: command_properties
49
10
  constructor(input) {
50
- // Start section: command_constructor
51
11
  super();
52
12
  this.input = input;
53
- // End section: command_constructor
54
13
  }
55
- /**
56
- * @internal
57
- */
58
14
  resolveMiddleware(clientStack, configuration, options) {
59
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
60
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,56 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>Returns the default encryption configuration for an Amazon S3 bucket. If the bucket does not
11
- * have a default encryption configuration, GetBucketEncryption returns
12
- * <code>ServerSideEncryptionConfigurationNotFoundError</code>. </p>
13
- * <p>For information about the Amazon S3 default encryption feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html">Amazon S3 Default Bucket Encryption</a>.</p>
14
- * <p> To use this operation, you must have permission to perform the
15
- * <code>s3:GetEncryptionConfiguration</code> action. The bucket owner has this permission
16
- * by default. The bucket owner can grant this permission to others. For more information
17
- * about permissions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources">Permissions Related to Bucket Subresource Operations</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html">Managing Access Permissions to Your Amazon S3
18
- * Resources</a>.</p>
19
- * <p>The following operations are related to <code>GetBucketEncryption</code>:</p>
20
- * <ul>
21
- * <li>
22
- * <p>
23
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html">PutBucketEncryption</a>
24
- * </p>
25
- * </li>
26
- * <li>
27
- * <p>
28
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html">DeleteBucketEncryption</a>
29
- * </p>
30
- * </li>
31
- * </ul>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { S3Client, GetBucketEncryptionCommand } from "@aws-sdk/client-s3"; // ES Modules import
36
- * // const { S3Client, GetBucketEncryptionCommand } = require("@aws-sdk/client-s3"); // CommonJS import
37
- * const client = new S3Client(config);
38
- * const command = new GetBucketEncryptionCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link GetBucketEncryptionCommandInput} for command's `input` shape.
43
- * @see {@link GetBucketEncryptionCommandOutput} for command's `response` shape.
44
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
9
  class GetBucketEncryptionCommand extends smithy_client_1.Command {
48
- // Start section: command_properties
49
- // End section: command_properties
50
10
  constructor(input) {
51
- // Start section: command_constructor
52
11
  super();
53
12
  this.input = input;
54
- // End section: command_constructor
55
13
  }
56
- /**
57
- * @internal
58
- */
59
14
  resolveMiddleware(clientStack, configuration, options) {
60
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
61
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,57 +6,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
9
- /**
10
- * <p>Gets the S3 Intelligent-Tiering configuration from the specified bucket.</p>
11
- * <p>The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in two low latency and high throughput access tiers. For data that can be accessed asynchronously, you can choose to activate automatic archiving capabilities within the S3 Intelligent-Tiering storage class.</p>
12
- * <p>The S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.</p>
13
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access">Storage class for automatically optimizing frequently and infrequently accessed objects</a>.</p>
14
- * <p>Operations related to
15
- * <code>GetBucketIntelligentTieringConfiguration</code> include: </p>
16
- * <ul>
17
- * <li>
18
- * <p>
19
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketIntelligentTieringConfiguration.html">DeleteBucketIntelligentTieringConfiguration</a>
20
- * </p>
21
- * </li>
22
- * <li>
23
- * <p>
24
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketIntelligentTieringConfiguration.html">PutBucketIntelligentTieringConfiguration</a>
25
- * </p>
26
- * </li>
27
- * <li>
28
- * <p>
29
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketIntelligentTieringConfigurations.html">ListBucketIntelligentTieringConfigurations</a>
30
- * </p>
31
- * </li>
32
- * </ul>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { S3Client, GetBucketIntelligentTieringConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
37
- * // const { S3Client, GetBucketIntelligentTieringConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
38
- * const client = new S3Client(config);
39
- * const command = new GetBucketIntelligentTieringConfigurationCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link GetBucketIntelligentTieringConfigurationCommandInput} for command's `input` shape.
44
- * @see {@link GetBucketIntelligentTieringConfigurationCommandOutput} for command's `response` shape.
45
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
9
  class GetBucketIntelligentTieringConfigurationCommand extends smithy_client_1.Command {
49
- // Start section: command_properties
50
- // End section: command_properties
51
10
  constructor(input) {
52
- // Start section: command_constructor
53
11
  super();
54
12
  this.input = input;
55
- // End section: command_constructor
56
13
  }
57
- /**
58
- * @internal
59
- */
60
14
  resolveMiddleware(clientStack, configuration, options) {
61
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
62
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));