{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-update-monitoring-schedule-request-schema.json",
  "title": "UpdateMonitoringScheduleRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-monitoring-schedule-api-openapi.yml#/components/schemas/UpdateMonitoringScheduleRequest",
  "type": "object",
  "properties": {
    "MonitoringScheduleName": {
      "type": "string",
      "description": "The name of the monitoring schedule. The name must be unique within an Amazon Web Services Region within an Amazon Web Services account."
    },
    "MonitoringScheduleConfig": {
      "$ref": "#/$defs/MonitoringScheduleConfig"
    }
  },
  "required": [
    "MonitoringScheduleName",
    "MonitoringScheduleConfig"
  ],
  "$defs": {
    "BatchTransformInput": {
      "type": "object",
      "properties": {
        "DataCapturedDestinationS3Uri": {
          "type": "string",
          "description": "The Amazon S3 location being used to capture the data."
        },
        "DatasetFormat": {
          "$ref": "#/$defs/MonitoringDatasetFormat"
        },
        "LocalPath": {
          "type": "string",
          "description": "Path to the filesystem where the batch transform data is available to the container."
        },
        "S3InputMode": {
          "type": "string",
          "enum": [
            "Pipe",
            "File"
          ],
          "description": "Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File."
        },
        "S3DataDistributionType": {
          "type": "string",
          "enum": [
            "FullyReplicated",
            "ShardedByS3Key"
          ],
          "description": "Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key. Defaults to FullyReplicated"
        },
        "FeaturesAttribute": {
          "type": "string",
          "description": "The attributes of the input data that are the input features."
        },
        "InferenceAttribute": {
          "type": "string",
          "description": "The attribute of the input data that represents the ground truth label."
        },
        "ProbabilityAttribute": {
          "type": "string",
          "description": "In a classification problem, the attribute that represents the class probability."
        },
        "ProbabilityThresholdAttribute": {
          "type": "number",
          "description": "The threshold for the class probability to be evaluated as a positive result."
        },
        "StartTimeOffset": {
          "type": "string",
          "description": "If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs."
        },
        "EndTimeOffset": {
          "type": "string",
          "description": "If specified, monitoring jobs subtract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs."
        },
        "ExcludeFeaturesAttribute": {
          "type": "string",
          "description": "The attributes of the input data to exclude from the analysis."
        }
      },
      "required": [
        "DataCapturedDestinationS3Uri",
        "DatasetFormat",
        "LocalPath"
      ]
    },
    "EndpointInput": {
      "type": "object",
      "properties": {
        "EndpointName": {
          "type": "string",
          "description": "An endpoint in customer's account which has enabled DataCaptureConfig enabled."
        },
        "LocalPath": {
          "type": "string",
          "description": "Path to the filesystem where the endpoint data is available to the container."
        },
        "S3InputMode": {
          "type": "string",
          "enum": [
            "Pipe",
            "File"
          ],
          "description": "Whether the Pipe or File is used as the input mode for transferring data for the monitoring job. Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File."
        },
        "S3DataDistributionType": {
          "type": "string",
          "enum": [
            "FullyReplicated",
            "ShardedByS3Key"
          ],
          "description": "Whether input data distributed in Amazon S3 is fully replicated or sharded by an Amazon S3 key. Defaults to FullyReplicated"
        },
        "FeaturesAttribute": {
          "type": "string",
          "description": "The attributes of the input data that are the input features."
        },
        "InferenceAttribute": {
          "type": "string",
          "description": "The attribute of the input data that represents the ground truth label."
        },
        "ProbabilityAttribute": {
          "type": "string",
          "description": "In a classification problem, the attribute that represents the class probability."
        },
        "ProbabilityThresholdAttribute": {
          "type": "number",
          "description": "The threshold for the class probability to be evaluated as a positive result."
        },
        "StartTimeOffset": {
          "type": "string",
          "description": "If specified, monitoring jobs substract this time from the start time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs."
        },
        "EndTimeOffset": {
          "type": "string",
          "description": "If specified, monitoring jobs substract this time from the end time. For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs."
        },
        "ExcludeFeaturesAttribute": {
          "type": "string",
          "description": "The attributes of the input data to exclude from the analysis."
        }
      },
      "required": [
        "EndpointName",
        "LocalPath"
      ]
    },
    "MonitoringAppSpecification": {
      "type": "object",
      "properties": {
        "ImageUri": {
          "type": "string",
          "description": "The container image to be run by the monitoring job."
        },
        "ContainerEntrypoint": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifies the entrypoint for a container used to run the monitoring job."
        },
        "ContainerArguments": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of arguments for the container used to run the monitoring job."
        },
        "RecordPreprocessorSourceUri": {
          "type": "string",
          "description": "An Amazon S3 URI to a script that is called per row prior to running analysis. It can base64 decode the payload and convert it into a flattened JSON so that the built-in container can use the converted data. Applicable only for the built-in (first party) containers."
        },
        "PostAnalyticsProcessorSourceUri": {
          "type": "string",
          "description": "An Amazon S3 URI to a script that is called after analysis has been performed. Applicable only for the built-in (first party) containers."
        }
      },
      "required": [
        "ImageUri"
      ]
    },
    "MonitoringBaselineConfig": {
      "type": "object",
      "properties": {
        "BaseliningJobName": {
          "type": "string",
          "description": "The name of the job that performs baselining for the monitoring job."
        },
        "ConstraintsResource": {
          "$ref": "#/$defs/MonitoringConstraintsResource"
        },
        "StatisticsResource": {
          "$ref": "#/$defs/MonitoringStatisticsResource"
        }
      }
    },
    "MonitoringClusterConfig": {
      "type": "object",
      "properties": {
        "InstanceCount": {
          "type": "integer",
          "description": "The number of ML compute instances to use in the model monitoring job. For distributed processing jobs, specify a value greater than 1. The default value is 1."
        },
        "InstanceType": {
          "type": "string",
          "enum": [
            "ml.t3.medium",
            "ml.t3.large",
            "ml.t3.xlarge",
            "ml.t3.2xlarge",
            "ml.m4.xlarge",
            "ml.m4.2xlarge",
            "ml.m4.4xlarge",
            "ml.m4.10xlarge",
            "ml.m4.16xlarge",
            "ml.c4.xlarge",
            "ml.c4.2xlarge",
            "ml.c4.4xlarge",
            "ml.c4.8xlarge",
            "ml.p2.xlarge",
            "ml.p2.8xlarge",
            "ml.p2.16xlarge",
            "ml.p3.2xlarge",
            "ml.p3.8xlarge",
            "ml.p3.16xlarge",
            "ml.c5.xlarge",
            "ml.c5.2xlarge",
            "ml.c5.4xlarge",
            "ml.c5.9xlarge",
            "ml.c5.18xlarge",
            "ml.m5.large",
            "ml.m5.xlarge",
            "ml.m5.2xlarge",
            "ml.m5.4xlarge",
            "ml.m5.12xlarge",
            "ml.m5.24xlarge",
            "ml.r5.large",
            "ml.r5.xlarge",
            "ml.r5.2xlarge",
            "ml.r5.4xlarge",
            "ml.r5.8xlarge",
            "ml.r5.12xlarge",
            "ml.r5.16xlarge",
            "ml.r5.24xlarge",
            "ml.g4dn.xlarge",
            "ml.g4dn.2xlarge",
            "ml.g4dn.4xlarge",
            "ml.g4dn.8xlarge",
            "ml.g4dn.12xlarge",
            "ml.g4dn.16xlarge",
            "ml.g5.xlarge",
            "ml.g5.2xlarge",
            "ml.g5.4xlarge",
            "ml.g5.8xlarge",
            "ml.g5.16xlarge",
            "ml.g5.12xlarge",
            "ml.g5.24xlarge",
            "ml.g5.48xlarge",
            "ml.r5d.large",
            "ml.r5d.xlarge",
            "ml.r5d.2xlarge",
            "ml.r5d.4xlarge",
            "ml.r5d.8xlarge",
            "ml.r5d.12xlarge",
            "ml.r5d.16xlarge",
            "ml.r5d.24xlarge",
            "ml.g6.xlarge",
            "ml.g6.2xlarge",
            "ml.g6.4xlarge",
            "ml.g6.8xlarge",
            "ml.g6.12xlarge",
            "ml.g6.16xlarge",
            "ml.g6.24xlarge",
            "ml.g6.48xlarge",
            "ml.g6e.xlarge",
            "ml.g6e.2xlarge",
            "ml.g6e.4xlarge",
            "ml.g6e.8xlarge",
            "ml.g6e.12xlarge",
            "ml.g6e.16xlarge",
            "ml.g6e.24xlarge",
            "ml.g6e.48xlarge",
            "ml.m6i.large",
            "ml.m6i.xlarge",
            "ml.m6i.2xlarge",
            "ml.m6i.4xlarge",
            "ml.m6i.8xlarge",
            "ml.m6i.12xlarge",
            "ml.m6i.16xlarge",
            "ml.m6i.24xlarge",
            "ml.m6i.32xlarge",
            "ml.c6i.xlarge",
            "ml.c6i.2xlarge",
            "ml.c6i.4xlarge",
            "ml.c6i.8xlarge",
            "ml.c6i.12xlarge",
            "ml.c6i.16xlarge",
            "ml.c6i.24xlarge",
            "ml.c6i.32xlarge",
            "ml.m7i.large",
            "ml.m7i.xlarge",
            "ml.m7i.2xlarge",
            "ml.m7i.4xlarge",
            "ml.m7i.8xlarge",
            "ml.m7i.12xlarge",
            "ml.m7i.16xlarge",
            "ml.m7i.24xlarge",
            "ml.m7i.48xlarge",
            "ml.c7i.large",
            "ml.c7i.xlarge",
            "ml.c7i.2xlarge",
            "ml.c7i.4xlarge",
            "ml.c7i.8xlarge",
            "ml.c7i.12xlarge",
            "ml.c7i.16xlarge",
            "ml.c7i.24xlarge",
            "ml.c7i.48xlarge",
            "ml.r7i.large",
            "ml.r7i.xlarge",
            "ml.r7i.2xlarge",
            "ml.r7i.4xlarge",
            "ml.r7i.8xlarge",
            "ml.r7i.12xlarge",
            "ml.r7i.16xlarge",
            "ml.r7i.24xlarge",
            "ml.r7i.48xlarge",
            "ml.p5.4xlarge",
            "ml.g7e.2xlarge",
            "ml.g7e.4xlarge",
            "ml.g7e.8xlarge",
            "ml.g7e.12xlarge",
            "ml.g7e.24xlarge",
            "ml.g7e.48xlarge",
            "ml.g7.2xlarge",
            "ml.g7.4xlarge",
            "ml.g7.8xlarge",
            "ml.g7.12xlarge",
            "ml.g7.24xlarge",
            "ml.g7.48xlarge",
            "ml.r6i.large",
            "ml.r6i.xlarge",
            "ml.r6i.2xlarge",
            "ml.r6i.4xlarge",
            "ml.r6i.8xlarge",
            "ml.r6i.12xlarge",
            "ml.r6i.16xlarge",
            "ml.r6i.24xlarge",
            "ml.r6i.32xlarge",
            "ml.m8i.large",
            "ml.m8i.xlarge",
            "ml.m8i.2xlarge",
            "ml.m8i.4xlarge",
            "ml.m8i.8xlarge",
            "ml.m8i.12xlarge",
            "ml.m8i.16xlarge",
            "ml.m8i.24xlarge",
            "ml.m8i.32xlarge",
            "ml.m8i.48xlarge",
            "ml.m8i.96xlarge",
            "ml.c8i.xlarge",
            "ml.c8i.2xlarge",
            "ml.c8i.4xlarge",
            "ml.c8i.8xlarge",
            "ml.c8i.12xlarge",
            "ml.c8i.16xlarge",
            "ml.c8i.24xlarge",
            "ml.c8i.32xlarge",
            "ml.c8i.48xlarge",
            "ml.c8i.96xlarge",
            "ml.r8i.large",
            "ml.r8i.xlarge",
            "ml.r8i.2xlarge",
            "ml.r8i.4xlarge",
            "ml.r8i.8xlarge",
            "ml.r8i.12xlarge",
            "ml.r8i.16xlarge",
            "ml.r8i.24xlarge",
            "ml.r8i.32xlarge",
            "ml.r8i.48xlarge",
            "ml.r8i.96xlarge",
            "ml.m7i-flex.large",
            "ml.m7i-flex.xlarge",
            "ml.m7i-flex.2xlarge",
            "ml.m7i-flex.4xlarge",
            "ml.m7i-flex.8xlarge",
            "ml.m7i-flex.12xlarge",
            "ml.m7i-flex.16xlarge",
            "ml.c7i-flex.xlarge",
            "ml.c7i-flex.2xlarge",
            "ml.c7i-flex.4xlarge",
            "ml.c7i-flex.8xlarge",
            "ml.c7i-flex.12xlarge",
            "ml.c7i-flex.16xlarge",
            "ml.m8i-flex.large",
            "ml.m8i-flex.xlarge",
            "ml.m8i-flex.2xlarge",
            "ml.m8i-flex.4xlarge",
            "ml.m8i-flex.8xlarge",
            "ml.m8i-flex.12xlarge",
            "ml.m8i-flex.16xlarge",
            "ml.c8i-flex.xlarge",
            "ml.c8i-flex.2xlarge",
            "ml.c8i-flex.4xlarge",
            "ml.c8i-flex.8xlarge",
            "ml.c8i-flex.12xlarge",
            "ml.c8i-flex.16xlarge",
            "ml.r8i-flex.large",
            "ml.r8i-flex.xlarge",
            "ml.r8i-flex.2xlarge",
            "ml.r8i-flex.4xlarge",
            "ml.r8i-flex.8xlarge",
            "ml.r8i-flex.12xlarge",
            "ml.r8i-flex.16xlarge"
          ],
          "description": "The ML compute instance type for the processing job."
        },
        "VolumeSizeInGB": {
          "type": "integer",
          "description": "The size of the ML storage volume, in gigabytes, that you want to provision. You must specify sufficient ML storage for your scenario."
        },
        "VolumeKmsKeyId": {
          "type": "string",
          "description": "The Key Management Service (KMS) key that Amazon SageMaker AI uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job."
        }
      },
      "required": [
        "InstanceCount",
        "InstanceType",
        "VolumeSizeInGB"
      ]
    },
    "MonitoringConstraintsResource": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The Amazon S3 URI for the constraints resource."
        }
      }
    },
    "MonitoringCsvDatasetFormat": {
      "type": "object",
      "properties": {
        "Header": {
          "type": "boolean",
          "description": "Indicates if the CSV data has a header."
        }
      }
    },
    "MonitoringDatasetFormat": {
      "type": "object",
      "properties": {
        "Csv": {
          "$ref": "#/$defs/MonitoringCsvDatasetFormat"
        },
        "Json": {
          "$ref": "#/$defs/MonitoringJsonDatasetFormat"
        },
        "Parquet": {
          "$ref": "#/$defs/MonitoringParquetDatasetFormat"
        }
      }
    },
    "MonitoringInput": {
      "type": "object",
      "properties": {
        "EndpointInput": {
          "$ref": "#/$defs/EndpointInput"
        },
        "BatchTransformInput": {
          "$ref": "#/$defs/BatchTransformInput"
        }
      }
    },
    "MonitoringJobDefinition": {
      "type": "object",
      "properties": {
        "BaselineConfig": {
          "$ref": "#/$defs/MonitoringBaselineConfig"
        },
        "MonitoringInputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MonitoringInput"
          },
          "description": "The array of inputs for the monitoring job. Currently we support monitoring an Amazon SageMaker AI Endpoint."
        },
        "MonitoringOutputConfig": {
          "$ref": "#/$defs/MonitoringOutputConfig"
        },
        "MonitoringResources": {
          "$ref": "#/$defs/MonitoringResources"
        },
        "MonitoringAppSpecification": {
          "$ref": "#/$defs/MonitoringAppSpecification"
        },
        "StoppingCondition": {
          "$ref": "#/$defs/MonitoringStoppingCondition"
        },
        "Environment": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Sets the environment variables in the Docker container."
        },
        "NetworkConfig": {
          "$ref": "#/$defs/NetworkConfig"
        },
        "RoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker AI can assume to perform tasks on your behalf."
        }
      },
      "required": [
        "MonitoringInputs",
        "MonitoringOutputConfig",
        "MonitoringResources",
        "MonitoringAppSpecification",
        "RoleArn"
      ]
    },
    "MonitoringJsonDatasetFormat": {
      "type": "object",
      "properties": {
        "Line": {
          "type": "boolean",
          "description": "Indicates if the file should be read as a JSON object per line."
        }
      }
    },
    "MonitoringOutput": {
      "type": "object",
      "properties": {
        "S3Output": {
          "$ref": "#/$defs/MonitoringS3Output"
        }
      },
      "required": [
        "S3Output"
      ]
    },
    "MonitoringOutputConfig": {
      "type": "object",
      "properties": {
        "MonitoringOutputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MonitoringOutput"
          },
          "description": "Monitoring outputs for monitoring jobs. This is where the output of the periodic monitoring jobs is uploaded."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The Key Management Service (KMS) key that Amazon SageMaker AI uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption."
        }
      },
      "required": [
        "MonitoringOutputs"
      ]
    },
    "MonitoringParquetDatasetFormat": {
      "type": "object",
      "properties": {}
    },
    "MonitoringResources": {
      "type": "object",
      "properties": {
        "ClusterConfig": {
          "$ref": "#/$defs/MonitoringClusterConfig"
        }
      },
      "required": [
        "ClusterConfig"
      ]
    },
    "MonitoringS3Output": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "A URI that identifies the Amazon S3 storage location where Amazon SageMaker AI saves the results of a monitoring job."
        },
        "LocalPath": {
          "type": "string",
          "description": "The local path to the Amazon S3 storage location where Amazon SageMaker AI saves the results of a monitoring job. LocalPath is an absolute path for the output data."
        },
        "S3UploadMode": {
          "type": "string",
          "enum": [
            "Continuous",
            "EndOfJob"
          ],
          "description": "Whether to upload the results of the monitoring job continuously or after the job completes."
        }
      },
      "required": [
        "S3Uri",
        "LocalPath"
      ]
    },
    "MonitoringScheduleConfig": {
      "type": "object",
      "properties": {
        "ScheduleConfig": {
          "$ref": "#/$defs/ScheduleConfig"
        },
        "MonitoringJobDefinition": {
          "$ref": "#/$defs/MonitoringJobDefinition"
        },
        "MonitoringJobDefinitionName": {
          "type": "string",
          "description": "The name of the monitoring job definition to schedule."
        },
        "MonitoringType": {
          "type": "string",
          "enum": [
            "DataQuality",
            "ModelQuality",
            "ModelBias",
            "ModelExplainability"
          ],
          "description": "The type of the monitoring job definition to schedule."
        }
      }
    },
    "MonitoringStatisticsResource": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The Amazon S3 URI for the statistics resource."
        }
      }
    },
    "MonitoringStoppingCondition": {
      "type": "object",
      "properties": {
        "MaxRuntimeInSeconds": {
          "type": "integer",
          "description": "The maximum runtime allowed in seconds. The MaxRuntimeInSeconds cannot exceed the frequency of the job. For data quality and model explainability, this can be up to 3600 seconds for an hourly schedule. For model bias and model quality hourly schedules, this can be up to 1800 seconds."
        }
      },
      "required": [
        "MaxRuntimeInSeconds"
      ]
    },
    "NetworkConfig": {
      "type": "object",
      "properties": {
        "EnableInterContainerTrafficEncryption": {
          "type": "boolean",
          "description": "Whether to encrypt all communications between distributed processing jobs. Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer."
        },
        "EnableNetworkIsolation": {
          "type": "boolean",
          "description": "Whether to allow inbound and outbound network calls to and from the containers used for the processing job."
        },
        "VpcConfig": {
          "$ref": "#/$defs/VpcConfig"
        }
      }
    },
    "ScheduleConfig": {
      "type": "object",
      "properties": {
        "ScheduleExpression": {
          "type": "string",
          "description": "A cron expression that describes details about the monitoring schedule. The supported cron expressions are: If you want to set the job to start every hour, use the following: Hourly: cron(0 * ? * * *) If you want to start the job daily: cron(0 [00-23] ? * * *) If you want to run the job one time, immediately, use the following keyword: NOW For example, the following are valid cron expressions: Daily at noon UTC: cron(0 12 ? * * *) Daily at midnight UTC: cron(0 0 ? * * *) To support running every 6, 12 hours, the following are also supported: cron(0 [00-23]/[01-24] ? * * *) For example, the fol"
        },
        "DataAnalysisStartTime": {
          "type": "string",
          "description": "Sets the start time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression parameter. Specify this offset in ISO 8601 duration format. For example, if you want to monitor the five hours of data in your dataset that precede the start of each monitoring job, you would specify: \"-PT5H\". The start time that you specify must not precede the end time that you specify by more than 24 hours. You specify the end time with the DataAnalysisEndTime parameter. If you set ScheduleExpress"
        },
        "DataAnalysisEndTime": {
          "type": "string",
          "description": "Sets the end time for a monitoring job window. Express this time as an offset to the times that you schedule your monitoring jobs to run. You schedule monitoring jobs with the ScheduleExpression parameter. Specify this offset in ISO 8601 duration format. For example, if you want to end the window one hour before the start of each monitoring job, you would specify: \"-PT1H\". The end time that you specify must not follow the start time that you specify by more than 24 hours. You specify the start time with the DataAnalysisStartTime parameter. If you set ScheduleExpression to NOW, this parameter i"
        }
      },
      "required": [
        "ScheduleExpression"
      ]
    },
    "VpcConfig": {
      "type": "object",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field."
        },
        "Subnets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones."
        }
      },
      "required": [
        "SecurityGroupIds",
        "Subnets"
      ]
    }
  }
}