{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-kinesisanalyticsv2-applicationreferencedatasource.json",
  "title": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceProperties",
  "description": "Resource Type definition for AWS::KinesisAnalyticsV2::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-kinesisanalyticsv2-applicationreferencedatasource.json",
    "sourceSha256": "72996e95969dbe995a51ce7ca229c17551da1237b24963999297fdbed2261546"
  },
  "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::KinesisAnalyticsV2::ApplicationReferenceDataSource",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "ReferenceDataSource": {
      "type": "object",
      "title": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceReferenceDataSourceDefinition",
      "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
    },
    "ReferenceSchema": {
      "type": "object",
      "title": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceReferenceSchemaDefinition",
      "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
    },
    "S3ReferenceDataSource": {
      "type": "object",
      "title": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceS3ReferenceDataSourceDefinition",
      "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"
            }
          ]
        }
      },
      "required": [
        "BucketARN",
        "FileKey"
      ],
      "additionalProperties": false
    },
    "RecordColumn": {
      "type": "object",
      "title": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceRecordColumnDefinition",
      "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": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceRecordFormatDefinition",
      "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": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceMappingParametersDefinition",
      "properties": {
        "JSONMappingParameters": {
          "$ref": "#/$defs/JSONMappingParameters"
        },
        "CSVMappingParameters": {
          "$ref": "#/$defs/CSVMappingParameters"
        }
      },
      "additionalProperties": false
    },
    "JSONMappingParameters": {
      "type": "object",
      "title": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceJSONMappingParametersDefinition",
      "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
    },
    "CSVMappingParameters": {
      "type": "object",
      "title": "AWSKinesisAnalyticsV2ApplicationReferenceDataSourceCSVMappingParametersDefinition",
      "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
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "ReferenceDataSource",
    "ApplicationName"
  ],
  "createOnlyProperties": [
    "/properties/ApplicationName"
  ]
}
