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 { GetBucketNotificationConfigurationRequest, NotificationConfiguration } from "../models/models_0"; import { S3ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3Client"; /** * @public * * The input for {@link GetBucketNotificationConfigurationCommand}. */ export interface GetBucketNotificationConfigurationCommandInput extends GetBucketNotificationConfigurationRequest { } /** * @public * * The output of {@link GetBucketNotificationConfigurationCommand}. */ export interface GetBucketNotificationConfigurationCommandOutput extends NotificationConfiguration, __MetadataBearer { } /** * @public *

Returns the notification configuration of a bucket.

*

If notifications are not enabled on the bucket, the action returns an empty * NotificationConfiguration element.

*

By default, you must be the bucket owner to read the notification configuration of a * bucket. However, the bucket owner can use a bucket policy to grant permission to other * users to read this configuration with the s3:GetBucketNotification * permission.

*

For more information about setting and reading the notification configuration on a * bucket, see Setting Up Notification of * Bucket Events. For more information about bucket policies, see Using Bucket Policies.

*

The following action is related to GetBucketNotification:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { S3Client, GetBucketNotificationConfigurationCommand } from "@aws-sdk/client-s3"; // ES Modules import * // const { S3Client, GetBucketNotificationConfigurationCommand } = require("@aws-sdk/client-s3"); // CommonJS import * const client = new S3Client(config); * const input = { // GetBucketNotificationConfigurationRequest * Bucket: "STRING_VALUE", // required * ExpectedBucketOwner: "STRING_VALUE", * }; * const command = new GetBucketNotificationConfigurationCommand(input); * const response = await client.send(command); * ``` * * @param GetBucketNotificationConfigurationCommandInput - {@link GetBucketNotificationConfigurationCommandInput} * @returns {@link GetBucketNotificationConfigurationCommandOutput} * @see {@link GetBucketNotificationConfigurationCommandInput} for command's `input` shape. * @see {@link GetBucketNotificationConfigurationCommandOutput} for command's `response` shape. * @see {@link S3ClientResolvedConfig | config} for S3Client's `config` shape. * * */ export declare class GetBucketNotificationConfigurationCommand extends $Command { readonly input: GetBucketNotificationConfigurationCommandInput; static getEndpointParameterInstructions(): EndpointParameterInstructions; /** * @public */ constructor(input: GetBucketNotificationConfigurationCommandInput); /** * @internal */ resolveMiddleware(clientStack: MiddlewareStack, configuration: S3ClientResolvedConfig, options?: __HttpHandlerOptions): Handler; /** * @internal */ private serialize; /** * @internal */ private deserialize; }