/*
* 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 CreateModelCard operation.
/// Creates an Amazon SageMaker Model Card.
///
///
///
/// For information about how to use model cards, see Amazon
/// SageMaker Model Card.
///
///
public partial class CreateModelCardRequest : AmazonSageMakerRequest
{
private string _content;
private string _modelCardName;
private ModelCardStatus _modelCardStatus;
private ModelCardSecurityConfig _securityConfig;
private List _tags = new List();
///
/// Gets and sets the property Content.
///
/// The content of the model card. Content must be in model
/// card JSON schema and provided as a string.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=0, Max=100000)]
public string Content
{
get { return this._content; }
set { this._content = value; }
}
// Check to see if Content property is set
internal bool IsSetContent()
{
return this._content != null;
}
///
/// Gets and sets the property ModelCardName.
///
/// The unique name of the model card.
///
///
[AWSProperty(Required=true, Min=1, Max=63)]
public string ModelCardName
{
get { return this._modelCardName; }
set { this._modelCardName = value; }
}
// Check to see if ModelCardName property is set
internal bool IsSetModelCardName()
{
return this._modelCardName != null;
}
///
/// Gets and sets the property ModelCardStatus.
///
/// The approval status of the model card within your organization. Different organizations
/// might have different criteria for model card review and approval.
///
/// -
///
///
Draft
: The model card is a work in progress.
///
/// -
///
///
PendingReview
: The model card is pending review.
///
/// -
///
///
Approved
: The model card is approved.
///
/// -
///
///
Archived
: The model card is archived. No more updates should be made
/// to the model card, but it can still be exported.
///
///
///
[AWSProperty(Required=true)]
public ModelCardStatus ModelCardStatus
{
get { return this._modelCardStatus; }
set { this._modelCardStatus = value; }
}
// Check to see if ModelCardStatus property is set
internal bool IsSetModelCardStatus()
{
return this._modelCardStatus != null;
}
///
/// Gets and sets the property SecurityConfig.
///
/// An optional Key Management Service key to encrypt, decrypt, and re-encrypt model card
/// content for regulated workloads with highly sensitive data.
///
///
public ModelCardSecurityConfig SecurityConfig
{
get { return this._securityConfig; }
set { this._securityConfig = value; }
}
// Check to see if SecurityConfig property is set
internal bool IsSetSecurityConfig()
{
return this._securityConfig != null;
}
///
/// Gets and sets the property Tags.
///
/// Key-value pairs used to manage metadata for model cards.
///
///
[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;
}
}
}