import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DeleteSnapshotRequest } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteSnapshotCommand}. */ export interface DeleteSnapshotCommandInput extends DeleteSnapshotRequest { } /** * @public * * The output of {@link DeleteSnapshotCommand}. */ export interface DeleteSnapshotCommandOutput extends __MetadataBearer { } declare const DeleteSnapshotCommand_base: { new (input: DeleteSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes the specified snapshot.

*

When you make periodic snapshots of a volume, the snapshots are incremental, and only the * blocks on the device that have changed since your last snapshot are saved in the new snapshot. * When you delete a snapshot, only the data not needed for any other snapshot is removed. So * regardless of which prior snapshots have been deleted, all active snapshots will have access * to all the information needed to restore the volume.

*

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. * You must first deregister the AMI before you can delete the snapshot.

*

For more information, see Delete an Amazon EBS snapshot in the * Amazon EBS User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DeleteSnapshotCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DeleteSnapshotCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DeleteSnapshotRequest * SnapshotId: "STRING_VALUE", // required * DryRun: true || false, * }; * const command = new DeleteSnapshotCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteSnapshotCommandInput - {@link DeleteSnapshotCommandInput} * @returns {@link DeleteSnapshotCommandOutput} * @see {@link DeleteSnapshotCommandInput} for command's `input` shape. * @see {@link DeleteSnapshotCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @example To delete a snapshot * ```javascript * // This example deletes a snapshot with the snapshot ID of ``snap-1234567890abcdef0``. If the command succeeds, no output is returned. * const input = { * SnapshotId: "snap-1234567890abcdef0" * }; * const command = new DeleteSnapshotCommand(input); * const response = await client.send(command); * /* response is * { /* empty *\/ } * *\/ * ``` * * @public */ export declare class DeleteSnapshotCommand extends DeleteSnapshotCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteSnapshotRequest; output: {}; }; sdk: { input: DeleteSnapshotCommandInput; output: DeleteSnapshotCommandOutput; }; }; }