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