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

Creates a launch of a given feature. Before you create a launch, you must create the feature to use for the launch.

You can use a launch to safely validate new features by serving them to a specified percentage of your users while you roll out the feature. You can monitor the performance of the new feature to help you decide when to ramp up traffic to more users. This helps you reduce risk and identify unintended consequences before you fully launch the feature.

Don't use this operation to update an existing launch. Instead, use UpdateLaunch.

* * @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, CreateLaunchCommand } from "@aws-sdk/client-evidently"; // ES Modules import * // const { EvidentlyClient, CreateLaunchCommand } = 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 = { // CreateLaunchRequest * project: "STRING_VALUE", // required * name: "STRING_VALUE", // required * description: "STRING_VALUE", * scheduledSplitsConfig: { // ScheduledSplitsLaunchConfig * steps: [ // ScheduledSplitConfigList // required * { // ScheduledSplitConfig * startTime: new Date("TIMESTAMP"), // required * groupWeights: { // GroupToWeightMap // required * "": Number("long"), * }, * segmentOverrides: [ // SegmentOverridesList * { // SegmentOverride * segment: "STRING_VALUE", // required * evaluationOrder: Number("long"), // required * weights: { // required * "": Number("long"), * }, * }, * ], * }, * ], * }, * metricMonitors: [ // MetricMonitorConfigList * { // MetricMonitorConfig * metricDefinition: { // MetricDefinitionConfig * name: "STRING_VALUE", // required * entityIdKey: "STRING_VALUE", // required * valueKey: "STRING_VALUE", // required * eventPattern: "STRING_VALUE", * unitLabel: "STRING_VALUE", * }, * }, * ], * groups: [ // LaunchGroupConfigList // required * { // LaunchGroupConfig * name: "STRING_VALUE", // required * description: "STRING_VALUE", * feature: "STRING_VALUE", // required * variation: "STRING_VALUE", // required * }, * ], * randomizationSalt: "STRING_VALUE", * tags: { // TagMap * "": "STRING_VALUE", * }, * }; * const command = new CreateLaunchCommand(input); * const response = await client.send(command); * // { // CreateLaunchResponse * // launch: { // Launch * // arn: "STRING_VALUE", // required * // name: "STRING_VALUE", // required * // project: "STRING_VALUE", * // status: "STRING_VALUE", // required * // statusReason: "STRING_VALUE", * // description: "STRING_VALUE", * // createdTime: new Date("TIMESTAMP"), // required * // lastUpdatedTime: new Date("TIMESTAMP"), // required * // execution: { // LaunchExecution * // startedTime: new Date("TIMESTAMP"), * // endedTime: new Date("TIMESTAMP"), * // }, * // groups: [ // LaunchGroupList * // { // LaunchGroup * // name: "STRING_VALUE", // required * // description: "STRING_VALUE", * // featureVariations: { // FeatureToVariationMap // required * // "": "STRING_VALUE", * // }, * // }, * // ], * // metricMonitors: [ // MetricMonitorList * // { // MetricMonitor * // metricDefinition: { // MetricDefinition * // name: "STRING_VALUE", * // entityIdKey: "STRING_VALUE", * // valueKey: "STRING_VALUE", * // eventPattern: "STRING_VALUE", * // unitLabel: "STRING_VALUE", * // }, * // }, * // ], * // randomizationSalt: "STRING_VALUE", * // type: "STRING_VALUE", // required * // scheduledSplitsDefinition: { // ScheduledSplitsLaunchDefinition * // steps: [ // ScheduledStepList * // { // ScheduledSplit * // startTime: new Date("TIMESTAMP"), // required * // groupWeights: { // GroupToWeightMap * // "": Number("long"), * // }, * // segmentOverrides: [ // SegmentOverridesList * // { // SegmentOverride * // segment: "STRING_VALUE", // required * // evaluationOrder: Number("long"), // required * // weights: { // required * // "": Number("long"), * // }, * // }, * // ], * // }, * // ], * // }, * // tags: { // TagMap * // "": "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param CreateLaunchCommandInput - {@link CreateLaunchCommandInput} * @returns {@link CreateLaunchCommandOutput} * @see {@link CreateLaunchCommandInput} for command's `input` shape. * @see {@link CreateLaunchCommandOutput} 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 CreateLaunchCommand extends CreateLaunchCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateLaunchRequest; output: CreateLaunchResponse; }; sdk: { input: CreateLaunchCommandInput; output: CreateLaunchCommandOutput; }; }; }