Skip to content

update_monitoring_schedule async

update_monitoring_schedule(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    monitoring_schedule_name: Optional[MonitoringScheduleName] = None,
    monitoring_schedule_config: Optional[MonitoringScheduleConfig] = None,
) -> UpdateMonitoringScheduleResponse

Updates a previously created schedule.

Parameters:

  • monitoring_schedule_name (Optional[MonitoringScheduleName], default: None ) –

    The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an Amazon Web Services account.

  • monitoring_schedule_config (Optional[MonitoringScheduleConfig], default: None ) –

    The configuration object that specifies the monitoring schedule and defines the monitoring job.

Raises:

Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
async def update_monitoring_schedule(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    monitoring_schedule_name: Optional[
        "capo_sagemaker.types.monitoring_schedule_name.MonitoringScheduleName"
    ] = None,
    monitoring_schedule_config: Optional[
        "capo_sagemaker.types.monitoring_schedule_config.MonitoringScheduleConfig"
    ] = None,
) -> "capo_sagemaker.types.update_monitoring_schedule_response.UpdateMonitoringScheduleResponse":
    """<p>Updates a previously created schedule.</p>

    Args:
        monitoring_schedule_name: <p>The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an Amazon Web Services account.</p>
        monitoring_schedule_config: <p>The configuration object that specifies the monitoring schedule and defines the monitoring job.</p>

    Raises:
        capo_sagemaker.errors.resource_limit_exceeded.ResourceLimitExceeded: <p> You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created. </p>
        capo_sagemaker.errors.resource_not_found.ResourceNotFound: <p>Resource being access is not found.</p>
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_sagemaker.types.update_monitoring_schedule_request.UpdateMonitoringScheduleRequest]",
    ) -> AsyncOperationResponse[
        "capo_sagemaker.types.update_monitoring_schedule_response.UpdateMonitoringScheduleResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.update_monitoring_schedule

        (
            output,
            http_response,
        ) = await capo_sagemaker._operations.sage_maker.update_monitoring_schedule.async_update_monitoring_schedule(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateMonitoringSchedule")
    )
    input_: capo_sagemaker.types.update_monitoring_schedule_request.UpdateMonitoringScheduleRequest = {}
    if monitoring_schedule_name is not None:
        input_["monitoring_schedule_name"] = monitoring_schedule_name
    if monitoring_schedule_config is not None:
        input_["monitoring_schedule_config"] = monitoring_schedule_config

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output