@aws-sdk/client-s3 3.775.0 → 3.779.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/endpoint/ruleset.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-types/commands/AbortMultipartUploadCommand.d.ts +9 -6
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +16 -16
- package/dist-types/commands/CopyObjectCommand.d.ts +9 -9
- package/dist-types/commands/CreateBucketCommand.d.ts +15 -16
- package/dist-types/commands/CreateBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +8 -8
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +7 -4
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +7 -4
- package/dist-types/commands/DeleteObjectCommand.d.ts +18 -13
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -12
- package/dist-types/commands/DeleteObjectsCommand.d.ts +30 -31
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAclCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketCorsCommand.d.ts +9 -9
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +11 -11
- package/dist-types/commands/GetBucketLocationCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketMetadataTableConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +1 -0
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +12 -12
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +5 -5
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +9 -9
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +6 -6
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +8 -8
- package/dist-types/commands/GetObjectAclCommand.d.ts +29 -29
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectCommand.d.ts +45 -31
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +1 -0
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +19 -20
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +18 -5
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/HeadBucketCommand.d.ts +7 -4
- package/dist-types/commands/HeadObjectCommand.d.ts +12 -12
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +1 -0
- package/dist-types/commands/ListBucketsCommand.d.ts +14 -14
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +1 -0
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +62 -63
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +26 -26
- package/dist-types/commands/ListObjectsCommand.d.ts +23 -23
- package/dist-types/commands/ListObjectsV2Command.d.ts +22 -22
- package/dist-types/commands/ListPartsCommand.d.ts +22 -22
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketAclCommand.d.ts +9 -6
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketCorsCommand.d.ts +19 -16
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +18 -15
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +16 -13
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +11 -8
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +1 -0
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +8 -5
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +15 -12
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +9 -6
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +13 -10
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +10 -7
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +13 -10
- package/dist-types/commands/PutObjectAclCommand.d.ts +11 -8
- package/dist-types/commands/PutObjectCommand.d.ts +68 -74
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +1 -0
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +12 -12
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +1 -0
- package/dist-types/commands/RestoreObjectCommand.d.ts +17 -16
- package/dist-types/commands/SelectObjectContentCommand.d.ts +1 -0
- package/dist-types/commands/UploadPartCommand.d.ts +9 -9
- package/dist-types/commands/UploadPartCopyCommand.d.ts +21 -22
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +47 -48
- package/dist-types/models/models_1.d.ts +13 -14
- package/package.json +2 -2
|
@@ -278,30 +278,30 @@ declare const HeadObjectCommand_base: {
|
|
|
278
278
|
* @throws {@link S3ServiceException}
|
|
279
279
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
280
280
|
*
|
|
281
|
-
*
|
|
281
|
+
*
|
|
282
282
|
* @example To retrieve metadata of an object without returning the object itself
|
|
283
283
|
* ```javascript
|
|
284
284
|
* // The following example retrieves an object metadata.
|
|
285
285
|
* const input = {
|
|
286
|
-
*
|
|
287
|
-
*
|
|
286
|
+
* Bucket: "examplebucket",
|
|
287
|
+
* Key: "HappyFace.jpg"
|
|
288
288
|
* };
|
|
289
289
|
* const command = new HeadObjectCommand(input);
|
|
290
290
|
* const response = await client.send(command);
|
|
291
|
-
* /* response
|
|
291
|
+
* /* response is
|
|
292
292
|
* {
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
293
|
+
* AcceptRanges: "bytes",
|
|
294
|
+
* ContentLength: 3191,
|
|
295
|
+
* ContentType: "image/jpeg",
|
|
296
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
297
|
+
* LastModified: "2016-12-15T01:19:41.000Z",
|
|
298
|
+
* Metadata: { /* empty *\/ },
|
|
299
|
+
* VersionId: "null"
|
|
300
300
|
* }
|
|
301
301
|
* *\/
|
|
302
|
-
* // example id: to-retrieve-metadata-of-an-object-without-returning-the-object-itself-1481834820480
|
|
303
302
|
* ```
|
|
304
303
|
*
|
|
304
|
+
* @public
|
|
305
305
|
*/
|
|
306
306
|
export declare class HeadObjectCommand extends HeadObjectCommand_base {
|
|
307
307
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -130,6 +130,7 @@ declare const ListBucketAnalyticsConfigurationsCommand_base: {
|
|
|
130
130
|
* @throws {@link S3ServiceException}
|
|
131
131
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
132
132
|
*
|
|
133
|
+
*
|
|
133
134
|
* @public
|
|
134
135
|
*/
|
|
135
136
|
export declare class ListBucketAnalyticsConfigurationsCommand extends ListBucketAnalyticsConfigurationsCommand_base {
|
|
@@ -109,6 +109,7 @@ declare const ListBucketIntelligentTieringConfigurationsCommand_base: {
|
|
|
109
109
|
* @throws {@link S3ServiceException}
|
|
110
110
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
111
111
|
*
|
|
112
|
+
*
|
|
112
113
|
* @public
|
|
113
114
|
*/
|
|
114
115
|
export declare class ListBucketIntelligentTieringConfigurationsCommand extends ListBucketIntelligentTieringConfigurationsCommand_base {
|
|
@@ -125,6 +125,7 @@ declare const ListBucketInventoryConfigurationsCommand_base: {
|
|
|
125
125
|
* @throws {@link S3ServiceException}
|
|
126
126
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
127
127
|
*
|
|
128
|
+
*
|
|
128
129
|
* @public
|
|
129
130
|
*/
|
|
130
131
|
export declare class ListBucketInventoryConfigurationsCommand extends ListBucketInventoryConfigurationsCommand_base {
|
|
@@ -119,6 +119,7 @@ declare const ListBucketMetricsConfigurationsCommand_base: {
|
|
|
119
119
|
* @throws {@link S3ServiceException}
|
|
120
120
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
121
121
|
*
|
|
122
|
+
*
|
|
122
123
|
* @public
|
|
123
124
|
*/
|
|
124
125
|
export declare class ListBucketMetricsConfigurationsCommand extends ListBucketMetricsConfigurationsCommand_base {
|
|
@@ -82,38 +82,38 @@ declare const ListBucketsCommand_base: {
|
|
|
82
82
|
* @throws {@link S3ServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
*
|
|
86
86
|
* @example To list all buckets
|
|
87
87
|
* ```javascript
|
|
88
88
|
* // The following example returns all the buckets owned by the sender of this request.
|
|
89
|
-
* const input = {};
|
|
89
|
+
* const input = { /* empty *\/ };
|
|
90
90
|
* const command = new ListBucketsCommand(input);
|
|
91
91
|
* const response = await client.send(command);
|
|
92
|
-
* /* response
|
|
92
|
+
* /* response is
|
|
93
93
|
* {
|
|
94
|
-
*
|
|
94
|
+
* Buckets: [
|
|
95
95
|
* {
|
|
96
|
-
*
|
|
97
|
-
*
|
|
96
|
+
* CreationDate: "2012-02-15T21:03:02.000Z",
|
|
97
|
+
* Name: "examplebucket"
|
|
98
98
|
* },
|
|
99
99
|
* {
|
|
100
|
-
*
|
|
101
|
-
*
|
|
100
|
+
* CreationDate: "2011-07-24T19:33:50.000Z",
|
|
101
|
+
* Name: "examplebucket2"
|
|
102
102
|
* },
|
|
103
103
|
* {
|
|
104
|
-
*
|
|
105
|
-
*
|
|
104
|
+
* CreationDate: "2010-12-17T00:56:49.000Z",
|
|
105
|
+
* Name: "examplebucket3"
|
|
106
106
|
* }
|
|
107
107
|
* ],
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
108
|
+
* Owner: {
|
|
109
|
+
* DisplayName: "own-display-name",
|
|
110
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31"
|
|
111
111
|
* }
|
|
112
112
|
* }
|
|
113
113
|
* *\/
|
|
114
|
-
* // example id: to-list-buckets-1481910996058
|
|
115
114
|
* ```
|
|
116
115
|
*
|
|
116
|
+
* @public
|
|
117
117
|
*/
|
|
118
118
|
export declare class ListBucketsCommand extends ListBucketsCommand_base {
|
|
119
119
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -90,6 +90,7 @@ declare const ListDirectoryBucketsCommand_base: {
|
|
|
90
90
|
* @throws {@link S3ServiceException}
|
|
91
91
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
92
92
|
*
|
|
93
|
+
*
|
|
93
94
|
* @public
|
|
94
95
|
*/
|
|
95
96
|
export declare class ListDirectoryBucketsCommand extends ListDirectoryBucketsCommand_base {
|
|
@@ -228,107 +228,106 @@ declare const ListMultipartUploadsCommand_base: {
|
|
|
228
228
|
* @throws {@link S3ServiceException}
|
|
229
229
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
230
230
|
*
|
|
231
|
-
*
|
|
232
|
-
* @example
|
|
231
|
+
*
|
|
232
|
+
* @example List next set of multipart uploads when previous result is truncated
|
|
233
233
|
* ```javascript
|
|
234
|
-
* // The following example
|
|
234
|
+
* // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
|
|
235
235
|
* const input = {
|
|
236
|
-
*
|
|
236
|
+
* Bucket: "examplebucket",
|
|
237
|
+
* KeyMarker: "nextkeyfrompreviousresponse",
|
|
238
|
+
* MaxUploads: 2,
|
|
239
|
+
* UploadIdMarker: "valuefrompreviousresponse"
|
|
237
240
|
* };
|
|
238
241
|
* const command = new ListMultipartUploadsCommand(input);
|
|
239
242
|
* const response = await client.send(command);
|
|
240
|
-
* /* response
|
|
243
|
+
* /* response is
|
|
241
244
|
* {
|
|
242
|
-
* "
|
|
245
|
+
* Bucket: "acl1",
|
|
246
|
+
* IsTruncated: true,
|
|
247
|
+
* KeyMarker: "",
|
|
248
|
+
* MaxUploads: 2,
|
|
249
|
+
* NextKeyMarker: "someobjectkey",
|
|
250
|
+
* NextUploadIdMarker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
251
|
+
* UploadIdMarker: "",
|
|
252
|
+
* Uploads: [
|
|
243
253
|
* {
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
254
|
+
* Initiated: "2014-05-01T05:40:58.000Z",
|
|
255
|
+
* Initiator: {
|
|
256
|
+
* DisplayName: "ownder-display-name",
|
|
257
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
248
258
|
* },
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
259
|
+
* Key: "JavaFile",
|
|
260
|
+
* Owner: {
|
|
261
|
+
* DisplayName: "mohanataws",
|
|
262
|
+
* ID: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
253
263
|
* },
|
|
254
|
-
*
|
|
255
|
-
*
|
|
264
|
+
* StorageClass: "STANDARD",
|
|
265
|
+
* UploadId: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
256
266
|
* },
|
|
257
267
|
* {
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
268
|
+
* Initiated: "2014-05-01T05:41:27.000Z",
|
|
269
|
+
* Initiator: {
|
|
270
|
+
* DisplayName: "ownder-display-name",
|
|
271
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
262
272
|
* },
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
273
|
+
* Key: "JavaFile",
|
|
274
|
+
* Owner: {
|
|
275
|
+
* DisplayName: "ownder-display-name",
|
|
276
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
267
277
|
* },
|
|
268
|
-
*
|
|
269
|
-
*
|
|
278
|
+
* StorageClass: "STANDARD",
|
|
279
|
+
* UploadId: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
270
280
|
* }
|
|
271
281
|
* ]
|
|
272
282
|
* }
|
|
273
283
|
* *\/
|
|
274
|
-
* // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
|
|
275
284
|
* ```
|
|
276
285
|
*
|
|
277
|
-
* @example
|
|
286
|
+
* @example To list in-progress multipart uploads on a bucket
|
|
278
287
|
* ```javascript
|
|
279
|
-
* // The following example
|
|
288
|
+
* // The following example lists in-progress multipart uploads on a specific bucket.
|
|
280
289
|
* const input = {
|
|
281
|
-
*
|
|
282
|
-
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
283
|
-
* "MaxUploads": "2",
|
|
284
|
-
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
290
|
+
* Bucket: "examplebucket"
|
|
285
291
|
* };
|
|
286
292
|
* const command = new ListMultipartUploadsCommand(input);
|
|
287
293
|
* const response = await client.send(command);
|
|
288
|
-
* /* response
|
|
294
|
+
* /* response is
|
|
289
295
|
* {
|
|
290
|
-
*
|
|
291
|
-
* "IsTruncated": true,
|
|
292
|
-
* "KeyMarker": "",
|
|
293
|
-
* "MaxUploads": "2",
|
|
294
|
-
* "NextKeyMarker": "someobjectkey",
|
|
295
|
-
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
296
|
-
* "UploadIdMarker": "",
|
|
297
|
-
* "Uploads": [
|
|
296
|
+
* Uploads: [
|
|
298
297
|
* {
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
298
|
+
* Initiated: "2014-05-01T05:40:58.000Z",
|
|
299
|
+
* Initiator: {
|
|
300
|
+
* DisplayName: "display-name",
|
|
301
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
303
302
|
* },
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
*
|
|
303
|
+
* Key: "JavaFile",
|
|
304
|
+
* Owner: {
|
|
305
|
+
* DisplayName: "display-name",
|
|
306
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
308
307
|
* },
|
|
309
|
-
*
|
|
310
|
-
*
|
|
308
|
+
* StorageClass: "STANDARD",
|
|
309
|
+
* UploadId: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
311
310
|
* },
|
|
312
311
|
* {
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
312
|
+
* Initiated: "2014-05-01T05:41:27.000Z",
|
|
313
|
+
* Initiator: {
|
|
314
|
+
* DisplayName: "display-name",
|
|
315
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
317
316
|
* },
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
317
|
+
* Key: "JavaFile",
|
|
318
|
+
* Owner: {
|
|
319
|
+
* DisplayName: "display-name",
|
|
320
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
322
321
|
* },
|
|
323
|
-
*
|
|
324
|
-
*
|
|
322
|
+
* StorageClass: "STANDARD",
|
|
323
|
+
* UploadId: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
325
324
|
* }
|
|
326
325
|
* ]
|
|
327
326
|
* }
|
|
328
327
|
* *\/
|
|
329
|
-
* // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
|
|
330
328
|
* ```
|
|
331
329
|
*
|
|
330
|
+
* @public
|
|
332
331
|
*/
|
|
333
332
|
export declare class ListMultipartUploadsCommand extends ListMultipartUploadsCommand_base {
|
|
334
333
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -153,51 +153,51 @@ declare const ListObjectVersionsCommand_base: {
|
|
|
153
153
|
* @throws {@link S3ServiceException}
|
|
154
154
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
155
155
|
*
|
|
156
|
-
*
|
|
156
|
+
*
|
|
157
157
|
* @example To list object versions
|
|
158
158
|
* ```javascript
|
|
159
159
|
* // The following example returns versions of an object with specific key name prefix.
|
|
160
160
|
* const input = {
|
|
161
|
-
*
|
|
162
|
-
*
|
|
161
|
+
* Bucket: "examplebucket",
|
|
162
|
+
* Prefix: "HappyFace.jpg"
|
|
163
163
|
* };
|
|
164
164
|
* const command = new ListObjectVersionsCommand(input);
|
|
165
165
|
* const response = await client.send(command);
|
|
166
|
-
* /* response
|
|
166
|
+
* /* response is
|
|
167
167
|
* {
|
|
168
|
-
*
|
|
168
|
+
* Versions: [
|
|
169
169
|
* {
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
170
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
171
|
+
* IsLatest: true,
|
|
172
|
+
* Key: "HappyFace.jpg",
|
|
173
|
+
* LastModified: "2016-12-15T01:19:41.000Z",
|
|
174
|
+
* Owner: {
|
|
175
|
+
* DisplayName: "owner-display-name",
|
|
176
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
177
177
|
* },
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
178
|
+
* Size: 3191,
|
|
179
|
+
* StorageClass: "STANDARD",
|
|
180
|
+
* VersionId: "null"
|
|
181
181
|
* },
|
|
182
182
|
* {
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
183
|
+
* ETag: `"6805f2cfc46c0f04559748bb039d69ae"`,
|
|
184
|
+
* IsLatest: false,
|
|
185
|
+
* Key: "HappyFace.jpg",
|
|
186
|
+
* LastModified: "2016-12-13T00:58:26.000Z",
|
|
187
|
+
* Owner: {
|
|
188
|
+
* DisplayName: "owner-display-name",
|
|
189
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
190
190
|
* },
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
191
|
+
* Size: 3191,
|
|
192
|
+
* StorageClass: "STANDARD",
|
|
193
|
+
* VersionId: "PHtexPGjH2y.zBgT8LmB7wwLI2mpbz.k"
|
|
194
194
|
* }
|
|
195
195
|
* ]
|
|
196
196
|
* }
|
|
197
197
|
* *\/
|
|
198
|
-
* // example id: to-list-object-versions-1481910996058
|
|
199
198
|
* ```
|
|
200
199
|
*
|
|
200
|
+
* @public
|
|
201
201
|
*/
|
|
202
202
|
export declare class ListObjectVersionsCommand extends ListObjectVersionsCommand_base {
|
|
203
203
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -139,48 +139,48 @@ declare const ListObjectsCommand_base: {
|
|
|
139
139
|
* @throws {@link S3ServiceException}
|
|
140
140
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
141
141
|
*
|
|
142
|
-
*
|
|
142
|
+
*
|
|
143
143
|
* @example To list objects in a bucket
|
|
144
144
|
* ```javascript
|
|
145
145
|
* // The following example list two objects in a bucket.
|
|
146
146
|
* const input = {
|
|
147
|
-
*
|
|
148
|
-
*
|
|
147
|
+
* Bucket: "examplebucket",
|
|
148
|
+
* MaxKeys: 2
|
|
149
149
|
* };
|
|
150
150
|
* const command = new ListObjectsCommand(input);
|
|
151
151
|
* const response = await client.send(command);
|
|
152
|
-
* /* response
|
|
152
|
+
* /* response is
|
|
153
153
|
* {
|
|
154
|
-
*
|
|
154
|
+
* Contents: [
|
|
155
155
|
* {
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
156
|
+
* ETag: `"70ee1738b6b21e2c8a43f3a5ab0eee71"`,
|
|
157
|
+
* Key: "example1.jpg",
|
|
158
|
+
* LastModified: "2014-11-21T19:40:05.000Z",
|
|
159
|
+
* Owner: {
|
|
160
|
+
* DisplayName: "myname",
|
|
161
|
+
* ID: "12345example25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
162
162
|
* },
|
|
163
|
-
*
|
|
164
|
-
*
|
|
163
|
+
* Size: 11,
|
|
164
|
+
* StorageClass: "STANDARD"
|
|
165
165
|
* },
|
|
166
166
|
* {
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
167
|
+
* ETag: `"9c8af9a76df052144598c115ef33e511"`,
|
|
168
|
+
* Key: "example2.jpg",
|
|
169
|
+
* LastModified: "2013-11-15T01:10:49.000Z",
|
|
170
|
+
* Owner: {
|
|
171
|
+
* DisplayName: "myname",
|
|
172
|
+
* ID: "12345example25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
173
173
|
* },
|
|
174
|
-
*
|
|
175
|
-
*
|
|
174
|
+
* Size: 713193,
|
|
175
|
+
* StorageClass: "STANDARD"
|
|
176
176
|
* }
|
|
177
177
|
* ],
|
|
178
|
-
*
|
|
178
|
+
* NextMarker: "eyJNYXJrZXIiOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAyfQ=="
|
|
179
179
|
* }
|
|
180
180
|
* *\/
|
|
181
|
-
* // example id: to-list-objects-in-a-bucket-1473447646507
|
|
182
181
|
* ```
|
|
183
182
|
*
|
|
183
|
+
* @public
|
|
184
184
|
*/
|
|
185
185
|
export declare class ListObjectsCommand extends ListObjectsCommand_base {
|
|
186
186
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -207,45 +207,45 @@ declare const ListObjectsV2Command_base: {
|
|
|
207
207
|
* @throws {@link S3ServiceException}
|
|
208
208
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
209
209
|
*
|
|
210
|
-
*
|
|
210
|
+
*
|
|
211
211
|
* @example To get object list
|
|
212
212
|
* ```javascript
|
|
213
213
|
* // The following example retrieves object list. The request specifies max keys to limit response to include only 2 object keys.
|
|
214
214
|
* const input = {
|
|
215
|
-
*
|
|
216
|
-
*
|
|
215
|
+
* Bucket: "DOC-EXAMPLE-BUCKET",
|
|
216
|
+
* MaxKeys: 2
|
|
217
217
|
* };
|
|
218
218
|
* const command = new ListObjectsV2Command(input);
|
|
219
219
|
* const response = await client.send(command);
|
|
220
|
-
* /* response
|
|
220
|
+
* /* response is
|
|
221
221
|
* {
|
|
222
|
-
*
|
|
222
|
+
* Contents: [
|
|
223
223
|
* {
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
224
|
+
* ETag: `"70ee1738b6b21e2c8a43f3a5ab0eee71"`,
|
|
225
|
+
* Key: "happyface.jpg",
|
|
226
|
+
* LastModified: "2014-11-21T19:40:05.000Z",
|
|
227
|
+
* Size: 11,
|
|
228
|
+
* StorageClass: "STANDARD"
|
|
229
229
|
* },
|
|
230
230
|
* {
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
231
|
+
* ETag: `"becf17f89c30367a9a44495d62ed521a-1"`,
|
|
232
|
+
* Key: "test.jpg",
|
|
233
|
+
* LastModified: "2014-05-02T04:51:50.000Z",
|
|
234
|
+
* Size: 4192256,
|
|
235
|
+
* StorageClass: "STANDARD"
|
|
236
236
|
* }
|
|
237
237
|
* ],
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
238
|
+
* IsTruncated: true,
|
|
239
|
+
* KeyCount: 2,
|
|
240
|
+
* MaxKeys: 2,
|
|
241
|
+
* Name: "DOC-EXAMPLE-BUCKET",
|
|
242
|
+
* NextContinuationToken: "1w41l63U0xa8q7smH50vCxyTQqdxo69O3EmK28Bi5PcROI4wI/EyIJg==",
|
|
243
|
+
* Prefix: ""
|
|
244
244
|
* }
|
|
245
245
|
* *\/
|
|
246
|
-
* // example id: to-get-object-list
|
|
247
246
|
* ```
|
|
248
247
|
*
|
|
248
|
+
* @public
|
|
249
249
|
*/
|
|
250
250
|
export declare class ListObjectsV2Command extends ListObjectsV2Command_base {
|
|
251
251
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -183,47 +183,47 @@ declare const ListPartsCommand_base: {
|
|
|
183
183
|
* @throws {@link S3ServiceException}
|
|
184
184
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
185
185
|
*
|
|
186
|
-
*
|
|
186
|
+
*
|
|
187
187
|
* @example To list parts of a multipart upload.
|
|
188
188
|
* ```javascript
|
|
189
189
|
* // The following example lists parts uploaded for a specific multipart upload.
|
|
190
190
|
* const input = {
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
191
|
+
* Bucket: "examplebucket",
|
|
192
|
+
* Key: "bigobject",
|
|
193
|
+
* UploadId: "example7YPBOJuoFiQ9cz4P3Pe6FIZwO4f7wN93uHsNBEw97pl5eNwzExg0LAT2dUN91cOmrEQHDsP3WA60CEg--"
|
|
194
194
|
* };
|
|
195
195
|
* const command = new ListPartsCommand(input);
|
|
196
196
|
* const response = await client.send(command);
|
|
197
|
-
* /* response
|
|
197
|
+
* /* response is
|
|
198
198
|
* {
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
199
|
+
* Initiator: {
|
|
200
|
+
* DisplayName: "owner-display-name",
|
|
201
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
202
202
|
* },
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
203
|
+
* Owner: {
|
|
204
|
+
* DisplayName: "owner-display-name",
|
|
205
|
+
* ID: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
206
206
|
* },
|
|
207
|
-
*
|
|
207
|
+
* Parts: [
|
|
208
208
|
* {
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
209
|
+
* ETag: `"d8c2eafd90c266e19ab9dcacc479f8af"`,
|
|
210
|
+
* LastModified: "2016-12-16T00:11:42.000Z",
|
|
211
|
+
* PartNumber: 1,
|
|
212
|
+
* Size: 26246026
|
|
213
213
|
* },
|
|
214
214
|
* {
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
215
|
+
* ETag: `"d8c2eafd90c266e19ab9dcacc479f8af"`,
|
|
216
|
+
* LastModified: "2016-12-16T00:15:01.000Z",
|
|
217
|
+
* PartNumber: 2,
|
|
218
|
+
* Size: 26246026
|
|
219
219
|
* }
|
|
220
220
|
* ],
|
|
221
|
-
*
|
|
221
|
+
* StorageClass: "STANDARD"
|
|
222
222
|
* }
|
|
223
223
|
* *\/
|
|
224
|
-
* // example id: to-list-parts-of-a-multipart-upload-1481852006923
|
|
225
224
|
* ```
|
|
226
225
|
*
|
|
226
|
+
* @public
|
|
227
227
|
*/
|
|
228
228
|
export declare class ListPartsCommand extends ListPartsCommand_base {
|
|
229
229
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -98,6 +98,7 @@ declare const PutBucketAccelerateConfigurationCommand_base: {
|
|
|
98
98
|
* @throws {@link S3ServiceException}
|
|
99
99
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
100
100
|
*
|
|
101
|
+
*
|
|
101
102
|
* @public
|
|
102
103
|
*/
|
|
103
104
|
export declare class PutBucketAccelerateConfigurationCommand extends PutBucketAccelerateConfigurationCommand_base {
|
|
@@ -279,20 +279,23 @@ declare const PutBucketAclCommand_base: {
|
|
|
279
279
|
* @throws {@link S3ServiceException}
|
|
280
280
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
281
281
|
*
|
|
282
|
-
*
|
|
282
|
+
*
|
|
283
283
|
* @example Put bucket acl
|
|
284
284
|
* ```javascript
|
|
285
285
|
* // The following example replaces existing ACL on a bucket. The ACL grants the bucket owner (specified using the owner ID) and write permission to the LogDelivery group. Because this is a replace operation, you must specify all the grants in your request. To incrementally add or remove ACL grants, you might use the console.
|
|
286
286
|
* const input = {
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
287
|
+
* Bucket: "examplebucket",
|
|
288
|
+
* GrantFullControl: "id=examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484",
|
|
289
|
+
* GrantWrite: "uri=http://acs.amazonaws.com/groups/s3/LogDelivery"
|
|
290
290
|
* };
|
|
291
291
|
* const command = new PutBucketAclCommand(input);
|
|
292
|
-
* await client.send(command);
|
|
293
|
-
*
|
|
292
|
+
* const response = await client.send(command);
|
|
293
|
+
* /* response is
|
|
294
|
+
* { /* metadata only *\/ }
|
|
295
|
+
* *\/
|
|
294
296
|
* ```
|
|
295
297
|
*
|
|
298
|
+
* @public
|
|
296
299
|
*/
|
|
297
300
|
export declare class PutBucketAclCommand extends PutBucketAclCommand_base {
|
|
298
301
|
/** @internal type navigation helper, not in runtime. */
|