import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient"; import { CreateKeyValueStoreRequest, CreateKeyValueStoreResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateKeyValueStoreCommand}. */ export interface CreateKeyValueStoreCommandInput extends CreateKeyValueStoreRequest { } /** * @public * * The output of {@link CreateKeyValueStoreCommand}. */ export interface CreateKeyValueStoreCommandOutput extends CreateKeyValueStoreResult, __MetadataBearer { } declare const CreateKeyValueStoreCommand_base: { new (input: CreateKeyValueStoreCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateKeyValueStoreCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Specifies the key value store resource to add to your account. In your account, the key value store names must be unique. You can also import key value store data in JSON format from an S3 bucket by providing a valid ImportSource that you own.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, CreateKeyValueStoreCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, CreateKeyValueStoreCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // CreateKeyValueStoreRequest * Name: "STRING_VALUE", // required * Comment: "STRING_VALUE", * ImportSource: { // ImportSource * SourceType: "S3", // required * SourceARN: "STRING_VALUE", // required * }, * }; * const command = new CreateKeyValueStoreCommand(input); * const response = await client.send(command); * // { // CreateKeyValueStoreResult * // 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", * // Location: "STRING_VALUE", * // }; * * ``` * * @param CreateKeyValueStoreCommandInput - {@link CreateKeyValueStoreCommandInput} * @returns {@link CreateKeyValueStoreCommandOutput} * @see {@link CreateKeyValueStoreCommandInput} for command's `input` shape. * @see {@link CreateKeyValueStoreCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The entity already exists. You must provide a unique entity.

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

The entity limit has been exceeded.

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

The entity size limit was exceeded.

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

An argument is invalid.

* * @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 create a KeyValueStore * ```javascript * // Use the following command to create a KeyValueStore. * const input = { * Comment: "my-key-valuestore-comment", * ImportSource: { * SourceARN: "arn:aws:s3:::amzn-s3-demo-bucket/validJSON.json", * SourceType: "S3" * }, * Name: "my-keyvaluestore-name" * }; * const command = new CreateKeyValueStoreCommand(input); * const response = await client.send(command); * /* response is * { * ETag: "ETVPDKIKX0DER", * KeyValueStore: { * ARN: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889", * Comment: "my-key-valuestore-comment", * Id: "54947df8-0e9e-4471-a2f9-9af509fb5889", * LastModifiedTime: "2023-11-07T18:15:52.042Z", * Name: "my-keyvaluestore-name", * Status: "PROVISIONING" * }, * Location: "https://cloudfront.amazonaws.com/2020-05-31/key-value-store/arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889" * } * *\/ * ``` * * @public */ export declare class CreateKeyValueStoreCommand extends CreateKeyValueStoreCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateKeyValueStoreRequest; output: CreateKeyValueStoreResult; }; sdk: { input: CreateKeyValueStoreCommandInput; output: CreateKeyValueStoreCommandOutput; }; }; }