@aws-sdk/client-s3 3.304.0 → 3.305.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.
@@ -72,6 +72,37 @@ export interface ListBucketsCommandOutput extends ListBucketsOutput, __MetadataB
72
72
  * // example id: to-list-object-versions-1481910996058
73
73
  * ```
74
74
  *
75
+ * @example To list all buckets
76
+ * ```javascript
77
+ * // The following example returns all the buckets owned by the sender of this request.
78
+ * const input = undefined;
79
+ * const command = new ListBucketsCommand(input);
80
+ * const response = await client.send(command);
81
+ * /* response ==
82
+ * {
83
+ * "Buckets": [
84
+ * {
85
+ * "CreationDate": "2012-02-15T21:03:02.000Z",
86
+ * "Name": "examplebucket"
87
+ * },
88
+ * {
89
+ * "CreationDate": "2011-07-24T19:33:50.000Z",
90
+ * "Name": "examplebucket2"
91
+ * },
92
+ * {
93
+ * "CreationDate": "2010-12-17T00:56:49.000Z",
94
+ * "Name": "examplebucket3"
95
+ * }
96
+ * ],
97
+ * "Owner": {
98
+ * "DisplayName": "own-display-name",
99
+ * "ID": "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31"
100
+ * }
101
+ * }
102
+ * *\/
103
+ * // example id: to-list-buckets-1481910996058
104
+ * ```
105
+ *
75
106
  */
76
107
  export declare class ListBucketsCommand extends $Command<ListBucketsCommandInput, ListBucketsCommandOutput, S3ClientResolvedConfig> {
77
108
  readonly input: ListBucketsCommandInput;
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.304.0",
4
+ "version": "3.305.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",