@aws-sdk/client-s3 3.417.0 → 3.418.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 (193) hide show
  1. package/dist-cjs/commands/AbortMultipartUploadCommand.js +5 -0
  2. package/dist-cjs/commands/CompleteMultipartUploadCommand.js +5 -0
  3. package/dist-cjs/commands/CopyObjectCommand.js +5 -0
  4. package/dist-cjs/commands/CreateBucketCommand.js +5 -0
  5. package/dist-cjs/commands/CreateMultipartUploadCommand.js +5 -0
  6. package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +5 -0
  7. package/dist-cjs/commands/DeleteBucketCommand.js +5 -0
  8. package/dist-cjs/commands/DeleteBucketCorsCommand.js +5 -0
  9. package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +5 -0
  10. package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +5 -0
  11. package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +5 -0
  12. package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +5 -0
  13. package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +5 -0
  14. package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +5 -0
  15. package/dist-cjs/commands/DeleteBucketPolicyCommand.js +5 -0
  16. package/dist-cjs/commands/DeleteBucketReplicationCommand.js +5 -0
  17. package/dist-cjs/commands/DeleteBucketTaggingCommand.js +5 -0
  18. package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +5 -0
  19. package/dist-cjs/commands/DeleteObjectCommand.js +5 -0
  20. package/dist-cjs/commands/DeleteObjectTaggingCommand.js +5 -0
  21. package/dist-cjs/commands/DeleteObjectsCommand.js +5 -0
  22. package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +5 -0
  23. package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +5 -0
  24. package/dist-cjs/commands/GetBucketAclCommand.js +5 -0
  25. package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +5 -0
  26. package/dist-cjs/commands/GetBucketCorsCommand.js +5 -0
  27. package/dist-cjs/commands/GetBucketEncryptionCommand.js +5 -0
  28. package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +5 -0
  29. package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +5 -0
  30. package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +5 -0
  31. package/dist-cjs/commands/GetBucketLocationCommand.js +5 -0
  32. package/dist-cjs/commands/GetBucketLoggingCommand.js +5 -0
  33. package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +5 -0
  34. package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +5 -0
  35. package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +5 -0
  36. package/dist-cjs/commands/GetBucketPolicyCommand.js +5 -0
  37. package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +5 -0
  38. package/dist-cjs/commands/GetBucketReplicationCommand.js +5 -0
  39. package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +5 -0
  40. package/dist-cjs/commands/GetBucketTaggingCommand.js +5 -0
  41. package/dist-cjs/commands/GetBucketVersioningCommand.js +5 -0
  42. package/dist-cjs/commands/GetBucketWebsiteCommand.js +5 -0
  43. package/dist-cjs/commands/GetObjectAclCommand.js +5 -0
  44. package/dist-cjs/commands/GetObjectAttributesCommand.js +5 -0
  45. package/dist-cjs/commands/GetObjectCommand.js +5 -0
  46. package/dist-cjs/commands/GetObjectLegalHoldCommand.js +5 -0
  47. package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +5 -0
  48. package/dist-cjs/commands/GetObjectRetentionCommand.js +5 -0
  49. package/dist-cjs/commands/GetObjectTaggingCommand.js +5 -0
  50. package/dist-cjs/commands/GetObjectTorrentCommand.js +5 -0
  51. package/dist-cjs/commands/GetPublicAccessBlockCommand.js +5 -0
  52. package/dist-cjs/commands/HeadBucketCommand.js +5 -0
  53. package/dist-cjs/commands/HeadObjectCommand.js +5 -0
  54. package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +5 -0
  55. package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +5 -0
  56. package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +5 -0
  57. package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +5 -0
  58. package/dist-cjs/commands/ListBucketsCommand.js +5 -0
  59. package/dist-cjs/commands/ListMultipartUploadsCommand.js +5 -0
  60. package/dist-cjs/commands/ListObjectVersionsCommand.js +5 -0
  61. package/dist-cjs/commands/ListObjectsCommand.js +5 -0
  62. package/dist-cjs/commands/ListObjectsV2Command.js +5 -0
  63. package/dist-cjs/commands/ListPartsCommand.js +5 -0
  64. package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +5 -0
  65. package/dist-cjs/commands/PutBucketAclCommand.js +5 -0
  66. package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +5 -0
  67. package/dist-cjs/commands/PutBucketCorsCommand.js +5 -0
  68. package/dist-cjs/commands/PutBucketEncryptionCommand.js +5 -0
  69. package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +5 -0
  70. package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +5 -0
  71. package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +5 -0
  72. package/dist-cjs/commands/PutBucketLoggingCommand.js +5 -0
  73. package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +5 -0
  74. package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +5 -0
  75. package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +5 -0
  76. package/dist-cjs/commands/PutBucketPolicyCommand.js +5 -0
  77. package/dist-cjs/commands/PutBucketReplicationCommand.js +5 -0
  78. package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +5 -0
  79. package/dist-cjs/commands/PutBucketTaggingCommand.js +5 -0
  80. package/dist-cjs/commands/PutBucketVersioningCommand.js +5 -0
  81. package/dist-cjs/commands/PutBucketWebsiteCommand.js +5 -0
  82. package/dist-cjs/commands/PutObjectAclCommand.js +5 -0
  83. package/dist-cjs/commands/PutObjectCommand.js +5 -0
  84. package/dist-cjs/commands/PutObjectLegalHoldCommand.js +5 -0
  85. package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +5 -0
  86. package/dist-cjs/commands/PutObjectRetentionCommand.js +5 -0
  87. package/dist-cjs/commands/PutObjectTaggingCommand.js +5 -0
  88. package/dist-cjs/commands/PutPublicAccessBlockCommand.js +5 -0
  89. package/dist-cjs/commands/RestoreObjectCommand.js +5 -0
  90. package/dist-cjs/commands/SelectObjectContentCommand.js +5 -0
  91. package/dist-cjs/commands/UploadPartCommand.js +5 -0
  92. package/dist-cjs/commands/UploadPartCopyCommand.js +5 -0
  93. package/dist-cjs/commands/WriteGetObjectResponseCommand.js +5 -0
  94. package/dist-es/commands/AbortMultipartUploadCommand.js +5 -0
  95. package/dist-es/commands/CompleteMultipartUploadCommand.js +5 -0
  96. package/dist-es/commands/CopyObjectCommand.js +5 -0
  97. package/dist-es/commands/CreateBucketCommand.js +5 -0
  98. package/dist-es/commands/CreateMultipartUploadCommand.js +5 -0
  99. package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +5 -0
  100. package/dist-es/commands/DeleteBucketCommand.js +5 -0
  101. package/dist-es/commands/DeleteBucketCorsCommand.js +5 -0
  102. package/dist-es/commands/DeleteBucketEncryptionCommand.js +5 -0
  103. package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +5 -0
  104. package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +5 -0
  105. package/dist-es/commands/DeleteBucketLifecycleCommand.js +5 -0
  106. package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +5 -0
  107. package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +5 -0
  108. package/dist-es/commands/DeleteBucketPolicyCommand.js +5 -0
  109. package/dist-es/commands/DeleteBucketReplicationCommand.js +5 -0
  110. package/dist-es/commands/DeleteBucketTaggingCommand.js +5 -0
  111. package/dist-es/commands/DeleteBucketWebsiteCommand.js +5 -0
  112. package/dist-es/commands/DeleteObjectCommand.js +5 -0
  113. package/dist-es/commands/DeleteObjectTaggingCommand.js +5 -0
  114. package/dist-es/commands/DeleteObjectsCommand.js +5 -0
  115. package/dist-es/commands/DeletePublicAccessBlockCommand.js +5 -0
  116. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +5 -0
  117. package/dist-es/commands/GetBucketAclCommand.js +5 -0
  118. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +5 -0
  119. package/dist-es/commands/GetBucketCorsCommand.js +5 -0
  120. package/dist-es/commands/GetBucketEncryptionCommand.js +5 -0
  121. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +5 -0
  122. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +5 -0
  123. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +5 -0
  124. package/dist-es/commands/GetBucketLocationCommand.js +5 -0
  125. package/dist-es/commands/GetBucketLoggingCommand.js +5 -0
  126. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +5 -0
  127. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +5 -0
  128. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +5 -0
  129. package/dist-es/commands/GetBucketPolicyCommand.js +5 -0
  130. package/dist-es/commands/GetBucketPolicyStatusCommand.js +5 -0
  131. package/dist-es/commands/GetBucketReplicationCommand.js +5 -0
  132. package/dist-es/commands/GetBucketRequestPaymentCommand.js +5 -0
  133. package/dist-es/commands/GetBucketTaggingCommand.js +5 -0
  134. package/dist-es/commands/GetBucketVersioningCommand.js +5 -0
  135. package/dist-es/commands/GetBucketWebsiteCommand.js +5 -0
  136. package/dist-es/commands/GetObjectAclCommand.js +5 -0
  137. package/dist-es/commands/GetObjectAttributesCommand.js +5 -0
  138. package/dist-es/commands/GetObjectCommand.js +5 -0
  139. package/dist-es/commands/GetObjectLegalHoldCommand.js +5 -0
  140. package/dist-es/commands/GetObjectLockConfigurationCommand.js +5 -0
  141. package/dist-es/commands/GetObjectRetentionCommand.js +5 -0
  142. package/dist-es/commands/GetObjectTaggingCommand.js +5 -0
  143. package/dist-es/commands/GetObjectTorrentCommand.js +5 -0
  144. package/dist-es/commands/GetPublicAccessBlockCommand.js +5 -0
  145. package/dist-es/commands/HeadBucketCommand.js +5 -0
  146. package/dist-es/commands/HeadObjectCommand.js +5 -0
  147. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +5 -0
  148. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +5 -0
  149. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +5 -0
  150. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +5 -0
  151. package/dist-es/commands/ListBucketsCommand.js +5 -0
  152. package/dist-es/commands/ListMultipartUploadsCommand.js +5 -0
  153. package/dist-es/commands/ListObjectVersionsCommand.js +5 -0
  154. package/dist-es/commands/ListObjectsCommand.js +5 -0
  155. package/dist-es/commands/ListObjectsV2Command.js +5 -0
  156. package/dist-es/commands/ListPartsCommand.js +5 -0
  157. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +5 -0
  158. package/dist-es/commands/PutBucketAclCommand.js +5 -0
  159. package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +5 -0
  160. package/dist-es/commands/PutBucketCorsCommand.js +5 -0
  161. package/dist-es/commands/PutBucketEncryptionCommand.js +5 -0
  162. package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +5 -0
  163. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +5 -0
  164. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +5 -0
  165. package/dist-es/commands/PutBucketLoggingCommand.js +5 -0
  166. package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +5 -0
  167. package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +5 -0
  168. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +5 -0
  169. package/dist-es/commands/PutBucketPolicyCommand.js +5 -0
  170. package/dist-es/commands/PutBucketReplicationCommand.js +5 -0
  171. package/dist-es/commands/PutBucketRequestPaymentCommand.js +5 -0
  172. package/dist-es/commands/PutBucketTaggingCommand.js +5 -0
  173. package/dist-es/commands/PutBucketVersioningCommand.js +5 -0
  174. package/dist-es/commands/PutBucketWebsiteCommand.js +5 -0
  175. package/dist-es/commands/PutObjectAclCommand.js +5 -0
  176. package/dist-es/commands/PutObjectCommand.js +5 -0
  177. package/dist-es/commands/PutObjectLegalHoldCommand.js +5 -0
  178. package/dist-es/commands/PutObjectLockConfigurationCommand.js +5 -0
  179. package/dist-es/commands/PutObjectRetentionCommand.js +5 -0
  180. package/dist-es/commands/PutObjectTaggingCommand.js +5 -0
  181. package/dist-es/commands/PutPublicAccessBlockCommand.js +5 -0
  182. package/dist-es/commands/RestoreObjectCommand.js +5 -0
  183. package/dist-es/commands/SelectObjectContentCommand.js +5 -0
  184. package/dist-es/commands/UploadPartCommand.js +5 -0
  185. package/dist-es/commands/UploadPartCopyCommand.js +5 -0
  186. package/dist-es/commands/WriteGetObjectResponseCommand.js +5 -0
  187. package/dist-types/commands/CreateBucketCommand.d.ts +13 -13
  188. package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
  189. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -11
  190. package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
  191. package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -19
  192. package/dist-types/commands/PutObjectCommand.d.ts +43 -43
  193. package/package.json +46 -46
@@ -72,39 +72,39 @@ export interface DeleteObjectTaggingCommandOutput extends DeleteObjectTaggingOut
72
72
  * @throws {@link S3ServiceException}
73
73
  * <p>Base exception class for all service exceptions from S3 service.</p>
74
74
  *
75
- * @example To remove tag set from an object version
75
+ * @example To remove tag set from an object
76
76
  * ```javascript
77
- * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
77
+ * // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
78
78
  * const input = {
79
79
  * "Bucket": "examplebucket",
80
- * "Key": "HappyFace.jpg",
81
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
80
+ * "Key": "HappyFace.jpg"
82
81
  * };
83
82
  * const command = new DeleteObjectTaggingCommand(input);
84
83
  * const response = await client.send(command);
85
84
  * /* response ==
86
85
  * {
87
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
86
+ * "VersionId": "null"
88
87
  * }
89
88
  * *\/
90
- * // example id: to-remove-tag-set-from-an-object-version-1483145285913
89
+ * // example id: to-remove-tag-set-from-an-object-1483145342862
91
90
  * ```
92
91
  *
93
- * @example To remove tag set from an object
92
+ * @example To remove tag set from an object version
94
93
  * ```javascript
95
- * // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
94
+ * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
96
95
  * const input = {
97
96
  * "Bucket": "examplebucket",
98
- * "Key": "HappyFace.jpg"
97
+ * "Key": "HappyFace.jpg",
98
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
99
99
  * };
100
100
  * const command = new DeleteObjectTaggingCommand(input);
101
101
  * const response = await client.send(command);
102
102
  * /* response ==
103
103
  * {
104
- * "VersionId": "null"
104
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
105
105
  * }
106
106
  * *\/
107
- * // example id: to-remove-tag-set-from-an-object-1483145342862
107
+ * // example id: to-remove-tag-set-from-an-object-version-1483145285913
108
108
  * ```
109
109
  *
110
110
  */
@@ -131,18 +131,20 @@ export interface DeleteObjectsCommandOutput extends DeleteObjectsOutput, __Metad
131
131
  * @throws {@link S3ServiceException}
132
132
  * <p>Base exception class for all service exceptions from S3 service.</p>
133
133
  *
134
- * @example To delete multiple objects from a versioned bucket
134
+ * @example To delete multiple object versions from a versioned bucket
135
135
  * ```javascript
136
- * // The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
136
+ * // The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.
137
137
  * const input = {
138
138
  * "Bucket": "examplebucket",
139
139
  * "Delete": {
140
140
  * "Objects": [
141
141
  * {
142
- * "Key": "objectkey1"
142
+ * "Key": "HappyFace.jpg",
143
+ * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
143
144
  * },
144
145
  * {
145
- * "Key": "objectkey2"
146
+ * "Key": "HappyFace.jpg",
147
+ * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
146
148
  * }
147
149
  * ],
148
150
  * "Quiet": false
@@ -154,35 +156,31 @@ export interface DeleteObjectsCommandOutput extends DeleteObjectsOutput, __Metad
154
156
  * {
155
157
  * "Deleted": [
156
158
  * {
157
- * "DeleteMarker": "true",
158
- * "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
159
- * "Key": "objectkey1"
159
+ * "Key": "HappyFace.jpg",
160
+ * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
160
161
  * },
161
162
  * {
162
- * "DeleteMarker": "true",
163
- * "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
164
- * "Key": "objectkey2"
163
+ * "Key": "HappyFace.jpg",
164
+ * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
165
165
  * }
166
166
  * ]
167
167
  * }
168
168
  * *\/
169
- * // example id: to-delete-multiple-objects-from-a-versioned-bucket-1483146248805
169
+ * // example id: to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737
170
170
  * ```
171
171
  *
172
- * @example To delete multiple object versions from a versioned bucket
172
+ * @example To delete multiple objects from a versioned bucket
173
173
  * ```javascript
174
- * // The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.
174
+ * // The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
175
175
  * const input = {
176
176
  * "Bucket": "examplebucket",
177
177
  * "Delete": {
178
178
  * "Objects": [
179
179
  * {
180
- * "Key": "HappyFace.jpg",
181
- * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
180
+ * "Key": "objectkey1"
182
181
  * },
183
182
  * {
184
- * "Key": "HappyFace.jpg",
185
- * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
183
+ * "Key": "objectkey2"
186
184
  * }
187
185
  * ],
188
186
  * "Quiet": false
@@ -194,17 +192,19 @@ export interface DeleteObjectsCommandOutput extends DeleteObjectsOutput, __Metad
194
192
  * {
195
193
  * "Deleted": [
196
194
  * {
197
- * "Key": "HappyFace.jpg",
198
- * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
195
+ * "DeleteMarker": "true",
196
+ * "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
197
+ * "Key": "objectkey1"
199
198
  * },
200
199
  * {
201
- * "Key": "HappyFace.jpg",
202
- * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
200
+ * "DeleteMarker": "true",
201
+ * "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
202
+ * "Key": "objectkey2"
203
203
  * }
204
204
  * ]
205
205
  * }
206
206
  * *\/
207
- * // example id: to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737
207
+ * // example id: to-delete-multiple-objects-from-a-versioned-bucket-1483146248805
208
208
  * ```
209
209
  *
210
210
  */
@@ -88,13 +88,12 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _
88
88
  * @throws {@link S3ServiceException}
89
89
  * <p>Base exception class for all service exceptions from S3 service.</p>
90
90
  *
91
- * @example To retrieve tag set of a specific object version
91
+ * @example To retrieve tag set of an object
92
92
  * ```javascript
93
- * // The following example retrieves tag set of an object. The request specifies object version.
93
+ * // The following example retrieves tag set of an object.
94
94
  * const input = {
95
95
  * "Bucket": "examplebucket",
96
- * "Key": "exampleobject",
97
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
96
+ * "Key": "HappyFace.jpg"
98
97
  * };
99
98
  * const command = new GetObjectTaggingCommand(input);
100
99
  * const response = await client.send(command);
@@ -102,22 +101,27 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _
102
101
  * {
103
102
  * "TagSet": [
104
103
  * {
105
- * "Key": "Key1",
106
- * "Value": "Value1"
104
+ * "Key": "Key4",
105
+ * "Value": "Value4"
106
+ * },
107
+ * {
108
+ * "Key": "Key3",
109
+ * "Value": "Value3"
107
110
  * }
108
111
  * ],
109
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
112
+ * "VersionId": "null"
110
113
  * }
111
114
  * *\/
112
- * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
115
+ * // example id: to-retrieve-tag-set-of-an-object-1481833847896
113
116
  * ```
114
117
  *
115
- * @example To retrieve tag set of an object
118
+ * @example To retrieve tag set of a specific object version
116
119
  * ```javascript
117
- * // The following example retrieves tag set of an object.
120
+ * // The following example retrieves tag set of an object. The request specifies object version.
118
121
  * const input = {
119
122
  * "Bucket": "examplebucket",
120
- * "Key": "HappyFace.jpg"
123
+ * "Key": "exampleobject",
124
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
121
125
  * };
122
126
  * const command = new GetObjectTaggingCommand(input);
123
127
  * const response = await client.send(command);
@@ -125,18 +129,14 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _
125
129
  * {
126
130
  * "TagSet": [
127
131
  * {
128
- * "Key": "Key4",
129
- * "Value": "Value4"
130
- * },
131
- * {
132
- * "Key": "Key3",
133
- * "Value": "Value3"
132
+ * "Key": "Key1",
133
+ * "Value": "Value1"
134
134
  * }
135
135
  * ],
136
- * "VersionId": "null"
136
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
137
137
  * }
138
138
  * *\/
139
- * // example id: to-retrieve-tag-set-of-an-object-1481833847896
139
+ * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
140
140
  * ```
141
141
  *
142
142
  */
@@ -192,35 +192,33 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
192
192
  * @throws {@link S3ServiceException}
193
193
  * <p>Base exception class for all service exceptions from S3 service.</p>
194
194
  *
195
- * @example To upload an object (specify optional headers)
195
+ * @example To upload an object
196
196
  * ```javascript
197
- * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
197
+ * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
198
198
  * const input = {
199
199
  * "Body": "HappyFace.jpg",
200
200
  * "Bucket": "examplebucket",
201
- * "Key": "HappyFace.jpg",
202
- * "ServerSideEncryption": "AES256",
203
- * "StorageClass": "STANDARD_IA"
201
+ * "Key": "HappyFace.jpg"
204
202
  * };
205
203
  * const command = new PutObjectCommand(input);
206
204
  * const response = await client.send(command);
207
205
  * /* response ==
208
206
  * {
209
207
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
210
- * "ServerSideEncryption": "AES256",
211
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
208
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
212
209
  * }
213
210
  * *\/
214
- * // example id: to-upload-an-object-(specify-optional-headers)
211
+ * // example id: to-upload-an-object-1481760101010
215
212
  * ```
216
213
  *
217
- * @example To upload an object and specify optional tags
214
+ * @example To upload an object and specify server-side encryption and object tags
218
215
  * ```javascript
219
- * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
216
+ * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
220
217
  * const input = {
221
- * "Body": "c:\\HappyFace.jpg",
218
+ * "Body": "filetoupload",
222
219
  * "Bucket": "examplebucket",
223
- * "Key": "HappyFace.jpg",
220
+ * "Key": "exampleobject",
221
+ * "ServerSideEncryption": "AES256",
224
222
  * "Tagging": "key1=value1&key2=value2"
225
223
  * };
226
224
  * const command = new PutObjectCommand(input);
@@ -228,70 +226,73 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
228
226
  * /* response ==
229
227
  * {
230
228
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
231
- * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
229
+ * "ServerSideEncryption": "AES256",
230
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
232
231
  * }
233
232
  * *\/
234
- * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
233
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
235
234
  * ```
236
235
  *
237
- * @example To upload an object and specify server-side encryption and object tags
236
+ * @example To create an object.
238
237
  * ```javascript
239
- * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
238
+ * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
240
239
  * const input = {
241
240
  * "Body": "filetoupload",
242
241
  * "Bucket": "examplebucket",
243
- * "Key": "exampleobject",
244
- * "ServerSideEncryption": "AES256",
245
- * "Tagging": "key1=value1&key2=value2"
242
+ * "Key": "objectkey"
246
243
  * };
247
244
  * const command = new PutObjectCommand(input);
248
245
  * const response = await client.send(command);
249
246
  * /* response ==
250
247
  * {
251
248
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
252
- * "ServerSideEncryption": "AES256",
253
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
249
+ * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
254
250
  * }
255
251
  * *\/
256
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
252
+ * // example id: to-create-an-object-1483147613675
257
253
  * ```
258
254
  *
259
- * @example To create an object.
255
+ * @example To upload object and specify user-defined metadata
260
256
  * ```javascript
261
- * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
257
+ * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
262
258
  * const input = {
263
259
  * "Body": "filetoupload",
264
260
  * "Bucket": "examplebucket",
265
- * "Key": "objectkey"
261
+ * "Key": "exampleobject",
262
+ * "Metadata": {
263
+ * "metadata1": "value1",
264
+ * "metadata2": "value2"
265
+ * }
266
266
  * };
267
267
  * const command = new PutObjectCommand(input);
268
268
  * const response = await client.send(command);
269
269
  * /* response ==
270
270
  * {
271
271
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
272
- * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
272
+ * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
273
273
  * }
274
274
  * *\/
275
- * // example id: to-create-an-object-1483147613675
275
+ * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
276
276
  * ```
277
277
  *
278
- * @example To upload an object
278
+ * @example To upload an object and specify optional tags
279
279
  * ```javascript
280
- * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
280
+ * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
281
281
  * const input = {
282
- * "Body": "HappyFace.jpg",
282
+ * "Body": "c:\\HappyFace.jpg",
283
283
  * "Bucket": "examplebucket",
284
- * "Key": "HappyFace.jpg"
284
+ * "Key": "HappyFace.jpg",
285
+ * "Tagging": "key1=value1&key2=value2"
285
286
  * };
286
287
  * const command = new PutObjectCommand(input);
287
288
  * const response = await client.send(command);
288
289
  * /* response ==
289
290
  * {
290
291
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
291
- * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
292
+ * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
292
293
  * }
293
294
  * *\/
294
- * // example id: to-upload-an-object-1481760101010
295
+ * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
295
296
  * ```
296
297
  *
297
298
  * @example To upload an object and specify canned ACL.
@@ -314,27 +315,26 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
314
315
  * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
315
316
  * ```
316
317
  *
317
- * @example To upload object and specify user-defined metadata
318
+ * @example To upload an object (specify optional headers)
318
319
  * ```javascript
319
- * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
320
+ * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
320
321
  * const input = {
321
- * "Body": "filetoupload",
322
+ * "Body": "HappyFace.jpg",
322
323
  * "Bucket": "examplebucket",
323
- * "Key": "exampleobject",
324
- * "Metadata": {
325
- * "metadata1": "value1",
326
- * "metadata2": "value2"
327
- * }
324
+ * "Key": "HappyFace.jpg",
325
+ * "ServerSideEncryption": "AES256",
326
+ * "StorageClass": "STANDARD_IA"
328
327
  * };
329
328
  * const command = new PutObjectCommand(input);
330
329
  * const response = await client.send(command);
331
330
  * /* response ==
332
331
  * {
333
332
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
334
- * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
333
+ * "ServerSideEncryption": "AES256",
334
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
335
335
  * }
336
336
  * *\/
337
- * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
337
+ * // example id: to-upload-an-object-(specify-optional-headers)
338
338
  * ```
339
339
  *
340
340
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.417.0",
4
+ "version": "3.418.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -25,56 +25,56 @@
25
25
  "@aws-crypto/sha1-browser": "3.0.0",
26
26
  "@aws-crypto/sha256-browser": "3.0.0",
27
27
  "@aws-crypto/sha256-js": "3.0.0",
28
- "@aws-sdk/client-sts": "3.414.0",
29
- "@aws-sdk/credential-provider-node": "3.414.0",
30
- "@aws-sdk/middleware-bucket-endpoint": "3.413.0",
31
- "@aws-sdk/middleware-expect-continue": "3.413.0",
32
- "@aws-sdk/middleware-flexible-checksums": "3.413.0",
33
- "@aws-sdk/middleware-host-header": "3.413.0",
34
- "@aws-sdk/middleware-location-constraint": "3.413.0",
35
- "@aws-sdk/middleware-logger": "3.413.0",
36
- "@aws-sdk/middleware-recursion-detection": "3.413.0",
37
- "@aws-sdk/middleware-sdk-s3": "3.414.0",
38
- "@aws-sdk/middleware-signing": "3.413.0",
39
- "@aws-sdk/middleware-ssec": "3.413.0",
40
- "@aws-sdk/middleware-user-agent": "3.413.0",
41
- "@aws-sdk/region-config-resolver": "3.413.0",
42
- "@aws-sdk/signature-v4-multi-region": "3.413.0",
43
- "@aws-sdk/types": "3.413.0",
44
- "@aws-sdk/util-endpoints": "3.413.0",
45
- "@aws-sdk/util-user-agent-browser": "3.413.0",
46
- "@aws-sdk/util-user-agent-node": "3.413.0",
28
+ "@aws-sdk/client-sts": "3.418.0",
29
+ "@aws-sdk/credential-provider-node": "3.418.0",
30
+ "@aws-sdk/middleware-bucket-endpoint": "3.418.0",
31
+ "@aws-sdk/middleware-expect-continue": "3.418.0",
32
+ "@aws-sdk/middleware-flexible-checksums": "3.418.0",
33
+ "@aws-sdk/middleware-host-header": "3.418.0",
34
+ "@aws-sdk/middleware-location-constraint": "3.418.0",
35
+ "@aws-sdk/middleware-logger": "3.418.0",
36
+ "@aws-sdk/middleware-recursion-detection": "3.418.0",
37
+ "@aws-sdk/middleware-sdk-s3": "3.418.0",
38
+ "@aws-sdk/middleware-signing": "3.418.0",
39
+ "@aws-sdk/middleware-ssec": "3.418.0",
40
+ "@aws-sdk/middleware-user-agent": "3.418.0",
41
+ "@aws-sdk/region-config-resolver": "3.418.0",
42
+ "@aws-sdk/signature-v4-multi-region": "3.418.0",
43
+ "@aws-sdk/types": "3.418.0",
44
+ "@aws-sdk/util-endpoints": "3.418.0",
45
+ "@aws-sdk/util-user-agent-browser": "3.418.0",
46
+ "@aws-sdk/util-user-agent-node": "3.418.0",
47
47
  "@aws-sdk/xml-builder": "3.310.0",
48
- "@smithy/config-resolver": "^2.0.8",
49
- "@smithy/eventstream-serde-browser": "^2.0.7",
50
- "@smithy/eventstream-serde-config-resolver": "^2.0.7",
51
- "@smithy/eventstream-serde-node": "^2.0.7",
52
- "@smithy/fetch-http-handler": "^2.1.3",
53
- "@smithy/hash-blob-browser": "^2.0.7",
54
- "@smithy/hash-node": "^2.0.7",
55
- "@smithy/hash-stream-node": "^2.0.7",
56
- "@smithy/invalid-dependency": "^2.0.7",
57
- "@smithy/md5-js": "^2.0.7",
58
- "@smithy/middleware-content-length": "^2.0.9",
59
- "@smithy/middleware-endpoint": "^2.0.7",
60
- "@smithy/middleware-retry": "^2.0.10",
61
- "@smithy/middleware-serde": "^2.0.7",
62
- "@smithy/middleware-stack": "^2.0.0",
63
- "@smithy/node-config-provider": "^2.0.10",
64
- "@smithy/node-http-handler": "^2.1.3",
65
- "@smithy/protocol-http": "^3.0.3",
66
- "@smithy/smithy-client": "^2.1.4",
67
- "@smithy/types": "^2.3.1",
68
- "@smithy/url-parser": "^2.0.7",
48
+ "@smithy/config-resolver": "^2.0.10",
49
+ "@smithy/eventstream-serde-browser": "^2.0.9",
50
+ "@smithy/eventstream-serde-config-resolver": "^2.0.9",
51
+ "@smithy/eventstream-serde-node": "^2.0.9",
52
+ "@smithy/fetch-http-handler": "^2.1.5",
53
+ "@smithy/hash-blob-browser": "^2.0.9",
54
+ "@smithy/hash-node": "^2.0.9",
55
+ "@smithy/hash-stream-node": "^2.0.9",
56
+ "@smithy/invalid-dependency": "^2.0.9",
57
+ "@smithy/md5-js": "^2.0.9",
58
+ "@smithy/middleware-content-length": "^2.0.11",
59
+ "@smithy/middleware-endpoint": "^2.0.9",
60
+ "@smithy/middleware-retry": "^2.0.12",
61
+ "@smithy/middleware-serde": "^2.0.9",
62
+ "@smithy/middleware-stack": "^2.0.2",
63
+ "@smithy/node-config-provider": "^2.0.12",
64
+ "@smithy/node-http-handler": "^2.1.5",
65
+ "@smithy/protocol-http": "^3.0.5",
66
+ "@smithy/smithy-client": "^2.1.6",
67
+ "@smithy/types": "^2.3.3",
68
+ "@smithy/url-parser": "^2.0.9",
69
69
  "@smithy/util-base64": "^2.0.0",
70
70
  "@smithy/util-body-length-browser": "^2.0.0",
71
71
  "@smithy/util-body-length-node": "^2.1.0",
72
- "@smithy/util-defaults-mode-browser": "^2.0.8",
73
- "@smithy/util-defaults-mode-node": "^2.0.10",
74
- "@smithy/util-retry": "^2.0.0",
75
- "@smithy/util-stream": "^2.0.10",
72
+ "@smithy/util-defaults-mode-browser": "^2.0.10",
73
+ "@smithy/util-defaults-mode-node": "^2.0.12",
74
+ "@smithy/util-retry": "^2.0.2",
75
+ "@smithy/util-stream": "^2.0.12",
76
76
  "@smithy/util-utf8": "^2.0.0",
77
- "@smithy/util-waiter": "^2.0.7",
77
+ "@smithy/util-waiter": "^2.0.9",
78
78
  "fast-xml-parser": "4.2.5",
79
79
  "tslib": "^2.5.0"
80
80
  },