{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-mediapackage-packaginggroup.json",
  "title": "AWSMediaPackagePackagingGroupProperties",
  "description": "Resource schema for AWS::MediaPackage::PackagingGroup. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-mediapackage.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-mediapackage-packaginggroup.json",
    "sourceSha256": "10b03ccac92e07c2081df3dfbbe1e7e5104a142612bc0c8be07b9757c0549fba"
  },
  "type": "object",
  "properties": {
    "Id": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-zA-Z-_]+$",
          "minLength": 1,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the PackagingGroup."
    },
    "Authorization": {
      "description": "CDN Authorization",
      "$ref": "#/$defs/Authorization"
    },
    "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"
    }
  },
  "typeName": "AWS::MediaPackage::PackagingGroup",
  "createOnlyProperties": [
    "/properties/Id",
    "/properties/Tags"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-mediapackage.git",
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "$defs": {
    "Tag": {
      "type": "object",
      "title": "AWSMediaPackagePackagingGroupTagDefinition",
      "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
    },
    "Authorization": {
      "type": "object",
      "title": "AWSMediaPackagePackagingGroupAuthorizationDefinition",
      "properties": {
        "CdnIdentifierSecret": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization."
        },
        "SecretsRoleArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager."
        }
      },
      "required": [
        "CdnIdentifierSecret",
        "SecretsRoleArn"
      ],
      "additionalProperties": false
    },
    "LogConfiguration": {
      "type": "object",
      "title": "AWSMediaPackagePackagingGroupLogConfigurationDefinition",
      "properties": {
        "LogGroupName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^\\/aws\\/MediaPackage\\/[0-9a-zA-Z-_\\/\\.#]+$",
              "minLength": 1,
              "maxLength": 512
            },
            {
              "$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 egress logs. If a log group name isn't specified, the default name is used: /aws/MediaPackage/VodEgressAccessLogs."
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "Id"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/DomainName"
  ]
}
