{
  "typeName" : "AWS::IVS::Channel",
  "description" : "Resource Type definition for AWS::IVS::Channel",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 256
        }
      },
      "required" : [ "Value", "Key" ]
    }
  },
  "properties" : {
    "Arn" : {
      "description" : "Channel ARN is automatically generated on creation and assigned as the unique identifier.",
      "type" : "string",
      "pattern" : "^arn:aws:ivs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$",
      "minLength" : 1,
      "maxLength" : 128
    },
    "Name" : {
      "description" : "Channel",
      "type" : "string",
      "minLength" : 0,
      "maxLength" : 128,
      "pattern" : "^[a-zA-Z0-9-_]*$",
      "default" : "-"
    },
    "Authorized" : {
      "description" : "Whether the channel is authorized.",
      "type" : "boolean",
      "default" : false
    },
    "LatencyMode" : {
      "description" : "Channel latency mode.",
      "type" : "string",
      "enum" : [ "NORMAL", "LOW" ],
      "default" : "LOW"
    },
    "Type" : {
      "description" : "Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately.",
      "type" : "string",
      "enum" : [ "STANDARD", "BASIC" ],
      "default" : "STANDARD"
    },
    "Tags" : {
      "description" : "A list of key-value pairs that contain metadata for the asset model.",
      "type" : "array",
      "uniqueItems" : true,
      "insertionOrder" : false,
      "maxItems" : 50,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "PlaybackUrl" : {
      "description" : "Channel Playback URL.",
      "type" : "string"
    },
    "IngestEndpoint" : {
      "description" : "Channel ingest endpoint, part of the definition of an ingest server, used when you set up streaming software.",
      "type" : "string"
    },
    "RecordingConfigurationArn" : {
      "description" : "Recording Configuration ARN. A value other than an empty string indicates that recording is enabled. Default: \"\" (recording is disabled).",
      "type" : "string",
      "default" : "",
      "pattern" : "^$|arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$",
      "minLength" : 0,
      "maxLength" : 128
    }
  },
  "additionalProperties" : false,
  "required" : [ ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/PlaybackUrl", "/properties/IngestEndpoint" ],
  "primaryIdentifier" : [ "/properties/Arn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "ivs:CreateChannel" ]
    },
    "read" : {
      "permissions" : [ "ivs:GetChannel" ]
    },
    "update" : {
      "permissions" : [ "ivs:UpdateChannel", "ivs:TagResource", "ivs:UnTagResource", "ivs:ListTagsForResource" ]
    },
    "delete" : {
      "permissions" : [ "ivs:DeleteChannel" ]
    },
    "list" : {
      "permissions" : [ "ivs:ListChannels" ]
    }
  }
}