{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-mediapackage-channel.json",
  "title": "AWSMediaPackageChannelProperties",
  "description": "Resource schema for AWS::MediaPackage::Channel. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-mediapackage-channel.json",
    "sourceSha256": "cd70172563dee393763bc68417fd4e15a689b596cb33ae3f1162d5288d917db2"
  },
  "type": "object",
  "properties": {
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A short text description of the Channel."
    },
    "HlsIngest": {
      "description": "An HTTP Live Streaming (HLS) ingest resource configuration.",
      "$ref": "#/$defs/HlsIngest"
    },
    "Tags": {
      "description": "A collection of tags associated with a resource",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "EgressAccessLogs": {
      "description": "The configuration parameters for egress access logging.",
      "$ref": "#/$defs/LogConfiguration"
    },
    "IngressAccessLogs": {
      "description": "The configuration parameters for egress access logging.",
      "$ref": "#/$defs/LogConfiguration"
    }
  },
  "typeName": "AWS::MediaPackage::Channel",
  "createOnlyProperties": [
    "/properties/Id",
    "/properties/Tags"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/HlsIngest/ingestEndpoints/*/Id",
    "/properties/HlsIngest/ingestEndpoints/*/Username",
    "/properties/HlsIngest/ingestEndpoints/*/Password",
    "/properties/HlsIngest/ingestEndpoints/*/Url"
  ],
  "additionalProperties": false,
  "$defs": {
    "HlsIngest": {
      "description": "An HTTP Live Streaming (HLS) ingest resource configuration.",
      "type": "object",
      "title": "AWSMediaPackageChannelHlsIngestDefinition",
      "properties": {
        "ingestEndpoints": {
          "description": "A list of endpoints to which the source stream should be sent.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/IngestEndpoint"
          }
        }
      },
      "additionalProperties": false
    },
    "IngestEndpoint": {
      "description": "An endpoint for ingesting source content for a Channel.",
      "type": "object",
      "title": "AWSMediaPackageChannelIngestEndpointDefinition",
      "properties": {
        "Id": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The system generated unique identifier for the IngestEndpoint"
        },
        "Username": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The system generated username for ingest authentication."
        },
        "Password": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The system generated password for ingest authentication."
        },
        "Url": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ingest URL to which the source stream should be sent."
        }
      },
      "required": [
        "Id",
        "Username",
        "Password",
        "Url"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSMediaPackageChannelTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "LogConfiguration": {
      "type": "object",
      "title": "AWSMediaPackageChannelLogConfigurationDefinition",
      "properties": {
        "LogGroupName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^^(\\/aws\\/MediaPackage\\/)[a-zA-Z0-9_-]+$",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Sets a custom AWS CloudWatch log group name for access logs. If a log group name isn't specified, the defaults are used: /aws/MediaPackage/EgressAccessLogs for egress access logs and /aws/MediaPackage/IngressAccessLogs for ingress access logs."
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "Id"
  ],
  "primaryIdentifier": [
    "/properties/Id"
  ]
}
