import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateSnapshotScheduleMessage, SnapshotSchedule } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateSnapshotScheduleCommand}. */ export interface CreateSnapshotScheduleCommandInput extends CreateSnapshotScheduleMessage { } /** * @public * * The output of {@link CreateSnapshotScheduleCommand}. */ export interface CreateSnapshotScheduleCommandOutput extends SnapshotSchedule, __MetadataBearer { } declare const CreateSnapshotScheduleCommand_base: { new (input: CreateSnapshotScheduleCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [CreateSnapshotScheduleCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Create a snapshot schedule that can be associated to a cluster and which overrides the default system backup schedule.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, CreateSnapshotScheduleCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, CreateSnapshotScheduleCommand } = 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 = { // CreateSnapshotScheduleMessage * ScheduleDefinitions: [ // ScheduleDefinitionList * "STRING_VALUE", * ], * ScheduleIdentifier: "STRING_VALUE", * ScheduleDescription: "STRING_VALUE", * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * DryRun: true || false, * NextInvocations: Number("int"), * }; * const command = new CreateSnapshotScheduleCommand(input); * const response = await client.send(command); * // { // SnapshotSchedule * // ScheduleDefinitions: [ // ScheduleDefinitionList * // "STRING_VALUE", * // ], * // ScheduleIdentifier: "STRING_VALUE", * // ScheduleDescription: "STRING_VALUE", * // Tags: [ // TagList * // { // Tag * // Key: "STRING_VALUE", * // Value: "STRING_VALUE", * // }, * // ], * // NextInvocations: [ // ScheduledSnapshotTimeList * // new Date("TIMESTAMP"), * // ], * // AssociatedClusterCount: Number("int"), * // AssociatedClusters: [ // AssociatedClusterList * // { // ClusterAssociatedToSchedule * // ClusterIdentifier: "STRING_VALUE", * // ScheduleAssociationState: "MODIFYING" || "ACTIVE" || "FAILED", * // }, * // ], * // }; * * ``` * * @param CreateSnapshotScheduleCommandInput - {@link CreateSnapshotScheduleCommandInput} * @returns {@link CreateSnapshotScheduleCommandOutput} * @see {@link CreateSnapshotScheduleCommandInput} for command's `input` shape. * @see {@link CreateSnapshotScheduleCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link InvalidScheduleFault} (client fault) *

The schedule you submitted isn't valid.

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

The tag is invalid.

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

The definition you submitted is not supported.

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

The specified snapshot schedule already exists.

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

You have exceeded the quota of snapshot schedules.

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

You have exceeded the number of tags allowed.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class CreateSnapshotScheduleCommand extends CreateSnapshotScheduleCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateSnapshotScheduleMessage; output: SnapshotSchedule; }; sdk: { input: CreateSnapshotScheduleCommandInput; output: CreateSnapshotScheduleCommandOutput; }; }; }