Class: AWSCDK::Sagemaker::CfnModelCard::ContainerProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelCard::ContainerProperty
- Defined in:
- sagemaker/cfn_model_card.rb
Overview
Instance Attribute Summary collapse
-
#image ⇒ String
readonly
Inference environment path.
-
#model_data_url ⇒ String?
readonly
The Amazon S3 path where the model artifacts, which result from model training, are stored.
-
#nearest_model_name ⇒ String?
readonly
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(image:, model_data_url: nil, nearest_model_name: nil) ⇒ ContainerProperty
constructor
A new instance of ContainerProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(image:, model_data_url: nil, nearest_model_name: nil) ⇒ ContainerProperty
Returns a new instance of ContainerProperty.
817 818 819 820 821 822 823 824 |
# File 'sagemaker/cfn_model_card.rb', line 817 def initialize(image:, model_data_url: nil, nearest_model_name: nil) @image = image Jsii::Type.check_type(@image, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "image") @model_data_url = model_data_url Jsii::Type.check_type(@model_data_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelDataUrl") unless @model_data_url.nil? @nearest_model_name = nearest_model_name Jsii::Type.check_type(@nearest_model_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nearestModelName") unless @nearest_model_name.nil? end |
Instance Attribute Details
#image ⇒ String (readonly)
Inference environment path.
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
832 833 834 |
# File 'sagemaker/cfn_model_card.rb', line 832 def image @image end |
#model_data_url ⇒ String? (readonly)
The Amazon S3 path where the model artifacts, which result from model training, are stored.
837 838 839 |
# File 'sagemaker/cfn_model_card.rb', line 837 def model_data_url @model_data_url end |
#nearest_model_name ⇒ String? (readonly)
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.
842 843 844 |
# File 'sagemaker/cfn_model_card.rb', line 842 def nearest_model_name @nearest_model_name end |
Class Method Details
.jsii_properties ⇒ Object
844 845 846 847 848 849 850 |
# File 'sagemaker/cfn_model_card.rb', line 844 def self.jsii_properties { :image => "image", :model_data_url => "modelDataUrl", :nearest_model_name => "nearestModelName", } end |
Instance Method Details
#to_jsii ⇒ Object
852 853 854 855 856 857 858 859 860 |
# File 'sagemaker/cfn_model_card.rb', line 852 def to_jsii result = {} result.merge!({ "image" => @image, "modelDataUrl" => @model_data_url, "nearestModelName" => @nearest_model_name, }) result.compact end |