Skip to content

Commit 61bc199

Browse files
committed
chore(client-s3): example docgen diff
1 parent 276fc2e commit 61bc199

File tree

100 files changed

+852
-724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+852
-724
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,20 +151,23 @@ export interface AbortMultipartUploadCommandOutput extends AbortMultipartUploadO
151151
* @throws {@link S3ServiceException}
152152
* <p>Base exception class for all service exceptions from S3 service.</p>
153153
*
154-
* @public
154+
*
155155
* @example To abort a multipart upload
156156
* ```javascript
157157
* // The following example aborts a multipart upload.
158158
* const input = {
159-
* "Bucket": "examplebucket",
160-
* "Key": "bigobject",
161-
* "UploadId": "xadcOB_7YPBOJuoFiQ9cz4P3Pe6FIZwO4f7wN93uHsNBEw97pl5eNwzExg0LAT2dUN91cOmrEQHDsP3WA60CEg--"
159+
* Bucket: "examplebucket",
160+
* Key: "bigobject",
161+
* UploadId: "xadcOB_7YPBOJuoFiQ9cz4P3Pe6FIZwO4f7wN93uHsNBEw97pl5eNwzExg0LAT2dUN91cOmrEQHDsP3WA60CEg--"
162162
* };
163163
* const command = new AbortMultipartUploadCommand(input);
164-
* await client.send(command);
165-
* // example id: to-abort-a-multipart-upload-1481853354987
164+
* const response = await client.send(command);
165+
* /* response is
166+
* { /* empty *\/ }
167+
* *\/
166168
* ```
167169
*
170+
* @public
168171
*/
169172
export class AbortMultipartUploadCommand extends $Command
170173
.classBuilder<

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -275,40 +275,40 @@ export interface CompleteMultipartUploadCommandOutput extends CompleteMultipartU
275275
* @throws {@link S3ServiceException}
276276
* <p>Base exception class for all service exceptions from S3 service.</p>
277277
*
278-
* @public
278+
*
279279
* @example To complete multipart upload
280280
* ```javascript
281281
* // The following example completes a multipart upload.
282282
* const input = {
283-
* "Bucket": "examplebucket",
284-
* "Key": "bigobject",
285-
* "MultipartUpload": {
286-
* "Parts": [
283+
* Bucket: "examplebucket",
284+
* Key: "bigobject",
285+
* MultipartUpload: {
286+
* Parts: [
287287
* {
288-
* "ETag": "\"d8c2eafd90c266e19ab9dcacc479f8af\"",
289-
* "PartNumber": "1"
288+
* ETag: ""d8c2eafd90c266e19ab9dcacc479f8af"",
289+
* PartNumber: 1
290290
* },
291291
* {
292-
* "ETag": "\"d8c2eafd90c266e19ab9dcacc479f8af\"",
293-
* "PartNumber": "2"
292+
* ETag: ""d8c2eafd90c266e19ab9dcacc479f8af"",
293+
* PartNumber: 2
294294
* }
295295
* ]
296296
* },
297-
* "UploadId": "7YPBOJuoFiQ9cz4P3Pe6FIZwO4f7wN93uHsNBEw97pl5eNwzExg0LAT2dUN91cOmrEQHDsP3WA60CEg--"
297+
* UploadId: "7YPBOJuoFiQ9cz4P3Pe6FIZwO4f7wN93uHsNBEw97pl5eNwzExg0LAT2dUN91cOmrEQHDsP3WA60CEg--"
298298
* };
299299
* const command = new CompleteMultipartUploadCommand(input);
300300
* const response = await client.send(command);
301-
* /* response ==
301+
* /* response is
302302
* {
303-
* "Bucket": "acexamplebucket",
304-
* "ETag": "\"4d9031c7644d8081c2829f4ea23c55f7-2\"",
305-
* "Key": "bigobject",
306-
* "Location": "https://examplebucket.s3.<Region>.amazonaws.com/bigobject"
303+
* Bucket: "acexamplebucket",
304+
* ETag: ""4d9031c7644d8081c2829f4ea23c55f7-2"",
305+
* Key: "bigobject",
306+
* Location: "https://examplebucket.s3.<Region>.amazonaws.com/bigobject"
307307
* }
308308
* *\/
309-
* // example id: to-complete-multipart-upload-1481851590483
310309
* ```
311310
*
311+
* @public
312312
*/
313313
export class CompleteMultipartUploadCommand extends $Command
314314
.classBuilder<

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -330,28 +330,28 @@ export interface CopyObjectCommandOutput extends CopyObjectOutput, __MetadataBea
330330
* @throws {@link S3ServiceException}
331331
* <p>Base exception class for all service exceptions from S3 service.</p>
332332
*
333-
* @public
333+
*
334334
* @example To copy an object
335335
* ```javascript
336336
* // The following example copies an object from one bucket to another.
337337
* const input = {
338-
* "Bucket": "destinationbucket",
339-
* "CopySource": "/sourcebucket/HappyFacejpg",
340-
* "Key": "HappyFaceCopyjpg"
338+
* Bucket: "destinationbucket",
339+
* CopySource: "/sourcebucket/HappyFacejpg",
340+
* Key: "HappyFaceCopyjpg"
341341
* };
342342
* const command = new CopyObjectCommand(input);
343343
* const response = await client.send(command);
344-
* /* response ==
344+
* /* response is
345345
* {
346-
* "CopyObjectResult": {
347-
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
348-
* "LastModified": "2016-12-15T17:38:53.000Z"
346+
* CopyObjectResult: {
347+
* ETag: ""6805f2cfc46c0f04559748bb039d69ae"",
348+
* LastModified: "2016-12-15T17:38:53.000Z"
349349
* }
350350
* }
351351
* *\/
352-
* // example id: to-copy-an-object-1481823186878
353352
* ```
354353
*
354+
* @public
355355
*/
356356
export class CopyObjectCommand extends $Command
357357
.classBuilder<

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

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -234,42 +234,41 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat
234234
* @throws {@link S3ServiceException}
235235
* <p>Base exception class for all service exceptions from S3 service.</p>
236236
*
237-
* @public
238-
* @example To create a bucket
237+
*
238+
* @example To create a bucket in a specific region
239239
* ```javascript
240-
* // The following example creates a bucket.
240+
* // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
241241
* const input = {
242-
* "Bucket": "examplebucket"
242+
* Bucket: "examplebucket",
243+
* CreateBucketConfiguration: {
244+
* LocationConstraint: "eu-west-1"
245+
* }
243246
* };
244247
* const command = new CreateBucketCommand(input);
245248
* const response = await client.send(command);
246-
* /* response ==
249+
* /* response is
247250
* {
248-
* "Location": "/examplebucket"
251+
* Location: "http://examplebucket.<Region>.s3.amazonaws.com/"
249252
* }
250253
* *\/
251-
* // example id: to-create-a-bucket--1472851826060
252254
* ```
253255
*
254-
* @example To create a bucket in a specific region
256+
* @example To create a bucket
255257
* ```javascript
256-
* // The following example creates a bucket. The request specifies an AWS region where to create the bucket.
258+
* // The following example creates a bucket.
257259
* const input = {
258-
* "Bucket": "examplebucket",
259-
* "CreateBucketConfiguration": {
260-
* "LocationConstraint": "eu-west-1"
261-
* }
260+
* Bucket: "examplebucket"
262261
* };
263262
* const command = new CreateBucketCommand(input);
264263
* const response = await client.send(command);
265-
* /* response ==
264+
* /* response is
266265
* {
267-
* "Location": "http://examplebucket.<Region>.s3.amazonaws.com/"
266+
* Location: "/examplebucket"
268267
* }
269268
* *\/
270-
* // example id: to-create-a-bucket-in-a-specific-region-1483399072992
271269
* ```
272270
*
271+
* @public
273272
*/
274273
export class CreateBucketCommand extends $Command
275274
.classBuilder<

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export interface CreateBucketMetadataTableConfigurationCommandOutput extends __M
123123
* @throws {@link S3ServiceException}
124124
* <p>Base exception class for all service exceptions from S3 service.</p>
125125
*
126+
*
126127
* @public
127128
*/
128129
export class CreateBucketMetadataTableConfigurationCommand extends $Command

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -373,26 +373,26 @@ export interface CreateMultipartUploadCommandOutput extends CreateMultipartUploa
373373
* @throws {@link S3ServiceException}
374374
* <p>Base exception class for all service exceptions from S3 service.</p>
375375
*
376-
* @public
376+
*
377377
* @example To initiate a multipart upload
378378
* ```javascript
379379
* // The following example initiates a multipart upload.
380380
* const input = {
381-
* "Bucket": "examplebucket",
382-
* "Key": "largeobject"
381+
* Bucket: "examplebucket",
382+
* Key: "largeobject"
383383
* };
384384
* const command = new CreateMultipartUploadCommand(input);
385385
* const response = await client.send(command);
386-
* /* response ==
386+
* /* response is
387387
* {
388-
* "Bucket": "examplebucket",
389-
* "Key": "largeobject",
390-
* "UploadId": "ibZBv_75gd9r8lH_gqXatLdxMVpAlj6ZQjEs.OwyF3953YdwbcQnMA2BLGn8Lx12fQNICtMw5KyteFeHw.Sjng--"
388+
* Bucket: "examplebucket",
389+
* Key: "largeobject",
390+
* UploadId: "ibZBv_75gd9r8lH_gqXatLdxMVpAlj6ZQjEs.OwyF3953YdwbcQnMA2BLGn8Lx12fQNICtMw5KyteFeHw.Sjng--"
391391
* }
392392
* *\/
393-
* // example id: to-initiate-a-multipart-upload-1481836794513
394393
* ```
395394
*
395+
* @public
396396
*/
397397
export class CreateMultipartUploadCommand extends $Command
398398
.classBuilder<

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ export interface CreateSessionCommandOutput extends CreateSessionOutput, __Metad
186186
* @throws {@link S3ServiceException}
187187
* <p>Base exception class for all service exceptions from S3 service.</p>
188188
*
189+
*
189190
* @public
190191
*/
191192
export class CreateSessionCommand extends $Command

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export interface DeleteBucketAnalyticsConfigurationCommandOutput extends __Metad
8888
* @throws {@link S3ServiceException}
8989
* <p>Base exception class for all service exceptions from S3 service.</p>
9090
*
91+
*
9192
* @public
9293
*/
9394
export class DeleteBucketAnalyticsConfigurationCommand extends $Command

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,21 @@ export interface DeleteBucketCommandOutput extends __MetadataBearer {}
111111
* @throws {@link S3ServiceException}
112112
* <p>Base exception class for all service exceptions from S3 service.</p>
113113
*
114-
* @public
114+
*
115115
* @example To delete a bucket
116116
* ```javascript
117117
* // The following example deletes the specified bucket.
118118
* const input = {
119-
* "Bucket": "forrandall2"
119+
* Bucket: "forrandall2"
120120
* };
121121
* const command = new DeleteBucketCommand(input);
122-
* await client.send(command);
123-
* // example id: to-delete-a-bucket-1473108514262
122+
* const response = await client.send(command);
123+
* /* response is
124+
* { /* metadata only *\/ }
125+
* *\/
124126
* ```
125127
*
128+
* @public
126129
*/
127130
export class DeleteBucketCommand extends $Command
128131
.classBuilder<

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,21 @@ export interface DeleteBucketCorsCommandOutput extends __MetadataBearer {}
7777
* @throws {@link S3ServiceException}
7878
* <p>Base exception class for all service exceptions from S3 service.</p>
7979
*
80-
* @public
80+
*
8181
* @example To delete cors configuration on a bucket.
8282
* ```javascript
8383
* // The following example deletes CORS configuration on a bucket.
8484
* const input = {
85-
* "Bucket": "examplebucket"
85+
* Bucket: "examplebucket"
8686
* };
8787
* const command = new DeleteBucketCorsCommand(input);
88-
* await client.send(command);
89-
* // example id: to-delete-cors-configuration-on-a-bucket-1483042856112
88+
* const response = await client.send(command);
89+
* /* response is
90+
* { /* metadata only *\/ }
91+
* *\/
9092
* ```
9193
*
94+
* @public
9295
*/
9396
export class DeleteBucketCorsCommand extends $Command
9497
.classBuilder<

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export interface DeleteBucketEncryptionCommandOutput extends __MetadataBearer {}
114114
* @throws {@link S3ServiceException}
115115
* <p>Base exception class for all service exceptions from S3 service.</p>
116116
*
117+
*
117118
* @public
118119
*/
119120
export class DeleteBucketEncryptionCommand extends $Command

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export interface DeleteBucketIntelligentTieringConfigurationCommandOutput extend
8282
* @throws {@link S3ServiceException}
8383
* <p>Base exception class for all service exceptions from S3 service.</p>
8484
*
85+
*
8586
* @public
8687
*/
8788
export class DeleteBucketIntelligentTieringConfigurationCommand extends $Command

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export interface DeleteBucketInventoryConfigurationCommandOutput extends __Metad
8686
* @throws {@link S3ServiceException}
8787
* <p>Base exception class for all service exceptions from S3 service.</p>
8888
*
89+
*
8990
* @public
9091
*/
9192
export class DeleteBucketInventoryConfigurationCommand extends $Command

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,21 @@ export interface DeleteBucketLifecycleCommandOutput extends __MetadataBearer {}
123123
* @throws {@link S3ServiceException}
124124
* <p>Base exception class for all service exceptions from S3 service.</p>
125125
*
126-
* @public
126+
*
127127
* @example To delete lifecycle configuration on a bucket.
128128
* ```javascript
129129
* // The following example deletes lifecycle configuration on a bucket.
130130
* const input = {
131-
* "Bucket": "examplebucket"
131+
* Bucket: "examplebucket"
132132
* };
133133
* const command = new DeleteBucketLifecycleCommand(input);
134-
* await client.send(command);
135-
* // example id: to-delete-lifecycle-configuration-on-a-bucket-1483043310583
134+
* const response = await client.send(command);
135+
* /* response is
136+
* { /* metadata only *\/ }
137+
* *\/
136138
* ```
137139
*
140+
* @public
138141
*/
139142
export class DeleteBucketLifecycleCommand extends $Command
140143
.classBuilder<

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export interface DeleteBucketMetadataTableConfigurationCommandOutput extends __M
8383
* @throws {@link S3ServiceException}
8484
* <p>Base exception class for all service exceptions from S3 service.</p>
8585
*
86+
*
8687
* @public
8788
*/
8889
export class DeleteBucketMetadataTableConfigurationCommand extends $Command

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export interface DeleteBucketMetricsConfigurationCommandOutput extends __Metadat
9494
* @throws {@link S3ServiceException}
9595
* <p>Base exception class for all service exceptions from S3 service.</p>
9696
*
97+
*
9798
* @public
9899
*/
99100
export class DeleteBucketMetricsConfigurationCommand extends $Command

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export interface DeleteBucketOwnershipControlsCommandOutput extends __MetadataBe
7878
* @throws {@link S3ServiceException}
7979
* <p>Base exception class for all service exceptions from S3 service.</p>
8080
*
81+
*
8182
* @public
8283
*/
8384
export class DeleteBucketOwnershipControlsCommand extends $Command

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,21 @@ export interface DeleteBucketPolicyCommandOutput extends __MetadataBearer {}
120120
* @throws {@link S3ServiceException}
121121
* <p>Base exception class for all service exceptions from S3 service.</p>
122122
*
123-
* @public
123+
*
124124
* @example To delete bucket policy
125125
* ```javascript
126126
* // The following example deletes bucket policy on the specified bucket.
127127
* const input = {
128-
* "Bucket": "examplebucket"
128+
* Bucket: "examplebucket"
129129
* };
130130
* const command = new DeleteBucketPolicyCommand(input);
131-
* await client.send(command);
132-
* // example id: to-delete-bucket-policy-1483043406577
131+
* const response = await client.send(command);
132+
* /* response is
133+
* { /* metadata only *\/ }
134+
* *\/
133135
* ```
134136
*
137+
* @public
135138
*/
136139
export class DeleteBucketPolicyCommand extends $Command
137140
.classBuilder<

0 commit comments

Comments
 (0)