import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient"; import { UpdateKeyValueStoreRequest, UpdateKeyValueStoreResult } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateKeyValueStoreCommand}. */ export interface UpdateKeyValueStoreCommandInput extends UpdateKeyValueStoreRequest { } /** * @public * * The output of {@link UpdateKeyValueStoreCommand}. */ export interface UpdateKeyValueStoreCommandOutput extends UpdateKeyValueStoreResult, __MetadataBearer { } declare const UpdateKeyValueStoreCommand_base: { new (input: UpdateKeyValueStoreCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateKeyValueStoreCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Specifies the key value store to update.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, UpdateKeyValueStoreCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, UpdateKeyValueStoreCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // UpdateKeyValueStoreRequest * Name: "STRING_VALUE", // required * Comment: "STRING_VALUE", // required * IfMatch: "STRING_VALUE", // required * }; * const command = new UpdateKeyValueStoreCommand(input); * const response = await client.send(command); * // { // UpdateKeyValueStoreResult * // KeyValueStore: { // KeyValueStore * // Name: "STRING_VALUE", // required * // Id: "STRING_VALUE", // required * // Comment: "STRING_VALUE", // required * // ARN: "STRING_VALUE", // required * // Status: "STRING_VALUE", * // LastModifiedTime: new Date("TIMESTAMP"), // required * // }, * // ETag: "STRING_VALUE", * // }; * * ``` * * @param UpdateKeyValueStoreCommandInput - {@link UpdateKeyValueStoreCommandInput} * @returns {@link UpdateKeyValueStoreCommandOutput} * @see {@link UpdateKeyValueStoreCommandInput} for command's `input` shape. * @see {@link UpdateKeyValueStoreCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The entity was not found.

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

An argument is invalid.

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

The If-Match version is missing or not valid.

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

The precondition in one or more of the request fields evaluated to false.

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

This operation is not supported in this Amazon Web Services Region.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @example To update a KeyValueStore * ```javascript * // Use the following command to update a KeyValueStore. * const input = { * Comment: "my-changed-comment", * IfMatch: "ETVPDKIKX0DER", * Name: "my-keyvaluestore-name" * }; * const command = new UpdateKeyValueStoreCommand(input); * const response = await client.send(command); * /* response is * { * ETag: "E3UN6WX5RRO2AG", * KeyValueStore: { * ARN: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889", * Comment: "my-changed-comment", * Id: "54947df8-0e9e-4471-a2f9-9af509fb5889", * LastModifiedTime: "2023-11-07T18:45:21.069Z", * Name: "my-keyvaluestore-name", * Status: "READY" * } * } * *\/ * ``` * * @public */ export declare class UpdateKeyValueStoreCommand extends UpdateKeyValueStoreCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateKeyValueStoreRequest; output: UpdateKeyValueStoreResult; }; sdk: { input: UpdateKeyValueStoreCommandInput; output: UpdateKeyValueStoreCommandOutput; }; }; }