Class: AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringJobDefinitionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringJobDefinitionProperty
- Defined in:
- sagemaker/cfn_monitoring_schedule.rb
Overview
Defines the monitoring job.
Instance Attribute Summary collapse
-
#baseline_config ⇒ AWSCDK::IResolvable, ...
readonly
Baseline configuration used to validate that the data conforms to the specified constraints and statistics.
-
#environment ⇒ AWSCDK::IResolvable, ...
readonly
Sets the environment variables in the Docker container.
-
#monitoring_app_specification ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringAppSpecificationProperty
readonly
Configures the monitoring job to run a specified Docker container image.
-
#monitoring_inputs ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringInputProperty>
readonly
The array of inputs for the monitoring job.
-
#monitoring_output_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringOutputConfigProperty
readonly
The array of outputs from the monitoring job to be uploaded to Amazon S3.
-
#monitoring_resources ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringResourcesProperty
readonly
Identifies the resources, ML compute instances, and ML storage volumes to deploy for a monitoring job.
-
#network_config ⇒ AWSCDK::IResolvable, ...
readonly
Specifies networking options for an monitoring job.
-
#role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker AI can assume to perform tasks on your behalf.
-
#stopping_condition ⇒ AWSCDK::IResolvable, ...
readonly
Specifies a time limit for how long the monitoring job is allowed to run.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(monitoring_app_specification:, monitoring_inputs:, monitoring_output_config:, monitoring_resources:, role_arn:, baseline_config: nil, environment: nil, network_config: nil, stopping_condition: nil) ⇒ MonitoringJobDefinitionProperty
constructor
A new instance of MonitoringJobDefinitionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(monitoring_app_specification:, monitoring_inputs:, monitoring_output_config:, monitoring_resources:, role_arn:, baseline_config: nil, environment: nil, network_config: nil, stopping_condition: nil) ⇒ MonitoringJobDefinitionProperty
Returns a new instance of MonitoringJobDefinitionProperty.
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1270 def initialize(monitoring_app_specification:, monitoring_inputs:, monitoring_output_config:, monitoring_resources:, role_arn:, baseline_config: nil, environment: nil, network_config: nil, stopping_condition: nil) @monitoring_app_specification = monitoring_app_specification.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringAppSpecificationProperty.new(**monitoring_app_specification.transform_keys(&:to_sym)) : monitoring_app_specification Jsii::Type.check_type(@monitoring_app_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLk1vbml0b3JpbmdBcHBTcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "monitoringAppSpecification") @monitoring_inputs = monitoring_inputs Jsii::Type.check_type(@monitoring_inputs, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbk1vbml0b3JpbmdTY2hlZHVsZS5Nb25pdG9yaW5nSW5wdXRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "monitoringInputs") @monitoring_output_config = monitoring_output_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringOutputConfigProperty.new(**monitoring_output_config.transform_keys(&:to_sym)) : monitoring_output_config Jsii::Type.check_type(@monitoring_output_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLk1vbml0b3JpbmdPdXRwdXRDb25maWdQcm9wZXJ0eSJ9XX19")), "monitoringOutputConfig") @monitoring_resources = monitoring_resources.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringResourcesProperty.new(**monitoring_resources.transform_keys(&:to_sym)) : monitoring_resources Jsii::Type.check_type(@monitoring_resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLk1vbml0b3JpbmdSZXNvdXJjZXNQcm9wZXJ0eSJ9XX19")), "monitoringResources") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @baseline_config = baseline_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::BaselineConfigProperty.new(**baseline_config.transform_keys(&:to_sym)) : baseline_config Jsii::Type.check_type(@baseline_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLkJhc2VsaW5lQ29uZmlnUHJvcGVydHkifV19fQ==")), "baselineConfig") unless @baseline_config.nil? @environment = environment Jsii::Type.check_type(@environment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "environment") unless @environment.nil? @network_config = network_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::NetworkConfigProperty.new(**network_config.transform_keys(&:to_sym)) : network_config Jsii::Type.check_type(@network_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLk5ldHdvcmtDb25maWdQcm9wZXJ0eSJ9XX19")), "networkConfig") unless @network_config.nil? @stopping_condition = stopping_condition.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnMonitoringSchedule::StoppingConditionProperty.new(**stopping_condition.transform_keys(&:to_sym)) : stopping_condition Jsii::Type.check_type(@stopping_condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9uaXRvcmluZ1NjaGVkdWxlLlN0b3BwaW5nQ29uZGl0aW9uUHJvcGVydHkifV19fQ==")), "stoppingCondition") unless @stopping_condition.nil? end |
Instance Attribute Details
#baseline_config ⇒ AWSCDK::IResolvable, ... (readonly)
Baseline configuration used to validate that the data conforms to the specified constraints and statistics.
1324 1325 1326 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1324 def baseline_config @baseline_config end |
#environment ⇒ AWSCDK::IResolvable, ... (readonly)
Sets the environment variables in the Docker container.
1329 1330 1331 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1329 def environment @environment end |
#monitoring_app_specification ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringAppSpecificationProperty (readonly)
Configures the monitoring job to run a specified Docker container image.
1295 1296 1297 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1295 def monitoring_app_specification @monitoring_app_specification end |
#monitoring_inputs ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringInputProperty> (readonly)
The array of inputs for the monitoring job.
Currently we support monitoring an Amazon SageMaker AI Endpoint.
1302 1303 1304 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1302 def monitoring_inputs @monitoring_inputs end |
#monitoring_output_config ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringOutputConfigProperty (readonly)
The array of outputs from the monitoring job to be uploaded to Amazon S3.
1307 1308 1309 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1307 def monitoring_output_config @monitoring_output_config end |
#monitoring_resources ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnMonitoringSchedule::MonitoringResourcesProperty (readonly)
Identifies the resources, ML compute instances, and ML storage volumes to deploy for a monitoring job.
In distributed processing, you specify more than one instance.
1314 1315 1316 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1314 def monitoring_resources @monitoring_resources end |
#network_config ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies networking options for an monitoring job.
1334 1335 1336 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1334 def network_config @network_config end |
#role_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker AI can assume to perform tasks on your behalf.
1319 1320 1321 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1319 def role_arn @role_arn end |
#stopping_condition ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies a time limit for how long the monitoring job is allowed to run.
1339 1340 1341 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1339 def stopping_condition @stopping_condition end |
Class Method Details
.jsii_properties ⇒ Object
1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1341 def self.jsii_properties { :monitoring_app_specification => "monitoringAppSpecification", :monitoring_inputs => "monitoringInputs", :monitoring_output_config => "monitoringOutputConfig", :monitoring_resources => "monitoringResources", :role_arn => "roleArn", :baseline_config => "baselineConfig", :environment => "environment", :network_config => "networkConfig", :stopping_condition => "stoppingCondition", } end |
Instance Method Details
#to_jsii ⇒ Object
1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 1355 def to_jsii result = {} result.merge!({ "monitoringAppSpecification" => @monitoring_app_specification, "monitoringInputs" => @monitoring_inputs, "monitoringOutputConfig" => @monitoring_output_config, "monitoringResources" => @monitoring_resources, "roleArn" => @role_arn, "baselineConfig" => @baseline_config, "environment" => @environment, "networkConfig" => @network_config, "stoppingCondition" => @stopping_condition, }) result.compact end |