Class: AWSCDK::Sagemaker::CfnMonitoringSchedule::BaselineConfigProperty

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

Overview

Baseline configuration used to validate that the data conforms to the specified constraints and statistics.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(constraints_resource: nil, statistics_resource: nil) ⇒ BaselineConfigProperty

Returns a new instance of BaselineConfigProperty.

Parameters:



614
615
616
617
618
619
# File 'sagemaker/cfn_monitoring_schedule.rb', line 614

def initialize(constraints_resource: nil, statistics_resource: nil)
  @constraints_resource = constraints_resource.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::ConstraintsResourceProperty.new(**constraints_resource.transform_keys(&:to_sym)) : constraints_resource
  Jsii::Type.check_type(@constraints_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLkNvbnN0cmFpbnRzUmVzb3VyY2VQcm9wZXJ0eSJ9XX19")), "constraintsResource") unless @constraints_resource.nil?
  @statistics_resource = statistics_resource.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::StatisticsResourceProperty.new(**statistics_resource.transform_keys(&:to_sym)) : statistics_resource
  Jsii::Type.check_type(@statistics_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLlN0YXRpc3RpY3NSZXNvdXJjZVByb3BlcnR5In1dfX0=")), "statisticsResource") unless @statistics_resource.nil?
end

Instance Attribute Details

#constraints_resourceAWSCDK::IResolvable, ... (readonly)

The Amazon S3 URI for the constraints resource.



625
626
627
# File 'sagemaker/cfn_monitoring_schedule.rb', line 625

def constraints_resource
  @constraints_resource
end

#statistics_resourceAWSCDK::IResolvable, ... (readonly)

The baseline statistics file in Amazon S3 that the current monitoring job should be validated against.



630
631
632
# File 'sagemaker/cfn_monitoring_schedule.rb', line 630

def statistics_resource
  @statistics_resource
end

Class Method Details

.jsii_propertiesObject



632
633
634
635
636
637
# File 'sagemaker/cfn_monitoring_schedule.rb', line 632

def self.jsii_properties
  {
    :constraints_resource => "constraintsResource",
    :statistics_resource => "statisticsResource",
  }
end

Instance Method Details

#to_jsiiObject



639
640
641
642
643
644
645
646
# File 'sagemaker/cfn_monitoring_schedule.rb', line 639

def to_jsii
  result = {}
  result.merge!({
    "constraintsResource" => @constraints_resource,
    "statisticsResource" => @statistics_resource,
  })
  result.compact
end