Class: AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringScheduleConfigProperty

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

Overview

Configures the monitoring schedule and defines the monitoring job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(monitoring_job_definition: nil, monitoring_job_definition_name: nil, monitoring_type: nil, schedule_config: nil) ⇒ MonitoringScheduleConfigProperty

Returns a new instance of MonitoringScheduleConfigProperty.

Parameters:



1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1493

def initialize(monitoring_job_definition: nil, monitoring_job_definition_name: nil, monitoring_type: nil, schedule_config: nil)
  @monitoring_job_definition = monitoring_job_definition.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringJobDefinitionProperty.new(**monitoring_job_definition.transform_keys(&:to_sym)) : monitoring_job_definition
  Jsii::Type.check_type(@monitoring_job_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLk1vbml0b3JpbmdKb2JEZWZpbml0aW9uUHJvcGVydHkifV19fQ==")), "monitoringJobDefinition") unless @monitoring_job_definition.nil?
  @monitoring_job_definition_name = monitoring_job_definition_name
  Jsii::Type.check_type(@monitoring_job_definition_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "monitoringJobDefinitionName") unless @monitoring_job_definition_name.nil?
  @monitoring_type = monitoring_type
  Jsii::Type.check_type(@monitoring_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "monitoringType") unless @monitoring_type.nil?
  @schedule_config = schedule_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::ScheduleConfigProperty.new(**schedule_config.transform_keys(&:to_sym)) : schedule_config
  Jsii::Type.check_type(@schedule_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLlNjaGVkdWxlQ29uZmlnUHJvcGVydHkifV19fQ==")), "scheduleConfig") unless @schedule_config.nil?
end

Instance Attribute Details

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

Defines the monitoring job.



1508
1509
1510
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1508

def monitoring_job_definition
  @monitoring_job_definition
end

#monitoring_job_definition_nameString? (readonly)

The name of the monitoring job definition to schedule.



1513
1514
1515
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1513

def monitoring_job_definition_name
  @monitoring_job_definition_name
end

#monitoring_typeString? (readonly)

The type of the monitoring job definition to schedule.



1518
1519
1520
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1518

def monitoring_type
  @monitoring_type
end

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

Configures the monitoring schedule.



1523
1524
1525
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1523

def schedule_config
  @schedule_config
end

Class Method Details

.jsii_propertiesObject



1525
1526
1527
1528
1529
1530
1531
1532
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1525

def self.jsii_properties
  {
    :monitoring_job_definition => "monitoringJobDefinition",
    :monitoring_job_definition_name => "monitoringJobDefinitionName",
    :monitoring_type => "monitoringType",
    :schedule_config => "scheduleConfig",
  }
end

Instance Method Details

#to_jsiiObject



1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1534

def to_jsii
  result = {}
  result.merge!({
    "monitoringJobDefinition" => @monitoring_job_definition,
    "monitoringJobDefinitionName" => @monitoring_job_definition_name,
    "monitoringType" => @monitoring_type,
    "scheduleConfig" => @schedule_config,
  })
  result.compact
end