/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudWatchEvidently.Model { /// /// Container for the parameters to the CreateLaunch operation. /// 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. /// /// /// public partial class CreateLaunchRequest : AmazonCloudWatchEvidentlyRequest { private string _description; private List _groups = new List(); private List _metricMonitors = new List(); private string _name; private string _project; private string _randomizationSalt; private ScheduledSplitsLaunchConfig _scheduledSplitsConfig; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property Description. /// /// An optional description for the launch. /// /// [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property Groups. /// /// An array of structures that contains the feature and variations that are to be used /// for the launch. /// /// [AWSProperty(Required=true, Min=1, Max=5)] public List Groups { get { return this._groups; } set { this._groups = value; } } // Check to see if Groups property is set internal bool IsSetGroups() { return this._groups != null && this._groups.Count > 0; } /// /// Gets and sets the property MetricMonitors. /// /// An array of structures that define the metrics that will be used to monitor the launch /// performance. /// /// [AWSProperty(Min=0, Max=3)] public List MetricMonitors { get { return this._metricMonitors; } set { this._metricMonitors = value; } } // Check to see if MetricMonitors property is set internal bool IsSetMetricMonitors() { return this._metricMonitors != null && this._metricMonitors.Count > 0; } /// /// Gets and sets the property Name. /// /// The name for the new launch. /// /// [AWSProperty(Required=true, Min=1, Max=127)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Project. /// /// The name or ARN of the project that you want to create the launch in. /// /// [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } /// /// Gets and sets the property RandomizationSalt. /// /// When Evidently assigns a particular user session to a launch, it must use a randomization /// ID to determine which variation the user session is served. This randomization ID /// is a combination of the entity ID and randomizationSalt. If you omit /// randomizationSalt, Evidently uses the launch name as the randomizationSalt. /// /// [AWSProperty(Min=0, Max=127)] public string RandomizationSalt { get { return this._randomizationSalt; } set { this._randomizationSalt = value; } } // Check to see if RandomizationSalt property is set internal bool IsSetRandomizationSalt() { return this._randomizationSalt != null; } /// /// Gets and sets the property ScheduledSplitsConfig. /// /// An array of structures that define the traffic allocation percentages among the feature /// variations during each step of the launch. /// /// public ScheduledSplitsLaunchConfig ScheduledSplitsConfig { get { return this._scheduledSplitsConfig; } set { this._scheduledSplitsConfig = value; } } // Check to see if ScheduledSplitsConfig property is set internal bool IsSetScheduledSplitsConfig() { return this._scheduledSplitsConfig != null; } /// /// Gets and sets the property Tags. /// /// Assigns one or more tags (key-value pairs) to the launch. /// /// /// /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// /// /// /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// /// /// /// You can associate as many as 50 tags with a launch. /// /// /// /// For more information, see Tagging /// Amazon Web Services resources. /// /// public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }