{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-update-stream-processor-request-schema.json",
  "title": "UpdateStreamProcessorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-stream-processor-api-openapi.yml#/components/schemas/UpdateStreamProcessorRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "Name of the stream processor that you want to update."
    },
    "SettingsForUpdate": {
      "$ref": "#/$defs/StreamProcessorSettingsForUpdate"
    },
    "RegionsOfInterestForUpdate": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RegionOfInterest"
      },
      "description": "Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an optional parameter for label detection stream processors."
    },
    "DataSharingPreferenceForUpdate": {
      "$ref": "#/$defs/StreamProcessorDataSharingPreference"
    },
    "ParametersToDelete": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "ConnectedHomeMinConfidence",
          "RegionsOfInterest"
        ]
      },
      "description": "A list of parameters you want to delete from the stream processor."
    }
  },
  "required": [
    "Name"
  ],
  "$defs": {
    "BoundingBox": {
      "type": "object",
      "properties": {
        "Width": {
          "type": "number",
          "description": "Width of the bounding box as a ratio of the overall image width."
        },
        "Height": {
          "type": "number",
          "description": "Height of the bounding box as a ratio of the overall image height."
        },
        "Left": {
          "type": "number",
          "description": "Left coordinate of the bounding box as a ratio of overall image width."
        },
        "Top": {
          "type": "number",
          "description": "Top coordinate of the bounding box as a ratio of overall image height."
        }
      }
    },
    "ConnectedHomeSettingsForUpdate": {
      "type": "object",
      "properties": {
        "Labels": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifies what you want to detect in the video, such as people, packages, or pets. The current valid labels you can include in this list are: \"PERSON\", \"PET\", \"PACKAGE\", and \"ALL\"."
        },
        "MinConfidence": {
          "type": "number",
          "description": "The minimum confidence required to label an object in the video."
        }
      }
    },
    "Point": {
      "type": "object",
      "properties": {
        "X": {
          "type": "number",
          "description": "The value of the X coordinate for a point on a Polygon."
        },
        "Y": {
          "type": "number",
          "description": "The value of the Y coordinate for a point on a Polygon."
        }
      }
    },
    "RegionOfInterest": {
      "type": "object",
      "properties": {
        "BoundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "Polygon": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Point"
          },
          "description": "Specifies a shape made up of up to 10 Point objects to define a region of interest."
        }
      }
    },
    "StreamProcessorDataSharingPreference": {
      "type": "object",
      "properties": {
        "OptIn": {
          "type": "boolean",
          "description": "If this option is set to true, you choose to share data with Rekognition to improve model performance."
        }
      },
      "required": [
        "OptIn"
      ]
    },
    "StreamProcessorSettingsForUpdate": {
      "type": "object",
      "properties": {
        "ConnectedHomeForUpdate": {
          "$ref": "#/$defs/ConnectedHomeSettingsForUpdate"
        }
      }
    }
  }
}