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

Copies the specified automated cluster snapshot to a new manual cluster snapshot. * The source must be an automated snapshot and it must be in the available * state.

*

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the * cluster. Also, when the retention period of the snapshot expires, Amazon Redshift * automatically deletes it. If you want to keep an automated snapshot for a longer period, * you can make a manual copy of the snapshot. Manual snapshots are retained until you * delete them.

*

* For more information about working with snapshots, go to * Amazon Redshift Snapshots * in the Amazon Redshift Cluster Management Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, CopyClusterSnapshotCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, CopyClusterSnapshotCommand } = 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 = { // CopyClusterSnapshotMessage * SourceSnapshotIdentifier: "STRING_VALUE", // required * SourceSnapshotClusterIdentifier: "STRING_VALUE", * TargetSnapshotIdentifier: "STRING_VALUE", // required * ManualSnapshotRetentionPeriod: Number("int"), * }; * const command = new CopyClusterSnapshotCommand(input); * const response = await client.send(command); * // { // CopyClusterSnapshotResult * // 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 CopyClusterSnapshotCommandInput - {@link CopyClusterSnapshotCommandInput} * @returns {@link CopyClusterSnapshotCommandOutput} * @see {@link CopyClusterSnapshotCommandInput} for command's `input` shape. * @see {@link CopyClusterSnapshotCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link ClusterNotFoundFault} (client fault) *

The ClusterIdentifier parameter does not refer to an existing cluster. *

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

The value specified as a snapshot identifier is already used by an existing * snapshot.

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

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

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

The request would result in the user exceeding the allowed number of cluster * snapshots.

* * @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 InvalidRetentionPeriodFault} (client fault) *

The retention period specified is either in the past or is not a valid value.

*

The value must be either -1 or an integer between 1 and 3,653.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class CopyClusterSnapshotCommand extends CopyClusterSnapshotCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CopyClusterSnapshotMessage; output: CopyClusterSnapshotResult; }; sdk: { input: CopyClusterSnapshotCommandInput; output: CopyClusterSnapshotCommandOutput; }; }; }