Skip to content

Commit 46492e4

Browse files
authored
docs(clients): update doc comments from codegen (#6434)
1 parent 7cc9f5a commit 46492e4

File tree

6 files changed

+89
-80
lines changed

6 files changed

+89
-80
lines changed

clients/client-device-farm/src/commands/GetRunCommand.ts

-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ export interface GetRunCommandOutput extends GetRunResult, __MetadataBearer {}
176176
* {
177177
* "run": {
178178
* "name": "My Test Run",
179-
* "type": "BUILTIN_EXPLORER",
180179
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
181180
* "billingMethod": "METERED",
182181
* "completedJobs": 0,

clients/client-device-farm/src/commands/ListRunsCommand.ts

-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ export interface ListRunsCommandOutput extends ListRunsResult, __MetadataBearer
182182
* "runs": [
183183
* {
184184
* "name": "My Test Run",
185-
* "type": "BUILTIN_EXPLORER",
186185
* "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
187186
* "billingMethod": "METERED",
188187
* "completedJobs": 0,

clients/client-elastic-load-balancing-v2/src/commands/DescribeListenerAttributesCommand.ts

+11
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ export interface DescribeListenerAttributesCommandOutput extends DescribeListene
6868
* <p>Base exception class for all service exceptions from ElasticLoadBalancingV2 service.</p>
6969
*
7070
* @public
71+
* @example Describe listener attributes
72+
* ```javascript
73+
* // This example describes the attributes of the specified listener.
74+
* const input = {
75+
* "ListenerArn": "aws:elasticloadbalancing:us-east-1:123456789012:listener/net/my-listener/73e2d6bc24d8a067/d5dc06411fa5bcea"
76+
* };
77+
* const command = new DescribeListenerAttributesCommand(input);
78+
* await client.send(command);
79+
* // example id: describe-listener-attributes-1724874395194
80+
* ```
81+
*
7182
*/
7283
export class DescribeListenerAttributesCommand extends $Command
7384
.classBuilder<

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

+11-11
Original file line numberDiff line numberDiff line change
@@ -82,39 +82,39 @@ export interface DeleteObjectTaggingCommandOutput extends DeleteObjectTaggingOut
8282
* <p>Base exception class for all service exceptions from S3 service.</p>
8383
*
8484
* @public
85-
* @example To remove tag set from an object
85+
* @example To remove tag set from an object version
8686
* ```javascript
87-
* // 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.
87+
* // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
8888
* const input = {
8989
* "Bucket": "examplebucket",
90-
* "Key": "HappyFace.jpg"
90+
* "Key": "HappyFace.jpg",
91+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
9192
* };
9293
* const command = new DeleteObjectTaggingCommand(input);
9394
* const response = await client.send(command);
9495
* /* response ==
9596
* {
96-
* "VersionId": "null"
97+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
9798
* }
9899
* *\/
99-
* // example id: to-remove-tag-set-from-an-object-1483145342862
100+
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
100101
* ```
101102
*
102-
* @example To remove tag set from an object version
103+
* @example To remove tag set from an object
103104
* ```javascript
104-
* // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
105+
* // 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.
105106
* const input = {
106107
* "Bucket": "examplebucket",
107-
* "Key": "HappyFace.jpg",
108-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
108+
* "Key": "HappyFace.jpg"
109109
* };
110110
* const command = new DeleteObjectTaggingCommand(input);
111111
* const response = await client.send(command);
112112
* /* response ==
113113
* {
114-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
114+
* "VersionId": "null"
115115
* }
116116
* *\/
117-
* // example id: to-remove-tag-set-from-an-object-version-1483145285913
117+
* // example id: to-remove-tag-set-from-an-object-1483145342862
118118
* ```
119119
*
120120
*/

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

+19-19
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 a specific object version
101+
* @example To retrieve tag set of an object
102102
* ```javascript
103-
* // The following example retrieves tag set of an object. The request specifies object version.
103+
* // The following example retrieves tag set of an object.
104104
* const input = {
105105
* "Bucket": "examplebucket",
106-
* "Key": "exampleobject",
107-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
106+
* "Key": "HappyFace.jpg"
108107
* };
109108
* const command = new GetObjectTaggingCommand(input);
110109
* const response = await client.send(command);
111110
* /* response ==
112111
* {
113112
* "TagSet": [
114113
* {
115-
* "Key": "Key1",
116-
* "Value": "Value1"
114+
* "Key": "Key4",
115+
* "Value": "Value4"
116+
* },
117+
* {
118+
* "Key": "Key3",
119+
* "Value": "Value3"
117120
* }
118121
* ],
119-
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
122+
* "VersionId": "null"
120123
* }
121124
* *\/
122-
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
125+
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
123126
* ```
124127
*
125-
* @example To retrieve tag set of an object
128+
* @example To retrieve tag set of a specific object version
126129
* ```javascript
127-
* // The following example retrieves tag set of an object.
130+
* // The following example retrieves tag set of an object. The request specifies object version.
128131
* const input = {
129132
* "Bucket": "examplebucket",
130-
* "Key": "HappyFace.jpg"
133+
* "Key": "exampleobject",
134+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
131135
* };
132136
* const command = new GetObjectTaggingCommand(input);
133137
* const response = await client.send(command);
134138
* /* response ==
135139
* {
136140
* "TagSet": [
137141
* {
138-
* "Key": "Key4",
139-
* "Value": "Value4"
140-
* },
141-
* {
142-
* "Key": "Key3",
143-
* "Value": "Value3"
142+
* "Key": "Key1",
143+
* "Value": "Value1"
144144
* }
145145
* ],
146-
* "VersionId": "null"
146+
* "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
147147
* }
148148
* *\/
149-
* // example id: to-retrieve-tag-set-of-an-object-1481833847896
149+
* // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
150150
* ```
151151
*
152152
*/

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

+48-48
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,28 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
246246
* <p>Base exception class for all service exceptions from S3 service.</p>
247247
*
248248
* @public
249+
* @example To upload an object (specify optional headers)
250+
* ```javascript
251+
* // 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.
252+
* const input = {
253+
* "Body": "HappyFace.jpg",
254+
* "Bucket": "examplebucket",
255+
* "Key": "HappyFace.jpg",
256+
* "ServerSideEncryption": "AES256",
257+
* "StorageClass": "STANDARD_IA"
258+
* };
259+
* const command = new PutObjectCommand(input);
260+
* const response = await client.send(command);
261+
* /* response ==
262+
* {
263+
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
264+
* "ServerSideEncryption": "AES256",
265+
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
266+
* }
267+
* *\/
268+
* // example id: to-upload-an-object-(specify-optional-headers)
269+
* ```
270+
*
249271
* @example To create an object.
250272
* ```javascript
251273
* // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
@@ -265,68 +287,63 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
265287
* // example id: to-create-an-object-1483147613675
266288
* ```
267289
*
268-
* @example To upload an object (specify optional headers)
290+
* @example To upload an object
269291
* ```javascript
270-
* // 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.
292+
* // 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.
271293
* const input = {
272294
* "Body": "HappyFace.jpg",
273295
* "Bucket": "examplebucket",
274-
* "Key": "HappyFace.jpg",
275-
* "ServerSideEncryption": "AES256",
276-
* "StorageClass": "STANDARD_IA"
296+
* "Key": "HappyFace.jpg"
277297
* };
278298
* const command = new PutObjectCommand(input);
279299
* const response = await client.send(command);
280300
* /* response ==
281301
* {
282302
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
283-
* "ServerSideEncryption": "AES256",
284-
* "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
303+
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
285304
* }
286305
* *\/
287-
* // example id: to-upload-an-object-(specify-optional-headers)
306+
* // example id: to-upload-an-object-1481760101010
288307
* ```
289308
*
290-
* @example To upload an object and specify canned ACL.
309+
* @example To upload an object and specify optional tags
291310
* ```javascript
292-
* // 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.
311+
* // 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.
293312
* const input = {
294-
* "ACL": "authenticated-read",
295-
* "Body": "filetoupload",
313+
* "Body": "c:\\HappyFace.jpg",
296314
* "Bucket": "examplebucket",
297-
* "Key": "exampleobject"
315+
* "Key": "HappyFace.jpg",
316+
* "Tagging": "key1=value1&key2=value2"
298317
* };
299318
* const command = new PutObjectCommand(input);
300319
* const response = await client.send(command);
301320
* /* response ==
302321
* {
303322
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
304-
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
323+
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
305324
* }
306325
* *\/
307-
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
326+
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
308327
* ```
309328
*
310-
* @example To upload an object and specify server-side encryption and object tags
329+
* @example To upload an object and specify canned ACL.
311330
* ```javascript
312-
* // 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.
331+
* // 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.
313332
* const input = {
333+
* "ACL": "authenticated-read",
314334
* "Body": "filetoupload",
315335
* "Bucket": "examplebucket",
316-
* "Key": "exampleobject",
317-
* "ServerSideEncryption": "AES256",
318-
* "Tagging": "key1=value1&key2=value2"
336+
* "Key": "exampleobject"
319337
* };
320338
* const command = new PutObjectCommand(input);
321339
* const response = await client.send(command);
322340
* /* response ==
323341
* {
324342
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
325-
* "ServerSideEncryption": "AES256",
326-
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
343+
* "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
327344
* }
328345
* *\/
329-
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
346+
* // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
330347
* ```
331348
*
332349
* @example To upload object and specify user-defined metadata
@@ -352,43 +369,26 @@ export interface PutObjectCommandOutput extends PutObjectOutput, __MetadataBeare
352369
* // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
353370
* ```
354371
*
355-
* @example To upload an object
356-
* ```javascript
357-
* // 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.
358-
* const input = {
359-
* "Body": "HappyFace.jpg",
360-
* "Bucket": "examplebucket",
361-
* "Key": "HappyFace.jpg"
362-
* };
363-
* const command = new PutObjectCommand(input);
364-
* const response = await client.send(command);
365-
* /* response ==
366-
* {
367-
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
368-
* "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
369-
* }
370-
* *\/
371-
* // example id: to-upload-an-object-1481760101010
372-
* ```
373-
*
374-
* @example To upload an object and specify optional tags
372+
* @example To upload an object and specify server-side encryption and object tags
375373
* ```javascript
376-
* // 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.
374+
* // 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.
377375
* const input = {
378-
* "Body": "c:\\HappyFace.jpg",
376+
* "Body": "filetoupload",
379377
* "Bucket": "examplebucket",
380-
* "Key": "HappyFace.jpg",
378+
* "Key": "exampleobject",
379+
* "ServerSideEncryption": "AES256",
381380
* "Tagging": "key1=value1&key2=value2"
382381
* };
383382
* const command = new PutObjectCommand(input);
384383
* const response = await client.send(command);
385384
* /* response ==
386385
* {
387386
* "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
388-
* "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
387+
* "ServerSideEncryption": "AES256",
388+
* "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
389389
* }
390390
* *\/
391-
* // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
391+
* // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
392392
* ```
393393
*
394394
*/

0 commit comments

Comments
 (0)