{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-cloudtrail-channel.json",
  "title": "AWSCloudTrailChannelProperties",
  "description": "A channel receives events from a specific source (such as an on-premises storage solution or application, or a partner event data source), and delivers the events to one or more event data stores. You use channels to ingest events into CloudTrail from sources outside AWS.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cloudtrail.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-cloudtrail-channel.json",
    "sourceSha256": "ba77879070e340da4aed03ba52f5ba3099e1827ee0b9dcbe2cbc249edbe208c6"
  },
  "type": "object",
  "properties": {
    "Name": {
      "$ref": "#/$defs/ChannelName"
    },
    "Source": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "pattern": "(.*)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ARN of an on-premises storage solution or application, or a partner event source."
    },
    "Destinations": {
      "description": "One or more resources to which events arriving through a channel are logged and stored.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Destination"
      },
      "maxItems": 10,
      "uniqueItems": true,
      "insertionOrder": false
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::CloudTrail::Channel",
  "$defs": {
    "Destination": {
      "description": "The resource that receives events arriving from a channel.",
      "type": "object",
      "properties": {
        "Type": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "EVENT_DATA_STORE"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The type of destination for events arriving from a channel."
        },
        "Location": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 3,
              "maxLength": 1024,
              "pattern": "(^[a-zA-Z0-9._/\\-:]+$)"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ARN of a resource that receives events from a channel."
        }
      },
      "required": [
        "Type",
        "Location"
      ],
      "title": "AWSCloudTrailChannelDestinationDefinition",
      "additionalProperties": false
    },
    "UUID": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 36,
          "maxLength": 36,
          "pattern": "(^[a-f0-9\\-]+$)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSCloudTrailChannelUUIDDefinition"
    },
    "Timestamp": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSCloudTrailChannelTimestampDefinition"
    },
    "ChannelArn": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 3,
          "maxLength": 256,
          "pattern": "(^[a-zA-Z0-9._/\\-:]+$)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) of a channel.",
      "title": "AWSCloudTrailChannelChannelArnDefinition"
    },
    "ChannelName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 3,
          "maxLength": 128,
          "pattern": "(^[a-zA-Z0-9._\\-]+$)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the channel.",
      "title": "AWSCloudTrailChannelChannelNameDefinition"
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSCloudTrailChannelTagDefinition",
      "additionalProperties": false
    }
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cloudtrail.git",
  "additionalProperties": false,
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "required": [],
  "writeOnlyProperties": [
    "/properties/Tags"
  ],
  "readOnlyProperties": [
    "/properties/ChannelArn"
  ],
  "createOnlyProperties": [
    "/properties/Source"
  ],
  "primaryIdentifier": [
    "/properties/ChannelArn"
  ]
}
