import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EvidentlyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EvidentlyClient"; import type { CreateFeatureRequest, CreateFeatureResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateFeatureCommand}. */ export interface CreateFeatureCommandInput extends CreateFeatureRequest { } /** * @public * * The output of {@link CreateFeatureCommand}. */ export interface CreateFeatureCommandOutput extends CreateFeatureResponse, __MetadataBearer { } declare const CreateFeatureCommand_base: { new (input: CreateFeatureCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateFeatureCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Creates an Evidently feature that you want to launch or test. You can define up to five variations of a feature, and use these variations in your launches and experiments. A feature must be created in a project. For information about creating a project, see CreateProject.

Don't use this operation to update an existing feature. Instead, use UpdateFeature.

* * @deprecated AWS CloudWatch Evidently has been deprecated since 11/17/2025. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EvidentlyClient, CreateFeatureCommand } from "@aws-sdk/client-evidently"; // ES Modules import * // const { EvidentlyClient, CreateFeatureCommand } = require("@aws-sdk/client-evidently"); // CommonJS import * // import type { EvidentlyClientConfig } from "@aws-sdk/client-evidently"; * const config = {}; // type is EvidentlyClientConfig * const client = new EvidentlyClient(config); * const input = { // CreateFeatureRequest * project: "STRING_VALUE", // required * name: "STRING_VALUE", // required * evaluationStrategy: "STRING_VALUE", * description: "STRING_VALUE", * variations: [ // VariationConfigsList // required * { // VariationConfig * name: "STRING_VALUE", // required * value: { // VariableValue Union: only one key present * boolValue: true || false, * stringValue: "STRING_VALUE", * longValue: Number("long"), * doubleValue: Number("double"), * }, * }, * ], * defaultVariation: "STRING_VALUE", * tags: { // TagMap * "": "STRING_VALUE", * }, * entityOverrides: { // EntityOverrideMap * "": "STRING_VALUE", * }, * }; * const command = new CreateFeatureCommand(input); * const response = await client.send(command); * // { // CreateFeatureResponse * // feature: { // Feature * // arn: "STRING_VALUE", // required * // name: "STRING_VALUE", // required * // project: "STRING_VALUE", * // status: "STRING_VALUE", // required * // createdTime: new Date("TIMESTAMP"), // required * // lastUpdatedTime: new Date("TIMESTAMP"), // required * // description: "STRING_VALUE", * // evaluationStrategy: "STRING_VALUE", // required * // valueType: "STRING_VALUE", // required * // variations: [ // VariationsList // required * // { // Variation * // name: "STRING_VALUE", * // value: { // VariableValue Union: only one key present * // boolValue: true || false, * // stringValue: "STRING_VALUE", * // longValue: Number("long"), * // doubleValue: Number("double"), * // }, * // }, * // ], * // defaultVariation: "STRING_VALUE", * // evaluationRules: [ // EvaluationRulesList * // { // EvaluationRule * // name: "STRING_VALUE", * // type: "STRING_VALUE", // required * // }, * // ], * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // entityOverrides: { // EntityOverrideMap * // "": "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param CreateFeatureCommandInput - {@link CreateFeatureCommandInput} * @returns {@link CreateFeatureCommandOutput} * @see {@link CreateFeatureCommandInput} for command's `input` shape. * @see {@link CreateFeatureCommandOutput} for command's `response` shape. * @see {@link EvidentlyClientResolvedConfig | config} for EvidentlyClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient permissions to perform this action.

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

A resource was in an inconsistent state during an update or a deletion.

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

The request references a resource that does not exist.

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

The request would cause a service quota to be exceeded.

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

The value of a parameter in the request caused an error.

* * @throws {@link EvidentlyServiceException} *

Base exception class for all service exceptions from Evidently service.

* * * @public */ export declare class CreateFeatureCommand extends CreateFeatureCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateFeatureRequest; output: CreateFeatureResponse; }; sdk: { input: CreateFeatureCommandInput; output: CreateFeatureCommandOutput; }; }; }