@aws-sdk/client-s3 3.397.0 → 3.398.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/runtimeExtensions.js +5 -5
- package/dist-es/runtimeExtensions.js +5 -5
- package/dist-types/commands/DeleteObjectCommand.d.ts +10 -10
- package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -11
- package/dist-types/commands/ListMultipartUploadsCommand.d.ts +32 -32
- package/dist-types/commands/PutObjectCommand.d.ts +41 -41
- package/dist-types/extensionConfiguration.d.ts +6 -0
- package/dist-types/runtimeExtensions.d.ts +2 -2
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +2 -2
- package/package.json +44 -44
- package/dist-types/clientConfiguration.d.ts +0 -6
- package/dist-types/ts3.4/clientConfiguration.d.ts +0 -2
- /package/dist-cjs/{clientConfiguration.js → extensionConfiguration.js} +0 -0
- /package/dist-es/{clientConfiguration.js → extensionConfiguration.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const asPartial = (t) => t;
|
|
6
6
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const
|
|
8
|
-
...asPartial((0,
|
|
7
|
+
const extensionConfiguration = {
|
|
8
|
+
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
9
9
|
};
|
|
10
|
-
extensions.forEach((extension) => extension.
|
|
10
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
11
|
return {
|
|
12
12
|
...runtimeConfig,
|
|
13
|
-
...(0,
|
|
13
|
+
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
2
2
|
const asPartial = (t) => t;
|
|
3
3
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
4
|
-
const
|
|
5
|
-
...asPartial(
|
|
4
|
+
const extensionConfiguration = {
|
|
5
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
6
6
|
};
|
|
7
|
-
extensions.forEach((extension) => extension.
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
8
|
return {
|
|
9
9
|
...runtimeConfig,
|
|
10
|
-
...resolveDefaultRuntimeConfig(
|
|
10
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -83,28 +83,28 @@ export interface DeleteObjectCommandOutput extends DeleteObjectOutput, __Metadat
|
|
|
83
83
|
* @throws {@link S3ServiceException}
|
|
84
84
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
85
85
|
*
|
|
86
|
-
* @example To delete an object
|
|
86
|
+
* @example To delete an object
|
|
87
87
|
* ```javascript
|
|
88
|
-
* // The following example deletes an object from
|
|
88
|
+
* // The following example deletes an object from an S3 bucket.
|
|
89
89
|
* const input = {
|
|
90
|
-
* "Bucket": "
|
|
91
|
-
* "Key": "
|
|
90
|
+
* "Bucket": "examplebucket",
|
|
91
|
+
* "Key": "objectkey.jpg"
|
|
92
92
|
* };
|
|
93
93
|
* const command = new DeleteObjectCommand(input);
|
|
94
94
|
* await client.send(command);
|
|
95
|
-
* // example id: to-delete-an-object-
|
|
95
|
+
* // example id: to-delete-an-object-1472850136595
|
|
96
96
|
* ```
|
|
97
97
|
*
|
|
98
|
-
* @example To delete an object
|
|
98
|
+
* @example To delete an object (from a non-versioned bucket)
|
|
99
99
|
* ```javascript
|
|
100
|
-
* // The following example deletes an object from
|
|
100
|
+
* // The following example deletes an object from a non-versioned bucket.
|
|
101
101
|
* const input = {
|
|
102
|
-
* "Bucket": "
|
|
103
|
-
* "Key": "
|
|
102
|
+
* "Bucket": "ExampleBucket",
|
|
103
|
+
* "Key": "HappyFace.jpg"
|
|
104
104
|
* };
|
|
105
105
|
* const command = new DeleteObjectCommand(input);
|
|
106
106
|
* await client.send(command);
|
|
107
|
-
* // example id: to-delete-an-object-
|
|
107
|
+
* // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
|
|
108
108
|
* ```
|
|
109
109
|
*
|
|
110
110
|
*/
|
|
@@ -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 version
|
|
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 version. The request specifies both the object key and object version.
|
|
78
78
|
* const input = {
|
|
79
79
|
* "Bucket": "examplebucket",
|
|
80
|
-
* "Key": "HappyFace.jpg"
|
|
80
|
+
* "Key": "HappyFace.jpg",
|
|
81
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
81
82
|
* };
|
|
82
83
|
* const command = new DeleteObjectTaggingCommand(input);
|
|
83
84
|
* const response = await client.send(command);
|
|
84
85
|
* /* response ==
|
|
85
86
|
* {
|
|
86
|
-
* "VersionId": "
|
|
87
|
+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
87
88
|
* }
|
|
88
89
|
* *\/
|
|
89
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
90
|
+
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
|
|
90
91
|
* ```
|
|
91
92
|
*
|
|
92
|
-
* @example To remove tag set from an object
|
|
93
|
+
* @example To remove tag set from an object
|
|
93
94
|
* ```javascript
|
|
94
|
-
* // The following example removes tag set associated with the specified object
|
|
95
|
+
* // 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.
|
|
95
96
|
* const input = {
|
|
96
97
|
* "Bucket": "examplebucket",
|
|
97
|
-
* "Key": "HappyFace.jpg"
|
|
98
|
-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
|
|
98
|
+
* "Key": "HappyFace.jpg"
|
|
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": "null"
|
|
105
105
|
* }
|
|
106
106
|
* *\/
|
|
107
|
-
* // example id: to-remove-tag-set-from-an-object-
|
|
107
|
+
* // example id: to-remove-tag-set-from-an-object-1483145342862
|
|
108
108
|
* ```
|
|
109
109
|
*
|
|
110
110
|
*/
|
|
@@ -135,104 +135,104 @@ export interface ListMultipartUploadsCommandOutput extends ListMultipartUploadsO
|
|
|
135
135
|
* @throws {@link S3ServiceException}
|
|
136
136
|
* <p>Base exception class for all service exceptions from S3 service.</p>
|
|
137
137
|
*
|
|
138
|
-
* @example
|
|
138
|
+
* @example List next set of multipart uploads when previous result is truncated
|
|
139
139
|
* ```javascript
|
|
140
|
-
* // The following example
|
|
140
|
+
* // The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next setup of multipart uploads.
|
|
141
141
|
* const input = {
|
|
142
|
-
* "Bucket": "examplebucket"
|
|
142
|
+
* "Bucket": "examplebucket",
|
|
143
|
+
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
144
|
+
* "MaxUploads": "2",
|
|
145
|
+
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
143
146
|
* };
|
|
144
147
|
* const command = new ListMultipartUploadsCommand(input);
|
|
145
148
|
* const response = await client.send(command);
|
|
146
149
|
* /* response ==
|
|
147
150
|
* {
|
|
151
|
+
* "Bucket": "acl1",
|
|
152
|
+
* "IsTruncated": true,
|
|
153
|
+
* "KeyMarker": "",
|
|
154
|
+
* "MaxUploads": "2",
|
|
155
|
+
* "NextKeyMarker": "someobjectkey",
|
|
156
|
+
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
157
|
+
* "UploadIdMarker": "",
|
|
148
158
|
* "Uploads": [
|
|
149
159
|
* {
|
|
150
160
|
* "Initiated": "2014-05-01T05:40:58.000Z",
|
|
151
161
|
* "Initiator": {
|
|
152
|
-
* "DisplayName": "display-name",
|
|
162
|
+
* "DisplayName": "ownder-display-name",
|
|
153
163
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
154
164
|
* },
|
|
155
165
|
* "Key": "JavaFile",
|
|
156
166
|
* "Owner": {
|
|
157
|
-
* "DisplayName": "
|
|
158
|
-
* "ID": "
|
|
167
|
+
* "DisplayName": "mohanataws",
|
|
168
|
+
* "ID": "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
159
169
|
* },
|
|
160
170
|
* "StorageClass": "STANDARD",
|
|
161
|
-
* "UploadId": "
|
|
171
|
+
* "UploadId": "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
162
172
|
* },
|
|
163
173
|
* {
|
|
164
174
|
* "Initiated": "2014-05-01T05:41:27.000Z",
|
|
165
175
|
* "Initiator": {
|
|
166
|
-
* "DisplayName": "display-name",
|
|
176
|
+
* "DisplayName": "ownder-display-name",
|
|
167
177
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
168
178
|
* },
|
|
169
179
|
* "Key": "JavaFile",
|
|
170
180
|
* "Owner": {
|
|
171
|
-
* "DisplayName": "display-name",
|
|
181
|
+
* "DisplayName": "ownder-display-name",
|
|
172
182
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
173
183
|
* },
|
|
174
184
|
* "StorageClass": "STANDARD",
|
|
175
|
-
* "UploadId": "
|
|
185
|
+
* "UploadId": "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
176
186
|
* }
|
|
177
187
|
* ]
|
|
178
188
|
* }
|
|
179
189
|
* *\/
|
|
180
|
-
* // example id:
|
|
190
|
+
* // example id: list-next-set-of-multipart-uploads-when-previous-result-is-truncated-1482428106748
|
|
181
191
|
* ```
|
|
182
192
|
*
|
|
183
|
-
* @example
|
|
193
|
+
* @example To list in-progress multipart uploads on a bucket
|
|
184
194
|
* ```javascript
|
|
185
|
-
* // The following example
|
|
195
|
+
* // The following example lists in-progress multipart uploads on a specific bucket.
|
|
186
196
|
* const input = {
|
|
187
|
-
* "Bucket": "examplebucket"
|
|
188
|
-
* "KeyMarker": "nextkeyfrompreviousresponse",
|
|
189
|
-
* "MaxUploads": "2",
|
|
190
|
-
* "UploadIdMarker": "valuefrompreviousresponse"
|
|
197
|
+
* "Bucket": "examplebucket"
|
|
191
198
|
* };
|
|
192
199
|
* const command = new ListMultipartUploadsCommand(input);
|
|
193
200
|
* const response = await client.send(command);
|
|
194
201
|
* /* response ==
|
|
195
202
|
* {
|
|
196
|
-
* "Bucket": "acl1",
|
|
197
|
-
* "IsTruncated": true,
|
|
198
|
-
* "KeyMarker": "",
|
|
199
|
-
* "MaxUploads": "2",
|
|
200
|
-
* "NextKeyMarker": "someobjectkey",
|
|
201
|
-
* "NextUploadIdMarker": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
202
|
-
* "UploadIdMarker": "",
|
|
203
203
|
* "Uploads": [
|
|
204
204
|
* {
|
|
205
205
|
* "Initiated": "2014-05-01T05:40:58.000Z",
|
|
206
206
|
* "Initiator": {
|
|
207
|
-
* "DisplayName": "
|
|
207
|
+
* "DisplayName": "display-name",
|
|
208
208
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
209
209
|
* },
|
|
210
210
|
* "Key": "JavaFile",
|
|
211
211
|
* "Owner": {
|
|
212
|
-
* "DisplayName": "
|
|
213
|
-
* "ID": "
|
|
212
|
+
* "DisplayName": "display-name",
|
|
213
|
+
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
214
214
|
* },
|
|
215
215
|
* "StorageClass": "STANDARD",
|
|
216
|
-
* "UploadId": "
|
|
216
|
+
* "UploadId": "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--"
|
|
217
217
|
* },
|
|
218
218
|
* {
|
|
219
219
|
* "Initiated": "2014-05-01T05:41:27.000Z",
|
|
220
220
|
* "Initiator": {
|
|
221
|
-
* "DisplayName": "
|
|
221
|
+
* "DisplayName": "display-name",
|
|
222
222
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
223
223
|
* },
|
|
224
224
|
* "Key": "JavaFile",
|
|
225
225
|
* "Owner": {
|
|
226
|
-
* "DisplayName": "
|
|
226
|
+
* "DisplayName": "display-name",
|
|
227
227
|
* "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc"
|
|
228
228
|
* },
|
|
229
229
|
* "StorageClass": "STANDARD",
|
|
230
|
-
* "UploadId": "
|
|
230
|
+
* "UploadId": "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--"
|
|
231
231
|
* }
|
|
232
232
|
* ]
|
|
233
233
|
* }
|
|
234
234
|
* *\/
|
|
235
|
-
* // example id: list-
|
|
235
|
+
* // example id: to-list-in-progress-multipart-uploads-on-a-bucket-1481852775260
|
|
236
236
|
* ```
|
|
237
237
|
*
|
|
238
238
|
*/
|
|
@@ -192,87 +192,68 @@ 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 (specify optional headers)
|
|
196
196
|
* ```javascript
|
|
197
|
-
* // The following example uploads an object
|
|
197
|
+
* // 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.
|
|
198
198
|
* const input = {
|
|
199
199
|
* "Body": "HappyFace.jpg",
|
|
200
200
|
* "Bucket": "examplebucket",
|
|
201
|
-
* "Key": "HappyFace.jpg"
|
|
201
|
+
* "Key": "HappyFace.jpg",
|
|
202
|
+
* "ServerSideEncryption": "AES256",
|
|
203
|
+
* "StorageClass": "STANDARD_IA"
|
|
202
204
|
* };
|
|
203
205
|
* const command = new PutObjectCommand(input);
|
|
204
206
|
* const response = await client.send(command);
|
|
205
207
|
* /* response ==
|
|
206
208
|
* {
|
|
207
209
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
208
|
-
* "
|
|
210
|
+
* "ServerSideEncryption": "AES256",
|
|
211
|
+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
209
212
|
* }
|
|
210
213
|
* *\/
|
|
211
|
-
* // example id: to-upload-an-object-
|
|
214
|
+
* // example id: to-upload-an-object-(specify-optional-headers)
|
|
212
215
|
* ```
|
|
213
216
|
*
|
|
214
|
-
* @example To
|
|
217
|
+
* @example To create an object.
|
|
215
218
|
* ```javascript
|
|
216
|
-
* // The following example creates an object.
|
|
219
|
+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
217
220
|
* const input = {
|
|
218
221
|
* "Body": "filetoupload",
|
|
219
222
|
* "Bucket": "examplebucket",
|
|
220
|
-
* "Key": "
|
|
221
|
-
* "Metadata": {
|
|
222
|
-
* "metadata1": "value1",
|
|
223
|
-
* "metadata2": "value2"
|
|
224
|
-
* }
|
|
225
|
-
* };
|
|
226
|
-
* const command = new PutObjectCommand(input);
|
|
227
|
-
* const response = await client.send(command);
|
|
228
|
-
* /* response ==
|
|
229
|
-
* {
|
|
230
|
-
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
231
|
-
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
232
|
-
* }
|
|
233
|
-
* *\/
|
|
234
|
-
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
235
|
-
* ```
|
|
236
|
-
*
|
|
237
|
-
* @example To upload an object (specify optional headers)
|
|
238
|
-
* ```javascript
|
|
239
|
-
* // 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.
|
|
240
|
-
* const input = {
|
|
241
|
-
* "Body": "HappyFace.jpg",
|
|
242
|
-
* "Bucket": "examplebucket",
|
|
243
|
-
* "Key": "HappyFace.jpg",
|
|
244
|
-
* "ServerSideEncryption": "AES256",
|
|
245
|
-
* "StorageClass": "STANDARD_IA"
|
|
223
|
+
* "Key": "objectkey"
|
|
246
224
|
* };
|
|
247
225
|
* const command = new PutObjectCommand(input);
|
|
248
226
|
* const response = await client.send(command);
|
|
249
227
|
* /* response ==
|
|
250
228
|
* {
|
|
251
229
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
252
|
-
* "
|
|
253
|
-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
|
|
230
|
+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
|
|
254
231
|
* }
|
|
255
232
|
* *\/
|
|
256
|
-
* // example id: to-
|
|
233
|
+
* // example id: to-create-an-object-1483147613675
|
|
257
234
|
* ```
|
|
258
235
|
*
|
|
259
|
-
* @example To
|
|
236
|
+
* @example To upload object and specify user-defined metadata
|
|
260
237
|
* ```javascript
|
|
261
|
-
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
238
|
+
* // 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
239
|
* const input = {
|
|
263
240
|
* "Body": "filetoupload",
|
|
264
241
|
* "Bucket": "examplebucket",
|
|
265
|
-
* "Key": "
|
|
242
|
+
* "Key": "exampleobject",
|
|
243
|
+
* "Metadata": {
|
|
244
|
+
* "metadata1": "value1",
|
|
245
|
+
* "metadata2": "value2"
|
|
246
|
+
* }
|
|
266
247
|
* };
|
|
267
248
|
* const command = new PutObjectCommand(input);
|
|
268
249
|
* const response = await client.send(command);
|
|
269
250
|
* /* response ==
|
|
270
251
|
* {
|
|
271
252
|
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
272
|
-
* "VersionId": "
|
|
253
|
+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
|
|
273
254
|
* }
|
|
274
255
|
* *\/
|
|
275
|
-
* // example id: to-
|
|
256
|
+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
|
|
276
257
|
* ```
|
|
277
258
|
*
|
|
278
259
|
* @example To upload an object and specify server-side encryption and object tags
|
|
@@ -317,6 +298,25 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
|
|
|
317
298
|
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
|
|
318
299
|
* ```
|
|
319
300
|
*
|
|
301
|
+
* @example To upload an object
|
|
302
|
+
* ```javascript
|
|
303
|
+
* // 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.
|
|
304
|
+
* const input = {
|
|
305
|
+
* "Body": "HappyFace.jpg",
|
|
306
|
+
* "Bucket": "examplebucket",
|
|
307
|
+
* "Key": "HappyFace.jpg"
|
|
308
|
+
* };
|
|
309
|
+
* const command = new PutObjectCommand(input);
|
|
310
|
+
* const response = await client.send(command);
|
|
311
|
+
* /* response ==
|
|
312
|
+
* {
|
|
313
|
+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
314
|
+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
|
|
315
|
+
* }
|
|
316
|
+
* *\/
|
|
317
|
+
* // example id: to-upload-an-object-1481760101010
|
|
318
|
+
* ```
|
|
319
|
+
*
|
|
320
320
|
* @example To upload an object and specify canned ACL.
|
|
321
321
|
* ```javascript
|
|
322
322
|
* // 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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S3ExtensionConfiguration } from "./extensionConfiguration";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface RuntimeExtension {
|
|
6
|
-
|
|
6
|
+
configure(clientConfiguration: S3ExtensionConfiguration): void;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S3ExtensionConfiguration } from "./extensionConfiguration";
|
|
2
2
|
export interface RuntimeExtension {
|
|
3
|
-
|
|
3
|
+
configure(clientConfiguration: S3ExtensionConfiguration): void;
|
|
4
4
|
}
|
|
5
5
|
export interface RuntimeExtensionsConfig {
|
|
6
6
|
extensions: RuntimeExtension[];
|
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.398.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,55 +25,55 @@
|
|
|
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/signature-v4-multi-region": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/util-endpoints": "3.
|
|
44
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
45
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
28
|
+
"@aws-sdk/client-sts": "3.398.0",
|
|
29
|
+
"@aws-sdk/credential-provider-node": "3.398.0",
|
|
30
|
+
"@aws-sdk/middleware-bucket-endpoint": "3.398.0",
|
|
31
|
+
"@aws-sdk/middleware-expect-continue": "3.398.0",
|
|
32
|
+
"@aws-sdk/middleware-flexible-checksums": "3.398.0",
|
|
33
|
+
"@aws-sdk/middleware-host-header": "3.398.0",
|
|
34
|
+
"@aws-sdk/middleware-location-constraint": "3.398.0",
|
|
35
|
+
"@aws-sdk/middleware-logger": "3.398.0",
|
|
36
|
+
"@aws-sdk/middleware-recursion-detection": "3.398.0",
|
|
37
|
+
"@aws-sdk/middleware-sdk-s3": "3.398.0",
|
|
38
|
+
"@aws-sdk/middleware-signing": "3.398.0",
|
|
39
|
+
"@aws-sdk/middleware-ssec": "3.398.0",
|
|
40
|
+
"@aws-sdk/middleware-user-agent": "3.398.0",
|
|
41
|
+
"@aws-sdk/signature-v4-multi-region": "3.398.0",
|
|
42
|
+
"@aws-sdk/types": "3.398.0",
|
|
43
|
+
"@aws-sdk/util-endpoints": "3.398.0",
|
|
44
|
+
"@aws-sdk/util-user-agent-browser": "3.398.0",
|
|
45
|
+
"@aws-sdk/util-user-agent-node": "3.398.0",
|
|
46
46
|
"@aws-sdk/xml-builder": "3.310.0",
|
|
47
|
-
"@smithy/config-resolver": "^2.0.
|
|
48
|
-
"@smithy/eventstream-serde-browser": "^2.0.
|
|
49
|
-
"@smithy/eventstream-serde-config-resolver": "^2.0.
|
|
50
|
-
"@smithy/eventstream-serde-node": "^2.0.
|
|
51
|
-
"@smithy/fetch-http-handler": "^2.0.
|
|
52
|
-
"@smithy/hash-blob-browser": "^2.0.
|
|
53
|
-
"@smithy/hash-node": "^2.0.
|
|
54
|
-
"@smithy/hash-stream-node": "^2.0.
|
|
55
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
56
|
-
"@smithy/md5-js": "^2.0.
|
|
57
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
58
|
-
"@smithy/middleware-endpoint": "^2.0.
|
|
59
|
-
"@smithy/middleware-retry": "^2.0.
|
|
60
|
-
"@smithy/middleware-serde": "^2.0.
|
|
47
|
+
"@smithy/config-resolver": "^2.0.5",
|
|
48
|
+
"@smithy/eventstream-serde-browser": "^2.0.5",
|
|
49
|
+
"@smithy/eventstream-serde-config-resolver": "^2.0.5",
|
|
50
|
+
"@smithy/eventstream-serde-node": "^2.0.5",
|
|
51
|
+
"@smithy/fetch-http-handler": "^2.0.5",
|
|
52
|
+
"@smithy/hash-blob-browser": "^2.0.5",
|
|
53
|
+
"@smithy/hash-node": "^2.0.5",
|
|
54
|
+
"@smithy/hash-stream-node": "^2.0.5",
|
|
55
|
+
"@smithy/invalid-dependency": "^2.0.5",
|
|
56
|
+
"@smithy/md5-js": "^2.0.5",
|
|
57
|
+
"@smithy/middleware-content-length": "^2.0.5",
|
|
58
|
+
"@smithy/middleware-endpoint": "^2.0.5",
|
|
59
|
+
"@smithy/middleware-retry": "^2.0.5",
|
|
60
|
+
"@smithy/middleware-serde": "^2.0.5",
|
|
61
61
|
"@smithy/middleware-stack": "^2.0.0",
|
|
62
|
-
"@smithy/node-config-provider": "^2.0.
|
|
63
|
-
"@smithy/node-http-handler": "^2.0.
|
|
64
|
-
"@smithy/protocol-http": "^2.0.
|
|
65
|
-
"@smithy/smithy-client": "^2.0.
|
|
66
|
-
"@smithy/types": "^2.2.
|
|
67
|
-
"@smithy/url-parser": "^2.0.
|
|
62
|
+
"@smithy/node-config-provider": "^2.0.5",
|
|
63
|
+
"@smithy/node-http-handler": "^2.0.5",
|
|
64
|
+
"@smithy/protocol-http": "^2.0.5",
|
|
65
|
+
"@smithy/smithy-client": "^2.0.5",
|
|
66
|
+
"@smithy/types": "^2.2.2",
|
|
67
|
+
"@smithy/url-parser": "^2.0.5",
|
|
68
68
|
"@smithy/util-base64": "^2.0.0",
|
|
69
69
|
"@smithy/util-body-length-browser": "^2.0.0",
|
|
70
|
-
"@smithy/util-body-length-node": "^2.
|
|
71
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
72
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
70
|
+
"@smithy/util-body-length-node": "^2.1.0",
|
|
71
|
+
"@smithy/util-defaults-mode-browser": "^2.0.5",
|
|
72
|
+
"@smithy/util-defaults-mode-node": "^2.0.5",
|
|
73
73
|
"@smithy/util-retry": "^2.0.0",
|
|
74
|
-
"@smithy/util-stream": "^2.0.
|
|
74
|
+
"@smithy/util-stream": "^2.0.5",
|
|
75
75
|
"@smithy/util-utf8": "^2.0.0",
|
|
76
|
-
"@smithy/util-waiter": "^2.0.
|
|
76
|
+
"@smithy/util-waiter": "^2.0.5",
|
|
77
77
|
"fast-xml-parser": "4.2.5",
|
|
78
78
|
"tslib": "^2.5.0"
|
|
79
79
|
},
|
|
File without changes
|
|
File without changes
|