{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iotanalytics-channel.json",
  "title": "AWSIoTAnalyticsChannelProperties",
  "description": "Resource Type definition for AWS::IoTAnalytics::Channel. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iotanalytics-channel.json",
    "sourceSha256": "23ccb909e5a3f6d7324a69dfd033b6cba302a58a17f3a138b5da82d34fef34bc"
  },
  "type": "object",
  "properties": {
    "ChannelStorage": {
      "$ref": "#/$defs/ChannelStorage"
    },
    "ChannelName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "(^(?!_{2}))(^[a-zA-Z0-9_]+$)",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RetentionPeriod": {
      "$ref": "#/$defs/RetentionPeriod"
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "minItems": 1,
      "maxItems": 50,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::IoTAnalytics::Channel",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "CustomerManagedS3": {
      "type": "object",
      "title": "AWSIoTAnalyticsChannelCustomerManagedS3Definition",
      "properties": {
        "Bucket": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9.\\-_]*$",
              "minLength": 3,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleArn": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 20,
              "maxLength": 2048
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "KeyPrefix": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9!_.*'()/{}:-]*/$",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Bucket",
        "RoleArn"
      ],
      "additionalProperties": false
    },
    "ServiceManagedS3": {
      "type": "object",
      "title": "AWSIoTAnalyticsChannelServiceManagedS3Definition",
      "additionalProperties": false
    },
    "ChannelStorage": {
      "type": "object",
      "title": "AWSIoTAnalyticsChannelChannelStorageDefinition",
      "properties": {
        "ServiceManagedS3": {
          "$ref": "#/$defs/ServiceManagedS3"
        },
        "CustomerManagedS3": {
          "$ref": "#/$defs/CustomerManagedS3"
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSIoTAnalyticsChannelTagDefinition",
      "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"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "RetentionPeriod": {
      "type": "object",
      "title": "AWSIoTAnalyticsChannelRetentionPeriodDefinition",
      "properties": {
        "NumberOfDays": {
          "type": "integer",
          "minimum": 1,
          "maximum": 2147483647
        },
        "Unlimited": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  },
  "taggable": true,
  "createOnlyProperties": [
    "/properties/ChannelName"
  ],
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/ChannelName"
  ]
}
