@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,153 +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>Creates a new S3 bucket. To create a bucket, you must register with Amazon S3 and have a
11
- * valid Amazon Web Services Access Key ID to authenticate requests. Anonymous requests are never allowed to
12
- * create buckets. By creating the bucket, you become the bucket owner.</p>
13
- * <p>Not every string is an acceptable bucket name. For information about bucket naming
14
- * restrictions, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Bucket naming rules</a>.</p>
15
- * <p>If you want to create an Amazon S3 on Outposts bucket, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateBucket.html">Create Bucket</a>. </p>
16
- * <p>By default, the bucket is created in the US East (N. Virginia) Region. You can
17
- * optionally specify a Region in the request body. You might choose a Region to optimize
18
- * latency, minimize costs, or address regulatory requirements. For example, if you reside in
19
- * Europe, you will probably find it advantageous to create buckets in the Europe (Ireland)
20
- * Region. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro">Accessing a
21
- * bucket</a>.</p>
22
- * <note>
23
- * <p>If you send your create bucket request to the <code>s3.amazonaws.com</code> endpoint,
24
- * the request goes to the us-east-1 Region. Accordingly, the signature calculations in
25
- * Signature Version 4 must use us-east-1 as the Region, even if the location constraint in
26
- * the request specifies another Region where the bucket is to be created. If you create a
27
- * bucket in a Region other than US East (N. Virginia), your application must be able to
28
- * handle 307 redirect. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html">Virtual hosting of buckets</a>.</p>
29
- * </note>
30
- * <p>When creating a bucket using this operation, you can optionally specify the accounts or
31
- * groups that should be granted specific permissions on the bucket. There are two ways to
32
- * grant the appropriate permissions using the request headers.</p>
33
- * <ul>
34
- * <li>
35
- * <p>Specify a canned ACL using the <code>x-amz-acl</code> request header. Amazon S3
36
- * supports a set of predefined ACLs, known as <i>canned ACLs</i>. Each
37
- * canned ACL has a predefined set of grantees and permissions. For more information,
38
- * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned ACL</a>.</p>
39
- * </li>
40
- * <li>
41
- * <p>Specify access permissions explicitly using the <code>x-amz-grant-read</code>,
42
- * <code>x-amz-grant-write</code>, <code>x-amz-grant-read-acp</code>,
43
- * <code>x-amz-grant-write-acp</code>, and <code>x-amz-grant-full-control</code>
44
- * headers. These headers map to the set of permissions Amazon S3 supports in an ACL. For
45
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access control list
46
- * (ACL) overview</a>.</p>
47
- * <p>You specify each grantee as a type=value pair, where the type is one of the
48
- * following:</p>
49
- * <ul>
50
- * <li>
51
- * <p>
52
- * <code>id</code> – if the value specified is the canonical user ID of an Amazon Web Services account</p>
53
- * </li>
54
- * <li>
55
- * <p>
56
- * <code>uri</code> – if you are granting permissions to a predefined
57
- * group</p>
58
- * </li>
59
- * <li>
60
- * <p>
61
- * <code>emailAddress</code> – if the value specified is the email address of
62
- * an Amazon Web Services account</p>
63
- * <note>
64
- * <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
65
- * <ul>
66
- * <li>
67
- * <p>US East (N. Virginia)</p>
68
- * </li>
69
- * <li>
70
- * <p>US West (N. California)</p>
71
- * </li>
72
- * <li>
73
- * <p> US West (Oregon)</p>
74
- * </li>
75
- * <li>
76
- * <p> Asia Pacific (Singapore)</p>
77
- * </li>
78
- * <li>
79
- * <p>Asia Pacific (Sydney)</p>
80
- * </li>
81
- * <li>
82
- * <p>Asia Pacific (Tokyo)</p>
83
- * </li>
84
- * <li>
85
- * <p>Europe (Ireland)</p>
86
- * </li>
87
- * <li>
88
- * <p>South America (São Paulo)</p>
89
- * </li>
90
- * </ul>
91
- * <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
92
- * </note>
93
- * </li>
94
- * </ul>
95
- * <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
96
- * <p>
97
- * <code>x-amz-grant-read: id="11112222333", id="444455556666" </code>
98
- * </p>
99
- * </li>
100
- * </ul>
101
- * <note>
102
- * <p>You can use either a canned ACL or specify access permissions explicitly. You cannot
103
- * do both.</p>
104
- * </note>
105
- *
106
- * <p>
107
- * <b>Permissions</b>
108
- * </p>
109
- * <p>If your <code>CreateBucket</code> request specifies ACL permissions and the ACL is public-read, public-read-write,
110
- * authenticated-read, or if you specify access permissions explicitly through any other ACL, both
111
- * <code>s3:CreateBucket</code> and <code>s3:PutBucketAcl</code> permissions are needed. If the ACL the
112
- * <code>CreateBucket</code> request is private, only <code>s3:CreateBucket</code> permission is needed. </p>
113
- * <p>If <code>ObjectLockEnabledForBucket</code> is set to true in your <code>CreateBucket</code> request,
114
- * <code>s3:PutBucketObjectLockConfiguration</code> and <code>s3:PutBucketVersioning</code> permissions are required.</p>
115
- *
116
- * <p>The following operations are related to <code>CreateBucket</code>:</p>
117
- * <ul>
118
- * <li>
119
- * <p>
120
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html">PutObject</a>
121
- * </p>
122
- * </li>
123
- * <li>
124
- * <p>
125
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html">DeleteBucket</a>
126
- * </p>
127
- * </li>
128
- * </ul>
129
- * @example
130
- * Use a bare-bones client and the command you need to make an API call.
131
- * ```javascript
132
- * import { S3Client, CreateBucketCommand } from "@aws-sdk/client-s3"; // ES Modules import
133
- * // const { S3Client, CreateBucketCommand } = require("@aws-sdk/client-s3"); // CommonJS import
134
- * const client = new S3Client(config);
135
- * const command = new CreateBucketCommand(input);
136
- * const response = await client.send(command);
137
- * ```
138
- *
139
- * @see {@link CreateBucketCommandInput} for command's `input` shape.
140
- * @see {@link CreateBucketCommandOutput} for command's `response` shape.
141
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
142
- *
143
- */
144
9
  class CreateBucketCommand extends smithy_client_1.Command {
145
- // Start section: command_properties
146
- // End section: command_properties
147
10
  constructor(input) {
148
- // Start section: command_constructor
149
11
  super();
150
12
  this.input = input;
151
- // End section: command_constructor
152
13
  }
153
- /**
154
- * @internal
155
- */
156
14
  resolveMiddleware(clientStack, configuration, options) {
157
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
158
16
  this.middlewareStack.use(middleware_location_constraint_1.getLocationConstraintPlugin(configuration));
@@ -7,292 +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>This action initiates a multipart upload and returns an upload ID. This upload ID is
12
- * used to associate all of the parts in the specific multipart upload. You specify this
13
- * upload ID in each of your subsequent upload part requests (see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>). You also include this
14
- * upload ID in the final request to either complete or abort the multipart upload
15
- * request.</p>
16
- *
17
- * <p>For more information about multipart uploads, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html">Multipart Upload Overview</a>.</p>
18
- *
19
- * <p>If you have configured a lifecycle rule to abort incomplete multipart uploads, the
20
- * upload must complete within the number of days specified in the bucket lifecycle
21
- * configuration. Otherwise, the incomplete multipart upload becomes eligible for an abort
22
- * action and Amazon S3 aborts the multipart upload. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config">Aborting
23
- * Incomplete Multipart Uploads Using a Bucket Lifecycle Policy</a>.</p>
24
- *
25
- * <p>For information about the permissions required to use the multipart upload API, see
26
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html">Multipart Upload and
27
- * Permissions</a>.</p>
28
- *
29
- * <p>For request signing, multipart upload is just a series of regular requests. You initiate
30
- * a multipart upload, send one or more requests to upload parts, and then complete the
31
- * multipart upload process. You sign each request individually. There is nothing special
32
- * about signing multipart upload requests. For more information about signing, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
33
- * Requests (Amazon Web Services Signature Version 4)</a>.</p>
34
- *
35
- * <note>
36
- * <p> After you initiate a multipart upload and upload one or more parts, to stop being
37
- * charged for storing the uploaded parts, you must either complete or abort the multipart
38
- * upload. Amazon S3 frees up the space used to store the parts and stop charging you for
39
- * storing them only after you either complete or abort a multipart upload. </p>
40
- * </note>
41
- *
42
- * <p>You can optionally request server-side encryption. For server-side encryption, Amazon S3
43
- * encrypts your data as it writes it to disks in its data centers and decrypts it when you
44
- * access it. You can provide your own encryption key, or use Amazon Web Services KMS keys or Amazon S3-managed encryption keys. If you choose to provide
45
- * your own encryption key, the request headers you provide in <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a> and <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html">UploadPartCopy</a> requests must match the headers you used in the request to
46
- * initiate the upload by using <code>CreateMultipartUpload</code>. </p>
47
- * <p>To perform a multipart upload with encryption using an Amazon Web Services KMS key, the requester must
48
- * have permission to the <code>kms:Decrypt</code> and <code>kms:GenerateDataKey*</code>
49
- * actions on the key. These permissions are required because Amazon S3 must decrypt and read data
50
- * from the encrypted file parts before it completes the multipart upload. For more
51
- * information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions">Multipart upload API
52
- * and permissions</a> in the <i>Amazon S3 User Guide</i>.</p>
53
- *
54
- * <p>If your Identity and Access Management (IAM) user or role is in the same Amazon Web Services account
55
- * as the KMS key, then you must have these permissions on the key policy. If your IAM
56
- * user or role belongs to a different account than the key, then you must have the
57
- * permissions on both the key policy and your IAM user or role.</p>
58
- *
59
- *
60
- * <p> For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html">Protecting
61
- * Data Using Server-Side Encryption</a>.</p>
62
- *
63
- * <dl>
64
- * <dt>Access Permissions</dt>
65
- * <dd>
66
- * <p>When copying an object, you can optionally specify the accounts or groups that
67
- * should be granted specific permissions on the new object. There are two ways to
68
- * grant the permissions using the request headers:</p>
69
- * <ul>
70
- * <li>
71
- * <p>Specify a canned ACL with the <code>x-amz-acl</code> request header. For
72
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned ACL</a>.</p>
73
- * </li>
74
- * <li>
75
- * <p>Specify access permissions explicitly with the
76
- * <code>x-amz-grant-read</code>, <code>x-amz-grant-read-acp</code>,
77
- * <code>x-amz-grant-write-acp</code>, and
78
- * <code>x-amz-grant-full-control</code> headers. These parameters map to
79
- * the set of permissions that Amazon S3 supports in an ACL. For more information,
80
- * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access Control List (ACL)
81
- * Overview</a>.</p>
82
- * </li>
83
- * </ul>
84
- * <p>You can use either a canned ACL or specify access permissions explicitly. You
85
- * cannot do both.</p>
86
- * </dd>
87
- * <dt>Server-Side- Encryption-Specific Request Headers</dt>
88
- * <dd>
89
- * <p>You can optionally tell Amazon S3 to encrypt data at rest using server-side
90
- * encryption. Server-side encryption is for data encryption at rest. Amazon S3 encrypts
91
- * your data as it writes it to disks in its data centers and decrypts it when you
92
- * access it. The option you use depends on whether you want to use Amazon Web Services managed
93
- * encryption keys or provide your own encryption key. </p>
94
- * <ul>
95
- * <li>
96
- * <p>Use encryption keys managed by Amazon S3 or customer managed key stored
97
- * in Amazon Web Services Key Management Service (Amazon Web Services KMS) – If you want Amazon Web Services to manage the keys
98
- * used to encrypt data, specify the following headers in the request.</p>
99
- * <ul>
100
- * <li>
101
- * <p>x-amz-server-side-encryption</p>
102
- * </li>
103
- * <li>
104
- * <p>x-amz-server-side-encryption-aws-kms-key-id</p>
105
- * </li>
106
- * <li>
107
- * <p>x-amz-server-side-encryption-context</p>
108
- * </li>
109
- * </ul>
110
- * <note>
111
- * <p>If you specify <code>x-amz-server-side-encryption:aws:kms</code>, but
112
- * don't provide <code>x-amz-server-side-encryption-aws-kms-key-id</code>,
113
- * Amazon S3 uses the Amazon Web Services managed key in Amazon Web Services KMS to protect the data.</p>
114
- * </note>
115
- * <important>
116
- * <p>All GET and PUT requests for an object protected by Amazon Web Services KMS fail if
117
- * you don't make them with SSL or by using SigV4.</p>
118
- * </important>
119
- * <p>For more information about server-side encryption with KMS key (SSE-KMS),
120
- * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html">Protecting Data Using Server-Side Encryption with KMS keys</a>.</p>
121
- * </li>
122
- * <li>
123
- * <p>Use customer-provided encryption keys – If you want to manage your own
124
- * encryption keys, provide all the following headers in the request.</p>
125
- * <ul>
126
- * <li>
127
- * <p>x-amz-server-side-encryption-customer-algorithm</p>
128
- * </li>
129
- * <li>
130
- * <p>x-amz-server-side-encryption-customer-key</p>
131
- * </li>
132
- * <li>
133
- * <p>x-amz-server-side-encryption-customer-key-MD5</p>
134
- * </li>
135
- * </ul>
136
- * <p>For more information about server-side encryption with KMS keys (SSE-KMS),
137
- * see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html">Protecting Data Using Server-Side Encryption with KMS keys</a>.</p>
138
- * </li>
139
- * </ul>
140
- * </dd>
141
- * <dt>Access-Control-List (ACL)-Specific Request Headers</dt>
142
- * <dd>
143
- * <p>You also can use the following access control–related headers with this
144
- * operation. By default, all objects are private. Only the owner has full access
145
- * control. When adding a new object, you can grant permissions to individual Amazon Web Services accounts or to predefined groups defined by Amazon S3. These permissions are then added
146
- * to the access control list (ACL) on the object. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html">Using ACLs</a>. With this
147
- * operation, you can grant access permissions using one of the following two
148
- * methods:</p>
149
- * <ul>
150
- * <li>
151
- * <p>Specify a canned ACL (<code>x-amz-acl</code>) — Amazon S3 supports a set of
152
- * predefined ACLs, known as <i>canned ACLs</i>. Each canned ACL
153
- * has a predefined set of grantees and permissions. For more information, see
154
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL">Canned
155
- * ACL</a>.</p>
156
- * </li>
157
- * <li>
158
- * <p>Specify access permissions explicitly — To explicitly grant access
159
- * permissions to specific Amazon Web Services accounts or groups, use the following headers.
160
- * Each header maps to specific permissions that Amazon S3 supports in an ACL. For
161
- * more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html">Access
162
- * Control List (ACL) Overview</a>. In the header, you specify a list of
163
- * grantees who get the specific permission. To grant permissions explicitly,
164
- * use:</p>
165
- * <ul>
166
- * <li>
167
- * <p>x-amz-grant-read</p>
168
- * </li>
169
- * <li>
170
- * <p>x-amz-grant-write</p>
171
- * </li>
172
- * <li>
173
- * <p>x-amz-grant-read-acp</p>
174
- * </li>
175
- * <li>
176
- * <p>x-amz-grant-write-acp</p>
177
- * </li>
178
- * <li>
179
- * <p>x-amz-grant-full-control</p>
180
- * </li>
181
- * </ul>
182
- * <p>You specify each grantee as a type=value pair, where the type is one of
183
- * the following:</p>
184
- * <ul>
185
- * <li>
186
- * <p>
187
- * <code>id</code> – if the value specified is the canonical user ID
188
- * of an Amazon Web Services account</p>
189
- * </li>
190
- * <li>
191
- * <p>
192
- * <code>uri</code> – if you are granting permissions to a predefined
193
- * group</p>
194
- * </li>
195
- * <li>
196
- * <p>
197
- * <code>emailAddress</code> – if the value specified is the email
198
- * address of an Amazon Web Services account</p>
199
- * <note>
200
- * <p>Using email addresses to specify a grantee is only supported in the following Amazon Web Services Regions: </p>
201
- * <ul>
202
- * <li>
203
- * <p>US East (N. Virginia)</p>
204
- * </li>
205
- * <li>
206
- * <p>US West (N. California)</p>
207
- * </li>
208
- * <li>
209
- * <p> US West (Oregon)</p>
210
- * </li>
211
- * <li>
212
- * <p> Asia Pacific (Singapore)</p>
213
- * </li>
214
- * <li>
215
- * <p>Asia Pacific (Sydney)</p>
216
- * </li>
217
- * <li>
218
- * <p>Asia Pacific (Tokyo)</p>
219
- * </li>
220
- * <li>
221
- * <p>Europe (Ireland)</p>
222
- * </li>
223
- * <li>
224
- * <p>South America (São Paulo)</p>
225
- * </li>
226
- * </ul>
227
- * <p>For a list of all the Amazon S3 supported Regions and endpoints, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a> in the Amazon Web Services General Reference.</p>
228
- * </note>
229
- * </li>
230
- * </ul>
231
- * <p>For example, the following <code>x-amz-grant-read</code> header grants the Amazon Web Services accounts identified by account IDs permissions to read object data and its metadata:</p>
232
- * <p>
233
- * <code>x-amz-grant-read: id="11112222333", id="444455556666" </code>
234
- * </p>
235
- * </li>
236
- * </ul>
237
- *
238
- * </dd>
239
- * </dl>
240
- *
241
- * <p>The following operations are related to <code>CreateMultipartUpload</code>:</p>
242
- * <ul>
243
- * <li>
244
- * <p>
245
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html">UploadPart</a>
246
- * </p>
247
- * </li>
248
- * <li>
249
- * <p>
250
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html">CompleteMultipartUpload</a>
251
- * </p>
252
- * </li>
253
- * <li>
254
- * <p>
255
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html">AbortMultipartUpload</a>
256
- * </p>
257
- * </li>
258
- * <li>
259
- * <p>
260
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html">ListParts</a>
261
- * </p>
262
- * </li>
263
- * <li>
264
- * <p>
265
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html">ListMultipartUploads</a>
266
- * </p>
267
- * </li>
268
- * </ul>
269
- * @example
270
- * Use a bare-bones client and the command you need to make an API call.
271
- * ```javascript
272
- * import { S3Client, CreateMultipartUploadCommand } from "@aws-sdk/client-s3"; // ES Modules import
273
- * // const { S3Client, CreateMultipartUploadCommand } = require("@aws-sdk/client-s3"); // CommonJS import
274
- * const client = new S3Client(config);
275
- * const command = new CreateMultipartUploadCommand(input);
276
- * const response = await client.send(command);
277
- * ```
278
- *
279
- * @see {@link CreateMultipartUploadCommandInput} for command's `input` shape.
280
- * @see {@link CreateMultipartUploadCommandOutput} for command's `response` shape.
281
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
282
- *
283
- */
284
10
  class CreateMultipartUploadCommand extends smithy_client_1.Command {
285
- // Start section: command_properties
286
- // End section: command_properties
287
11
  constructor(input) {
288
- // Start section: command_constructor
289
12
  super();
290
13
  this.input = input;
291
- // End section: command_constructor
292
14
  }
293
- /**
294
- * @internal
295
- */
296
15
  resolveMiddleware(clientStack, configuration, options) {
297
16
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
298
17
  this.middlewareStack.use(middleware_ssec_1.getSsecPlugin(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>Deletes an analytics configuration for the bucket (specified by the analytics
11
- * configuration ID).</p>
12
- * <p>To use this operation, you must have permissions to perform the
13
- * <code>s3:PutAnalyticsConfiguration</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>.</p>
17
- *
18
- * <p>For information about the Amazon S3 analytics feature, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html">Amazon S3 Analytics – Storage Class
19
- * Analysis</a>. </p>
20
- *
21
- * <p>The following operations are related to
22
- * <code>DeleteBucketAnalyticsConfiguration</code>:</p>
23
- * <ul>
24
- * <li>
25
- * <p>
26
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAnalyticsConfiguration.html">GetBucketAnalyticsConfiguration</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, DeleteBucketAnalyticsConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import
44
- * // const { S3Client, DeleteBucketAnalyticsConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import
45
- * const client = new S3Client(config);
46
- * const command = new DeleteBucketAnalyticsConfigurationCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link DeleteBucketAnalyticsConfigurationCommandInput} for command's `input` shape.
51
- * @see {@link DeleteBucketAnalyticsConfigurationCommandOutput} for command's `response` shape.
52
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
9
  class DeleteBucketAnalyticsConfigurationCommand 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));
@@ -5,52 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
- /**
9
- * <p>Deletes the S3 bucket. All objects (including all object versions and delete markers) in
10
- * the bucket must be deleted before the bucket itself can be deleted.</p>
11
- *
12
- * <p class="title">
13
- * <b>Related Resources</b>
14
- * </p>
15
- * <ul>
16
- * <li>
17
- * <p>
18
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html">CreateBucket</a>
19
- * </p>
20
- * </li>
21
- * <li>
22
- * <p>
23
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html">DeleteObject</a>
24
- * </p>
25
- * </li>
26
- * </ul>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { S3Client, DeleteBucketCommand } from "@aws-sdk/client-s3"; // ES Modules import
31
- * // const { S3Client, DeleteBucketCommand } = require("@aws-sdk/client-s3"); // CommonJS import
32
- * const client = new S3Client(config);
33
- * const command = new DeleteBucketCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link DeleteBucketCommandInput} for command's `input` shape.
38
- * @see {@link DeleteBucketCommandOutput} for command's `response` shape.
39
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
8
  class DeleteBucketCommand extends smithy_client_1.Command {
43
- // Start section: command_properties
44
- // End section: command_properties
45
9
  constructor(input) {
46
- // Start section: command_constructor
47
10
  super();
48
11
  this.input = input;
49
- // End section: command_constructor
50
12
  }
51
- /**
52
- * @internal
53
- */
54
13
  resolveMiddleware(clientStack, configuration, options) {
55
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
56
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -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>Deletes the <code>cors</code> configuration information set for the bucket.</p>
11
- * <p>To use this operation, you must have permission to perform the
12
- * <code>s3:PutBucketCORS</code> action. The bucket owner has this permission by default
13
- * and can grant this permission to others. </p>
14
- * <p>For information about <code>cors</code>, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html">Enabling
15
- * Cross-Origin Resource Sharing</a> in the <i>Amazon S3 User Guide</i>.</p>
16
- *
17
- * <p class="title">
18
- * <b>Related Resources:</b>
19
- * </p>
20
- * <ul>
21
- * <li>
22
- * <p>
23
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html">PutBucketCors</a>
24
- * </p>
25
- * </li>
26
- * <li>
27
- * <p>
28
- * <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTOPTIONSobject.html">RESTOPTIONSobject</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, DeleteBucketCorsCommand } from "@aws-sdk/client-s3"; // ES Modules import
36
- * // const { S3Client, DeleteBucketCorsCommand } = require("@aws-sdk/client-s3"); // CommonJS import
37
- * const client = new S3Client(config);
38
- * const command = new DeleteBucketCorsCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link DeleteBucketCorsCommandInput} for command's `input` shape.
43
- * @see {@link DeleteBucketCorsCommandOutput} for command's `response` shape.
44
- * @see {@link S3ClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
9
  class DeleteBucketCorsCommand 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));