import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { NotifyWhenUploadedInput, NotifyWhenUploadedOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link NotifyWhenUploadedCommand}. */ export interface NotifyWhenUploadedCommandInput extends NotifyWhenUploadedInput { } /** * @public * * The output of {@link NotifyWhenUploadedCommand}. */ export interface NotifyWhenUploadedCommandOutput extends NotifyWhenUploadedOutput, __MetadataBearer { } declare const NotifyWhenUploadedCommand_base: { new (input: NotifyWhenUploadedCommandInput): import("@smithy/core/client").CommandImpl; new (input: NotifyWhenUploadedCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Sends you notification through Amazon EventBridge when all files written to your file * share have been uploaded to Amazon S3.

*

Storage Gateway can send a notification through Amazon EventBridge when all * files written to your file share up to that point in time have been uploaded to Amazon S3. These files include files written to the file share up to the time that you * make a request for notification. When the upload is done, Storage Gateway sends you * notification through EventBridge. You can configure EventBridge to send the * notification through event targets such as Amazon SNS or Lambda * function. This operation is only supported for S3 File Gateways.

*

For more information, see Getting * file upload notification in the Amazon S3 File Gateway User * Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { StorageGatewayClient, NotifyWhenUploadedCommand } from "@aws-sdk/client-storage-gateway"; // ES Modules import * // const { StorageGatewayClient, NotifyWhenUploadedCommand } = require("@aws-sdk/client-storage-gateway"); // CommonJS import * // import type { StorageGatewayClientConfig } from "@aws-sdk/client-storage-gateway"; * const config = {}; // type is StorageGatewayClientConfig * const client = new StorageGatewayClient(config); * const input = { // NotifyWhenUploadedInput * FileShareARN: "STRING_VALUE", // required * }; * const command = new NotifyWhenUploadedCommand(input); * const response = await client.send(command); * // { // NotifyWhenUploadedOutput * // FileShareARN: "STRING_VALUE", * // NotificationId: "STRING_VALUE", * // }; * * ``` * * @param NotifyWhenUploadedCommandInput - {@link NotifyWhenUploadedCommandInput} * @returns {@link NotifyWhenUploadedCommandOutput} * @see {@link NotifyWhenUploadedCommandInput} for command's `input` shape. * @see {@link NotifyWhenUploadedCommandOutput} for command's `response` shape. * @see {@link StorageGatewayClientResolvedConfig | config} for StorageGatewayClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An internal server error has occurred during the request. For more information, see the * error and message fields.

* * @throws {@link InvalidGatewayRequestException} (client fault) *

An exception occurred because an invalid gateway request was issued to the service. For * more information, see the error and message fields.

* * @throws {@link StorageGatewayServiceException} *

Base exception class for all service exceptions from StorageGateway service.

* * * @public */ export declare class NotifyWhenUploadedCommand extends NotifyWhenUploadedCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: NotifyWhenUploadedInput; output: NotifyWhenUploadedOutput; }; sdk: { input: NotifyWhenUploadedCommandInput; output: NotifyWhenUploadedCommandOutput; }; }; }