{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-kinesisanalytics-applicationreferencedatasource.json",
  "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceProperties",
  "description": "Resource Type definition for AWS::KinesisAnalytics::ApplicationReferenceDataSource. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-kinesisanalytics-applicationreferencedatasource.json",
    "sourceSha256": "759b141aa74c8c8e01c363b601f9feb0ec19a40da39c4df5763c97ebd17a12dd"
  },
  "type": "object",
  "properties": {
    "ApplicationName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ReferenceDataSource": {
      "$ref": "#/$defs/ReferenceDataSource"
    }
  },
  "typeName": "AWS::KinesisAnalytics::ApplicationReferenceDataSource",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "ReferenceDataSource": {
      "type": "object",
      "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceReferenceDataSourceDefinition",
      "properties": {
        "ReferenceSchema": {
          "$ref": "#/$defs/ReferenceSchema"
        },
        "TableName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "S3ReferenceDataSource": {
          "$ref": "#/$defs/S3ReferenceDataSource"
        }
      },
      "required": [
        "ReferenceSchema"
      ],
      "additionalProperties": false
    },
    "S3ReferenceDataSource": {
      "type": "object",
      "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceS3ReferenceDataSourceDefinition",
      "properties": {
        "BucketARN": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "FileKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ReferenceRoleARN": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "BucketARN",
        "FileKey",
        "ReferenceRoleARN"
      ],
      "additionalProperties": false
    },
    "ReferenceSchema": {
      "type": "object",
      "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceReferenceSchemaDefinition",
      "properties": {
        "RecordEncoding": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RecordColumns": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/RecordColumn"
          }
        },
        "RecordFormat": {
          "$ref": "#/$defs/RecordFormat"
        }
      },
      "required": [
        "RecordColumns",
        "RecordFormat"
      ],
      "additionalProperties": false
    },
    "RecordColumn": {
      "type": "object",
      "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceRecordColumnDefinition",
      "properties": {
        "Mapping": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SqlType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "SqlType",
        "Name"
      ],
      "additionalProperties": false
    },
    "RecordFormat": {
      "type": "object",
      "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceRecordFormatDefinition",
      "properties": {
        "MappingParameters": {
          "$ref": "#/$defs/MappingParameters"
        },
        "RecordFormatType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "RecordFormatType"
      ],
      "additionalProperties": false
    },
    "MappingParameters": {
      "type": "object",
      "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceMappingParametersDefinition",
      "properties": {
        "JSONMappingParameters": {
          "$ref": "#/$defs/JSONMappingParameters"
        },
        "CSVMappingParameters": {
          "$ref": "#/$defs/CSVMappingParameters"
        }
      },
      "additionalProperties": false
    },
    "CSVMappingParameters": {
      "type": "object",
      "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceCSVMappingParametersDefinition",
      "properties": {
        "RecordRowDelimiter": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RecordColumnDelimiter": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "RecordColumnDelimiter",
        "RecordRowDelimiter"
      ],
      "additionalProperties": false
    },
    "JSONMappingParameters": {
      "type": "object",
      "title": "AWSKinesisAnalyticsApplicationReferenceDataSourceJSONMappingParametersDefinition",
      "properties": {
        "RecordRowPath": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "RecordRowPath"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "ReferenceDataSource",
    "ApplicationName"
  ],
  "createOnlyProperties": [
    "/properties/ApplicationName"
  ]
}
