Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListBucketsCommand

Returns a list of all buckets owned by the authenticated sender of the request.

example

Use a bare-bones client and the command you need to make an API call.

import { S3Client, ListBucketsCommand } from "@aws-sdk/client-s3"; // ES Modules import
// const { S3Client, ListBucketsCommand } = require("@aws-sdk/client-s3"); // CommonJS import
const client = new S3Client(config);
const command = new ListBucketsCommand(input);
const response = await client.send(command);
see

ListBucketsCommandInput for command's input shape.

see

ListBucketsCommandOutput for command's response shape.

see

config for command's input shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    Returns ListBucketsCommand

  • Parameters

    • input: ListBucketsCommandInput

    Returns ListBucketsCommand

Properties

Readonly input

input: ListBucketsCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ListBucketsCommandInput, ListBucketsCommandOutput>