Resource: aws_sagemaker_monitoring_schedule

Provides a SageMaker monitoring schedule resource.

Example Usage

Basic usage:

resource "aws_sagemaker_monitoring_schedule" "test" {
  name = "my-monitoring-schedule"

  monitoring_schedule_config {
    monitoring_job_definition_name = aws_sagemaker_data_quality_job_definition.test.name
    monitoring_type                = "DataQuality"
  }
}

Argument Reference

This resource supports the following arguments:

monitoring_schedule_config

schedule_config

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import monitoring schedules using the name. For example:

import {
  to = aws_sagemaker_monitoring_schedule.test_monitoring_schedule
  id = "monitoring-schedule-foo"
}

Using terraform import, import monitoring schedules using the name. For example:

% terraform import aws_sagemaker_monitoring_schedule.test_monitoring_schedule monitoring-schedule-foo