Jump to Content

Class GetBucketLoggingCommandProtected

Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.

The following operations are related to GetBucketLogging:

Example

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

import { S3Client, GetBucketLoggingCommand } from "@aws-sdk/client-s3"; // ES Modules import
// const { S3Client, GetBucketLoggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import
const client = new S3Client(config);
const input = { // GetBucketLoggingRequest
Bucket: "STRING_VALUE", // required
ExpectedBucketOwner: "STRING_VALUE",
};
const command = new GetBucketLoggingCommand(input);
const response = await client.send(command);

Param

GetBucketLoggingCommandInput

Returns

GetBucketLoggingCommandOutput

See

Hierarchy

Constructors

Properties

Methods