Class: AWSCDK::Sagemaker::CfnModelQualityJobDefinition::ModelQualityJobInputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelQualityJobDefinition::ModelQualityJobInputProperty
- Defined in:
- sagemaker/cfn_model_quality_job_definition.rb
Overview
The input for the model quality monitoring job.
Currently endpoints are supported for input for model quality monitoring jobs.
Instance Attribute Summary collapse
-
#batch_transform_input ⇒ AWSCDK::IResolvable, ...
readonly
Input object for the batch transform job.
-
#endpoint_input ⇒ AWSCDK::IResolvable, ...
readonly
Input object for the endpoint.
-
#ground_truth_s3_input ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelQualityJobDefinition::MonitoringGroundTruthS3InputProperty
readonly
The ground truth label provided for the model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ground_truth_s3_input:, batch_transform_input: nil, endpoint_input: nil) ⇒ ModelQualityJobInputProperty
constructor
A new instance of ModelQualityJobInputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ground_truth_s3_input:, batch_transform_input: nil, endpoint_input: nil) ⇒ ModelQualityJobInputProperty
Returns a new instance of ModelQualityJobInputProperty.
1274 1275 1276 1277 1278 1279 1280 1281 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1274 def initialize(ground_truth_s3_input:, batch_transform_input: nil, endpoint_input: nil) @ground_truth_s3_input = ground_truth_s3_input.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelQualityJobDefinition::MonitoringGroundTruthS3InputProperty.new(**ground_truth_s3_input.transform_keys(&:to_sym)) : ground_truth_s3_input Jsii::Type.check_type(@ground_truth_s3_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxRdWFsaXR5Sm9iRGVmaW5pdGlvbi5Nb25pdG9yaW5nR3JvdW5kVHJ1dGhTM0lucHV0UHJvcGVydHkifV19fQ==")), "groundTruthS3Input") @batch_transform_input = batch_transform_input.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelQualityJobDefinition::BatchTransformInputProperty.new(**batch_transform_input.transform_keys(&:to_sym)) : batch_transform_input Jsii::Type.check_type(@batch_transform_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxRdWFsaXR5Sm9iRGVmaW5pdGlvbi5CYXRjaFRyYW5zZm9ybUlucHV0UHJvcGVydHkifV19fQ==")), "batchTransformInput") unless @batch_transform_input.nil? @endpoint_input = endpoint_input.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelQualityJobDefinition::EndpointInputProperty.new(**endpoint_input.transform_keys(&:to_sym)) : endpoint_input Jsii::Type.check_type(@endpoint_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxRdWFsaXR5Sm9iRGVmaW5pdGlvbi5FbmRwb2ludElucHV0UHJvcGVydHkifV19fQ==")), "endpointInput") unless @endpoint_input.nil? end |
Instance Attribute Details
#batch_transform_input ⇒ AWSCDK::IResolvable, ... (readonly)
Input object for the batch transform job.
1292 1293 1294 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1292 def batch_transform_input @batch_transform_input end |
#endpoint_input ⇒ AWSCDK::IResolvable, ... (readonly)
Input object for the endpoint.
1297 1298 1299 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1297 def endpoint_input @endpoint_input end |
#ground_truth_s3_input ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelQualityJobDefinition::MonitoringGroundTruthS3InputProperty (readonly)
The ground truth label provided for the model.
1287 1288 1289 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1287 def ground_truth_s3_input @ground_truth_s3_input end |
Class Method Details
.jsii_properties ⇒ Object
1299 1300 1301 1302 1303 1304 1305 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1299 def self.jsii_properties { :ground_truth_s3_input => "groundTruthS3Input", :batch_transform_input => "batchTransformInput", :endpoint_input => "endpointInput", } end |
Instance Method Details
#to_jsii ⇒ Object
1307 1308 1309 1310 1311 1312 1313 1314 1315 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 1307 def to_jsii result = {} result.merge!({ "groundTruthS3Input" => @ground_truth_s3_input, "batchTransformInput" => @batch_transform_input, "endpointInput" => @endpoint_input, }) result.compact end |