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 { CreateServerlessCacheSnapshotRequest, CreateServerlessCacheSnapshotResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateServerlessCacheSnapshotCommand}. */ export interface CreateServerlessCacheSnapshotCommandInput extends CreateServerlessCacheSnapshotRequest { } /** * @public * * The output of {@link CreateServerlessCacheSnapshotCommand}. */ export interface CreateServerlessCacheSnapshotCommandOutput extends CreateServerlessCacheSnapshotResponse, __MetadataBearer { } declare const CreateServerlessCacheSnapshotCommand_base: { new (input: CreateServerlessCacheSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateServerlessCacheSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

This API creates a copy of an entire ServerlessCache at a specific moment in time. Available for Valkey, Redis OSS and Serverless Memcached only.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElastiCacheClient, CreateServerlessCacheSnapshotCommand } from "@aws-sdk/client-elasticache"; // ES Modules import * // const { ElastiCacheClient, CreateServerlessCacheSnapshotCommand } = 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 = { // CreateServerlessCacheSnapshotRequest * ServerlessCacheSnapshotName: "STRING_VALUE", // required * ServerlessCacheName: "STRING_VALUE", // required * KmsKeyId: "STRING_VALUE", * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateServerlessCacheSnapshotCommand(input); * const response = await client.send(command); * // { // CreateServerlessCacheSnapshotResponse * // ServerlessCacheSnapshot: { // ServerlessCacheSnapshot * // ServerlessCacheSnapshotName: "STRING_VALUE", * // ARN: "STRING_VALUE", * // KmsKeyId: "STRING_VALUE", * // SnapshotType: "STRING_VALUE", * // Status: "STRING_VALUE", * // CreateTime: new Date("TIMESTAMP"), * // ExpiryTime: new Date("TIMESTAMP"), * // BytesUsedForCache: "STRING_VALUE", * // ServerlessCacheConfiguration: { // ServerlessCacheConfiguration * // ServerlessCacheName: "STRING_VALUE", * // Engine: "STRING_VALUE", * // MajorEngineVersion: "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param CreateServerlessCacheSnapshotCommandInput - {@link CreateServerlessCacheSnapshotCommandInput} * @returns {@link CreateServerlessCacheSnapshotCommandOutput} * @see {@link CreateServerlessCacheSnapshotCommandInput} for command's `input` shape. * @see {@link CreateServerlessCacheSnapshotCommandOutput} 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 InvalidServerlessCacheStateFault} (client fault) *

The account for these credentials is not currently active.

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

The serverless cache was not found or does not exist.

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

A serverless cache snapshot with this name already exists. Available for Valkey, Redis OSS and Serverless Memcached only.

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

The number of serverless cache snapshots exceeds the customer snapshot quota. Available for Valkey, Redis OSS and Serverless Memcached only.

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

The specified service linked role (SLR) was not found.

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

The request cannot be processed because it would cause the resource to have more than * the allowed number of tags. The maximum number of tags permitted on a resource is * 50.

* * @throws {@link ElastiCacheServiceException} *

Base exception class for all service exceptions from ElastiCache service.

* * * @public */ export declare class CreateServerlessCacheSnapshotCommand extends CreateServerlessCacheSnapshotCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateServerlessCacheSnapshotRequest; output: CreateServerlessCacheSnapshotResponse; }; sdk: { input: CreateServerlessCacheSnapshotCommandInput; output: CreateServerlessCacheSnapshotCommandOutput; }; }; }