Skip to main content

monitoring_schedules

Creates, updates, deletes or gets a monitoring_schedule resource or lists monitoring_schedules in a region

Overview

Namemonitoring_schedules
TypeResource
DescriptionResource Type definition for AWS::SageMaker::MonitoringSchedule
Idaws.sagemaker.monitoring_schedules

Fields

NameDatatypeDescription
monitoring_schedule_arnstringThe Amazon Resource Name (ARN) of the monitoring schedule.
monitoring_schedule_namestringThe name of the monitoring schedule.
monitoring_schedule_configobjectThe configuration object that specifies the monitoring schedule and defines the monitoring job.
tagsarrayAn array of key-value pairs to apply to this resource.
creation_timestringThe time at which the schedule was created.
endpoint_namestringThe name of the endpoint used to run the monitoring job.
failure_reasonstringContains the reason a monitoring job failed, if it failed.
last_modified_timestringA timestamp that indicates the last time the monitoring job was modified.
last_monitoring_execution_summaryobjectDescribes metadata on the last execution to run, if there was one.
monitoring_schedule_statusstringThe status of a schedule job.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTMonitoringScheduleConfig, MonitoringScheduleName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all monitoring_schedules in a region.

SELECT
region,
monitoring_schedule_arn,
monitoring_schedule_name,
monitoring_schedule_config,
tags,
creation_time,
endpoint_name,
failure_reason,
last_modified_time,
last_monitoring_execution_summary,
monitoring_schedule_status
FROM aws.sagemaker.monitoring_schedules
WHERE region = 'us-east-1';

Gets all properties from an individual monitoring_schedule.

SELECT
region,
monitoring_schedule_arn,
monitoring_schedule_name,
monitoring_schedule_config,
tags,
creation_time,
endpoint_name,
failure_reason,
last_modified_time,
last_monitoring_execution_summary,
monitoring_schedule_status
FROM aws.sagemaker.monitoring_schedules
WHERE region = 'us-east-1' AND data__Identifier = '<MonitoringScheduleArn>';

INSERT example

Use the following StackQL query and manifest file to create a new monitoring_schedule resource, using stack-deploy.

/*+ create */
INSERT INTO aws.sagemaker.monitoring_schedules (
MonitoringScheduleName,
MonitoringScheduleConfig,
region
)
SELECT
'{{ MonitoringScheduleName }}',
'{{ MonitoringScheduleConfig }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.sagemaker.monitoring_schedules
WHERE data__Identifier = '<MonitoringScheduleArn>'
AND region = 'us-east-1';

Permissions

To operate on the monitoring_schedules resource, the following permissions are required:

Create

sagemaker:CreateMonitoringSchedule,
sagemaker:DescribeMonitoringSchedule,
iam:PassRole

Delete

sagemaker:DeleteMonitoringSchedule,
sagemaker:DescribeMonitoringSchedule

List

sagemaker:ListMonitoringSchedule

Read

sagemaker:DescribeMonitoringSchedule

Update

sagemaker:UpdateMonitoringSchedule,
sagemaker:DescribeMonitoringSchedule