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

Deletes a specified existing serverless cache.

* *

* CreateServerlessCacheSnapshot permission is required to create a final snapshot. * Without this permission, the API call will fail with an Access Denied exception.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElastiCacheClient, DeleteServerlessCacheCommand } from "@aws-sdk/client-elasticache"; // ES Modules import * // const { ElastiCacheClient, DeleteServerlessCacheCommand } = 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 = { // DeleteServerlessCacheRequest * ServerlessCacheName: "STRING_VALUE", // required * FinalSnapshotName: "STRING_VALUE", * }; * const command = new DeleteServerlessCacheCommand(input); * const response = await client.send(command); * // { // DeleteServerlessCacheResponse * // ServerlessCache: { // ServerlessCache * // ServerlessCacheName: "STRING_VALUE", * // Description: "STRING_VALUE", * // CreateTime: new Date("TIMESTAMP"), * // Status: "STRING_VALUE", * // Engine: "STRING_VALUE", * // MajorEngineVersion: "STRING_VALUE", * // FullEngineVersion: "STRING_VALUE", * // CacheUsageLimits: { // CacheUsageLimits * // DataStorage: { // DataStorage * // Maximum: Number("int"), * // Minimum: Number("int"), * // Unit: "GB", // required * // }, * // ECPUPerSecond: { // ECPUPerSecond * // Maximum: Number("int"), * // Minimum: Number("int"), * // }, * // }, * // KmsKeyId: "STRING_VALUE", * // SecurityGroupIds: [ // SecurityGroupIdsList * // "STRING_VALUE", * // ], * // Endpoint: { // Endpoint * // Address: "STRING_VALUE", * // Port: Number("int"), * // }, * // ReaderEndpoint: { * // Address: "STRING_VALUE", * // Port: Number("int"), * // }, * // ARN: "STRING_VALUE", * // UserGroupId: "STRING_VALUE", * // SubnetIds: [ // SubnetIdsList * // "STRING_VALUE", * // ], * // SnapshotRetentionLimit: Number("int"), * // DailySnapshotTime: "STRING_VALUE", * // NetworkType: "ipv4" || "ipv6" || "dual_stack", * // }, * // }; * * ``` * * @param DeleteServerlessCacheCommandInput - {@link DeleteServerlessCacheCommandInput} * @returns {@link DeleteServerlessCacheCommandOutput} * @see {@link DeleteServerlessCacheCommandInput} for command's `input` shape. * @see {@link DeleteServerlessCacheCommandOutput} for command's `response` shape. * @see {@link ElastiCacheClientResolvedConfig | config} for ElastiCacheClient's `config` shape. * * @throws {@link InvalidCredentialsException} (client fault) *

You must enter valid credentials.

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

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

* * @throws {@link ElastiCacheServiceException} *

Base exception class for all service exceptions from ElastiCache service.

* * * @public */ export declare class DeleteServerlessCacheCommand extends DeleteServerlessCacheCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteServerlessCacheRequest; output: DeleteServerlessCacheResponse; }; sdk: { input: DeleteServerlessCacheCommandInput; output: DeleteServerlessCacheCommandOutput; }; }; }