/* * 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 CreateDataset operation. /// Creates a new Amazon Rekognition Custom Labels dataset. You can create a dataset by /// using an Amazon Sagemaker format manifest file or by copying an existing Amazon Rekognition /// Custom Labels dataset. /// /// /// /// To create a training dataset for a project, specify train for the value /// of DatasetType. To create the test dataset for a project, specify test /// for the value of DatasetType. /// /// /// /// The response from CreateDataset is the Amazon Resource Name (ARN) for /// the dataset. Creating a dataset takes a while to complete. Use DescribeDataset /// to check the current status. The dataset created successfully if the value of Status /// is CREATE_COMPLETE. /// /// /// /// To check if any non-terminal errors occurred, call ListDatasetEntries and check /// for the presence of errors lists in the JSON Lines. /// /// /// /// Dataset creation fails if a terminal error occurs (Status = CREATE_FAILED). /// Currently, you can't access the terminal error information. /// /// /// /// For more information, see Creating dataset in the Amazon Rekognition Custom Labels /// Developer Guide. /// /// /// /// This operation requires permissions to perform the rekognition:CreateDataset /// action. If you want to copy an existing dataset, you also require permission to perform /// the rekognition:ListDatasetEntries action. /// /// public partial class CreateDatasetRequest : AmazonRekognitionRequest { private DatasetSource _datasetSource; private DatasetType _datasetType; private string _projectArn; /// /// Gets and sets the property DatasetSource. /// /// The source files for the dataset. You can specify the ARN of an existing dataset /// or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. /// If you don't specify datasetSource, an empty dataset is created. To add /// labeled images to the dataset, You can use the console or call UpdateDatasetEntries. /// /// /// public DatasetSource DatasetSource { get { return this._datasetSource; } set { this._datasetSource = value; } } // Check to see if DatasetSource property is set internal bool IsSetDatasetSource() { return this._datasetSource != null; } /// /// Gets and sets the property DatasetType. /// /// The type of the dataset. Specify train to create a training dataset. /// Specify test to create a test dataset. /// /// [AWSProperty(Required=true)] public DatasetType DatasetType { get { return this._datasetType; } set { this._datasetType = value; } } // Check to see if DatasetType property is set internal bool IsSetDatasetType() { return this._datasetType != null; } /// /// Gets and sets the property ProjectArn. /// /// The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign /// the dataset. /// /// [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; } } }