/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * Start Experiment. Default is False */ export type RunningStatusObject = { /** * Provide START or STOP action to apply on an experiment */ Status?: string; /** * Provide the analysis Completion time for an experiment */ AnalysisCompleteTime?: string; /** * Reason is a required input for stopping the experiment */ Reason?: string; /** * Provide CANCELLED or COMPLETED desired state when stopping an experiment */ DesiredState?: string; } & { [k: string]: unknown; }; /** * Resource Type definition for AWS::Evidently::Experiment. */ export interface AwsEvidentlyExperiment { Arn?: string; Name: string; Project: string; Description?: string; RunningStatus?: RunningStatusObject; RandomizationSalt?: string; /** * @minItems 2 * @maxItems 5 */ Treatments: | [TreatmentObject, TreatmentObject] | [TreatmentObject, TreatmentObject, TreatmentObject] | [TreatmentObject, TreatmentObject, TreatmentObject, TreatmentObject] | [TreatmentObject, TreatmentObject, TreatmentObject, TreatmentObject, TreatmentObject]; /** * @minItems 1 * @maxItems 3 */ MetricGoals: | [MetricGoalObject] | [MetricGoalObject, MetricGoalObject] | [MetricGoalObject, MetricGoalObject, MetricGoalObject]; SamplingRate?: number; OnlineAbConfig: OnlineAbConfigObject; Segment?: string; RemoveSegment?: boolean; /** * An array of key-value pairs to apply to this resource. */ Tags?: Tag[]; } export interface TreatmentObject { TreatmentName: string; Description?: string; Feature: string; Variation: string; } export interface MetricGoalObject { MetricName: string; /** * The JSON path to reference the entity id in the event. */ EntityIdKey: string; /** * The JSON path to reference the numerical metric value in the event. */ ValueKey: string; /** * Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't. */ EventPattern?: string; UnitLabel?: string; DesiredChange: "INCREASE" | "DECREASE"; } export interface OnlineAbConfigObject { ControlTreatmentName?: string; TreatmentWeights?: TreatmentToWeight[]; } export interface TreatmentToWeight { Treatment: string; SplitWeight: number; } /** * A key-value pair to associate with a resource. */ export interface Tag { /** * The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. */ Key: string; /** * The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. */ Value: string; }