Class: AWSCDK::Sagemaker::CfnInferenceExperiment::RealTimeInferenceConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnInferenceExperiment::RealTimeInferenceConfigProperty
- Defined in:
- sagemaker/cfn_inference_experiment.rb
Overview
The infrastructure configuration for deploying the model to a real-time inference endpoint.
Instance Attribute Summary collapse
-
#instance_count ⇒ Numeric
readonly
The number of instances of the type specified by
InstanceType. -
#instance_type ⇒ String
readonly
The instance type the model is deployed to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_count:, instance_type:) ⇒ RealTimeInferenceConfigProperty
constructor
A new instance of RealTimeInferenceConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_count:, instance_type:) ⇒ RealTimeInferenceConfigProperty
Returns a new instance of RealTimeInferenceConfigProperty.
1070 1071 1072 1073 1074 1075 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1070 def initialize(instance_count:, instance_type:) @instance_count = instance_count Jsii::Type.check_type(@instance_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "instanceCount") @instance_type = instance_type Jsii::Type.check_type(@instance_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceType") end |
Instance Attribute Details
#instance_count ⇒ Numeric (readonly)
The number of instances of the type specified by InstanceType .
1081 1082 1083 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1081 def instance_count @instance_count end |
#instance_type ⇒ String (readonly)
The instance type the model is deployed to.
1086 1087 1088 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1086 def instance_type @instance_type end |
Class Method Details
.jsii_properties ⇒ Object
1088 1089 1090 1091 1092 1093 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1088 def self.jsii_properties { :instance_count => "instanceCount", :instance_type => "instanceType", } end |
Instance Method Details
#to_jsii ⇒ Object
1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1095 def to_jsii result = {} result.merge!({ "instanceCount" => @instance_count, "instanceType" => @instance_type, }) result.compact end |