@aws-sdk/client-s3
Version:
AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native
39 lines (38 loc) • 2.03 kB
TypeScript
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
import { Command as $Command } from "@aws-sdk/smithy-client";
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
import { ListBucketsOutput } from "../models/models_0";
import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client";
export interface ListBucketsCommandInput {
}
export interface ListBucketsCommandOutput extends ListBucketsOutput, __MetadataBearer {
}
/**
* <p>Returns a list of all buckets owned by the authenticated sender of the request. To use
* this operation, you must have the <code>s3:ListAllMyBuckets</code> permission.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* 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 {@link ListBucketsCommandInput} for command's `input` shape.
* @see {@link ListBucketsCommandOutput} for command's `response` shape.
* @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape.
*
*/
export declare class ListBucketsCommand extends $Command<ListBucketsCommandInput, ListBucketsCommandOutput, S3ClientResolvedConfig> {
readonly input: ListBucketsCommandInput;
static getEndpointParameterInstructions(): EndpointParameterInstructions;
constructor(input: ListBucketsCommandInput);
/**
* @internal
*/
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListBucketsCommandInput, ListBucketsCommandOutput>;
private serialize;
private deserialize;
}