import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CloudFrontKeyValueStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontKeyValueStoreClient"; import type { DeleteKeyRequest, DeleteKeyResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteKeyCommand}. */ export interface DeleteKeyCommandInput extends DeleteKeyRequest { } /** * @public * * The output of {@link DeleteKeyCommand}. */ export interface DeleteKeyCommandOutput extends DeleteKeyResponse, __MetadataBearer { } declare const DeleteKeyCommand_base: { new (input: DeleteKeyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteKeyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Deletes the key value pair specified by the key.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontKeyValueStoreClient, DeleteKeyCommand } from "@aws-sdk/client-cloudfront-keyvaluestore"; // ES Modules import * // const { CloudFrontKeyValueStoreClient, DeleteKeyCommand } = require("@aws-sdk/client-cloudfront-keyvaluestore"); // CommonJS import * // import type { CloudFrontKeyValueStoreClientConfig } from "@aws-sdk/client-cloudfront-keyvaluestore"; * const config = {}; // type is CloudFrontKeyValueStoreClientConfig * const client = new CloudFrontKeyValueStoreClient(config); * const input = { // DeleteKeyRequest * KvsARN: "STRING_VALUE", // required * Key: "STRING_VALUE", // required * IfMatch: "STRING_VALUE", // required * }; * const command = new DeleteKeyCommand(input); * const response = await client.send(command); * // { // DeleteKeyResponse * // ItemCount: Number("int"), // required * // TotalSizeInBytes: Number("long"), // required * // ETag: "STRING_VALUE", // required * // }; * * ``` * * @param DeleteKeyCommandInput - {@link DeleteKeyCommandInput} * @returns {@link DeleteKeyCommandOutput} * @see {@link DeleteKeyCommandInput} for command's `input` shape. * @see {@link DeleteKeyCommandOutput} for command's `response` shape. * @see {@link CloudFrontKeyValueStoreClientResolvedConfig | config} for CloudFrontKeyValueStoreClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

Access denied.

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

Resource is not in expected state.

* * @throws {@link InternalServerException} (server fault) *

Internal server error.

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

Resource was not found.

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

Limit exceeded.

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

Validation failed.

* * @throws {@link CloudFrontKeyValueStoreServiceException} *

Base exception class for all service exceptions from CloudFrontKeyValueStore service.

* * * @example Delete 'key1' from the key value store with ARN 'arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58' * ```javascript * // * const input = { * IfMatch: "KV0AB12C3DEF456", * Key: "key1", * KvsARN: "arn:aws:cloudfront::123456789012:key-value-store/327284aa-bcd5-499f-a3ff-26b9a9d31b58" * }; * const command = new DeleteKeyCommand(input); * const response = await client.send(command); * /* response is * { * ETag: "KV7XY89Z0ABC012", * ItemCount: 3, * TotalSizeInBytes: 5 * } * *\/ * ``` * * @public */ export declare class DeleteKeyCommand extends DeleteKeyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteKeyRequest; output: DeleteKeyResponse; }; sdk: { input: DeleteKeyCommandInput; output: DeleteKeyCommandOutput; }; }; }