Skip to content

Commit 45ea020

Browse files
committed
fixup! update documentation with sdk v3 commands
update documentation with sdk v3 commands
1 parent c4cc857 commit 45ea020

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

docs/CLIENTS.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ JavaScript
124124

125125
.. code:: javascript
126126
127-
const { S3Client, ListBucketsCommand } = require('@aws-sdk/client-s3');
127+
const { S3Client } = require('@aws-sdk/client-s3');
128128
129129
const s3 = new S3Client({
130130
region: 'us-east-1',
@@ -136,13 +136,6 @@ JavaScript
136136
},
137137
});
138138
139-
async function listBuckets() {
140-
const result = await s3.send(new ListBucketsCommand({}));
141-
console.log(result.Buckets);
142-
}
143-
144-
listBuckets().catch(console.error);
145-
146139
JAVA
147140
~~~~
148141

0 commit comments

Comments
 (0)