{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-kinesis-video-streams/json-schema/amazon-kinesis-video-streams-update-data-retention-input-schema.json",
  "title": "UpdateDataRetentionInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-kinesis-video-streams-operations-api-openapi.yml#/components/schemas/UpdateDataRetentionInput",
  "type": "object",
  "properties": {
    "StreamName": {
      "type": "string",
      "description": "The name of the stream whose retention period you want to change."
    },
    "StreamARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the stream whose retention period you want to change."
    },
    "CurrentVersion": {
      "type": "string",
      "description": "The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API."
    },
    "Operation": {
      "type": "string",
      "enum": [
        "INCREASE_DATA_RETENTION",
        "DECREASE_DATA_RETENTION"
      ],
      "description": "Indicates whether you want to increase or decrease the retention period."
    },
    "DataRetentionChangeInHours": {
      "type": "integer",
      "description": "The number of hours to adjust the current retention by. The value you specify is added to or subtracted from the current value, depending on the operation. The minimum value for data retention is 0 and the maximum value is 87600 (ten years)."
    }
  },
  "required": [
    "CurrentVersion",
    "Operation",
    "DataRetentionChangeInHours"
  ]
}