{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-kinesis-video-streams/json-schema/amazon-kinesis-video-streams-describe-edge-configuration-output-schema.json",
  "title": "DescribeEdgeConfigurationOutput",
  "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/DescribeEdgeConfigurationOutput",
  "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 latest status of the edge configuration update."
    },
    "FailedStatusDetails": {
      "type": "string",
      "description": "A description of the generated failure status."
    },
    "EdgeConfig": {
      "$ref": "#/$defs/EdgeConfig"
    },
    "EdgeAgentStatus": {
      "$ref": "#/$defs/EdgeAgentStatus"
    }
  },
  "$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."
        }
      }
    },
    "EdgeAgentStatus": {
      "type": "object",
      "properties": {
        "LastRecorderStatus": {
          "$ref": "#/$defs/LastRecorderStatus"
        },
        "LastUploaderStatus": {
          "$ref": "#/$defs/LastUploaderStatus"
        }
      }
    },
    "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"
      ]
    },
    "LastRecorderStatus": {
      "type": "object",
      "properties": {
        "JobStatusDetails": {
          "type": "string",
          "description": "A description of a recorder job’s latest status."
        },
        "LastCollectedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which the recorder job was last executed and media stored to local disk."
        },
        "LastUpdatedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which the recorder status was last updated."
        },
        "RecorderStatus": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "USER_ERROR",
            "SYSTEM_ERROR"
          ],
          "description": "The status of the latest recorder job."
        }
      }
    },
    "LastUploaderStatus": {
      "type": "object",
      "properties": {
        "JobStatusDetails": {
          "type": "string",
          "description": "A description of an uploader job’s latest status."
        },
        "LastCollectedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which the uploader job was last executed and media collected to the cloud."
        },
        "LastUpdatedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which the uploader status was last updated."
        },
        "UploaderStatus": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "USER_ERROR",
            "SYSTEM_ERROR"
          ],
          "description": "The status of the latest uploader job."
        }
      }
    },
    "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"
      ]
    }
  }
}