Class: AWSCDK::Sagemaker::CfnInferenceExperiment::ModelInfrastructureConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnInferenceExperiment::ModelInfrastructureConfigProperty
- Defined in:
- sagemaker/cfn_inference_experiment.rb
Overview
The configuration for the infrastructure that the model will be deployed to.
Instance Attribute Summary collapse
-
#infrastructure_type ⇒ String
readonly
The inference option to which to deploy your model.
-
#real_time_inference_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnInferenceExperiment::RealTimeInferenceConfigProperty
readonly
The infrastructure configuration for deploying the model to real-time inference.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(infrastructure_type:, real_time_inference_config:) ⇒ ModelInfrastructureConfigProperty
constructor
A new instance of ModelInfrastructureConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(infrastructure_type:, real_time_inference_config:) ⇒ ModelInfrastructureConfigProperty
Returns a new instance of ModelInfrastructureConfigProperty.
972 973 974 975 976 977 |
# File 'sagemaker/cfn_inference_experiment.rb', line 972 def initialize(infrastructure_type:, real_time_inference_config:) @infrastructure_type = infrastructure_type Jsii::Type.check_type(@infrastructure_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "infrastructureType") @real_time_inference_config = real_time_inference_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnInferenceExperiment::RealTimeInferenceConfigProperty.new(**real_time_inference_config.transform_keys(&:to_sym)) : real_time_inference_config Jsii::Type.check_type(@real_time_inference_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuSW5mZXJlbmNlRXhwZXJpbWVudC5SZWFsVGltZUluZmVyZW5jZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "realTimeInferenceConfig") end |
Instance Attribute Details
#infrastructure_type ⇒ String (readonly)
The inference option to which to deploy your model. Possible values are the following:.
RealTime: Deploy to real-time inference.
985 986 987 |
# File 'sagemaker/cfn_inference_experiment.rb', line 985 def infrastructure_type @infrastructure_type end |
#real_time_inference_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnInferenceExperiment::RealTimeInferenceConfigProperty (readonly)
The infrastructure configuration for deploying the model to real-time inference.
990 991 992 |
# File 'sagemaker/cfn_inference_experiment.rb', line 990 def real_time_inference_config @real_time_inference_config end |
Class Method Details
.jsii_properties ⇒ Object
992 993 994 995 996 997 |
# File 'sagemaker/cfn_inference_experiment.rb', line 992 def self.jsii_properties { :infrastructure_type => "infrastructureType", :real_time_inference_config => "realTimeInferenceConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
999 1000 1001 1002 1003 1004 1005 1006 |
# File 'sagemaker/cfn_inference_experiment.rb', line 999 def to_jsii result = {} result.merge!({ "infrastructureType" => @infrastructure_type, "realTimeInferenceConfig" => @real_time_inference_config, }) result.compact end |