Class: AWSCDK::Sagemaker::CfnInferenceComponent::InferenceComponentRuntimeConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnInferenceComponent::InferenceComponentRuntimeConfigProperty
- Defined in:
- sagemaker/cfn_inference_component.rb
Overview
Runtime settings for a model that is deployed with an inference component.
Instance Attribute Summary collapse
-
#copy_count ⇒ Numeric?
readonly
The number of runtime copies of the model container to deploy with the inference component.
-
#current_copy_count ⇒ Numeric?
readonly
The number of runtime copies of the model container that are currently deployed.
-
#desired_copy_count ⇒ Numeric?
readonly
The number of runtime copies of the model container that you requested to deploy with the inference component.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(copy_count: nil, current_copy_count: nil, desired_copy_count: nil) ⇒ InferenceComponentRuntimeConfigProperty
constructor
A new instance of InferenceComponentRuntimeConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(copy_count: nil, current_copy_count: nil, desired_copy_count: nil) ⇒ InferenceComponentRuntimeConfigProperty
Returns a new instance of InferenceComponentRuntimeConfigProperty.
1083 1084 1085 1086 1087 1088 1089 1090 |
# File 'sagemaker/cfn_inference_component.rb', line 1083 def initialize(copy_count: nil, current_copy_count: nil, desired_copy_count: nil) @copy_count = copy_count Jsii::Type.check_type(@copy_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "copyCount") unless @copy_count.nil? @current_copy_count = current_copy_count Jsii::Type.check_type(@current_copy_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "currentCopyCount") unless @current_copy_count.nil? @desired_copy_count = desired_copy_count Jsii::Type.check_type(@desired_copy_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "desiredCopyCount") unless @desired_copy_count.nil? end |
Instance Attribute Details
#copy_count ⇒ Numeric? (readonly)
The number of runtime copies of the model container to deploy with the inference component.
Each copy can serve inference requests.
1098 1099 1100 |
# File 'sagemaker/cfn_inference_component.rb', line 1098 def copy_count @copy_count end |
#current_copy_count ⇒ Numeric? (readonly)
The number of runtime copies of the model container that are currently deployed.
1103 1104 1105 |
# File 'sagemaker/cfn_inference_component.rb', line 1103 def current_copy_count @current_copy_count end |
#desired_copy_count ⇒ Numeric? (readonly)
The number of runtime copies of the model container that you requested to deploy with the inference component.
1108 1109 1110 |
# File 'sagemaker/cfn_inference_component.rb', line 1108 def desired_copy_count @desired_copy_count end |
Class Method Details
.jsii_properties ⇒ Object
1110 1111 1112 1113 1114 1115 1116 |
# File 'sagemaker/cfn_inference_component.rb', line 1110 def self.jsii_properties { :copy_count => "copyCount", :current_copy_count => "currentCopyCount", :desired_copy_count => "desiredCopyCount", } end |
Instance Method Details
#to_jsii ⇒ Object
1118 1119 1120 1121 1122 1123 1124 1125 1126 |
# File 'sagemaker/cfn_inference_component.rb', line 1118 def to_jsii result = {} result.merge!({ "copyCount" => @copy_count, "currentCopyCount" => @current_copy_count, "desiredCopyCount" => @desired_copy_count, }) result.compact end |