Class: AWSCDK::Sagemaker::CfnModelCard::InferenceEnvironmentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelCard::InferenceEnvironmentProperty
- Defined in:
- sagemaker/cfn_model_card.rb
Overview
An overview of a model's inference environment.
Instance Attribute Summary collapse
-
#container_image ⇒ Array<String>?
readonly
The container used to run the inference environment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_image: nil) ⇒ InferenceEnvironmentProperty
constructor
A new instance of InferenceEnvironmentProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_image: nil) ⇒ InferenceEnvironmentProperty
Returns a new instance of InferenceEnvironmentProperty.
1112 1113 1114 1115 |
# File 'sagemaker/cfn_model_card.rb', line 1112 def initialize(container_image: nil) @container_image = container_image Jsii::Type.check_type(@container_image, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "containerImage") unless @container_image.nil? end |
Instance Attribute Details
#container_image ⇒ Array<String>? (readonly)
The container used to run the inference environment.
1121 1122 1123 |
# File 'sagemaker/cfn_model_card.rb', line 1121 def container_image @container_image end |
Class Method Details
.jsii_properties ⇒ Object
1123 1124 1125 1126 1127 |
# File 'sagemaker/cfn_model_card.rb', line 1123 def self.jsii_properties { :container_image => "containerImage", } end |
Instance Method Details
#to_jsii ⇒ Object
1129 1130 1131 1132 1133 1134 1135 |
# File 'sagemaker/cfn_model_card.rb', line 1129 def to_jsii result = {} result.merge!({ "containerImage" => @container_image, }) result.compact end |