@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,45 +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 request payment configuration of a bucket. To use this version of the
11
- * operation, you must be the bucket owner. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html">Requester Pays Buckets</a>.</p>
12
- *
13
- * <p>The following operations are related to <code>GetBucketRequestPayment</code>:</p>
14
- * <ul>
15
- * <li>
16
- * <p>
17
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html">ListObjects</a>
18
- * </p>
19
- * </li>
20
- * </ul>
21
- * @example
22
- * Use a bare-bones client and the command you need to make an API call.
23
- * ```javascript
24
- * import { S3Client, GetBucketRequestPaymentCommand } from "@aws-sdk/client-s3"; // ES Modules import
25
- * // const { S3Client, GetBucketRequestPaymentCommand } = require("@aws-sdk/client-s3"); // CommonJS import
26
- * const client = new S3Client(config);
27
- * const command = new GetBucketRequestPaymentCommand(input);
28
- * const response = await client.send(command);
29
- * ```
30
- *
31
- * @see {@link GetBucketRequestPaymentCommandInput} for command's `input` shape.
32
- * @see {@link GetBucketRequestPaymentCommandOutput} for command's `response` shape.
33
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
34
- *
35
- */
36
9
  class GetBucketRequestPaymentCommand extends smithy_client_1.Command {
37
- // Start section: command_properties
38
- // End section: command_properties
39
10
  constructor(input) {
40
- // Start section: command_constructor
41
11
  super();
42
12
  this.input = input;
43
- // End section: command_constructor
44
13
  }
45
- /**
46
- * @internal
47
- */
48
14
  resolveMiddleware(clientStack, configuration, options) {
49
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
50
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,66 +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 tag set associated with the bucket.</p>
11
- * <p>To use this operation, you must have permission to perform the
12
- * <code>s3:GetBucketTagging</code> action. By default, the bucket owner has this
13
- * permission and can grant this permission to others.</p>
14
- *
15
- * <p>
16
- * <code>GetBucketTagging</code> has the following special error:</p>
17
- * <ul>
18
- * <li>
19
- * <p>Error code: <code>NoSuchTagSetError</code>
20
- * </p>
21
- * <ul>
22
- * <li>
23
- * <p>Description: There is no tag set associated with the bucket.</p>
24
- * </li>
25
- * </ul>
26
- * </li>
27
- * </ul>
28
- *
29
- * <p>The following operations are related to <code>GetBucketTagging</code>:</p>
30
- * <ul>
31
- * <li>
32
- * <p>
33
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketTagging.html">PutBucketTagging</a>
34
- * </p>
35
- * </li>
36
- * <li>
37
- * <p>
38
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketTagging.html">DeleteBucketTagging</a>
39
- * </p>
40
- * </li>
41
- * </ul>
42
- * @example
43
- * Use a bare-bones client and the command you need to make an API call.
44
- * ```javascript
45
- * import { S3Client, GetBucketTaggingCommand } from "@aws-sdk/client-s3"; // ES Modules import
46
- * // const { S3Client, GetBucketTaggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import
47
- * const client = new S3Client(config);
48
- * const command = new GetBucketTaggingCommand(input);
49
- * const response = await client.send(command);
50
- * ```
51
- *
52
- * @see {@link GetBucketTaggingCommandInput} for command's `input` shape.
53
- * @see {@link GetBucketTaggingCommandOutput} for command's `response` shape.
54
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
55
- *
56
- */
57
9
  class GetBucketTaggingCommand extends smithy_client_1.Command {
58
- // Start section: command_properties
59
- // End section: command_properties
60
10
  constructor(input) {
61
- // Start section: command_constructor
62
11
  super();
63
12
  this.input = input;
64
- // End section: command_constructor
65
13
  }
66
- /**
67
- * @internal
68
- */
69
14
  resolveMiddleware(clientStack, configuration, options) {
70
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
71
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>Returns the versioning state of a bucket.</p>
11
- * <p>To retrieve the versioning state of a bucket, you must be the bucket owner.</p>
12
- *
13
- * <p>This implementation also returns the MFA Delete status of the versioning state. If the
14
- * MFA Delete status is <code>enabled</code>, the bucket owner must use an authentication
15
- * device to change the versioning state of the bucket.</p>
16
- *
17
- * <p>The following operations are related to <code>GetBucketVersioning</code>:</p>
18
- * <ul>
19
- * <li>
20
- * <p>
21
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>
22
- * </p>
23
- * </li>
24
- * <li>
25
- * <p>
26
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a>
27
- * </p>
28
- * </li>
29
- * <li>
30
- * <p>
31
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html">DeleteObject</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, GetBucketVersioningCommand } from "@aws-sdk/client-s3"; // ES Modules import
39
- * // const { S3Client, GetBucketVersioningCommand } = require("@aws-sdk/client-s3"); // CommonJS import
40
- * const client = new S3Client(config);
41
- * const command = new GetBucketVersioningCommand(input);
42
- * const response = await client.send(command);
43
- * ```
44
- *
45
- * @see {@link GetBucketVersioningCommandInput} for command's `input` shape.
46
- * @see {@link GetBucketVersioningCommandOutput} for command's `response` shape.
47
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
48
- *
49
- */
50
9
  class GetBucketVersioningCommand 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));
@@ -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 website configuration for a bucket. To host website on Amazon S3, you can
11
- * configure a bucket as website by adding a website configuration. For more information about
12
- * hosting websites, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html">Hosting Websites on
13
- * Amazon S3</a>. </p>
14
- * <p>This GET action requires the <code>S3:GetBucketWebsite</code> permission. By default,
15
- * only the bucket owner can read the bucket website configuration. However, bucket owners can
16
- * allow other users to read the website configuration by writing a bucket policy granting
17
- * them the <code>S3:GetBucketWebsite</code> permission.</p>
18
- * <p>The following operations are related to <code>DeleteBucketWebsite</code>:</p>
19
- * <ul>
20
- * <li>
21
- * <p>
22
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketWebsite.html">DeleteBucketWebsite</a>
23
- * </p>
24
- * </li>
25
- * <li>
26
- * <p>
27
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketWebsite.html">PutBucketWebsite</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, GetBucketWebsiteCommand } from "@aws-sdk/client-s3"; // ES Modules import
35
- * // const { S3Client, GetBucketWebsiteCommand } = require("@aws-sdk/client-s3"); // CommonJS import
36
- * const client = new S3Client(config);
37
- * const command = new GetBucketWebsiteCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link GetBucketWebsiteCommandInput} for command's `input` shape.
42
- * @see {@link GetBucketWebsiteCommandOutput} for command's `response` shape.
43
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
9
  class GetBucketWebsiteCommand 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,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>Returns the access control list (ACL) of an object. To use this operation, you must have
11
- * <code>READ_ACP</code> access to the object.</p>
12
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
13
- * <p>
14
- * <b>Versioning</b>
15
- * </p>
16
- * <p>By default, GET returns ACL information about the current version of an object. To
17
- * return ACL information about a different version, use the versionId subresource.</p>
18
- *
19
- * <p>The following operations are related to <code>GetObjectAcl</code>:</p>
20
- * <ul>
21
- * <li>
22
- * <p>
23
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html">GetObject</a>
24
- * </p>
25
- * </li>
26
- * <li>
27
- * <p>
28
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html">DeleteObject</a>
29
- * </p>
30
- * </li>
31
- * <li>
32
- * <p>
33
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</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, GetObjectAclCommand } from "@aws-sdk/client-s3"; // ES Modules import
41
- * // const { S3Client, GetObjectAclCommand } = require("@aws-sdk/client-s3"); // CommonJS import
42
- * const client = new S3Client(config);
43
- * const command = new GetObjectAclCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link GetObjectAclCommandInput} for command's `input` shape.
48
- * @see {@link GetObjectAclCommandOutput} for command's `response` shape.
49
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
9
  class GetObjectAclCommand 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));
@@ -7,215 +7,11 @@ const middleware_ssec_1 = require("@aws-sdk/middleware-ssec");
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>Retrieves objects from Amazon S3. To use <code>GET</code>, you must have <code>READ</code>
12
- * access to the object. If you grant <code>READ</code> access to the anonymous user, you can
13
- * return the object without using an authorization header.</p>
14
- *
15
- * <p>An Amazon S3 bucket has no directory hierarchy such as you would find in a typical computer
16
- * file system. You can, however, create a logical hierarchy by using object key names that
17
- * imply a folder structure. For example, instead of naming an object <code>sample.jpg</code>,
18
- * you can name it <code>photos/2006/February/sample.jpg</code>.</p>
19
- *
20
- * <p>To get an object from such a logical hierarchy, specify the full key name for the object
21
- * in the <code>GET</code> operation. For a virtual hosted-style request example, if you have
22
- * the object <code>photos/2006/February/sample.jpg</code>, specify the resource as
23
- * <code>/photos/2006/February/sample.jpg</code>. For a path-style request example, if you
24
- * have the object <code>photos/2006/February/sample.jpg</code> in the bucket named
25
- * <code>examplebucket</code>, specify the resource as
26
- * <code>/examplebucket/photos/2006/February/sample.jpg</code>. For more information about
27
- * request types, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingSpecifyBucket">HTTP Host Header Bucket Specification</a>.</p>
28
- *
29
- * <p>To distribute large files to many people, you can save bandwidth costs by using
30
- * BitTorrent. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3Torrent.html">Amazon S3
31
- * Torrent</a>. For more information about returning the ACL of an object, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html">GetObjectAcl</a>.</p>
32
- *
33
- * <p>If the object you are retrieving is stored in the S3 Glacier or
34
- * S3 Glacier Deep Archive storage class, or S3 Intelligent-Tiering Archive or
35
- * S3 Intelligent-Tiering Deep Archive tiers, before you can retrieve the object you must first restore a
36
- * copy using <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html">RestoreObject</a>. Otherwise, this action returns an
37
- * <code>InvalidObjectStateError</code> error. For information about restoring archived
38
- * objects, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html">Restoring Archived
39
- * Objects</a>.</p>
40
- *
41
- * <p>Encryption request headers, like <code>x-amz-server-side-encryption</code>, should not
42
- * be sent for GET requests if your object uses server-side encryption with KMS keys (SSE-KMS)
43
- * or server-side encryption with Amazon S3–managed encryption keys (SSE-S3). If your
44
- * object does use these types of keys, you’ll get an HTTP 400 BadRequest error.</p>
45
- * <p>If you encrypt an object by using server-side encryption with customer-provided
46
- * encryption keys (SSE-C) when you store the object in Amazon S3, then when you GET the object,
47
- * you must use the following headers:</p>
48
- * <ul>
49
- * <li>
50
- * <p>x-amz-server-side-encryption-customer-algorithm</p>
51
- * </li>
52
- * <li>
53
- * <p>x-amz-server-side-encryption-customer-key</p>
54
- * </li>
55
- * <li>
56
- * <p>x-amz-server-side-encryption-customer-key-MD5</p>
57
- * </li>
58
- * </ul>
59
- * <p>For more information about SSE-C, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html">Server-Side Encryption (Using
60
- * Customer-Provided Encryption Keys)</a>.</p>
61
- *
62
- * <p>Assuming you have the relevant permission to read object tags, the response also returns the
63
- * <code>x-amz-tagging-count</code> header that provides the count of number of tags
64
- * associated with the object. You can use <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html">GetObjectTagging</a> to retrieve
65
- * the tag set associated with an object.</p>
66
- *
67
- * <p>
68
- * <b>Permissions</b>
69
- * </p>
70
- * <p>You need the relevant read object (or version) permission for this operation. For more
71
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html">Specifying Permissions
72
- * in a Policy</a>. If the object you request does not exist, the error Amazon S3 returns
73
- * depends on whether you also have the <code>s3:ListBucket</code> permission.</p>
74
- * <ul>
75
- * <li>
76
- * <p>If you have the <code>s3:ListBucket</code> permission on the bucket, Amazon S3 will
77
- * return an HTTP status code 404 ("no such key") error.</p>
78
- * </li>
79
- * <li>
80
- * <p>If you don’t have the <code>s3:ListBucket</code> permission, Amazon S3 will return an
81
- * HTTP status code 403 ("access denied") error.</p>
82
- * </li>
83
- * </ul>
84
- *
85
- *
86
- * <p>
87
- * <b>Versioning</b>
88
- * </p>
89
- * <p>By default, the GET action returns the current version of an object. To return a
90
- * different version, use the <code>versionId</code> subresource.</p>
91
- *
92
- * <note>
93
- * <ul>
94
- * <li>
95
- * <p>You need the <code>s3:GetObjectVersion</code> permission to access a specific version of an object.
96
- * </p>
97
- * </li>
98
- * <li>
99
- * <p>If the current version of the object is a delete marker, Amazon S3 behaves as if the
100
- * object was deleted and includes <code>x-amz-delete-marker: true</code> in the
101
- * response.</p>
102
- * </li>
103
- * </ul>
104
- * </note>
105
- *
106
- *
107
- * <p>For more information about versioning, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketVersioning.html">PutBucketVersioning</a>. </p>
108
- *
109
- * <p>
110
- * <b>Overriding Response Header Values</b>
111
- * </p>
112
- * <p>There are times when you want to override certain response header values in a GET
113
- * response. For example, you might override the Content-Disposition response header value in
114
- * your GET request.</p>
115
- *
116
- * <p>You can override values for a set of response headers using the following query
117
- * parameters. These response header values are sent only on a successful request, that is,
118
- * when status code 200 OK is returned. The set of headers you can override using these
119
- * parameters is a subset of the headers that Amazon S3 accepts when you create an object. The
120
- * response headers that you can override for the GET response are <code>Content-Type</code>,
121
- * <code>Content-Language</code>, <code>Expires</code>, <code>Cache-Control</code>,
122
- * <code>Content-Disposition</code>, and <code>Content-Encoding</code>. To override these
123
- * header values in the GET response, you use the following request parameters.</p>
124
- *
125
- * <note>
126
- * <p>You must sign the request, either using an Authorization header or a presigned URL,
127
- * when using these parameters. They cannot be used with an unsigned (anonymous)
128
- * request.</p>
129
- * </note>
130
- * <ul>
131
- * <li>
132
- * <p>
133
- * <code>response-content-type</code>
134
- * </p>
135
- * </li>
136
- * <li>
137
- * <p>
138
- * <code>response-content-language</code>
139
- * </p>
140
- * </li>
141
- * <li>
142
- * <p>
143
- * <code>response-expires</code>
144
- * </p>
145
- * </li>
146
- * <li>
147
- * <p>
148
- * <code>response-cache-control</code>
149
- * </p>
150
- * </li>
151
- * <li>
152
- * <p>
153
- * <code>response-content-disposition</code>
154
- * </p>
155
- * </li>
156
- * <li>
157
- * <p>
158
- * <code>response-content-encoding</code>
159
- * </p>
160
- * </li>
161
- * </ul>
162
- *
163
- * <p>
164
- * <b>Additional Considerations about Request Headers</b>
165
- * </p>
166
- *
167
- * <p>If both of the <code>If-Match</code> and <code>If-Unmodified-Since</code> headers are
168
- * present in the request as follows: <code>If-Match</code> condition evaluates to
169
- * <code>true</code>, and; <code>If-Unmodified-Since</code> condition evaluates to
170
- * <code>false</code>; then, S3 returns 200 OK and the data requested. </p>
171
- *
172
- * <p>If both of the <code>If-None-Match</code> and <code>If-Modified-Since</code> headers are
173
- * present in the request as follows:<code> If-None-Match</code> condition evaluates to
174
- * <code>false</code>, and; <code>If-Modified-Since</code> condition evaluates to
175
- * <code>true</code>; then, S3 returns 304 Not Modified response code.</p>
176
- *
177
- * <p>For more information about conditional requests, see <a href="https://tools.ietf.org/html/rfc7232">RFC 7232</a>.</p>
178
- *
179
- * <p>The following operations are related to <code>GetObject</code>:</p>
180
- * <ul>
181
- * <li>
182
- * <p>
183
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html">ListBuckets</a>
184
- * </p>
185
- * </li>
186
- * <li>
187
- * <p>
188
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html">GetObjectAcl</a>
189
- * </p>
190
- * </li>
191
- * </ul>
192
- * @example
193
- * Use a bare-bones client and the command you need to make an API call.
194
- * ```javascript
195
- * import { S3Client, GetObjectCommand } from "@aws-sdk/client-s3"; // ES Modules import
196
- * // const { S3Client, GetObjectCommand } = require("@aws-sdk/client-s3"); // CommonJS import
197
- * const client = new S3Client(config);
198
- * const command = new GetObjectCommand(input);
199
- * const response = await client.send(command);
200
- * ```
201
- *
202
- * @see {@link GetObjectCommandInput} for command's `input` shape.
203
- * @see {@link GetObjectCommandOutput} for command's `response` shape.
204
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
205
- *
206
- */
207
10
  class GetObjectCommand extends smithy_client_1.Command {
208
- // Start section: command_properties
209
- // End section: command_properties
210
11
  constructor(input) {
211
- // Start section: command_constructor
212
12
  super();
213
13
  this.input = input;
214
- // End section: command_constructor
215
14
  }
216
- /**
217
- * @internal
218
- */
219
15
  resolveMiddleware(clientStack, configuration, options) {
220
16
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
221
17
  this.middlewareStack.use(middleware_ssec_1.getSsecPlugin(configuration));
@@ -6,36 +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 an object's current Legal Hold status. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
11
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { S3Client, GetObjectLegalHoldCommand } from "@aws-sdk/client-s3"; // ES Modules import
16
- * // const { S3Client, GetObjectLegalHoldCommand } = require("@aws-sdk/client-s3"); // CommonJS import
17
- * const client = new S3Client(config);
18
- * const command = new GetObjectLegalHoldCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link GetObjectLegalHoldCommandInput} for command's `input` shape.
23
- * @see {@link GetObjectLegalHoldCommandOutput} for command's `response` shape.
24
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class GetObjectLegalHoldCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,38 +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 Object Lock configuration for a bucket. The rule specified in the Object Lock
11
- * configuration will be applied by default to every new object placed in the specified
12
- * bucket. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking
13
- * Objects</a>.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { S3Client, GetObjectLockConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
18
- * // const { S3Client, GetObjectLockConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
19
- * const client = new S3Client(config);
20
- * const command = new GetObjectLockConfigurationCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link GetObjectLockConfigurationCommandInput} for command's `input` shape.
25
- * @see {@link GetObjectLockConfigurationCommandOutput} for command's `response` shape.
26
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
9
  class GetObjectLockConfigurationCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
10
  constructor(input) {
33
- // Start section: command_constructor
34
11
  super();
35
12
  this.input = input;
36
- // End section: command_constructor
37
13
  }
38
- /**
39
- * @internal
40
- */
41
14
  resolveMiddleware(clientStack, configuration, options) {
42
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));
@@ -6,36 +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>Retrieves an object's retention settings. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html">Locking Objects</a>.</p>
11
- * <p>This action is not supported by Amazon S3 on Outposts.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { S3Client, GetObjectRetentionCommand } from "@aws-sdk/client-s3"; // ES Modules import
16
- * // const { S3Client, GetObjectRetentionCommand } = require("@aws-sdk/client-s3"); // CommonJS import
17
- * const client = new S3Client(config);
18
- * const command = new GetObjectRetentionCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link GetObjectRetentionCommandInput} for command's `input` shape.
23
- * @see {@link GetObjectRetentionCommandOutput} for command's `response` shape.
24
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class GetObjectRetentionCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_bucket_endpoint_1.getBucketEndpointPlugin(configuration));