Protected
Retrieve a list containing every bucket.
Use a bare-bones client and the command you need to make an API call.
import { BucketsClient, ListBucketsCommand } from "@stedi/sdk-client-buckets"; // ES Modules import// const { BucketsClient, ListBucketsCommand } = require("@stedi/sdk-client-buckets"); // CommonJS importconst client = new BucketsClient(config);const input = { // ListBucketsInput pageSize: Number("int"), pageToken: "STRING_VALUE",};const command = new ListBucketsCommand(input);const response = await client.send(command);// { // ListBucketsOutput// nextPageToken: "STRING_VALUE",// items: [ // BucketItems// { // BucketItem// bucketName: "STRING_VALUE", // required// resourceDetail: { // ListResourcesDetail// status: "AVAILABLE" || "UNDER_CHANGE" || "CHANGE_FAILED" || "ERROR" || "CREATE_FAILED", // required// statusMessage: "STRING_VALUE",// createdAt: new Date("TIMESTAMP"), // required// },// },// ],// };
ListBucketsCommandInput
ListBucketsCommandOutput
input
response
config
NoSuchBucketException (client fault)
NoSuchKeyException (client fault)
AccessDeniedException (client fault)
ProductUnavailableException (client fault)
ResourceAlreadyExistsException (client fault)
ResourceNotFoundException (client fault)
ResourceUnderChangeException (client fault)
ServiceException (server fault)
BucketsServiceException
Base exception class for all service exceptions from Buckets service.
Readonly
Static
Retrieve a list containing every bucket.
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListBucketsCommandInput
Returns
ListBucketsCommandOutput
See
input
shape.response
shape.config
shape.Throws
NoSuchBucketException (client fault)
Throws
NoSuchKeyException (client fault)
Throws
AccessDeniedException (client fault)
Throws
ProductUnavailableException (client fault)
Throws
ResourceAlreadyExistsException (client fault)
Throws
ResourceNotFoundException (client fault)
Throws
ResourceUnderChangeException (client fault)
Throws
ServiceException (server fault)
Throws
BucketsServiceException
Base exception class for all service exceptions from Buckets service.