/* * 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 sagemaker-2017-07-24.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.SageMaker.Model { /// /// Container for the parameters to the CreateAlgorithm operation. /// Create a machine learning algorithm that you can use in SageMaker and list in the /// Amazon Web Services Marketplace. /// public partial class CreateAlgorithmRequest : AmazonSageMakerRequest { private string _algorithmDescription; private string _algorithmName; private bool? _certifyForMarketplace; private InferenceSpecification _inferenceSpecification; private List _tags = new List(); private TrainingSpecification _trainingSpecification; private AlgorithmValidationSpecification _validationSpecification; /// /// Gets and sets the property AlgorithmDescription. /// /// A description of the algorithm. /// /// [AWSProperty(Max=1024)] public string AlgorithmDescription { get { return this._algorithmDescription; } set { this._algorithmDescription = value; } } // Check to see if AlgorithmDescription property is set internal bool IsSetAlgorithmDescription() { return this._algorithmDescription != null; } /// /// Gets and sets the property AlgorithmName. /// /// The name of the algorithm. /// /// [AWSProperty(Required=true, Min=1, Max=63)] public string AlgorithmName { get { return this._algorithmName; } set { this._algorithmName = value; } } // Check to see if AlgorithmName property is set internal bool IsSetAlgorithmName() { return this._algorithmName != null; } /// /// Gets and sets the property CertifyForMarketplace. /// /// Whether to certify the algorithm so that it can be listed in Amazon Web Services Marketplace. /// /// public bool CertifyForMarketplace { get { return this._certifyForMarketplace.GetValueOrDefault(); } set { this._certifyForMarketplace = value; } } // Check to see if CertifyForMarketplace property is set internal bool IsSetCertifyForMarketplace() { return this._certifyForMarketplace.HasValue; } /// /// Gets and sets the property InferenceSpecification. /// /// Specifies details about inference jobs that the algorithm runs, including the following: /// ///
  • /// /// The Amazon ECR paths of containers that contain the inference code and model artifacts. /// ///
  • /// /// The instance types that the algorithm supports for transform jobs and real-time endpoints /// used for inference. /// ///
  • /// /// The input and output content formats that the algorithm supports for inference. /// ///
///
public InferenceSpecification InferenceSpecification { get { return this._inferenceSpecification; } set { this._inferenceSpecification = value; } } // Check to see if InferenceSpecification property is set internal bool IsSetInferenceSpecification() { return this._inferenceSpecification != null; } /// /// Gets and sets the property Tags. /// /// An array of key-value pairs. You can use tags to categorize your Amazon Web Services /// resources in different ways, for example, by purpose, owner, or environment. For more /// information, see Tagging /// Amazon Web Services Resources. /// /// [AWSProperty(Min=0, Max=50)] public List 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; } /// /// Gets and sets the property TrainingSpecification. /// /// Specifies details about training jobs run by this algorithm, including the following: /// ///
  • /// /// The Amazon ECR path of the container and the version digest of the algorithm. /// ///
  • /// /// The hyperparameters that the algorithm supports. /// ///
  • /// /// The instance types that the algorithm supports for training. /// ///
  • /// /// Whether the algorithm supports distributed training. /// ///
  • /// /// The metrics that the algorithm emits to Amazon CloudWatch. /// ///
  • /// /// Which metrics that the algorithm emits can be used as the objective metric for hyperparameter /// tuning jobs. /// ///
  • /// /// The input channels that the algorithm supports for training data. For example, an /// algorithm might support train, validation, and test /// channels. /// ///
///
[AWSProperty(Required=true)] public TrainingSpecification TrainingSpecification { get { return this._trainingSpecification; } set { this._trainingSpecification = value; } } // Check to see if TrainingSpecification property is set internal bool IsSetTrainingSpecification() { return this._trainingSpecification != null; } /// /// Gets and sets the property ValidationSpecification. /// /// Specifies configurations for one or more training jobs and that SageMaker runs to /// test the algorithm's training code and, optionally, one or more batch transform jobs /// that SageMaker runs to test the algorithm's inference code. /// /// public AlgorithmValidationSpecification ValidationSpecification { get { return this._validationSpecification; } set { this._validationSpecification = value; } } // Check to see if ValidationSpecification property is set internal bool IsSetValidationSpecification() { return this._validationSpecification != null; } } }