Skip to content

Commit 053a868

Browse files
authored
chore(codegen): update smithy to 1.52.0 (#6577)
1 parent 3f84c75 commit 053a868

File tree

10 files changed

+210
-87
lines changed

10 files changed

+210
-87
lines changed

clients/client-s3/src/commands/DeleteObjectCommand.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,28 +154,28 @@ export interface DeleteObjectCommandOutput extends DeleteObjectOutput, __Metadat
154154
* <p>Base exception class for all service exceptions from S3 service.</p>
155155
*
156156
* @public
157-
* @example To delete an object
157+
* @example To delete an object (from a non-versioned bucket)
158158
* ```javascript
159-
* // The following example deletes an object from an S3 bucket.
159+
* // The following example deletes an object from a non-versioned bucket.
160160
* const input = {
161-
* "Bucket": "examplebucket",
162-
* "Key": "objectkey.jpg"
161+
* "Bucket": "ExampleBucket",
162+
* "Key": "HappyFace.jpg"
163163
* };
164164
* const command = new DeleteObjectCommand(input);
165165
* await client.send(command);
166-
* // example id: to-delete-an-object-1472850136595
166+
* // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
167167
* ```
168168
*
169-
* @example To delete an object (from a non-versioned bucket)
169+
* @example To delete an object
170170
* ```javascript
171-
* // The following example deletes an object from a non-versioned bucket.
171+
* // The following example deletes an object from an S3 bucket.
172172
* const input = {
173-
* "Bucket": "ExampleBucket",
174-
* "Key": "HappyFace.jpg"
173+
* "Bucket": "examplebucket",
174+
* "Key": "objectkey.jpg"
175175
* };
176176
* const command = new DeleteObjectCommand(input);
177177
* await client.send(command);
178-
* // example id: to-delete-an-object-from-a-non-versioned-bucket-1481588533089
178+
* // example id: to-delete-an-object-1472850136595
179179
* ```
180180
*
181181
*/

clients/client-s3/src/commands/GetObjectTaggingCommand.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -98,55 +98,55 @@ export interface GetObjectTaggingCommandOutput extends GetObjectTaggingOutput, _
9898
* <p>Base exception class for all service exceptions from S3 service.</p>
9999
*
100100
* @public
101-
* @example To retrieve tag set of an object
101+
* @example To retrieve tag set of a specific object version
102102
* ```javascript
103-
* // The following example retrieves tag set of an object.
103+
* // The following example retrieves tag set of an object. The request specifies object version.
104104
* const input = {
105105
* "Bucket": "examplebucket",
106-
* "Key": "HappyFace.jpg"
106+
* "Key": "exampleobject",
107+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
107108
* };
108109
* const command = new GetObjectTaggingCommand(input);
109110
* const response = await client.send(command);
110111
* /* response ==
111112
* {
112113
* "TagSet": [
113114
* {
114-
* "Key": "Key4",
115-
* "Value": "Value4"
116-
* },
117-
* {
118-
* "Key": "Key3",
119-
* "Value": "Value3"
115+
* "Key": "Key1",
116+
* "Value": "Value1"
120117
* }
121118
* ],
122-
* "VersionId": "null"
119+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
123120
* }
124121
* *\/
125-
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
122+
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
126123
* ```
127124
*
128-
* @example To retrieve tag set of a specific object version
125+
* @example To retrieve tag set of an object
129126
* ```javascript
130-
* // The following example retrieves tag set of an object. The request specifies object version.
127+
* // The following example retrieves tag set of an object.
131128
* const input = {
132129
* "Bucket": "examplebucket",
133-
* "Key": "exampleobject",
134-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
130+
* "Key": "HappyFace.jpg"
135131
* };
136132
* const command = new GetObjectTaggingCommand(input);
137133
* const response = await client.send(command);
138134
* /* response ==
139135
* {
140136
* "TagSet": [
141137
* {
142-
* "Key": "Key1",
143-
* "Value": "Value1"
138+
* "Key": "Key4",
139+
* "Value": "Value4"
140+
* },
141+
* {
142+
* "Key": "Key3",
143+
* "Value": "Value3"
144144
* }
145145
* ],
146-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
146+
* "VersionId": "null"
147147
* }
148148
* *\/
149-
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
149+
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
150150
* ```
151151
*
152152
*/

clients/client-s3/src/commands/PutObjectCommand.ts

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -249,43 +249,46 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
249249
* <p>Base exception class for all service exceptions from S3 service.</p>
250250
*
251251
* @public
252-
* @example To upload an object and specify canned ACL.
252+
* @example To create an object.
253253
* ```javascript
254-
* // 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.
254+
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
255255
* const input = {
256-
* "ACL": "authenticated-read",
257256
* "Body": "filetoupload",
258257
* "Bucket": "examplebucket",
259-
* "Key": "exampleobject"
258+
* "Key": "objectkey"
260259
* };
261260
* const command = new PutObjectCommand(input);
262261
* const response = await client.send(command);
263262
* /* response ==
264263
* {
265264
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
266-
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
265+
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
267266
* }
268267
* *\/
269-
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
268+
* // example id: to-create-an-object-1483147613675
270269
* ```
271270
*
272-
* @example To create an object.
271+
* @example To upload object and specify user-defined metadata
273272
* ```javascript
274-
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
273+
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
275274
* const input = {
276275
* "Body": "filetoupload",
277276
* "Bucket": "examplebucket",
278-
* "Key": "objectkey"
277+
* "Key": "exampleobject",
278+
* "Metadata": {
279+
* "metadata1": "value1",
280+
* "metadata2": "value2"
281+
* }
279282
* };
280283
* const command = new PutObjectCommand(input);
281284
* const response = await client.send(command);
282285
* /* response ==
283286
* {
284287
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
285-
* "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
288+
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
286289
* }
287290
* *\/
288-
* // example id: to-create-an-object-1483147613675
291+
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
289292
* ```
290293
*
291294
* @example To upload an object
@@ -307,91 +310,88 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
307310
* // example id: to-upload-an-object-1481760101010
308311
* ```
309312
*
310-
* @example To upload an object and specify optional tags
313+
* @example To upload an object and specify canned ACL.
311314
* ```javascript
312-
* // 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.
315+
* // 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.
313316
* const input = {
314-
* "Body": "c:\\HappyFace.jpg",
317+
* "ACL": "authenticated-read",
318+
* "Body": "filetoupload",
315319
* "Bucket": "examplebucket",
316-
* "Key": "HappyFace.jpg",
317-
* "Tagging": "key1=value1&key2=value2"
320+
* "Key": "exampleobject"
318321
* };
319322
* const command = new PutObjectCommand(input);
320323
* const response = await client.send(command);
321324
* /* response ==
322325
* {
323326
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
324-
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
327+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
325328
* }
326329
* *\/
327-
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
330+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
328331
* ```
329332
*
330-
* @example To upload an object and specify server-side encryption and object tags
333+
* @example To upload an object (specify optional headers)
331334
* ```javascript
332-
* // 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.
335+
* // 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.
333336
* const input = {
334-
* "Body": "filetoupload",
337+
* "Body": "HappyFace.jpg",
335338
* "Bucket": "examplebucket",
336-
* "Key": "exampleobject",
339+
* "Key": "HappyFace.jpg",
337340
* "ServerSideEncryption": "AES256",
338-
* "Tagging": "key1=value1&key2=value2"
341+
* "StorageClass": "STANDARD_IA"
339342
* };
340343
* const command = new PutObjectCommand(input);
341344
* const response = await client.send(command);
342345
* /* response ==
343346
* {
344347
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
345348
* "ServerSideEncryption": "AES256",
346-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
349+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
347350
* }
348351
* *\/
349-
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
352+
* // example id: to-upload-an-object-(specify-optional-headers)
350353
* ```
351354
*
352-
* @example To upload an object (specify optional headers)
355+
* @example To upload an object and specify optional tags
353356
* ```javascript
354-
* // 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.
357+
* // 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.
355358
* const input = {
356-
* "Body": "HappyFace.jpg",
359+
* "Body": "c:\\HappyFace.jpg",
357360
* "Bucket": "examplebucket",
358361
* "Key": "HappyFace.jpg",
359-
* "ServerSideEncryption": "AES256",
360-
* "StorageClass": "STANDARD_IA"
362+
* "Tagging": "key1=value1&key2=value2"
361363
* };
362364
* const command = new PutObjectCommand(input);
363365
* const response = await client.send(command);
364366
* /* response ==
365367
* {
366368
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
367-
* "ServerSideEncryption": "AES256",
368-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
369+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
369370
* }
370371
* *\/
371-
* // example id: to-upload-an-object-(specify-optional-headers)
372+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
372373
* ```
373374
*
374-
* @example To upload object and specify user-defined metadata
375+
* @example To upload an object and specify server-side encryption and object tags
375376
* ```javascript
376-
* // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
377+
* // 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.
377378
* const input = {
378379
* "Body": "filetoupload",
379380
* "Bucket": "examplebucket",
380381
* "Key": "exampleobject",
381-
* "Metadata": {
382-
* "metadata1": "value1",
383-
* "metadata2": "value2"
384-
* }
382+
* "ServerSideEncryption": "AES256",
383+
* "Tagging": "key1=value1&key2=value2"
385384
* };
386385
* const command = new PutObjectCommand(input);
387386
* const response = await client.send(command);
388387
* /* response ==
389388
* {
390389
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
391-
* "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
390+
* "ServerSideEncryption": "AES256",
391+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
392392
* }
393393
* *\/
394-
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
394+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
395395
* ```
396396
*
397397
*/

clients/client-s3/src/commands/UploadPartCopyCommand.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -305,51 +305,51 @@ export interface UploadPartCopyCommandOutput extends UploadPartCopyOutput, __Met
305305
* <p>Base exception class for all service exceptions from S3 service.</p>
306306
*
307307
* @public
308-
* @example To upload a part by copying data from an existing object as data source
308+
* @example To upload a part by copying byte range from an existing object as data source
309309
* ```javascript
310-
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
310+
* // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
311311
* const input = {
312312
* "Bucket": "examplebucket",
313313
* "CopySource": "/bucketname/sourceobjectkey",
314+
* "CopySourceRange": "bytes=1-100000",
314315
* "Key": "examplelargeobject",
315-
* "PartNumber": "1",
316+
* "PartNumber": "2",
316317
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
317318
* };
318319
* const command = new UploadPartCopyCommand(input);
319320
* const response = await client.send(command);
320321
* /* response ==
321322
* {
322323
* "CopyPartResult": {
323-
* "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
324-
* "LastModified": "2016-12-29T21:24:43.000Z"
324+
* "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
325+
* "LastModified": "2016-12-29T21:44:28.000Z"
325326
* }
326327
* }
327328
* *\/
328-
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
329+
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
329330
* ```
330331
*
331-
* @example To upload a part by copying byte range from an existing object as data source
332+
* @example To upload a part by copying data from an existing object as data source
332333
* ```javascript
333-
* // The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.
334+
* // The following example uploads a part of a multipart upload by copying data from an existing object as data source.
334335
* const input = {
335336
* "Bucket": "examplebucket",
336337
* "CopySource": "/bucketname/sourceobjectkey",
337-
* "CopySourceRange": "bytes=1-100000",
338338
* "Key": "examplelargeobject",
339-
* "PartNumber": "2",
339+
* "PartNumber": "1",
340340
* "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"
341341
* };
342342
* const command = new UploadPartCopyCommand(input);
343343
* const response = await client.send(command);
344344
* /* response ==
345345
* {
346346
* "CopyPartResult": {
347-
* "ETag": "\"65d16d19e65a7508a51f043180edcc36\"",
348-
* "LastModified": "2016-12-29T21:44:28.000Z"
347+
* "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
348+
* "LastModified": "2016-12-29T21:24:43.000Z"
349349
* }
350350
* }
351351
* *\/
352-
* // example id: to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594
352+
* // example id: to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348
353353
* ```
354354
*
355355
*/

codegen/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
smithyVersion=1.51.0
1+
smithyVersion=1.52.0
22
smithyGradleVersion=0.6.0

0 commit comments

Comments
 (0)