{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-appsync-datasource.json",
  "title": "AWSAppSyncDataSourceProperties",
  "description": "Resource Type definition for AWS::AppSync::DataSource. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-appsync-datasource.json",
    "sourceSha256": "8e138afcdaf7ccf89be2d37294b51199995e3d9c53858018c11194d308982ba9"
  },
  "type": "object",
  "properties": {
    "OpenSearchServiceConfig": {
      "$ref": "#/$defs/OpenSearchServiceConfig"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ServiceRoleArn": {
      "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"
        }
      ]
    },
    "Type": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EventBridgeConfig": {
      "$ref": "#/$defs/EventBridgeConfig"
    },
    "HttpConfig": {
      "$ref": "#/$defs/HttpConfig"
    },
    "RelationalDatabaseConfig": {
      "$ref": "#/$defs/RelationalDatabaseConfig"
    },
    "LambdaConfig": {
      "$ref": "#/$defs/LambdaConfig"
    },
    "ApiId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DynamoDBConfig": {
      "$ref": "#/$defs/DynamoDBConfig"
    },
    "ElasticsearchConfig": {
      "$ref": "#/$defs/ElasticsearchConfig"
    }
  },
  "typeName": "AWS::AppSync::DataSource",
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/DataSourceArn"
  ],
  "$defs": {
    "RdsHttpEndpointConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceRdsHttpEndpointConfigDefinition",
      "properties": {
        "DatabaseName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AwsRegion": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DbClusterIdentifier": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AwsSecretStoreArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Schema": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AwsRegion",
        "DbClusterIdentifier",
        "AwsSecretStoreArn"
      ],
      "additionalProperties": false
    },
    "OpenSearchServiceConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceOpenSearchServiceConfigDefinition",
      "properties": {
        "AwsRegion": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Endpoint": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AwsRegion",
        "Endpoint"
      ],
      "additionalProperties": false
    },
    "AwsIamConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceAwsIamConfigDefinition",
      "properties": {
        "SigningRegion": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SigningServiceName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "EventBridgeConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceEventBridgeConfigDefinition",
      "properties": {
        "EventBusArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "EventBusArn"
      ],
      "additionalProperties": false
    },
    "AuthorizationConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceAuthorizationConfigDefinition",
      "properties": {
        "AuthorizationType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AwsIamConfig": {
          "$ref": "#/$defs/AwsIamConfig"
        }
      },
      "required": [
        "AuthorizationType"
      ],
      "additionalProperties": false
    },
    "DeltaSyncConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceDeltaSyncConfigDefinition",
      "properties": {
        "BaseTableTTL": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DeltaSyncTableTTL": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DeltaSyncTableName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "BaseTableTTL",
        "DeltaSyncTableTTL",
        "DeltaSyncTableName"
      ],
      "additionalProperties": false
    },
    "RelationalDatabaseConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceRelationalDatabaseConfigDefinition",
      "properties": {
        "RdsHttpEndpointConfig": {
          "$ref": "#/$defs/RdsHttpEndpointConfig"
        },
        "RelationalDatabaseSourceType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "RelationalDatabaseSourceType"
      ],
      "additionalProperties": false
    },
    "HttpConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceHttpConfigDefinition",
      "properties": {
        "Endpoint": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AuthorizationConfig": {
          "$ref": "#/$defs/AuthorizationConfig"
        }
      },
      "required": [
        "Endpoint"
      ],
      "additionalProperties": false
    },
    "LambdaConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceLambdaConfigDefinition",
      "properties": {
        "LambdaFunctionArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "LambdaFunctionArn"
      ],
      "additionalProperties": false
    },
    "ElasticsearchConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceElasticsearchConfigDefinition",
      "properties": {
        "AwsRegion": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Endpoint": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AwsRegion",
        "Endpoint"
      ],
      "additionalProperties": false
    },
    "DynamoDBConfig": {
      "type": "object",
      "title": "AWSAppSyncDataSourceDynamoDBConfigDefinition",
      "properties": {
        "TableName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DeltaSyncConfig": {
          "$ref": "#/$defs/DeltaSyncConfig"
        },
        "UseCallerCredentials": {
          "type": "boolean"
        },
        "AwsRegion": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Versioned": {
          "type": "boolean"
        }
      },
      "required": [
        "TableName",
        "AwsRegion"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "Type",
    "ApiId",
    "Name"
  ],
  "createOnlyProperties": [
    "/properties/ApiId",
    "/properties/Name"
  ]
}
