Class: AWSCDK::Sagemaker::CfnInferenceExperiment::ShadowModeConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnInferenceExperiment::ShadowModeConfigProperty
- Defined in:
- sagemaker/cfn_inference_experiment.rb
Overview
The configuration of ShadowMode inference experiment type, which specifies a production variant to take all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests.
For the shadow variant it also specifies the percentage of requests that Amazon SageMaker replicates.
Instance Attribute Summary collapse
-
#shadow_model_variants ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnInferenceExperiment::ShadowModelVariantConfigProperty>
readonly
List of shadow variant configurations.
-
#source_model_variant_name ⇒ String
readonly
The name of the production variant, which takes all the inference requests.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(shadow_model_variants:, source_model_variant_name:) ⇒ ShadowModeConfigProperty
constructor
A new instance of ShadowModeConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(shadow_model_variants:, source_model_variant_name:) ⇒ ShadowModeConfigProperty
Returns a new instance of ShadowModeConfigProperty.
1115 1116 1117 1118 1119 1120 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1115 def initialize(shadow_model_variants:, source_model_variant_name:) @shadow_model_variants = shadow_model_variants Jsii::Type.check_type(@shadow_model_variants, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbkluZmVyZW5jZUV4cGVyaW1lbnQuU2hhZG93TW9kZWxWYXJpYW50Q29uZmlnUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "shadowModelVariants") @source_model_variant_name = source_model_variant_name Jsii::Type.check_type(@source_model_variant_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceModelVariantName") end |
Instance Attribute Details
#shadow_model_variants ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnInferenceExperiment::ShadowModelVariantConfigProperty> (readonly)
List of shadow variant configurations.
1126 1127 1128 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1126 def shadow_model_variants @shadow_model_variants end |
#source_model_variant_name ⇒ String (readonly)
The name of the production variant, which takes all the inference requests.
1131 1132 1133 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1131 def source_model_variant_name @source_model_variant_name end |
Class Method Details
.jsii_properties ⇒ Object
1133 1134 1135 1136 1137 1138 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1133 def self.jsii_properties { :shadow_model_variants => "shadowModelVariants", :source_model_variant_name => "sourceModelVariantName", } end |
Instance Method Details
#to_jsii ⇒ Object
1140 1141 1142 1143 1144 1145 1146 1147 |
# File 'sagemaker/cfn_inference_experiment.rb', line 1140 def to_jsii result = {} result.merge!({ "shadowModelVariants" => @shadow_model_variants, "sourceModelVariantName" => @source_model_variant_name, }) result.compact end |