Class: AWSCDK::Sagemaker::CfnInferenceExperiment::ModelVariantConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnInferenceExperiment::ModelVariantConfigProperty
- Defined in:
- sagemaker/cfn_inference_experiment.rb
Overview
Contains information about the deployment options of a model.
Instance Attribute Summary collapse
-
#infrastructure_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnInferenceExperiment::ModelInfrastructureConfigProperty
readonly
The configuration for the infrastructure that the model will be deployed to.
-
#model_name ⇒ String
readonly
The name of the Amazon SageMaker Model entity.
-
#variant_name ⇒ String
readonly
The name of the variant.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(infrastructure_config:, model_name:, variant_name:) ⇒ ModelVariantConfigProperty
constructor
A new instance of ModelVariantConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(infrastructure_config:, model_name:, variant_name:) ⇒ ModelVariantConfigProperty
Returns a new instance of ModelVariantConfigProperty.
1018 1019 1020 1021 1022 1023 1024 1025 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1018 def initialize(infrastructure_config:, model_name:, variant_name:) @infrastructure_config = infrastructure_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnInferenceExperiment::ModelInfrastructureConfigProperty.new(**infrastructure_config.transform_keys(&:to_sym)) : infrastructure_config Jsii::Type.check_type(@infrastructure_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuSW5mZXJlbmNlRXhwZXJpbWVudC5Nb2RlbEluZnJhc3RydWN0dXJlQ29uZmlnUHJvcGVydHkifV19fQ==")), "infrastructureConfig") @model_name = model_name Jsii::Type.check_type(@model_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelName") @variant_name = variant_name Jsii::Type.check_type(@variant_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variantName") end |
Instance Attribute Details
#infrastructure_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnInferenceExperiment::ModelInfrastructureConfigProperty (readonly)
The configuration for the infrastructure that the model will be deployed to.
1031 1032 1033 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1031 def infrastructure_config @infrastructure_config end |
#model_name ⇒ String (readonly)
The name of the Amazon SageMaker Model entity.
1036 1037 1038 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1036 def model_name @model_name end |
#variant_name ⇒ String (readonly)
The name of the variant.
1041 1042 1043 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1041 def variant_name @variant_name end |
Class Method Details
.jsii_properties ⇒ Object
1043 1044 1045 1046 1047 1048 1049 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1043 def self.jsii_properties { :infrastructure_config => "infrastructureConfig", :model_name => "modelName", :variant_name => "variantName", } end |
Instance Method Details
#to_jsii ⇒ Object
1051 1052 1053 1054 1055 1056 1057 1058 1059 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1051 def to_jsii result = {} result.merge!({ "infrastructureConfig" => @infrastructure_config, "modelName" => @model_name, "variantName" => @variant_name, }) result.compact end |