/* * 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 { /// /// Describes the Docker container for the model package. /// public partial class ModelPackageContainerDefinition { private string _containerHostname; private Dictionary _environment = new Dictionary(); private string _framework; private string _frameworkVersion; private string _image; private string _imageDigest; private string _modelDataUrl; private ModelInput _modelInput; private string _nearestModelName; private string _productId; /// /// Gets and sets the property ContainerHostname. /// /// The DNS host name for the Docker container. /// /// [AWSProperty(Max=63)] public string ContainerHostname { get { return this._containerHostname; } set { this._containerHostname = value; } } // Check to see if ContainerHostname property is set internal bool IsSetContainerHostname() { return this._containerHostname != null; } /// /// Gets and sets the property Environment. /// /// The environment variables to set in the Docker container. Each key and value in the /// Environment string to string map can have length of up to 1024. We support /// up to 16 entries in the map. /// /// [AWSProperty(Max=16)] public Dictionary Environment { get { return this._environment; } set { this._environment = value; } } // Check to see if Environment property is set internal bool IsSetEnvironment() { return this._environment != null && this._environment.Count > 0; } /// /// Gets and sets the property Framework. /// /// The machine learning framework of the model package container image. /// /// public string Framework { get { return this._framework; } set { this._framework = value; } } // Check to see if Framework property is set internal bool IsSetFramework() { return this._framework != null; } /// /// Gets and sets the property FrameworkVersion. /// /// The framework version of the Model Package Container Image. /// /// [AWSProperty(Min=3, Max=10)] public string FrameworkVersion { get { return this._frameworkVersion; } set { this._frameworkVersion = value; } } // Check to see if FrameworkVersion property is set internal bool IsSetFrameworkVersion() { return this._frameworkVersion != null; } /// /// Gets and sets the property Image. /// /// The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. /// /// /// /// If you are using your own custom algorithm instead of an algorithm provided by SageMaker, /// the inference code must meet SageMaker requirements. SageMaker supports both registry/repository[:tag] /// and registry/repository[@digest] image path formats. For more information, /// see Using /// Your Own Algorithms with Amazon SageMaker. /// /// [AWSProperty(Required=true, Max=255)] public string Image { get { return this._image; } set { this._image = value; } } // Check to see if Image property is set internal bool IsSetImage() { return this._image != null; } /// /// Gets and sets the property ImageDigest. /// /// An MD5 hash of the training algorithm that identifies the Docker image used for training. /// /// [AWSProperty(Max=72)] public string ImageDigest { get { return this._imageDigest; } set { this._imageDigest = value; } } // Check to see if ImageDigest property is set internal bool IsSetImageDigest() { return this._imageDigest != null; } /// /// Gets and sets the property ModelDataUrl. /// /// The Amazon S3 path where the model artifacts, which result from model training, are /// stored. This path must point to a single gzip compressed tar archive /// (.tar.gz suffix). /// /// /// /// The model artifacts must be in an S3 bucket that is in the same region as the model /// package. /// /// /// [AWSProperty(Max=1024)] public string ModelDataUrl { get { return this._modelDataUrl; } set { this._modelDataUrl = value; } } // Check to see if ModelDataUrl property is set internal bool IsSetModelDataUrl() { return this._modelDataUrl != null; } /// /// Gets and sets the property ModelInput. /// /// A structure with Model Input details. /// /// public ModelInput ModelInput { get { return this._modelInput; } set { this._modelInput = value; } } // Check to see if ModelInput property is set internal bool IsSetModelInput() { return this._modelInput != null; } /// /// Gets and sets the property NearestModelName. /// /// The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference /// Recommender model that matches your model. You can find a list of benchmarked models /// by calling ListModelMetadata. /// /// public string NearestModelName { get { return this._nearestModelName; } set { this._nearestModelName = value; } } // Check to see if NearestModelName property is set internal bool IsSetNearestModelName() { return this._nearestModelName != null; } /// /// Gets and sets the property ProductId. /// /// The Amazon Web Services Marketplace product ID of the model package. /// /// [AWSProperty(Max=256)] public string ProductId { get { return this._productId; } set { this._productId = value; } } // Check to see if ProductId property is set internal bool IsSetProductId() { return this._productId != null; } } }