Class: AWSCDK::Sagemaker::CfnInferenceComponent::InferenceComponentRuntimeConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_inference_component.rb

Overview

Runtime settings for a model that is deployed with an inference component.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(copy_count: nil, current_copy_count: nil, desired_copy_count: nil) ⇒ InferenceComponentRuntimeConfigProperty

Returns a new instance of InferenceComponentRuntimeConfigProperty.

Parameters:

  • copy_count (Numeric, nil) (defaults to: nil)

    The number of runtime copies of the model container to deploy with the inference component.

  • current_copy_count (Numeric, nil) (defaults to: nil)

    The number of runtime copies of the model container that are currently deployed.

  • desired_copy_count (Numeric, nil) (defaults to: nil)

    The number of runtime copies of the model container that you requested to deploy with the inference component.



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_countNumeric? (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_countNumeric? (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_countNumeric? (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_propertiesObject



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_jsiiObject



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