{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-athena-namedquery.json",
  "title": "AWSAthenaNamedQueryProperties",
  "description": "Resource schema for AWS::Athena::NamedQuery. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-athena.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-athena-namedquery.json",
    "sourceSha256": "9f0a3a909a843becd9461b898eba04c9b92aee6e2466b9486c8fdd24ce9c371a"
  },
  "type": "object",
  "properties": {
    "Name": {
      "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 query name."
    },
    "Database": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The database to which the query belongs."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The query description."
    },
    "QueryString": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 262144
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The contents of the query with all query statements."
    },
    "WorkGroup": {
      "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 name of the workgroup that contains the named query."
    }
  },
  "typeName": "AWS::Athena::NamedQuery",
  "taggable": false,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-athena.git",
  "additionalProperties": false,
  "required": [
    "Database",
    "QueryString"
  ],
  "readOnlyProperties": [
    "/properties/NamedQueryId"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Database",
    "/properties/Description",
    "/properties/QueryString",
    "/properties/WorkGroup"
  ],
  "primaryIdentifier": [
    "/properties/NamedQueryId"
  ]
}
