{
 "additionalProperties": false,
 "definitions": {
  "AutoParticipantRecordingConfiguration": {
   "additionalProperties": false,
   "properties": {
    "HlsConfiguration": {
     "$ref": "#/definitions/HlsConfiguration"
    },
    "MediaTypes": {
     "default": [
      "AUDIO_VIDEO"
     ],
     "insertionOrder": false,
     "items": {
      "enum": [
       "AUDIO_VIDEO",
       "AUDIO_ONLY"
      ],
      "type": "string"
     },
     "maxItems": 1,
     "minItems": 0,
     "type": "array",
     "uniqueItems": true
    },
    "RecordingReconnectWindowSeconds": {
     "default": 0,
     "maximum": 300,
     "minimum": 0,
     "type": "integer"
    },
    "StorageConfigurationArn": {
     "maxLength": 128,
     "minLength": 0,
     "pattern": "^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:storage-configuration/[a-zA-Z0-9-]+$",
     "type": "string"
    },
    "ThumbnailConfiguration": {
     "$ref": "#/definitions/ThumbnailConfiguration"
    }
   },
   "required": [
    "StorageConfigurationArn"
   ],
   "type": "object"
  },
  "HlsConfiguration": {
   "additionalProperties": false,
   "properties": {
    "ParticipantRecordingHlsConfiguration": {
     "$ref": "#/definitions/ParticipantRecordingHlsConfiguration"
    }
   },
   "required": [],
   "type": "object"
  },
  "ParticipantRecordingHlsConfiguration": {
   "additionalProperties": false,
   "properties": {
    "TargetSegmentDurationSeconds": {
     "default": 6,
     "maximum": 10,
     "minimum": 2,
     "type": "integer"
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  },
  "ThumbnailConfiguration": {
   "additionalProperties": false,
   "properties": {
    "ParticipantThumbnailConfiguration": {
     "additionalProperties": false,
     "properties": {
      "RecordingMode": {
       "default": "DISABLED",
       "enum": [
        "INTERVAL",
        "DISABLED"
       ],
       "type": "string"
      },
      "Storage": {
       "default": [
        "SEQUENTIAL"
       ],
       "insertionOrder": false,
       "items": {
        "enum": [
         "SEQUENTIAL",
         "LATEST"
        ],
        "type": "string"
       },
       "maxItems": 2,
       "minItems": 0,
       "type": "array",
       "uniqueItems": true
      },
      "TargetIntervalSeconds": {
       "default": 60,
       "maximum": 86400,
       "minimum": 1,
       "type": "integer"
      }
     },
     "type": "object"
    }
   },
   "required": [],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "ActiveSessionId": {
   "maxLength": 128,
   "minLength": 0,
   "type": "string"
  },
  "Arn": {
   "maxLength": 128,
   "minLength": 0,
   "pattern": "^arn:aws[-a-z]*:ivs:[a-z0-9-]+:[0-9]+:stage/[a-zA-Z0-9-]+$",
   "type": "string"
  },
  "AutoParticipantRecordingConfiguration": {
   "$ref": "#/definitions/AutoParticipantRecordingConfiguration"
  },
  "Name": {
   "maxLength": 128,
   "minLength": 0,
   "pattern": "^[a-zA-Z0-9-_]*$",
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/Arn",
  "/properties/ActiveSessionId"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::IVS::Stage"
}
