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
Idawscc.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.

For more information, see AWS::SageMaker::MonitoringSchedule.

Methods

NameResourceAccessible byRequired Params
create_resourcemonitoring_schedulesINSERTMonitoringScheduleConfig, MonitoringScheduleName, region
delete_resourcemonitoring_schedulesDELETEIdentifier, region
update_resourcemonitoring_schedulesUPDATEIdentifier, PatchDocument, region
list_resourcesmonitoring_schedules_list_onlySELECTregion
get_resourcemonitoring_schedulesSELECTIdentifier, region

SELECT examples

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 awscc.sagemaker.monitoring_schedules
WHERE
region = 'us-east-1' AND
Identifier = '{{ monitoring_schedule_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.sagemaker.monitoring_schedules
SET PatchDocument = string('{{ {
"MonitoringScheduleConfig": monitoring_schedule_config,
"Tags": tags,
"EndpointName": endpoint_name,
"FailureReason": failure_reason,
"LastMonitoringExecutionSummary": last_monitoring_execution_summary,
"MonitoringScheduleStatus": monitoring_schedule_status
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ monitoring_schedule_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.monitoring_schedules
WHERE
Identifier = '{{ monitoring_schedule_arn }}' AND
region = 'us-east-1';

Permissions

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

sagemaker:CreateMonitoringSchedule,
sagemaker:DescribeMonitoringSchedule,
iam:PassRole