import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ElastiCacheClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ElastiCacheClient"; import type { DeleteSnapshotMessage, DeleteSnapshotResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteSnapshotCommand}. */ export interface DeleteSnapshotCommandInput extends DeleteSnapshotMessage { } /** * @public * * The output of {@link DeleteSnapshotCommand}. */ export interface DeleteSnapshotCommandOutput extends DeleteSnapshotResult, __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 an existing snapshot. When you receive a successful response from this * operation, ElastiCache immediately begins deleting the snapshot; you cannot cancel or * revert this operation.

* *

This operation is valid for Valkey or Redis OSS only.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElastiCacheClient, DeleteSnapshotCommand } from "@aws-sdk/client-elasticache"; // ES Modules import * // const { ElastiCacheClient, DeleteSnapshotCommand } = require("@aws-sdk/client-elasticache"); // CommonJS import * // import type { ElastiCacheClientConfig } from "@aws-sdk/client-elasticache"; * const config = {}; // type is ElastiCacheClientConfig * const client = new ElastiCacheClient(config); * const input = { // DeleteSnapshotMessage * SnapshotName: "STRING_VALUE", // required * }; * const command = new DeleteSnapshotCommand(input); * const response = await client.send(command); * // { // DeleteSnapshotResult * // Snapshot: { // Snapshot * // SnapshotName: "STRING_VALUE", * // ReplicationGroupId: "STRING_VALUE", * // ReplicationGroupDescription: "STRING_VALUE", * // CacheClusterId: "STRING_VALUE", * // SnapshotStatus: "STRING_VALUE", * // SnapshotSource: "STRING_VALUE", * // CacheNodeType: "STRING_VALUE", * // Engine: "STRING_VALUE", * // EngineVersion: "STRING_VALUE", * // NumCacheNodes: Number("int"), * // PreferredAvailabilityZone: "STRING_VALUE", * // PreferredOutpostArn: "STRING_VALUE", * // CacheClusterCreateTime: new Date("TIMESTAMP"), * // PreferredMaintenanceWindow: "STRING_VALUE", * // TopicArn: "STRING_VALUE", * // Port: Number("int"), * // CacheParameterGroupName: "STRING_VALUE", * // CacheSubnetGroupName: "STRING_VALUE", * // VpcId: "STRING_VALUE", * // AutoMinorVersionUpgrade: true || false, * // SnapshotRetentionLimit: Number("int"), * // SnapshotWindow: "STRING_VALUE", * // NumNodeGroups: Number("int"), * // AutomaticFailover: "enabled" || "disabled" || "enabling" || "disabling", * // NodeSnapshots: [ // NodeSnapshotList * // { // NodeSnapshot * // CacheClusterId: "STRING_VALUE", * // NodeGroupId: "STRING_VALUE", * // CacheNodeId: "STRING_VALUE", * // NodeGroupConfiguration: { // NodeGroupConfiguration * // NodeGroupId: "STRING_VALUE", * // Slots: "STRING_VALUE", * // ReplicaCount: Number("int"), * // PrimaryAvailabilityZone: "STRING_VALUE", * // ReplicaAvailabilityZones: [ // AvailabilityZonesList * // "STRING_VALUE", * // ], * // PrimaryOutpostArn: "STRING_VALUE", * // ReplicaOutpostArns: [ // OutpostArnsList * // "STRING_VALUE", * // ], * // }, * // CacheSize: "STRING_VALUE", * // CacheNodeCreateTime: new Date("TIMESTAMP"), * // SnapshotCreateTime: new Date("TIMESTAMP"), * // }, * // ], * // KmsKeyId: "STRING_VALUE", * // ARN: "STRING_VALUE", * // DataTiering: "enabled" || "disabled", * // }, * // }; * * ``` * * @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 ElastiCacheClientResolvedConfig | config} for ElastiCacheClient's `config` shape. * * @throws {@link InvalidParameterCombinationException} (client fault) *

Two or more incompatible parameters were specified.

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

The value for a parameter is invalid.

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

The current state of the snapshot does not allow the requested operation to * occur.

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

The requested snapshot name does not refer to an existing snapshot.

* * @throws {@link ElastiCacheServiceException} *

Base exception class for all service exceptions from ElastiCache service.

* * * @example DeleteSnapshot * ```javascript * // Deletes the Redis snapshot snapshot-20160822. * const input = { * SnapshotName: "snapshot-20161212" * }; * const command = new DeleteSnapshotCommand(input); * const response = await client.send(command); * /* response is * { * Snapshot: { * AutoMinorVersionUpgrade: true, * CacheClusterCreateTime: "2016-12-21T22:27:12.543Z", * CacheClusterId: "my-redis5", * CacheNodeType: "cache.m3.large", * CacheParameterGroupName: "default.redis3.2", * CacheSubnetGroupName: "default", * Engine: "redis", * EngineVersion: "3.2.4", * NodeSnapshots: [ * { * CacheNodeCreateTime: "2016-12-21T22:27:12.543Z", * CacheNodeId: "0001", * CacheSize: "3 MB", * SnapshotCreateTime: "2016-12-21T22:30:26Z" * } * ], * NumCacheNodes: 1, * Port: 6379, * PreferredAvailabilityZone: "us-east-1c", * PreferredMaintenanceWindow: "fri:05:30-fri:06:30", * SnapshotName: "snapshot-20161212", * SnapshotRetentionLimit: 7, * SnapshotSource: "manual", * SnapshotStatus: "deleting", * SnapshotWindow: "10:00-11:00", * VpcId: "vpc-91280df6" * } * } * *\/ * ``` * * @public */ export declare class DeleteSnapshotCommand extends DeleteSnapshotCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteSnapshotMessage; output: DeleteSnapshotResult; }; sdk: { input: DeleteSnapshotCommandInput; output: DeleteSnapshotCommandOutput; }; }; }