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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.monitoring_schedules
WHERE
Identifier = '{{ monitoring_schedule_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

sagemaker:CreateMonitoringSchedule,
sagemaker:DescribeMonitoringSchedule,
iam:PassRole