import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteClusterSnapshotMessage, DeleteClusterSnapshotResult } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteClusterSnapshotCommand}. */ export interface DeleteClusterSnapshotCommandInput extends DeleteClusterSnapshotMessage { } /** * @public * * The output of {@link DeleteClusterSnapshotCommand}. */ export interface DeleteClusterSnapshotCommandOutput extends DeleteClusterSnapshotResult, __MetadataBearer { } declare const DeleteClusterSnapshotCommand_base: { new (input: DeleteClusterSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteClusterSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes the specified manual snapshot. The snapshot must be in the * available state, with no other users authorized to access the snapshot.

*

Unlike automated snapshots, manual snapshots are retained even after you delete * your cluster. Amazon Redshift does not delete your manual snapshots. You must delete manual * snapshot explicitly to avoid getting charged. If other accounts are authorized to access * the snapshot, you must revoke all of the authorizations before you can delete the * snapshot.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, DeleteClusterSnapshotCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, DeleteClusterSnapshotCommand } = require("@aws-sdk/client-redshift"); // CommonJS import * // import type { RedshiftClientConfig } from "@aws-sdk/client-redshift"; * const config = {}; // type is RedshiftClientConfig * const client = new RedshiftClient(config); * const input = { // DeleteClusterSnapshotMessage * SnapshotIdentifier: "STRING_VALUE", // required * SnapshotClusterIdentifier: "STRING_VALUE", * }; * const command = new DeleteClusterSnapshotCommand(input); * const response = await client.send(command); * // { // DeleteClusterSnapshotResult * // Snapshot: { // Snapshot * // SnapshotIdentifier: "STRING_VALUE", * // ClusterIdentifier: "STRING_VALUE", * // SnapshotCreateTime: new Date("TIMESTAMP"), * // Status: "STRING_VALUE", * // Port: Number("int"), * // AvailabilityZone: "STRING_VALUE", * // ClusterCreateTime: new Date("TIMESTAMP"), * // MasterUsername: "STRING_VALUE", * // ClusterVersion: "STRING_VALUE", * // EngineFullVersion: "STRING_VALUE", * // SnapshotType: "STRING_VALUE", * // NodeType: "STRING_VALUE", * // NumberOfNodes: Number("int"), * // DBName: "STRING_VALUE", * // VpcId: "STRING_VALUE", * // Encrypted: true || false, * // KmsKeyId: "STRING_VALUE", * // EncryptedWithHSM: true || false, * // AccountsWithRestoreAccess: [ // AccountsWithRestoreAccessList * // { // AccountWithRestoreAccess * // AccountId: "STRING_VALUE", * // AccountAlias: "STRING_VALUE", * // }, * // ], * // OwnerAccount: "STRING_VALUE", * // TotalBackupSizeInMegaBytes: Number("double"), * // ActualIncrementalBackupSizeInMegaBytes: Number("double"), * // BackupProgressInMegaBytes: Number("double"), * // CurrentBackupRateInMegaBytesPerSecond: Number("double"), * // EstimatedSecondsToCompletion: Number("long"), * // ElapsedTimeInSeconds: Number("long"), * // SourceRegion: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // RestorableNodeTypes: [ // RestorableNodeTypeList * // "STRING_VALUE", * // ], * // EnhancedVpcRouting: true || false, * // MaintenanceTrackName: "STRING_VALUE", * // ManualSnapshotRetentionPeriod: Number("int"), * // ManualSnapshotRemainingDays: Number("int"), * // SnapshotRetentionStartTime: new Date("TIMESTAMP"), * // MasterPasswordSecretArn: "STRING_VALUE", * // MasterPasswordSecretKmsKeyId: "STRING_VALUE", * // SnapshotArn: "STRING_VALUE", * // }, * // }; * * ``` * * @param DeleteClusterSnapshotCommandInput - {@link DeleteClusterSnapshotCommandInput} * @returns {@link DeleteClusterSnapshotCommandOutput} * @see {@link DeleteClusterSnapshotCommandInput} for command's `input` shape. * @see {@link DeleteClusterSnapshotCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link ClusterSnapshotNotFoundFault} (client fault) *

The snapshot identifier does not refer to an existing cluster snapshot.

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

The specified cluster snapshot is not in the available state, or other * accounts are authorized to access the snapshot.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class DeleteClusterSnapshotCommand extends DeleteClusterSnapshotCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteClusterSnapshotMessage; output: DeleteClusterSnapshotResult; }; sdk: { input: DeleteClusterSnapshotCommandInput; output: DeleteClusterSnapshotCommandOutput; }; }; }