/*
* 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 CreateModelPackage operation.
/// Creates a model package that you can use to create SageMaker models or list on Amazon
/// Web Services Marketplace, or a versioned model that is part of a model group. Buyers
/// can subscribe to model packages listed on Amazon Web Services Marketplace to create
/// models in SageMaker.
///
///
///
/// To create a model package by specifying a Docker container that contains your inference
/// code and the Amazon S3 location of your model artifacts, provide values for InferenceSpecification
.
/// To create a model from an algorithm resource that you created or subscribed to in
/// Amazon Web Services Marketplace, provide a value for SourceAlgorithmSpecification
.
///
///
///
/// There are two types of model packages:
///
/// -
///
/// Versioned - a model that is part of a model group in the model registry.
///
///
-
///
/// Unversioned - a model package that is not part of a model group.
///
///
///
public partial class CreateModelPackageRequest : AmazonSageMakerRequest
{
private List _additionalInferenceSpecifications = new List();
private bool? _certifyForMarketplace;
private string _clientToken;
private Dictionary _customerMetadataProperties = new Dictionary();
private string _domain;
private DriftCheckBaselines _driftCheckBaselines;
private InferenceSpecification _inferenceSpecification;
private MetadataProperties _metadataProperties;
private ModelApprovalStatus _modelApprovalStatus;
private ModelMetrics _modelMetrics;
private string _modelPackageDescription;
private string _modelPackageGroupName;
private string _modelPackageName;
private string _samplePayloadUrl;
private SourceAlgorithmSpecification _sourceAlgorithmSpecification;
private List _tags = new List();
private string _task;
private ModelPackageValidationSpecification _validationSpecification;
///
/// Gets and sets the property AdditionalInferenceSpecifications.
///
/// An array of additional Inference Specification objects. Each additional Inference
/// Specification specifies artifacts based on this model package that can be used on
/// inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
///
///
///
[AWSProperty(Min=1, Max=15)]
public List AdditionalInferenceSpecifications
{
get { return this._additionalInferenceSpecifications; }
set { this._additionalInferenceSpecifications = value; }
}
// Check to see if AdditionalInferenceSpecifications property is set
internal bool IsSetAdditionalInferenceSpecifications()
{
return this._additionalInferenceSpecifications != null && this._additionalInferenceSpecifications.Count > 0;
}
///
/// Gets and sets the property CertifyForMarketplace.
///
/// Whether to certify the model package for listing on Amazon Web Services Marketplace.
///
///
///
/// This parameter is optional for unversioned models, and does not apply to versioned
/// models.
///
///
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 ClientToken.
///
/// A unique token that guarantees that the call to this API is idempotent.
///
///
[AWSProperty(Min=1, Max=36)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property CustomerMetadataProperties.
///
/// The metadata properties associated with the model package versions.
///
///
[AWSProperty(Min=1, Max=50)]
public Dictionary CustomerMetadataProperties
{
get { return this._customerMetadataProperties; }
set { this._customerMetadataProperties = value; }
}
// Check to see if CustomerMetadataProperties property is set
internal bool IsSetCustomerMetadataProperties()
{
return this._customerMetadataProperties != null && this._customerMetadataProperties.Count > 0;
}
///
/// Gets and sets the property Domain.
///
/// The machine learning domain of your model package and its components. Common machine
/// learning domains include computer vision and natural language processing.
///
///
public string Domain
{
get { return this._domain; }
set { this._domain = value; }
}
// Check to see if Domain property is set
internal bool IsSetDomain()
{
return this._domain != null;
}
///
/// Gets and sets the property DriftCheckBaselines.
///
/// Represents the drift check baselines that can be used when the model monitor is set
/// using the model package. For more information, see the topic on Drift
/// Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker
/// Developer Guide.
///
///
public DriftCheckBaselines DriftCheckBaselines
{
get { return this._driftCheckBaselines; }
set { this._driftCheckBaselines = value; }
}
// Check to see if DriftCheckBaselines property is set
internal bool IsSetDriftCheckBaselines()
{
return this._driftCheckBaselines != null;
}
///
/// Gets and sets the property InferenceSpecification.
///
/// Specifies details about inference jobs that can be run with models based on this model
/// package, including the following:
///
/// -
///
/// The Amazon ECR paths of containers that contain the inference code and model artifacts.
///
///
-
///
/// The instance types that the model package supports for transform jobs and real-time
/// endpoints used for inference.
///
///
-
///
/// The input and output content formats that the model package 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 MetadataProperties.
///
public MetadataProperties MetadataProperties
{
get { return this._metadataProperties; }
set { this._metadataProperties = value; }
}
// Check to see if MetadataProperties property is set
internal bool IsSetMetadataProperties()
{
return this._metadataProperties != null;
}
///
/// Gets and sets the property ModelApprovalStatus.
///
/// Whether the model is approved for deployment.
///
///
///
/// This parameter is optional for versioned models, and does not apply to unversioned
/// models.
///
///
///
/// For versioned models, the value of this parameter must be set to Approved
/// to deploy the model.
///
///
public ModelApprovalStatus ModelApprovalStatus
{
get { return this._modelApprovalStatus; }
set { this._modelApprovalStatus = value; }
}
// Check to see if ModelApprovalStatus property is set
internal bool IsSetModelApprovalStatus()
{
return this._modelApprovalStatus != null;
}
///
/// Gets and sets the property ModelMetrics.
///
/// A structure that contains model metrics reports.
///
///
public ModelMetrics ModelMetrics
{
get { return this._modelMetrics; }
set { this._modelMetrics = value; }
}
// Check to see if ModelMetrics property is set
internal bool IsSetModelMetrics()
{
return this._modelMetrics != null;
}
///
/// Gets and sets the property ModelPackageDescription.
///
/// A description of the model package.
///
///
[AWSProperty(Max=1024)]
public string ModelPackageDescription
{
get { return this._modelPackageDescription; }
set { this._modelPackageDescription = value; }
}
// Check to see if ModelPackageDescription property is set
internal bool IsSetModelPackageDescription()
{
return this._modelPackageDescription != null;
}
///
/// Gets and sets the property ModelPackageGroupName.
///
/// The name or Amazon Resource Name (ARN) of the model package group that this model
/// version belongs to.
///
///
///
/// This parameter is required for versioned models, and does not apply to unversioned
/// models.
///
///
[AWSProperty(Min=1, Max=170)]
public string ModelPackageGroupName
{
get { return this._modelPackageGroupName; }
set { this._modelPackageGroupName = value; }
}
// Check to see if ModelPackageGroupName property is set
internal bool IsSetModelPackageGroupName()
{
return this._modelPackageGroupName != null;
}
///
/// Gets and sets the property ModelPackageName.
///
/// The name of the model package. The name must have 1 to 63 characters. Valid characters
/// are a-z, A-Z, 0-9, and - (hyphen).
///
///
///
/// This parameter is required for unversioned models. It is not applicable to versioned
/// models.
///
///
[AWSProperty(Min=1, Max=63)]
public string ModelPackageName
{
get { return this._modelPackageName; }
set { this._modelPackageName = value; }
}
// Check to see if ModelPackageName property is set
internal bool IsSetModelPackageName()
{
return this._modelPackageName != null;
}
///
/// Gets and sets the property SamplePayloadUrl.
///
/// The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored.
/// This path must point to a single gzip compressed tar archive (.tar.gz suffix). This
/// archive can hold multiple files that are all equally used in the load test. Each file
/// in the archive must satisfy the size constraints of the InvokeEndpoint
/// call.
///
///
[AWSProperty(Max=1024)]
public string SamplePayloadUrl
{
get { return this._samplePayloadUrl; }
set { this._samplePayloadUrl = value; }
}
// Check to see if SamplePayloadUrl property is set
internal bool IsSetSamplePayloadUrl()
{
return this._samplePayloadUrl != null;
}
///
/// Gets and sets the property SourceAlgorithmSpecification.
///
/// Details about the algorithm that was used to create the model package.
///
///
public SourceAlgorithmSpecification SourceAlgorithmSpecification
{
get { return this._sourceAlgorithmSpecification; }
set { this._sourceAlgorithmSpecification = value; }
}
// Check to see if SourceAlgorithmSpecification property is set
internal bool IsSetSourceAlgorithmSpecification()
{
return this._sourceAlgorithmSpecification != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of key value pairs associated with the model. For more information, see Tagging Amazon
/// Web Services resources in the Amazon Web Services General Reference Guide.
///
///
[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 Task.
///
/// The machine learning task your model package accomplishes. Common machine learning
/// tasks include object detection and image classification. The following tasks are supported
/// by Inference Recommender: "IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
/// | "TEXT_GENERATION"
|"IMAGE_SEGMENTATION"
| "FILL_MASK"
/// | "CLASSIFICATION"
| "REGRESSION"
| "OTHER"
.
///
///
///
/// Specify "OTHER" if none of the tasks listed fit your use case.
///
///
public string Task
{
get { return this._task; }
set { this._task = value; }
}
// Check to see if Task property is set
internal bool IsSetTask()
{
return this._task != null;
}
///
/// Gets and sets the property ValidationSpecification.
///
/// Specifies configurations for one or more transform jobs that SageMaker runs to test
/// the model package.
///
///
public ModelPackageValidationSpecification ValidationSpecification
{
get { return this._validationSpecification; }
set { this._validationSpecification = value; }
}
// Check to see if ValidationSpecification property is set
internal bool IsSetValidationSpecification()
{
return this._validationSpecification != null;
}
}
}