@aws-sdk/client-s3 3.306.0 → 3.309.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/commands/AbortMultipartUploadCommand.js +2 -2
- package/dist-cjs/commands/CompleteMultipartUploadCommand.js +2 -2
- package/dist-cjs/commands/CopyObjectCommand.js +2 -2
- package/dist-cjs/commands/CreateBucketCommand.js +2 -2
- package/dist-cjs/commands/CreateMultipartUploadCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketCorsCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketReplicationCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketTaggingCommand.js +2 -2
- package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +2 -2
- package/dist-cjs/commands/DeleteObjectCommand.js +2 -2
- package/dist-cjs/commands/DeleteObjectTaggingCommand.js +2 -2
- package/dist-cjs/commands/DeleteObjectsCommand.js +2 -2
- package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +2 -2
- package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketAclCommand.js +2 -2
- package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketCorsCommand.js +2 -2
- package/dist-cjs/commands/GetBucketEncryptionCommand.js +2 -2
- package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketLocationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketLoggingCommand.js +2 -2
- package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +2 -2
- package/dist-cjs/commands/GetBucketPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +2 -2
- package/dist-cjs/commands/GetBucketReplicationCommand.js +2 -2
- package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +2 -2
- package/dist-cjs/commands/GetBucketTaggingCommand.js +2 -2
- package/dist-cjs/commands/GetBucketVersioningCommand.js +2 -2
- package/dist-cjs/commands/GetBucketWebsiteCommand.js +2 -2
- package/dist-cjs/commands/GetObjectAclCommand.js +2 -2
- package/dist-cjs/commands/GetObjectAttributesCommand.js +2 -2
- package/dist-cjs/commands/GetObjectCommand.js +2 -2
- package/dist-cjs/commands/GetObjectLegalHoldCommand.js +2 -2
- package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetObjectRetentionCommand.js +2 -2
- package/dist-cjs/commands/GetObjectTaggingCommand.js +2 -2
- package/dist-cjs/commands/GetObjectTorrentCommand.js +2 -2
- package/dist-cjs/commands/GetPublicAccessBlockCommand.js +2 -2
- package/dist-cjs/commands/HeadBucketCommand.js +2 -2
- package/dist-cjs/commands/HeadObjectCommand.js +2 -2
- package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListBucketsCommand.js +2 -2
- package/dist-cjs/commands/ListMultipartUploadsCommand.js +2 -2
- package/dist-cjs/commands/ListObjectVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListObjectsCommand.js +2 -2
- package/dist-cjs/commands/ListObjectsV2Command.js +2 -2
- package/dist-cjs/commands/ListPartsCommand.js +2 -2
- package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutBucketAclCommand.js +2 -2
- package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutBucketCorsCommand.js +2 -2
- package/dist-cjs/commands/PutBucketEncryptionCommand.js +2 -2
- package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutBucketLoggingCommand.js +2 -2
- package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +2 -2
- package/dist-cjs/commands/PutBucketPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutBucketReplicationCommand.js +2 -2
- package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +2 -2
- package/dist-cjs/commands/PutBucketTaggingCommand.js +2 -2
- package/dist-cjs/commands/PutBucketVersioningCommand.js +2 -2
- package/dist-cjs/commands/PutBucketWebsiteCommand.js +2 -2
- package/dist-cjs/commands/PutObjectAclCommand.js +2 -2
- package/dist-cjs/commands/PutObjectCommand.js +2 -2
- package/dist-cjs/commands/PutObjectLegalHoldCommand.js +2 -2
- package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +2 -2
- package/dist-cjs/commands/PutObjectRetentionCommand.js +2 -2
- package/dist-cjs/commands/PutObjectTaggingCommand.js +2 -2
- package/dist-cjs/commands/PutPublicAccessBlockCommand.js +2 -2
- package/dist-cjs/commands/RestoreObjectCommand.js +2 -2
- package/dist-cjs/commands/SelectObjectContentCommand.js +2 -2
- package/dist-cjs/commands/UploadPartCommand.js +2 -2
- package/dist-cjs/commands/UploadPartCopyCommand.js +2 -2
- package/dist-cjs/commands/WriteGetObjectResponseCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restXml.js +1211 -1211
- package/dist-es/commands/AbortMultipartUploadCommand.js +3 -3
- package/dist-es/commands/CompleteMultipartUploadCommand.js +3 -3
- package/dist-es/commands/CopyObjectCommand.js +3 -3
- package/dist-es/commands/CreateBucketCommand.js +3 -3
- package/dist-es/commands/CreateMultipartUploadCommand.js +3 -3
- package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteBucketCommand.js +3 -3
- package/dist-es/commands/DeleteBucketCorsCommand.js +3 -3
- package/dist-es/commands/DeleteBucketEncryptionCommand.js +3 -3
- package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteBucketLifecycleCommand.js +3 -3
- package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +3 -3
- package/dist-es/commands/DeleteBucketPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteBucketReplicationCommand.js +3 -3
- package/dist-es/commands/DeleteBucketTaggingCommand.js +3 -3
- package/dist-es/commands/DeleteBucketWebsiteCommand.js +3 -3
- package/dist-es/commands/DeleteObjectCommand.js +3 -3
- package/dist-es/commands/DeleteObjectTaggingCommand.js +3 -3
- package/dist-es/commands/DeleteObjectsCommand.js +3 -3
- package/dist-es/commands/DeletePublicAccessBlockCommand.js +3 -3
- package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +3 -3
- package/dist-es/commands/GetBucketAclCommand.js +3 -3
- package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +3 -3
- package/dist-es/commands/GetBucketCorsCommand.js +3 -3
- package/dist-es/commands/GetBucketEncryptionCommand.js +3 -3
- package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +3 -3
- package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +3 -3
- package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +3 -3
- package/dist-es/commands/GetBucketLocationCommand.js +3 -3
- package/dist-es/commands/GetBucketLoggingCommand.js +3 -3
- package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +3 -3
- package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +3 -3
- package/dist-es/commands/GetBucketOwnershipControlsCommand.js +3 -3
- package/dist-es/commands/GetBucketPolicyCommand.js +3 -3
- package/dist-es/commands/GetBucketPolicyStatusCommand.js +3 -3
- package/dist-es/commands/GetBucketReplicationCommand.js +3 -3
- package/dist-es/commands/GetBucketRequestPaymentCommand.js +3 -3
- package/dist-es/commands/GetBucketTaggingCommand.js +3 -3
- package/dist-es/commands/GetBucketVersioningCommand.js +3 -3
- package/dist-es/commands/GetBucketWebsiteCommand.js +3 -3
- package/dist-es/commands/GetObjectAclCommand.js +3 -3
- package/dist-es/commands/GetObjectAttributesCommand.js +3 -3
- package/dist-es/commands/GetObjectCommand.js +3 -3
- package/dist-es/commands/GetObjectLegalHoldCommand.js +3 -3
- package/dist-es/commands/GetObjectLockConfigurationCommand.js +3 -3
- package/dist-es/commands/GetObjectRetentionCommand.js +3 -3
- package/dist-es/commands/GetObjectTaggingCommand.js +3 -3
- package/dist-es/commands/GetObjectTorrentCommand.js +3 -3
- package/dist-es/commands/GetPublicAccessBlockCommand.js +3 -3
- package/dist-es/commands/HeadBucketCommand.js +3 -3
- package/dist-es/commands/HeadObjectCommand.js +3 -3
- package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListBucketsCommand.js +3 -3
- package/dist-es/commands/ListMultipartUploadsCommand.js +3 -3
- package/dist-es/commands/ListObjectVersionsCommand.js +3 -3
- package/dist-es/commands/ListObjectsCommand.js +3 -3
- package/dist-es/commands/ListObjectsV2Command.js +3 -3
- package/dist-es/commands/ListPartsCommand.js +3 -3
- package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +3 -3
- package/dist-es/commands/PutBucketAclCommand.js +3 -3
- package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +3 -3
- package/dist-es/commands/PutBucketCorsCommand.js +3 -3
- package/dist-es/commands/PutBucketEncryptionCommand.js +3 -3
- package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +3 -3
- package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +3 -3
- package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +3 -3
- package/dist-es/commands/PutBucketLoggingCommand.js +3 -3
- package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +3 -3
- package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +3 -3
- package/dist-es/commands/PutBucketOwnershipControlsCommand.js +3 -3
- package/dist-es/commands/PutBucketPolicyCommand.js +3 -3
- package/dist-es/commands/PutBucketReplicationCommand.js +3 -3
- package/dist-es/commands/PutBucketRequestPaymentCommand.js +3 -3
- package/dist-es/commands/PutBucketTaggingCommand.js +3 -3
- package/dist-es/commands/PutBucketVersioningCommand.js +3 -3
- package/dist-es/commands/PutBucketWebsiteCommand.js +3 -3
- package/dist-es/commands/PutObjectAclCommand.js +3 -3
- package/dist-es/commands/PutObjectCommand.js +3 -3
- package/dist-es/commands/PutObjectLegalHoldCommand.js +3 -3
- package/dist-es/commands/PutObjectLockConfigurationCommand.js +3 -3
- package/dist-es/commands/PutObjectRetentionCommand.js +3 -3
- package/dist-es/commands/PutObjectTaggingCommand.js +3 -3
- package/dist-es/commands/PutPublicAccessBlockCommand.js +3 -3
- package/dist-es/commands/RestoreObjectCommand.js +3 -3
- package/dist-es/commands/SelectObjectContentCommand.js +3 -3
- package/dist-es/commands/UploadPartCommand.js +3 -3
- package/dist-es/commands/UploadPartCopyCommand.js +3 -3
- package/dist-es/commands/WriteGetObjectResponseCommand.js +3 -3
- package/dist-es/protocols/Aws_restXml.js +1021 -1021
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -11
- package/dist-types/commands/GetObjectCommand.d.ts +19 -19
- package/dist-types/commands/ListBucketsCommand.d.ts +0 -31
- package/dist-types/commands/ListObjectsV2Command.d.ts +2 -2
- package/dist-types/commands/PutObjectCommand.d.ts +46 -46
- package/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
- package/dist-types/protocols/Aws_restXml.d.ts +744 -186
- package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +186 -186
- package/package.json +6 -6
|
@@ -62,39 +62,39 @@ export interface DeleteObjectTaggingCommandOutput extends DeleteObjectTaggingOut
|
|
|
62
62
|
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
|
|
63
63
|
*
|
|
64
64
|
*
|
|
65
|
-
* @example To remove tag set from an object
|
|
65
|
+
* @example To remove tag set from an object version
|
|
66
66
|
* ```javascript
|
|
67
|
-
* // The following example removes tag set associated with the specified object.
|
|
67
|
+
* // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
|
|
68
68
|
* const input = {
|
|
69
69
|
* "Bucket": "examplebucket",
|
|
70
|
-
* "Key": "HappyFace.jpg"
|
|
70
|
+
* "Key": "HappyFace.jpg",
|
|
71
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
71
72
|
* };
|
|
72
73
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
73
74
|
* const response = await client.send(command);
|
|
74
75
|
* /* response ==
|
|
75
76
|
* {
|
|
76
|
-
* "VersionId": "
|
|
77
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
77
78
|
* }
|
|
78
79
|
* *\/
|
|
79
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
80
|
+
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
|
|
80
81
|
* ```
|
|
81
82
|
*
|
|
82
|
-
* @example To remove tag set from an object
|
|
83
|
+
* @example To remove tag set from an object
|
|
83
84
|
* ```javascript
|
|
84
|
-
* // The following example removes tag set associated with the specified object
|
|
85
|
+
* // 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.
|
|
85
86
|
* const input = {
|
|
86
87
|
* "Bucket": "examplebucket",
|
|
87
|
-
* "Key": "HappyFace.jpg"
|
|
88
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
88
|
+
* "Key": "HappyFace.jpg"
|
|
89
89
|
* };
|
|
90
90
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
91
91
|
* const response = await client.send(command);
|
|
92
92
|
* /* response ==
|
|
93
93
|
* {
|
|
94
|
-
* "VersionId": "
|
|
94
|
+
* "VersionId": "null"
|
|
95
95
|
* }
|
|
96
96
|
* *\/
|
|
97
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
97
|
+
* // example id: to-remove-tag-set-from-an-object-1483145342862
|
|
98
98
|
* ```
|
|
99
99
|
*
|
|
100
100
|
*/
|
|
@@ -229,53 +229,53 @@ export interface GetObjectCommandOutput extends __WithSdkStreamMixin<GetObjectOu
|
|
|
229
229
|
* <p>The specified key does not exist.</p>
|
|
230
230
|
*
|
|
231
231
|
*
|
|
232
|
-
* @example To retrieve
|
|
232
|
+
* @example To retrieve an object
|
|
233
233
|
* ```javascript
|
|
234
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
234
|
+
* // The following example retrieves an object for an S3 bucket.
|
|
235
235
|
* const input = {
|
|
236
236
|
* "Bucket": "examplebucket",
|
|
237
|
-
* "Key": "
|
|
238
|
-
* "Range": "bytes=0-9"
|
|
237
|
+
* "Key": "HappyFace.jpg"
|
|
239
238
|
* };
|
|
240
239
|
* const command = new GetObjectCommand(input);
|
|
241
240
|
* const response = await client.send(command);
|
|
242
241
|
* /* response ==
|
|
243
242
|
* {
|
|
244
243
|
* "AcceptRanges": "bytes",
|
|
245
|
-
* "ContentLength": "
|
|
246
|
-
* "
|
|
247
|
-
* "
|
|
248
|
-
* "
|
|
249
|
-
* "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
|
|
244
|
+
* "ContentLength": "3191",
|
|
245
|
+
* "ContentType": "image/jpeg",
|
|
246
|
+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
247
|
+
* "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
|
|
250
248
|
* "Metadata": {},
|
|
249
|
+
* "TagCount": 2,
|
|
251
250
|
* "VersionId": "null"
|
|
252
251
|
* }
|
|
253
252
|
* *\/
|
|
254
|
-
* // example id: to-retrieve-
|
|
253
|
+
* // example id: to-retrieve-an-object-1481827837012
|
|
255
254
|
* ```
|
|
256
255
|
*
|
|
257
|
-
* @example To retrieve an object
|
|
256
|
+
* @example To retrieve a byte range of an object
|
|
258
257
|
* ```javascript
|
|
259
|
-
* // The following example retrieves an object for an S3 bucket.
|
|
258
|
+
* // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
|
|
260
259
|
* const input = {
|
|
261
260
|
* "Bucket": "examplebucket",
|
|
262
|
-
* "Key": "
|
|
261
|
+
* "Key": "SampleFile.txt",
|
|
262
|
+
* "Range": "bytes=0-9"
|
|
263
263
|
* };
|
|
264
264
|
* const command = new GetObjectCommand(input);
|
|
265
265
|
* const response = await client.send(command);
|
|
266
266
|
* /* response ==
|
|
267
267
|
* {
|
|
268
268
|
* "AcceptRanges": "bytes",
|
|
269
|
-
* "ContentLength": "
|
|
270
|
-
* "
|
|
271
|
-
* "
|
|
272
|
-
* "
|
|
269
|
+
* "ContentLength": "10",
|
|
270
|
+
* "ContentRange": "bytes 0-9/43",
|
|
271
|
+
* "ContentType": "text/plain",
|
|
272
|
+
* "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
|
273
|
+
* "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
|
|
273
274
|
* "Metadata": {},
|
|
274
|
-
* "TagCount": 2,
|
|
275
275
|
* "VersionId": "null"
|
|
276
276
|
* }
|
|
277
277
|
* *\/
|
|
278
|
-
* // example id: to-retrieve-an-object
|
|
278
|
+
* // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
|
|
279
279
|
* ```
|
|
280
280
|
*
|
|
281
281
|
*/
|
|
@@ -41,37 +41,6 @@ export interface ListBucketsCommandOutput extends ListBucketsOutput, __MetadataB
|
|
|
41
41
|
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
|
|
42
42
|
*
|
|
43
43
|
*
|
|
44
|
-
* @example To list object versions
|
|
45
|
-
* ```javascript
|
|
46
|
-
* // The following example return versions of an object with specific key name prefix. The request limits the number of items returned to two. If there are are more than two object version, S3 returns NextToken in the response. You can specify this token value in your next request to fetch next set of object versions.
|
|
47
|
-
* const input = undefined;
|
|
48
|
-
* const command = new ListBucketsCommand(input);
|
|
49
|
-
* const response = await client.send(command);
|
|
50
|
-
* /* response ==
|
|
51
|
-
* {
|
|
52
|
-
* "Buckets": [
|
|
53
|
-
* {
|
|
54
|
-
* "CreationDate": "2012-02-15T21: 03: 02.000Z",
|
|
55
|
-
* "Name": "examplebucket"
|
|
56
|
-
* },
|
|
57
|
-
* {
|
|
58
|
-
* "CreationDate": "2011-07-24T19: 33: 50.000Z",
|
|
59
|
-
* "Name": "examplebucket2"
|
|
60
|
-
* },
|
|
61
|
-
* {
|
|
62
|
-
* "CreationDate": "2010-12-17T00: 56: 49.000Z",
|
|
63
|
-
* "Name": "examplebucket3"
|
|
64
|
-
* }
|
|
65
|
-
* ],
|
|
66
|
-
* "Owner": {
|
|
67
|
-
* "DisplayName": "own-display-name",
|
|
68
|
-
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31"
|
|
69
|
-
* }
|
|
70
|
-
* }
|
|
71
|
-
* *\/
|
|
72
|
-
* // example id: to-list-object-versions-1481910996058
|
|
73
|
-
* ```
|
|
74
|
-
*
|
|
75
44
|
* @example To list all buckets
|
|
76
45
|
* ```javascript
|
|
77
46
|
* // The following example returns all the buckets owned by the sender of this request.
|
|
@@ -92,7 +92,7 @@ export interface ListObjectsV2CommandOutput extends ListObjectsV2Output, __Metad
|
|
|
92
92
|
* ```javascript
|
|
93
93
|
* // The following example retrieves object list. The request specifies max keys to limit response to include only 2 object keys.
|
|
94
94
|
* const input = {
|
|
95
|
-
* "Bucket": "
|
|
95
|
+
* "Bucket": "DOC-EXAMPLE-BUCKET",
|
|
96
96
|
* "MaxKeys": "2"
|
|
97
97
|
* };
|
|
98
98
|
* const command = new ListObjectsV2Command(input);
|
|
@@ -118,7 +118,7 @@ export interface ListObjectsV2CommandOutput extends ListObjectsV2Output, __Metad
|
|
|
118
118
|
* "IsTruncated": true,
|
|
119
119
|
* "KeyCount": "2",
|
|
120
120
|
* "MaxKeys": "2",
|
|
121
|
-
* "Name": "
|
|
121
|
+
* "Name": "DOC-EXAMPLE-BUCKET",
|
|
122
122
|
* "NextContinuationToken": "1w41l63U0xa8q7smH50vCxyTQqdxo69O3EmK28Bi5PcROI4wI/EyIJg==",
|
|
123
123
|
* "Prefix": ""
|
|
124
124
|
* }
|
|
@@ -177,68 +177,67 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
|
|
|
177
177
|
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
|
|
178
178
|
*
|
|
179
179
|
*
|
|
180
|
-
* @example To upload
|
|
180
|
+
* @example To upload object and specify user-defined metadata
|
|
181
181
|
* ```javascript
|
|
182
|
-
* // The following example
|
|
182
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
183
183
|
* const input = {
|
|
184
|
-
* "Body": "
|
|
184
|
+
* "Body": "filetoupload",
|
|
185
185
|
* "Bucket": "examplebucket",
|
|
186
|
-
* "Key": "
|
|
186
|
+
* "Key": "exampleobject",
|
|
187
|
+
* "Metadata": {
|
|
188
|
+
* "metadata1": "value1",
|
|
189
|
+
* "metadata2": "value2"
|
|
190
|
+
* }
|
|
187
191
|
* };
|
|
188
192
|
* const command = new PutObjectCommand(input);
|
|
189
193
|
* const response = await client.send(command);
|
|
190
194
|
* /* response ==
|
|
191
195
|
* {
|
|
192
196
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
193
|
-
* "VersionId": "
|
|
197
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
194
198
|
* }
|
|
195
199
|
* *\/
|
|
196
|
-
* // example id: to-upload-
|
|
200
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
197
201
|
* ```
|
|
198
202
|
*
|
|
199
|
-
* @example To upload object and specify
|
|
203
|
+
* @example To upload an object and specify optional tags
|
|
200
204
|
* ```javascript
|
|
201
|
-
* // The following example
|
|
205
|
+
* // 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.
|
|
202
206
|
* const input = {
|
|
203
|
-
* "Body": "
|
|
207
|
+
* "Body": "c:\\HappyFace.jpg",
|
|
204
208
|
* "Bucket": "examplebucket",
|
|
205
|
-
* "Key": "
|
|
206
|
-
* "
|
|
207
|
-
* "metadata1": "value1",
|
|
208
|
-
* "metadata2": "value2"
|
|
209
|
-
* }
|
|
209
|
+
* "Key": "HappyFace.jpg",
|
|
210
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
210
211
|
* };
|
|
211
212
|
* const command = new PutObjectCommand(input);
|
|
212
213
|
* const response = await client.send(command);
|
|
213
214
|
* /* response ==
|
|
214
215
|
* {
|
|
215
216
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
216
|
-
* "VersionId": "
|
|
217
|
+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
|
|
217
218
|
* }
|
|
218
219
|
* *\/
|
|
219
|
-
* // example id: to-upload-object-and-specify-
|
|
220
|
+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
220
221
|
* ```
|
|
221
222
|
*
|
|
222
|
-
* @example To upload an object
|
|
223
|
+
* @example To upload an object and specify canned ACL.
|
|
223
224
|
* ```javascript
|
|
224
|
-
* // The following example uploads
|
|
225
|
+
* // 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.
|
|
225
226
|
* const input = {
|
|
226
|
-
* "
|
|
227
|
+
* "ACL": "authenticated-read",
|
|
228
|
+
* "Body": "filetoupload",
|
|
227
229
|
* "Bucket": "examplebucket",
|
|
228
|
-
* "Key": "
|
|
229
|
-
* "ServerSideEncryption": "AES256",
|
|
230
|
-
* "StorageClass": "STANDARD_IA"
|
|
230
|
+
* "Key": "exampleobject"
|
|
231
231
|
* };
|
|
232
232
|
* const command = new PutObjectCommand(input);
|
|
233
233
|
* const response = await client.send(command);
|
|
234
234
|
* /* response ==
|
|
235
235
|
* {
|
|
236
236
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
237
|
-
* "
|
|
238
|
-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
237
|
+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
|
|
239
238
|
* }
|
|
240
239
|
* *\/
|
|
241
|
-
* // example id: to-upload-an-object-
|
|
240
|
+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
242
241
|
* ```
|
|
243
242
|
*
|
|
244
243
|
* @example To create an object.
|
|
@@ -260,66 +259,67 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
|
|
|
260
259
|
* // example id: to-create-an-object-1483147613675
|
|
261
260
|
* ```
|
|
262
261
|
*
|
|
263
|
-
* @example To upload an object
|
|
262
|
+
* @example To upload an object
|
|
264
263
|
* ```javascript
|
|
265
|
-
* // The following example uploads
|
|
264
|
+
* // 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.
|
|
266
265
|
* const input = {
|
|
267
|
-
* "Body": "
|
|
266
|
+
* "Body": "HappyFace.jpg",
|
|
268
267
|
* "Bucket": "examplebucket",
|
|
269
|
-
* "Key": "
|
|
270
|
-
* "ServerSideEncryption": "AES256",
|
|
271
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
268
|
+
* "Key": "HappyFace.jpg"
|
|
272
269
|
* };
|
|
273
270
|
* const command = new PutObjectCommand(input);
|
|
274
271
|
* const response = await client.send(command);
|
|
275
272
|
* /* response ==
|
|
276
273
|
* {
|
|
277
274
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
278
|
-
* "
|
|
279
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
275
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
280
276
|
* }
|
|
281
277
|
* *\/
|
|
282
|
-
* // example id: to-upload-an-object-
|
|
278
|
+
* // example id: to-upload-an-object-1481760101010
|
|
283
279
|
* ```
|
|
284
280
|
*
|
|
285
|
-
* @example To upload an object
|
|
281
|
+
* @example To upload an object (specify optional headers)
|
|
286
282
|
* ```javascript
|
|
287
|
-
* // The following example uploads an object. The request specifies optional
|
|
283
|
+
* // 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.
|
|
288
284
|
* const input = {
|
|
289
|
-
* "Body": "
|
|
285
|
+
* "Body": "HappyFace.jpg",
|
|
290
286
|
* "Bucket": "examplebucket",
|
|
291
287
|
* "Key": "HappyFace.jpg",
|
|
292
|
-
* "
|
|
288
|
+
* "ServerSideEncryption": "AES256",
|
|
289
|
+
* "StorageClass": "STANDARD_IA"
|
|
293
290
|
* };
|
|
294
291
|
* const command = new PutObjectCommand(input);
|
|
295
292
|
* const response = await client.send(command);
|
|
296
293
|
* /* response ==
|
|
297
294
|
* {
|
|
298
295
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
299
|
-
* "
|
|
296
|
+
* "ServerSideEncryption": "AES256",
|
|
297
|
+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
300
298
|
* }
|
|
301
299
|
* *\/
|
|
302
|
-
* // example id: to-upload-an-object-
|
|
300
|
+
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
303
301
|
* ```
|
|
304
302
|
*
|
|
305
|
-
* @example To upload an object and specify
|
|
303
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
306
304
|
* ```javascript
|
|
307
|
-
* // The following example uploads
|
|
305
|
+
* // 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.
|
|
308
306
|
* const input = {
|
|
309
|
-
* "ACL": "authenticated-read",
|
|
310
307
|
* "Body": "filetoupload",
|
|
311
308
|
* "Bucket": "examplebucket",
|
|
312
|
-
* "Key": "exampleobject"
|
|
309
|
+
* "Key": "exampleobject",
|
|
310
|
+
* "ServerSideEncryption": "AES256",
|
|
311
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
313
312
|
* };
|
|
314
313
|
* const command = new PutObjectCommand(input);
|
|
315
314
|
* const response = await client.send(command);
|
|
316
315
|
* /* response ==
|
|
317
316
|
* {
|
|
318
317
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
319
|
-
* "
|
|
318
|
+
* "ServerSideEncryption": "AES256",
|
|
319
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
320
320
|
* }
|
|
321
321
|
* *\/
|
|
322
|
-
* // example id: to-upload-an-object-and-specify-
|
|
322
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
323
323
|
* ```
|
|
324
324
|
*
|
|
325
325
|
*/
|
|
@@ -226,15 +226,14 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
|
|
|
226
226
|
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
|
|
227
227
|
*
|
|
228
228
|
*
|
|
229
|
-
* @example To upload a part by copying
|
|
229
|
+
* @example To upload a part by copying data from an existing object as data source
|
|
230
230
|
* ```javascript
|
|
231
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
231
|
+
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
|
232
232
|
* const input = {
|
|
233
233
|
* "Bucket": "examplebucket",
|
|
234
234
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
235
|
-
* "CopySourceRange": "bytes=1-100000",
|
|
236
235
|
* "Key": "examplelargeobject",
|
|
237
|
-
* "PartNumber": "
|
|
236
|
+
* "PartNumber": "1",
|
|
238
237
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
239
238
|
* };
|
|
240
239
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -242,22 +241,23 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
|
|
|
242
241
|
* /* response ==
|
|
243
242
|
* {
|
|
244
243
|
* "CopyPartResult": {
|
|
245
|
-
* "ETag": "\"
|
|
246
|
-
* "LastModified": "2016-12-29T21:
|
|
244
|
+
* "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
|
245
|
+
* "LastModified": "2016-12-29T21:24:43.000Z"
|
|
247
246
|
* }
|
|
248
247
|
* }
|
|
249
248
|
* *\/
|
|
250
|
-
* // example id: to-upload-a-part-by-copying-
|
|
249
|
+
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
|
|
251
250
|
* ```
|
|
252
251
|
*
|
|
253
|
-
* @example To upload a part by copying
|
|
252
|
+
* @example To upload a part by copying byte range from an existing object as data source
|
|
254
253
|
* ```javascript
|
|
255
|
-
* // The following example uploads a part of a multipart upload by copying
|
|
254
|
+
* // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
|
|
256
255
|
* const input = {
|
|
257
256
|
* "Bucket": "examplebucket",
|
|
258
257
|
* "CopySource": "/bucketname/sourceobjectkey",
|
|
258
|
+
* "CopySourceRange": "bytes=1-100000",
|
|
259
259
|
* "Key": "examplelargeobject",
|
|
260
|
-
* "PartNumber": "
|
|
260
|
+
* "PartNumber": "2",
|
|
261
261
|
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
|
|
262
262
|
* };
|
|
263
263
|
* const command = new UploadPartCopyCommand(input);
|
|
@@ -265,12 +265,12 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
|
|
|
265
265
|
* /* response ==
|
|
266
266
|
* {
|
|
267
267
|
* "CopyPartResult": {
|
|
268
|
-
* "ETag": "\"
|
|
269
|
-
* "LastModified": "2016-12-29T21:
|
|
268
|
+
* "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
|
|
269
|
+
* "LastModified": "2016-12-29T21:44:28.000Z"
|
|
270
270
|
* }
|
|
271
271
|
* }
|
|
272
272
|
* *\/
|
|
273
|
-
* // example id: to-upload-a-part-by-copying-
|
|
273
|
+
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
|
|
274
274
|
* ```
|
|
275
275
|
*
|
|
276
276
|
*/
|