{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-mediapackage-asset.json",
  "title": "AWSMediaPackageAssetProperties",
  "description": "Resource schema for AWS::MediaPackage::Asset. 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-asset.json",
    "sourceSha256": "eb451f80a2c7314cc8c0090028b9c733e01c79117342dc939d8a64c73cc2b461"
  },
  "type": "object",
  "properties": {
    "EgressEndpoints": {
      "description": "The list of egress endpoints available for the Asset.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/EgressEndpoint"
      }
    },
    "Id": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The unique identifier for the Asset."
    },
    "PackagingGroupId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the PackagingGroup for the Asset."
    },
    "ResourceId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The resource ID to include in SPEKE key requests."
    },
    "SourceArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "ARN of the source object in S3."
    },
    "SourceRoleArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The IAM role_arn used to access the source S3 bucket."
    },
    "Tags": {
      "description": "A collection of tags associated with a resource",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::MediaPackage::Asset",
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/CreatedAt",
    "/properties/EgressEndpoints/*/PackagingConfigurationId",
    "/properties/EgressEndpoints/*/Url"
  ],
  "additionalProperties": false,
  "$defs": {
    "EgressEndpoint": {
      "description": "The endpoint URL used to access an Asset using one PackagingConfiguration.",
      "type": "object",
      "title": "AWSMediaPackageAssetEgressEndpointDefinition",
      "properties": {
        "PackagingConfigurationId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ID of the PackagingConfiguration being applied to the Asset."
        },
        "Url": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The URL of the parent manifest for the repackaged Asset."
        }
      },
      "required": [
        "PackagingConfigurationId",
        "Url"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSMediaPackageAssetTagDefinition",
      "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
    }
  },
  "required": [
    "Id",
    "PackagingGroupId",
    "SourceArn",
    "SourceRoleArn"
  ]
}
