{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-kinesis-video-streams/json-schema/amazon-kinesis-video-streams-start-edge-configuration-update-output-schema.json",
  "title": "StartEdgeConfigurationUpdateOutput",
  "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/StartEdgeConfigurationUpdateOutput",
  "type": "object",
  "properties": {
    "StreamName": {
      "type": "string",
      "description": "The name of the stream from which the edge configuration was updated."
    },
    "StreamARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the stream."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp at which a stream’s edge configuration was first created."
    },
    "LastUpdatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp at which a stream’s edge configuration was last updated."
    },
    "SyncStatus": {
      "type": "string",
      "enum": [
        "SYNCING",
        "ACKNOWLEDGED",
        "IN_SYNC",
        "SYNC_FAILED",
        "DELETING",
        "DELETE_FAILED",
        "DELETING_ACKNOWLEDGED"
      ],
      "description": "The current sync status of the stream's edge configuration. When you invoke this API, the sync status will be set to the SYNCING state. Use the DescribeEdgeConfiguration API to get the latest status of the edge configuration."
    },
    "FailedStatusDetails": {
      "type": "string",
      "description": "A description of the generated failure status."
    },
    "EdgeConfig": {
      "$ref": "#/$defs/EdgeConfig"
    }
  },
  "$defs": {
    "DeletionConfig": {
      "type": "object",
      "properties": {
        "EdgeRetentionInHours": {
          "type": "integer",
          "description": "The number of hours that you want to retain the data in the stream on the Edge Agent. The default value of the retention time is 720 hours, which translates to 30 days."
        },
        "LocalSizeConfig": {
          "$ref": "#/$defs/LocalSizeConfig"
        },
        "DeleteAfterUpload": {
          "type": "boolean",
          "description": "The boolean value used to indicate whether or not you want to mark the media for deletion, once it has been uploaded to the Kinesis Video Stream cloud. The media files can be deleted if any of the deletion configuration values are set to true, such as when the limit for the EdgeRetentionInHours, or the MaxLocalMediaSizeInMB, has been reached. Since the default value is set to true, configure the uploader schedule such that the media files are not being deleted before they are initially uploaded to the Amazon Web Services cloud."
        }
      }
    },
    "EdgeConfig": {
      "type": "object",
      "properties": {
        "HubDeviceArn": {
          "type": "string",
          "description": "The \"Internet of Things (IoT) Thing\" Arn of the stream."
        },
        "RecorderConfig": {
          "$ref": "#/$defs/RecorderConfig"
        },
        "UploaderConfig": {
          "$ref": "#/$defs/UploaderConfig"
        },
        "DeletionConfig": {
          "$ref": "#/$defs/DeletionConfig"
        }
      },
      "required": [
        "HubDeviceArn",
        "RecorderConfig"
      ]
    },
    "LocalSizeConfig": {
      "type": "object",
      "properties": {
        "MaxLocalMediaSizeInMB": {
          "type": "integer",
          "description": "The overall maximum size of the media that you want to store for a stream on the Edge Agent."
        },
        "StrategyOnFullSize": {
          "type": "string",
          "enum": [
            "DELETE_OLDEST_MEDIA",
            "DENY_NEW_MEDIA"
          ],
          "description": "The strategy to perform when a stream’s MaxLocalMediaSizeInMB limit is reached."
        }
      }
    },
    "MediaSourceConfig": {
      "type": "object",
      "properties": {
        "MediaUriSecretArn": {
          "type": "string",
          "description": "The Amazon Web Services Secrets Manager ARN for the username and password of the camera, or a local media file location."
        },
        "MediaUriType": {
          "type": "string",
          "enum": [
            "RTSP_URI",
            "FILE_URI"
          ],
          "description": "The Uniform Resource Identifier (URI) type. The FILE_URI value can be used to stream local media files. Preview only supports the RTSP_URI media source URI format ."
        }
      },
      "required": [
        "MediaUriSecretArn",
        "MediaUriType"
      ]
    },
    "RecorderConfig": {
      "type": "object",
      "properties": {
        "MediaSourceConfig": {
          "$ref": "#/$defs/MediaSourceConfig"
        },
        "ScheduleConfig": {
          "$ref": "#/$defs/ScheduleConfig"
        }
      },
      "required": [
        "MediaSourceConfig"
      ]
    },
    "ScheduleConfig": {
      "type": "object",
      "properties": {
        "ScheduleExpression": {
          "type": "string",
          "description": "The Quartz cron expression that takes care of scheduling jobs to record from the camera, or local media file, onto the Edge Agent. If the ScheduleExpression is not provided for the RecorderConfig, then the Edge Agent will always be set to recording mode. For more information about Quartz, refer to the Cron Trigger Tutorial page to understand the valid expressions and its use."
        },
        "DurationInSeconds": {
          "type": "integer",
          "description": "The total duration to record the media. If the ScheduleExpression attribute is provided, then the DurationInSeconds attribute should also be specified."
        }
      },
      "required": [
        "ScheduleExpression",
        "DurationInSeconds"
      ]
    },
    "UploaderConfig": {
      "type": "object",
      "properties": {
        "ScheduleConfig": {
          "$ref": "#/$defs/ScheduleConfig"
        }
      },
      "required": [
        "ScheduleConfig"
      ]
    }
  }
}