/* * 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 rekognition-2016-06-27.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.Rekognition.Model { /// /// Container for the parameters to the CreateProjectVersion operation. /// Creates a new version of a model and begins training. Models are managed as part of /// an Amazon Rekognition Custom Labels project. The response from CreateProjectVersion /// is an Amazon Resource Name (ARN) for the version of the model. /// /// /// /// Training uses the training and test datasets associated with the project. For more /// information, see Creating training and test dataset in the Amazon Rekognition Custom /// Labels Developer Guide. /// /// /// /// You can train a model in a project that doesn't have associated datasets by specifying /// manifest files in the TrainingData and TestingData fields. /// /// /// /// /// If you open the console after training a model with manifest files, Amazon Rekognition /// Custom Labels creates the datasets for you using the most recent manifest files. You /// can no longer train a model version for the project by specifying manifest files. /// /// /// /// /// Instead of training with a project without associated datasets, we recommend that /// you use the manifest files to create training and test datasets for the project. /// /// /// /// Training takes a while to complete. You can get the current status by calling DescribeProjectVersions. /// Training completed successfully if the value of the Status field is TRAINING_COMPLETED. /// /// /// /// If training fails, see Debugging a failed model training in the Amazon Rekognition /// Custom Labels developer guide. /// /// /// /// Once training has successfully completed, call DescribeProjectVersions to get /// the training results and evaluate the model. For more information, see Improving a /// trained Amazon Rekognition Custom Labels model in the Amazon Rekognition Custom /// Labels developers guide. /// /// /// /// After evaluating the model, you start the model by calling StartProjectVersion. /// /// /// /// This operation requires permissions to perform the rekognition:CreateProjectVersion /// action. /// /// public partial class CreateProjectVersionRequest : AmazonRekognitionRequest { private string _kmsKeyId; private OutputConfig _outputConfig; private string _projectArn; private Dictionary _tags = new Dictionary(); private TestingData _testingData; private TrainingData _trainingData; private string _versionName; /// /// Gets and sets the property KmsKeyId. /// /// The identifier for your AWS Key Management Service key (AWS KMS key). You can supply /// the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for /// your KMS key, or an alias ARN. The key is used to encrypt training and test images /// copied into the service for model training. Your source images are unaffected. The /// key is also used to encrypt training results and manifest files written to the output /// Amazon S3 bucket (OutputConfig). /// /// /// /// If you choose to use your own KMS key, you need the following permissions on the KMS /// key. /// ///
  • /// /// kms:CreateGrant /// ///
  • /// /// kms:DescribeKey /// ///
  • /// /// kms:GenerateDataKey /// ///
  • /// /// kms:Decrypt /// ///
/// /// If you don't specify a value for KmsKeyId, images copied into the service /// are encrypted using a key that AWS owns and manages. /// ///
[AWSProperty(Min=1, Max=2048)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property OutputConfig. /// /// The Amazon S3 bucket location to store the results of training. The S3 bucket can /// be in any AWS account as long as the caller has s3:PutObject permissions /// on the S3 bucket. /// /// [AWSProperty(Required=true)] public OutputConfig OutputConfig { get { return this._outputConfig; } set { this._outputConfig = value; } } // Check to see if OutputConfig property is set internal bool IsSetOutputConfig() { return this._outputConfig != null; } /// /// Gets and sets the property ProjectArn. /// /// The ARN of the Amazon Rekognition Custom Labels project that manages the model that /// you want to train. /// /// [AWSProperty(Required=true, Min=20, Max=2048)] public string ProjectArn { get { return this._projectArn; } set { this._projectArn = value; } } // Check to see if ProjectArn property is set internal bool IsSetProjectArn() { return this._projectArn != null; } /// /// Gets and sets the property Tags. /// /// A set of tags (key-value pairs) that you want to attach to the model. /// /// [AWSProperty(Min=0, Max=200)] 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; } /// /// Gets and sets the property TestingData. /// /// Specifies an external manifest that the service uses to test the model. If you specify /// TestingData you must also specify TrainingData. The project /// must not have any associated datasets. /// /// public TestingData TestingData { get { return this._testingData; } set { this._testingData = value; } } // Check to see if TestingData property is set internal bool IsSetTestingData() { return this._testingData != null; } /// /// Gets and sets the property TrainingData. /// /// Specifies an external manifest that the services uses to train the model. If you specify /// TrainingData you must also specify TestingData. The project /// must not have any associated datasets. /// /// public TrainingData TrainingData { get { return this._trainingData; } set { this._trainingData = value; } } // Check to see if TrainingData property is set internal bool IsSetTrainingData() { return this._trainingData != null; } /// /// Gets and sets the property VersionName. /// /// A name for the version of the model. This value must be unique. /// /// [AWSProperty(Required=true, Min=1, Max=255)] public string VersionName { get { return this._versionName; } set { this._versionName = value; } } // Check to see if VersionName property is set internal bool IsSetVersionName() { return this._versionName != null; } } }