Class: AWSCDK::Sagemaker::CfnModelCard::InferenceSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelCard::InferenceSpecificationProperty
- Defined in:
- sagemaker/cfn_model_card.rb
Overview
Defines how to perform inference generation after a training job is run.
Instance Attribute Summary collapse
-
#containers ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelCard::ContainerProperty>
readonly
The Amazon ECR registry path of the Docker image that contains the inference code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(containers:) ⇒ InferenceSpecificationProperty
constructor
A new instance of InferenceSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(containers:) ⇒ InferenceSpecificationProperty
Returns a new instance of InferenceSpecificationProperty.
1145 1146 1147 1148 |
# File 'sagemaker/cfn_model_card.rb', line 1145 def initialize(containers:) @containers = containers Jsii::Type.check_type(@containers, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbk1vZGVsQ2FyZC5Db250YWluZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "containers") end |
Instance Attribute Details
#containers ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelCard::ContainerProperty> (readonly)
The Amazon ECR registry path of the Docker image that contains the inference code.
1154 1155 1156 |
# File 'sagemaker/cfn_model_card.rb', line 1154 def containers @containers end |
Class Method Details
.jsii_properties ⇒ Object
1156 1157 1158 1159 1160 |
# File 'sagemaker/cfn_model_card.rb', line 1156 def self.jsii_properties { :containers => "containers", } end |
Instance Method Details
#to_jsii ⇒ Object
1162 1163 1164 1165 1166 1167 1168 |
# File 'sagemaker/cfn_model_card.rb', line 1162 def to_jsii result = {} result.merge!({ "containers" => @containers, }) result.compact end |