@aws-sdk/client-s3 3.743.0 → 3.749.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.
- package/dist-cjs/index.js +1 -0
- package/dist-es/protocols/Aws_restXml.js +1 -0
- package/dist-types/commands/CreateBucketCommand.d.ts +13 -13
- package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -11
- package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
- package/dist-types/commands/HeadObjectCommand.d.ts +1 -0
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +32 -32
- package/dist-types/commands/PutObjectCommand.d.ts +42 -42
- package/dist-types/models/models_0.d.ts +84 -79
- package/dist-types/models/models_1.d.ts +43 -43
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -4146,6 +4146,7 @@ var de_HeadObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4146
4146
|
[_CE]: [, output.headers[_ce]],
|
|
4147
4147
|
[_CL]: [, output.headers[_cl]],
|
|
4148
4148
|
[_CTo]: [, output.headers[_ct]],
|
|
4149
|
+
[_CR]: [, output.headers[_cr]],
|
|
4149
4150
|
[_E]: [() => void 0 !== output.headers[_e], () => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc7231DateTime)(output.headers[_e]))],
|
|
4150
4151
|
[_ES]: [, output.headers[_ex]],
|
|
4151
4152
|
[_WRL]: [, output.headers[_xawrl]],
|
|
@@ -2955,6 +2955,7 @@ export const de_HeadObjectCommand = async (output, context) => {
|
|
|
2955
2955
|
[_CE]: [, output.headers[_ce]],
|
|
2956
2956
|
[_CL]: [, output.headers[_cl]],
|
|
2957
2957
|
[_CTo]: [, output.headers[_ct]],
|
|
2958
|
+
[_CR]: [, output.headers[_cr]],
|
|
2958
2959
|
[_E]: [() => void 0 !== output.headers[_e], () => __expectNonNull(__parseRfc7231DateTime(output.headers[_e]))],
|
|
2959
2960
|
[_ES]: [, output.headers[_ex]],
|
|
2960
2961
|
[_WRL]: [, output.headers[_xawrl]],
|
|
@@ -232,39 +232,39 @@ declare const CreateBucketCommand_base: {
|
|
|
232
232
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
233
233
|
*
|
|
234
234
|
* @public
|
|
235
|
-
* @example To create a bucket
|
|
235
|
+
* @example To create a bucket in a specific region
|
|
236
236
|
* ```javascript
|
|
237
|
-
* // The following example creates a bucket.
|
|
237
|
+
* // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
|
238
238
|
* const input = {
|
|
239
|
-
* "Bucket": "examplebucket"
|
|
239
|
+
* "Bucket": "examplebucket",
|
|
240
|
+
* "CreateBucketConfiguration": {
|
|
241
|
+
* "LocationConstraint": "eu-west-1"
|
|
242
|
+
* }
|
|
240
243
|
* };
|
|
241
244
|
* const command = new CreateBucketCommand(input);
|
|
242
245
|
* const response = await client.send(command);
|
|
243
246
|
* /* response ==
|
|
244
247
|
* {
|
|
245
|
-
* "Location": "/
|
|
248
|
+
* "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
|
|
246
249
|
* }
|
|
247
250
|
* *\/
|
|
248
|
-
* // example id: to-create-a-bucket
|
|
251
|
+
* // example id: to-create-a-bucket-in-a-specific-region-1483399072992
|
|
249
252
|
* ```
|
|
250
253
|
*
|
|
251
|
-
* @example To create a bucket
|
|
254
|
+
* @example To create a bucket
|
|
252
255
|
* ```javascript
|
|
253
|
-
* // The following example creates a bucket.
|
|
256
|
+
* // The following example creates a bucket.
|
|
254
257
|
* const input = {
|
|
255
|
-
* "Bucket": "examplebucket"
|
|
256
|
-
* "CreateBucketConfiguration": {
|
|
257
|
-
* "LocationConstraint": "eu-west-1"
|
|
258
|
-
* }
|
|
258
|
+
* "Bucket": "examplebucket"
|
|
259
259
|
* };
|
|
260
260
|
* const command = new CreateBucketCommand(input);
|
|
261
261
|
* const response = await client.send(command);
|
|
262
262
|
* /* response ==
|
|
263
263
|
* {
|
|
264
|
-
* "Location": "
|
|
264
|
+
* "Location": "/examplebucket"
|
|
265
265
|
* }
|
|
266
266
|
* *\/
|
|
267
|
-
* // example id: to-create-a-bucket
|
|
267
|
+
* // example id: to-create-a-bucket--1472851826060
|
|
268
268
|
* ```
|
|
269
269
|
*
|
|
270
270
|
*/
|
|
@@ -165,28 +165,28 @@ declare const DeleteObjectCommand_base: {
|
|
|
165
165
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
166
166
|
*
|
|
167
167
|
* @public
|
|
168
|
-
* @example To delete an object
|
|
168
|
+
* @example To delete an object
|
|
169
169
|
* ```javascript
|
|
170
|
-
* // The following example deletes an object from
|
|
170
|
+
* // The following example deletes an object from an S3 bucket.
|
|
171
171
|
* const input = {
|
|
172
|
-
* "Bucket": "
|
|
173
|
-
* "Key": "
|
|
172
|
+
* "Bucket": "examplebucket",
|
|
173
|
+
* "Key": "objectkey.jpg"
|
|
174
174
|
* };
|
|
175
175
|
* const command = new DeleteObjectCommand(input);
|
|
176
176
|
* await client.send(command);
|
|
177
|
-
* // example id: to-delete-an-object-
|
|
177
|
+
* // example id: to-delete-an-object-1472850136595
|
|
178
178
|
* ```
|
|
179
179
|
*
|
|
180
|
-
* @example To delete an object
|
|
180
|
+
* @example To delete an object (from a non-versioned bucket)
|
|
181
181
|
* ```javascript
|
|
182
|
-
* // The following example deletes an object from
|
|
182
|
+
* // The following example deletes an object from a non-versioned bucket.
|
|
183
183
|
* const input = {
|
|
184
|
-
* "Bucket": "
|
|
185
|
-
* "Key": "
|
|
184
|
+
* "Bucket": "ExampleBucket",
|
|
185
|
+
* "Key": "HappyFace.jpg"
|
|
186
186
|
* };
|
|
187
187
|
* const command = new DeleteObjectCommand(input);
|
|
188
188
|
* await client.send(command);
|
|
189
|
-
* // example id: to-delete-an-object-
|
|
189
|
+
* // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
|
|
190
190
|
* ```
|
|
191
191
|
*
|
|
192
192
|
*/
|
|
@@ -80,39 +80,39 @@ declare const DeleteObjectTaggingCommand_base: {
|
|
|
80
80
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
81
81
|
*
|
|
82
82
|
* @public
|
|
83
|
-
* @example To remove tag set from an object
|
|
83
|
+
* @example To remove tag set from an object version
|
|
84
84
|
* ```javascript
|
|
85
|
-
* // The following example removes tag set associated with the specified object.
|
|
85
|
+
* // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
|
|
86
86
|
* const input = {
|
|
87
87
|
* "Bucket": "examplebucket",
|
|
88
|
-
* "Key": "HappyFace.jpg"
|
|
88
|
+
* "Key": "HappyFace.jpg",
|
|
89
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
89
90
|
* };
|
|
90
91
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
91
92
|
* const response = await client.send(command);
|
|
92
93
|
* /* response ==
|
|
93
94
|
* {
|
|
94
|
-
* "VersionId": "
|
|
95
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
95
96
|
* }
|
|
96
97
|
* *\/
|
|
97
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
98
|
+
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
|
|
98
99
|
* ```
|
|
99
100
|
*
|
|
100
|
-
* @example To remove tag set from an object
|
|
101
|
+
* @example To remove tag set from an object
|
|
101
102
|
* ```javascript
|
|
102
|
-
* // The following example removes tag set associated with the specified object
|
|
103
|
+
* // 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.
|
|
103
104
|
* const input = {
|
|
104
105
|
* "Bucket": "examplebucket",
|
|
105
|
-
* "Key": "HappyFace.jpg"
|
|
106
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
106
|
+
* "Key": "HappyFace.jpg"
|
|
107
107
|
* };
|
|
108
108
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
109
109
|
* const response = await client.send(command);
|
|
110
110
|
* /* response ==
|
|
111
111
|
* {
|
|
112
|
-
* "VersionId": "
|
|
112
|
+
* "VersionId": "null"
|
|
113
113
|
* }
|
|
114
114
|
* *\/
|
|
115
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
115
|
+
* // example id: to-remove-tag-set-from-an-object-1483145342862
|
|
116
116
|
* ```
|
|
117
117
|
*
|
|
118
118
|
*/
|
|
@@ -224,18 +224,20 @@ declare const DeleteObjectsCommand_base: {
|
|
|
224
224
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
225
225
|
*
|
|
226
226
|
* @public
|
|
227
|
-
* @example To delete multiple
|
|
227
|
+
* @example To delete multiple object versions from a versioned bucket
|
|
228
228
|
* ```javascript
|
|
229
|
-
* // The following example deletes objects from a bucket. The
|
|
229
|
+
* // 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.
|
|
230
230
|
* const input = {
|
|
231
231
|
* "Bucket": "examplebucket",
|
|
232
232
|
* "Delete": {
|
|
233
233
|
* "Objects": [
|
|
234
234
|
* {
|
|
235
|
-
* "Key": "
|
|
235
|
+
* "Key": "HappyFace.jpg",
|
|
236
|
+
* "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
|
|
236
237
|
* },
|
|
237
238
|
* {
|
|
238
|
-
* "Key": "
|
|
239
|
+
* "Key": "HappyFace.jpg",
|
|
240
|
+
* "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
|
|
239
241
|
* }
|
|
240
242
|
* ],
|
|
241
243
|
* "Quiet": false
|
|
@@ -247,35 +249,31 @@ declare const DeleteObjectsCommand_base: {
|
|
|
247
249
|
* {
|
|
248
250
|
* "Deleted": [
|
|
249
251
|
* {
|
|
250
|
-
* "
|
|
251
|
-
* "
|
|
252
|
-
* "Key": "objectkey1"
|
|
252
|
+
* "Key": "HappyFace.jpg",
|
|
253
|
+
* "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
|
|
253
254
|
* },
|
|
254
255
|
* {
|
|
255
|
-
* "
|
|
256
|
-
* "
|
|
257
|
-
* "Key": "objectkey2"
|
|
256
|
+
* "Key": "HappyFace.jpg",
|
|
257
|
+
* "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
|
|
258
258
|
* }
|
|
259
259
|
* ]
|
|
260
260
|
* }
|
|
261
261
|
* *\/
|
|
262
|
-
* // example id: to-delete-multiple-
|
|
262
|
+
* // example id: to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737
|
|
263
263
|
* ```
|
|
264
264
|
*
|
|
265
|
-
* @example To delete multiple
|
|
265
|
+
* @example To delete multiple objects from a versioned bucket
|
|
266
266
|
* ```javascript
|
|
267
|
-
* // The following example deletes objects from a bucket. The request
|
|
267
|
+
* // 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.
|
|
268
268
|
* const input = {
|
|
269
269
|
* "Bucket": "examplebucket",
|
|
270
270
|
* "Delete": {
|
|
271
271
|
* "Objects": [
|
|
272
272
|
* {
|
|
273
|
-
* "Key": "
|
|
274
|
-
* "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
|
|
273
|
+
* "Key": "objectkey1"
|
|
275
274
|
* },
|
|
276
275
|
* {
|
|
277
|
-
* "Key": "
|
|
278
|
-
* "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
|
|
276
|
+
* "Key": "objectkey2"
|
|
279
277
|
* }
|
|
280
278
|
* ],
|
|
281
279
|
* "Quiet": false
|
|
@@ -287,17 +285,19 @@ declare const DeleteObjectsCommand_base: {
|
|
|
287
285
|
* {
|
|
288
286
|
* "Deleted": [
|
|
289
287
|
* {
|
|
290
|
-
* "
|
|
291
|
-
* "
|
|
288
|
+
* "DeleteMarker": "true",
|
|
289
|
+
* "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
|
290
|
+
* "Key": "objectkey1"
|
|
292
291
|
* },
|
|
293
292
|
* {
|
|
294
|
-
* "
|
|
295
|
-
* "
|
|
293
|
+
* "DeleteMarker": "true",
|
|
294
|
+
* "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
|
295
|
+
* "Key": "objectkey2"
|
|
296
296
|
* }
|
|
297
297
|
* ]
|
|
298
298
|
* }
|
|
299
299
|
* *\/
|
|
300
|
-
* // example id: to-delete-multiple-
|
|
300
|
+
* // example id: to-delete-multiple-objects-from-a-versioned-bucket-1483146248805
|
|
301
301
|
* ```
|
|
302
302
|
*
|
|
303
303
|
*/
|
|
@@ -243,6 +243,7 @@ declare const HeadObjectCommand_base: {
|
|
|
243
243
|
* // ContentEncoding: "STRING_VALUE",
|
|
244
244
|
* // ContentLanguage: "STRING_VALUE",
|
|
245
245
|
* // ContentType: "STRING_VALUE",
|
|
246
|
+
* // ContentRange: "STRING_VALUE",
|
|
246
247
|
* // Expires: new Date("TIMESTAMP"),
|
|
247
248
|
* // ExpiresString: "STRING_VALUE",
|
|
248
249
|
* // WebsiteRedirectLocation: "STRING_VALUE",
|
|
@@ -229,104 +229,104 @@ declare const ListMultipartUploadsCommand_base: {
|
|
|
229
229
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
230
230
|
*
|
|
231
231
|
* @public
|
|
232
|
-
* @example
|
|
232
|
+
* @example To list in-progress multipart uploads on a bucket
|
|
233
233
|
* ```javascript
|
|
234
|
-
* // The following example
|
|
234
|
+
* // The following example lists in-progress multipart uploads on a specific bucket.
|
|
235
235
|
* const input = {
|
|
236
|
-
* "Bucket": "examplebucket"
|
|
237
|
-
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
238
|
-
* "MaxUploads": "2",
|
|
239
|
-
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
236
|
+
* "Bucket": "examplebucket"
|
|
240
237
|
* };
|
|
241
238
|
* const command = new ListMultipartUploadsCommand(input);
|
|
242
239
|
* const response = await client.send(command);
|
|
243
240
|
* /* response ==
|
|
244
241
|
* {
|
|
245
|
-
* "Bucket": "acl1",
|
|
246
|
-
* "IsTruncated": true,
|
|
247
|
-
* "KeyMarker": "",
|
|
248
|
-
* "MaxUploads": "2",
|
|
249
|
-
* "NextKeyMarker": "someobjectkey",
|
|
250
|
-
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
251
|
-
* "UploadIdMarker": "",
|
|
252
242
|
* "Uploads": [
|
|
253
243
|
* {
|
|
254
244
|
* "Initiated": "2014-05-01T05:40:58.000Z",
|
|
255
245
|
* "Initiator": {
|
|
256
|
-
* "DisplayName": "
|
|
246
|
+
* "DisplayName": "display-name",
|
|
257
247
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
258
248
|
* },
|
|
259
249
|
* "Key": "JavaFile",
|
|
260
250
|
* "Owner": {
|
|
261
|
-
* "DisplayName": "
|
|
262
|
-
* "ID": "
|
|
251
|
+
* "DisplayName": "display-name",
|
|
252
|
+
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
263
253
|
* },
|
|
264
254
|
* "StorageClass": "STANDARD",
|
|
265
|
-
* "UploadId": "
|
|
255
|
+
* "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
266
256
|
* },
|
|
267
257
|
* {
|
|
268
258
|
* "Initiated": "2014-05-01T05:41:27.000Z",
|
|
269
259
|
* "Initiator": {
|
|
270
|
-
* "DisplayName": "
|
|
260
|
+
* "DisplayName": "display-name",
|
|
271
261
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
272
262
|
* },
|
|
273
263
|
* "Key": "JavaFile",
|
|
274
264
|
* "Owner": {
|
|
275
|
-
* "DisplayName": "
|
|
265
|
+
* "DisplayName": "display-name",
|
|
276
266
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
277
267
|
* },
|
|
278
268
|
* "StorageClass": "STANDARD",
|
|
279
|
-
* "UploadId": "
|
|
269
|
+
* "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
280
270
|
* }
|
|
281
271
|
* ]
|
|
282
272
|
* }
|
|
283
273
|
* *\/
|
|
284
|
-
* // example id: list-
|
|
274
|
+
* // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
|
|
285
275
|
* ```
|
|
286
276
|
*
|
|
287
|
-
* @example
|
|
277
|
+
* @example List next set of multipart uploads when previous result is truncated
|
|
288
278
|
* ```javascript
|
|
289
|
-
* // The following example
|
|
279
|
+
* // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
|
|
290
280
|
* const input = {
|
|
291
|
-
* "Bucket": "examplebucket"
|
|
281
|
+
* "Bucket": "examplebucket",
|
|
282
|
+
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
283
|
+
* "MaxUploads": "2",
|
|
284
|
+
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
292
285
|
* };
|
|
293
286
|
* const command = new ListMultipartUploadsCommand(input);
|
|
294
287
|
* const response = await client.send(command);
|
|
295
288
|
* /* response ==
|
|
296
289
|
* {
|
|
290
|
+
* "Bucket": "acl1",
|
|
291
|
+
* "IsTruncated": true,
|
|
292
|
+
* "KeyMarker": "",
|
|
293
|
+
* "MaxUploads": "2",
|
|
294
|
+
* "NextKeyMarker": "someobjectkey",
|
|
295
|
+
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
296
|
+
* "UploadIdMarker": "",
|
|
297
297
|
* "Uploads": [
|
|
298
298
|
* {
|
|
299
299
|
* "Initiated": "2014-05-01T05:40:58.000Z",
|
|
300
300
|
* "Initiator": {
|
|
301
|
-
* "DisplayName": "display-name",
|
|
301
|
+
* "DisplayName": "ownder-display-name",
|
|
302
302
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
303
303
|
* },
|
|
304
304
|
* "Key": "JavaFile",
|
|
305
305
|
* "Owner": {
|
|
306
|
-
* "DisplayName": "
|
|
307
|
-
* "ID": "
|
|
306
|
+
* "DisplayName": "mohanataws",
|
|
307
|
+
* "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
308
308
|
* },
|
|
309
309
|
* "StorageClass": "STANDARD",
|
|
310
|
-
* "UploadId": "
|
|
310
|
+
* "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
311
311
|
* },
|
|
312
312
|
* {
|
|
313
313
|
* "Initiated": "2014-05-01T05:41:27.000Z",
|
|
314
314
|
* "Initiator": {
|
|
315
|
-
* "DisplayName": "display-name",
|
|
315
|
+
* "DisplayName": "ownder-display-name",
|
|
316
316
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
317
317
|
* },
|
|
318
318
|
* "Key": "JavaFile",
|
|
319
319
|
* "Owner": {
|
|
320
|
-
* "DisplayName": "display-name",
|
|
320
|
+
* "DisplayName": "ownder-display-name",
|
|
321
321
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
322
322
|
* },
|
|
323
323
|
* "StorageClass": "STANDARD",
|
|
324
|
-
* "UploadId": "
|
|
324
|
+
* "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
325
325
|
* }
|
|
326
326
|
* ]
|
|
327
327
|
* }
|
|
328
328
|
* *\/
|
|
329
|
-
* // example id:
|
|
329
|
+
* // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
|
|
330
330
|
* ```
|
|
331
331
|
*
|
|
332
332
|
*/
|
|
@@ -301,107 +301,108 @@ declare const PutObjectCommand_base: {
|
|
|
301
301
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
302
302
|
*
|
|
303
303
|
* @public
|
|
304
|
-
* @example To
|
|
304
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
305
305
|
* ```javascript
|
|
306
|
-
* // The following example
|
|
306
|
+
* // 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.
|
|
307
307
|
* const input = {
|
|
308
308
|
* "Body": "filetoupload",
|
|
309
309
|
* "Bucket": "examplebucket",
|
|
310
|
-
* "Key": "
|
|
310
|
+
* "Key": "exampleobject",
|
|
311
|
+
* "ServerSideEncryption": "AES256",
|
|
312
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
311
313
|
* };
|
|
312
314
|
* const command = new PutObjectCommand(input);
|
|
313
315
|
* const response = await client.send(command);
|
|
314
316
|
* /* response ==
|
|
315
317
|
* {
|
|
316
318
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
317
|
-
* "
|
|
319
|
+
* "ServerSideEncryption": "AES256",
|
|
320
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
318
321
|
* }
|
|
319
322
|
* *\/
|
|
320
|
-
* // example id: to-
|
|
323
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
321
324
|
* ```
|
|
322
325
|
*
|
|
323
|
-
* @example To upload
|
|
326
|
+
* @example To upload object and specify user-defined metadata
|
|
324
327
|
* ```javascript
|
|
325
|
-
* // The following example
|
|
328
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
326
329
|
* const input = {
|
|
327
|
-
* "Body": "
|
|
330
|
+
* "Body": "filetoupload",
|
|
328
331
|
* "Bucket": "examplebucket",
|
|
329
|
-
* "Key": "
|
|
330
|
-
* "
|
|
332
|
+
* "Key": "exampleobject",
|
|
333
|
+
* "Metadata": {
|
|
334
|
+
* "metadata1": "value1",
|
|
335
|
+
* "metadata2": "value2"
|
|
336
|
+
* }
|
|
331
337
|
* };
|
|
332
338
|
* const command = new PutObjectCommand(input);
|
|
333
339
|
* const response = await client.send(command);
|
|
334
340
|
* /* response ==
|
|
335
341
|
* {
|
|
336
342
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
337
|
-
* "VersionId": "
|
|
343
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
338
344
|
* }
|
|
339
345
|
* *\/
|
|
340
|
-
* // example id: to-upload-
|
|
346
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
341
347
|
* ```
|
|
342
348
|
*
|
|
343
|
-
* @example To
|
|
349
|
+
* @example To create an object.
|
|
344
350
|
* ```javascript
|
|
345
|
-
* // The following example creates an object.
|
|
351
|
+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
346
352
|
* const input = {
|
|
347
353
|
* "Body": "filetoupload",
|
|
348
354
|
* "Bucket": "examplebucket",
|
|
349
|
-
* "Key": "
|
|
350
|
-
* "Metadata": {
|
|
351
|
-
* "metadata1": "value1",
|
|
352
|
-
* "metadata2": "value2"
|
|
353
|
-
* }
|
|
355
|
+
* "Key": "objectkey"
|
|
354
356
|
* };
|
|
355
357
|
* const command = new PutObjectCommand(input);
|
|
356
358
|
* const response = await client.send(command);
|
|
357
359
|
* /* response ==
|
|
358
360
|
* {
|
|
359
361
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
360
|
-
* "VersionId": "
|
|
362
|
+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
361
363
|
* }
|
|
362
364
|
* *\/
|
|
363
|
-
* // example id: to-
|
|
365
|
+
* // example id: to-create-an-object-1483147613675
|
|
364
366
|
* ```
|
|
365
367
|
*
|
|
366
|
-
* @example To upload an object
|
|
368
|
+
* @example To upload an object and specify optional tags
|
|
367
369
|
* ```javascript
|
|
368
|
-
* // The following example uploads an object
|
|
370
|
+
* // 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.
|
|
369
371
|
* const input = {
|
|
370
|
-
* "Body": "HappyFace.jpg",
|
|
372
|
+
* "Body": "c:\\HappyFace.jpg",
|
|
371
373
|
* "Bucket": "examplebucket",
|
|
372
|
-
* "Key": "HappyFace.jpg"
|
|
374
|
+
* "Key": "HappyFace.jpg",
|
|
375
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
373
376
|
* };
|
|
374
377
|
* const command = new PutObjectCommand(input);
|
|
375
378
|
* const response = await client.send(command);
|
|
376
379
|
* /* response ==
|
|
377
380
|
* {
|
|
378
381
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
379
|
-
* "VersionId": "
|
|
382
|
+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
|
|
380
383
|
* }
|
|
381
384
|
* *\/
|
|
382
|
-
* // example id: to-upload-an-object-
|
|
385
|
+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
383
386
|
* ```
|
|
384
387
|
*
|
|
385
|
-
* @example To upload an object and specify
|
|
388
|
+
* @example To upload an object and specify canned ACL.
|
|
386
389
|
* ```javascript
|
|
387
|
-
* // The following example uploads
|
|
390
|
+
* // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
388
391
|
* const input = {
|
|
392
|
+
* "ACL": "authenticated-read",
|
|
389
393
|
* "Body": "filetoupload",
|
|
390
394
|
* "Bucket": "examplebucket",
|
|
391
|
-
* "Key": "exampleobject"
|
|
392
|
-
* "ServerSideEncryption": "AES256",
|
|
393
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
395
|
+
* "Key": "exampleobject"
|
|
394
396
|
* };
|
|
395
397
|
* const command = new PutObjectCommand(input);
|
|
396
398
|
* const response = await client.send(command);
|
|
397
399
|
* /* response ==
|
|
398
400
|
* {
|
|
399
401
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
400
|
-
* "
|
|
401
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
402
|
+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
402
403
|
* }
|
|
403
404
|
* *\/
|
|
404
|
-
* // example id: to-upload-an-object-and-specify-
|
|
405
|
+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
405
406
|
* ```
|
|
406
407
|
*
|
|
407
408
|
* @example To upload an object (specify optional headers)
|
|
@@ -426,24 +427,23 @@ declare const PutObjectCommand_base: {
|
|
|
426
427
|
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
427
428
|
* ```
|
|
428
429
|
*
|
|
429
|
-
* @example To upload an object
|
|
430
|
+
* @example To upload an object
|
|
430
431
|
* ```javascript
|
|
431
|
-
* // The following example uploads
|
|
432
|
+
* // 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.
|
|
432
433
|
* const input = {
|
|
433
|
-
* "
|
|
434
|
-
* "Body": "filetoupload",
|
|
434
|
+
* "Body": "HappyFace.jpg",
|
|
435
435
|
* "Bucket": "examplebucket",
|
|
436
|
-
* "Key": "
|
|
436
|
+
* "Key": "HappyFace.jpg"
|
|
437
437
|
* };
|
|
438
438
|
* const command = new PutObjectCommand(input);
|
|
439
439
|
* const response = await client.send(command);
|
|
440
440
|
* /* response ==
|
|
441
441
|
* {
|
|
442
442
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
443
|
-
* "VersionId": "
|
|
443
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
444
444
|
* }
|
|
445
445
|
* *\/
|
|
446
|
-
* // example id: to-upload-an-object-
|
|
446
|
+
* // example id: to-upload-an-object-1481760101010
|
|
447
447
|
* ```
|
|
448
448
|
*
|
|
449
449
|
*/
|