Class: AWSCDK::Sagemaker::CfnModelPackage::ModelCardProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::ModelCardProperty
- Defined in:
- sagemaker/cfn_model_package.rb
Overview
An Amazon SageMaker Model Card.
Instance Attribute Summary collapse
-
#model_card_content ⇒ String
readonly
The content of the model card.
-
#model_card_status ⇒ String
readonly
The approval status of the model card within your organization.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(model_card_content:, model_card_status:) ⇒ ModelCardProperty
constructor
A new instance of ModelCardProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(model_card_content:, model_card_status:) ⇒ ModelCardProperty
Returns a new instance of ModelCardProperty.
1653 1654 1655 1656 1657 1658 |
# File 'sagemaker/cfn_model_package.rb', line 1653 def initialize(model_card_content:, model_card_status:) @model_card_content = model_card_content Jsii::Type.check_type(@model_card_content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelCardContent") @model_card_status = model_card_status Jsii::Type.check_type(@model_card_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelCardStatus") end |
Instance Attribute Details
#model_card_content ⇒ String (readonly)
The content of the model card.
1664 1665 1666 |
# File 'sagemaker/cfn_model_package.rb', line 1664 def model_card_content @model_card_content end |
#model_card_status ⇒ String (readonly)
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.
1676 1677 1678 |
# File 'sagemaker/cfn_model_package.rb', line 1676 def model_card_status @model_card_status end |
Class Method Details
.jsii_properties ⇒ Object
1678 1679 1680 1681 1682 1683 |
# File 'sagemaker/cfn_model_package.rb', line 1678 def self.jsii_properties { :model_card_content => "modelCardContent", :model_card_status => "modelCardStatus", } end |
Instance Method Details
#to_jsii ⇒ Object
1685 1686 1687 1688 1689 1690 1691 1692 |
# File 'sagemaker/cfn_model_package.rb', line 1685 def to_jsii result = {} result.merge!({ "modelCardContent" => @model_card_content, "modelCardStatus" => @model_card_status, }) result.compact end |