@aws-sdk/client-s3 3.591.0 → 3.592.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 +0 -95
- package/dist-types/commands/AbortMultipartUploadCommand.d.ts +2 -1
- package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +2 -1
- package/dist-types/commands/CopyObjectCommand.d.ts +2 -1
- package/dist-types/commands/CreateBucketCommand.d.ts +2 -1
- package/dist-types/commands/CreateMultipartUploadCommand.d.ts +2 -1
- package/dist-types/commands/CreateSessionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketCorsCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/commands/DeleteObjectCommand.d.ts +2 -1
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +2 -1
- package/dist-types/commands/DeleteObjectsCommand.d.ts +24 -23
- package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketAclCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketCorsCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketLocationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketLoggingCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketPolicyCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketReplicationCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketTaggingCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketVersioningCommand.d.ts +2 -1
- package/dist-types/commands/GetBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectAclCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectAttributesCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectRetentionCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectTaggingCommand.d.ts +2 -1
- package/dist-types/commands/GetObjectTorrentCommand.d.ts +2 -1
- package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/commands/HeadBucketCommand.d.ts +2 -1
- package/dist-types/commands/HeadObjectCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -1
- package/dist-types/commands/ListBucketsCommand.d.ts +2 -1
- package/dist-types/commands/ListDirectoryBucketsCommand.d.ts +2 -1
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +2 -1
- package/dist-types/commands/ListObjectVersionsCommand.d.ts +2 -1
- package/dist-types/commands/ListObjectsCommand.d.ts +2 -1
- package/dist-types/commands/ListObjectsV2Command.d.ts +2 -1
- package/dist-types/commands/ListPartsCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketAclCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketCorsCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketLoggingCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketPolicyCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketReplicationCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketTaggingCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketVersioningCommand.d.ts +2 -1
- package/dist-types/commands/PutBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectAclCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectCommand.d.ts +43 -42
- package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectRetentionCommand.d.ts +2 -1
- package/dist-types/commands/PutObjectTaggingCommand.d.ts +2 -1
- package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/commands/RestoreObjectCommand.d.ts +2 -1
- package/dist-types/commands/SelectObjectContentCommand.d.ts +2 -1
- package/dist-types/commands/UploadPartCommand.d.ts +2 -1
- package/dist-types/commands/UploadPartCopyCommand.d.ts +2 -1
- package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +2 -1
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/S3ServiceException.d.ts +2 -1
- package/dist-types/ts3.4/commands/AbortMultipartUploadCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CompleteMultipartUploadCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CopyObjectCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CreateBucketCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CreateMultipartUploadCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketCorsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketLifecycleCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketPolicyCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketReplicationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketTaggingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteObjectCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteObjectTaggingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeleteObjectsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/DeletePublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketAccelerateConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketAclCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketCorsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketLifecycleConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketLocationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketLoggingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketNotificationConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketPolicyCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketPolicyStatusCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketReplicationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketRequestPaymentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketTaggingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketVersioningCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectAclCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectAttributesCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectLegalHoldCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectLockConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectRetentionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectTaggingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetObjectTorrentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/GetPublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/HeadBucketCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/HeadObjectCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListBucketInventoryConfigurationsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListBucketMetricsConfigurationsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListBucketsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListDirectoryBucketsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListMultipartUploadsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListObjectVersionsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListObjectsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListObjectsV2Command.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListPartsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketAccelerateConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketAclCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketAnalyticsConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketCorsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketEncryptionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketInventoryConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketLifecycleConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketLoggingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketMetricsConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketNotificationConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketOwnershipControlsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketPolicyCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketReplicationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketRequestPaymentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketTaggingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketVersioningCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutBucketWebsiteCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutObjectAclCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutObjectLegalHoldCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutObjectLockConfigurationCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutObjectRetentionCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutObjectTaggingCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/PutPublicAccessBlockCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/RestoreObjectCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/SelectObjectContentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UploadPartCopyCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +2 -1
- package/dist-types/ts3.4/models/S3ServiceException.d.ts +2 -1
- package/package.json +6 -6
|
@@ -5,7 +5,8 @@ import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from ".
|
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export { __MetadataBearer
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
9
10
|
/**
|
|
10
11
|
* @public
|
|
11
12
|
*
|
|
@@ -233,27 +234,45 @@ declare const PutObjectCommand_base: {
|
|
|
233
234
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
234
235
|
*
|
|
235
236
|
* @public
|
|
236
|
-
* @example To upload object and specify
|
|
237
|
+
* @example To upload an object and specify server-side encryption and object tags
|
|
237
238
|
* ```javascript
|
|
238
|
-
* // The following example
|
|
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.
|
|
239
240
|
* const input = {
|
|
240
241
|
* "Body": "filetoupload",
|
|
241
242
|
* "Bucket": "examplebucket",
|
|
242
243
|
* "Key": "exampleobject",
|
|
243
|
-
* "
|
|
244
|
-
*
|
|
245
|
-
* "metadata2": "value2"
|
|
246
|
-
* }
|
|
244
|
+
* "ServerSideEncryption": "AES256",
|
|
245
|
+
* "Tagging": "key1=value1&key2=value2"
|
|
247
246
|
* };
|
|
248
247
|
* const command = new PutObjectCommand(input);
|
|
249
248
|
* const response = await client.send(command);
|
|
250
249
|
* /* response ==
|
|
251
250
|
* {
|
|
252
251
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
253
|
-
* "
|
|
252
|
+
* "ServerSideEncryption": "AES256",
|
|
253
|
+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
254
254
|
* }
|
|
255
255
|
* *\/
|
|
256
|
-
* // example id: to-upload-object-and-specify-
|
|
256
|
+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
|
|
257
|
+
* ```
|
|
258
|
+
*
|
|
259
|
+
* @example To create an object.
|
|
260
|
+
* ```javascript
|
|
261
|
+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
262
|
+
* const input = {
|
|
263
|
+
* "Body": "filetoupload",
|
|
264
|
+
* "Bucket": "examplebucket",
|
|
265
|
+
* "Key": "objectkey"
|
|
266
|
+
* };
|
|
267
|
+
* const command = new PutObjectCommand(input);
|
|
268
|
+
* const response = await client.send(command);
|
|
269
|
+
* /* response ==
|
|
270
|
+
* {
|
|
271
|
+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
272
|
+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
273
|
+
* }
|
|
274
|
+
* *\/
|
|
275
|
+
* // example id: to-create-an-object-1483147613675
|
|
257
276
|
* ```
|
|
258
277
|
*
|
|
259
278
|
* @example To upload an object (specify optional headers)
|
|
@@ -298,42 +317,27 @@ declare const PutObjectCommand_base: {
|
|
|
298
317
|
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
299
318
|
* ```
|
|
300
319
|
*
|
|
301
|
-
* @example To
|
|
320
|
+
* @example To upload object and specify user-defined metadata
|
|
302
321
|
* ```javascript
|
|
303
|
-
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
322
|
+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
304
323
|
* const input = {
|
|
305
324
|
* "Body": "filetoupload",
|
|
306
325
|
* "Bucket": "examplebucket",
|
|
307
|
-
* "Key": "
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
* {
|
|
313
|
-
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
314
|
-
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
315
|
-
* }
|
|
316
|
-
* *\/
|
|
317
|
-
* // example id: to-create-an-object-1483147613675
|
|
318
|
-
* ```
|
|
319
|
-
*
|
|
320
|
-
* @example To upload an object
|
|
321
|
-
* ```javascript
|
|
322
|
-
* // 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.
|
|
323
|
-
* const input = {
|
|
324
|
-
* "Body": "HappyFace.jpg",
|
|
325
|
-
* "Bucket": "examplebucket",
|
|
326
|
-
* "Key": "HappyFace.jpg"
|
|
326
|
+
* "Key": "exampleobject",
|
|
327
|
+
* "Metadata": {
|
|
328
|
+
* "metadata1": "value1",
|
|
329
|
+
* "metadata2": "value2"
|
|
330
|
+
* }
|
|
327
331
|
* };
|
|
328
332
|
* const command = new PutObjectCommand(input);
|
|
329
333
|
* const response = await client.send(command);
|
|
330
334
|
* /* response ==
|
|
331
335
|
* {
|
|
332
336
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
333
|
-
* "VersionId": "
|
|
337
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
334
338
|
* }
|
|
335
339
|
* *\/
|
|
336
|
-
* // example id: to-upload-
|
|
340
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
337
341
|
* ```
|
|
338
342
|
*
|
|
339
343
|
* @example To upload an object and specify canned ACL.
|
|
@@ -356,26 +360,23 @@ declare const PutObjectCommand_base: {
|
|
|
356
360
|
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
|
|
357
361
|
* ```
|
|
358
362
|
*
|
|
359
|
-
* @example To upload an object
|
|
363
|
+
* @example To upload an object
|
|
360
364
|
* ```javascript
|
|
361
|
-
* // The following example uploads an object
|
|
365
|
+
* // 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.
|
|
362
366
|
* const input = {
|
|
363
|
-
* "Body": "
|
|
367
|
+
* "Body": "HappyFace.jpg",
|
|
364
368
|
* "Bucket": "examplebucket",
|
|
365
|
-
* "Key": "
|
|
366
|
-
* "ServerSideEncryption": "AES256",
|
|
367
|
-
* "Tagging": "key1=value1&key2=value2"
|
|
369
|
+
* "Key": "HappyFace.jpg"
|
|
368
370
|
* };
|
|
369
371
|
* const command = new PutObjectCommand(input);
|
|
370
372
|
* const response = await client.send(command);
|
|
371
373
|
* /* response ==
|
|
372
374
|
* {
|
|
373
375
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
374
|
-
* "
|
|
375
|
-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
|
|
376
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
376
377
|
* }
|
|
377
378
|
* *\/
|
|
378
|
-
* // example id: to-upload-an-object-
|
|
379
|
+
* // example id: to-upload-an-object-1481760101010
|
|
379
380
|
* ```
|
|
380
381
|
*
|
|
381
382
|
*/
|
package/dist-types/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
export * from "./S3Client";
|
|
7
7
|
export * from "./S3";
|
|
8
8
|
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
9
|
-
export { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
-
export { S3ExtensionConfiguration } from "./extensionConfiguration";
|
|
9
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
+
export type { S3ExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
13
|
export * from "./waiters";
|