{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-elasticsearch-domain.json",
  "title": "AWSElasticsearchDomainProperties",
  "description": "Resource Type definition for AWS::Elasticsearch::Domain. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-elasticsearch-domain.json",
    "sourceSha256": "fd161f944df15bd189b078f9d540f9b0f690f0a577a13ff7e10d2302927c5463"
  },
  "type": "object",
  "properties": {
    "ElasticsearchClusterConfig": {
      "$ref": "#/$defs/ElasticsearchClusterConfig"
    },
    "DomainName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ElasticsearchVersion": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "LogPublishingOptions": {
      "type": "object",
      "patternProperties": {
        "[a-zA-Z0-9]+": {
          "$ref": "#/$defs/LogPublishingOption"
        }
      }
    },
    "SnapshotOptions": {
      "$ref": "#/$defs/SnapshotOptions"
    },
    "VPCOptions": {
      "$ref": "#/$defs/VPCOptions"
    },
    "NodeToNodeEncryptionOptions": {
      "$ref": "#/$defs/NodeToNodeEncryptionOptions"
    },
    "AccessPolicies": {
      "type": "object"
    },
    "DomainEndpointOptions": {
      "$ref": "#/$defs/DomainEndpointOptions"
    },
    "CognitoOptions": {
      "$ref": "#/$defs/CognitoOptions"
    },
    "AdvancedOptions": {
      "type": "object",
      "patternProperties": {
        "[a-zA-Z0-9]+": {
          "type": "string"
        }
      }
    },
    "AdvancedSecurityOptions": {
      "$ref": "#/$defs/AdvancedSecurityOptionsInput"
    },
    "EBSOptions": {
      "$ref": "#/$defs/EBSOptions"
    },
    "EncryptionAtRestOptions": {
      "$ref": "#/$defs/EncryptionAtRestOptions"
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Elasticsearch::Domain",
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/DomainArn",
    "/properties/DomainEndpoint",
    "/properties/Arn"
  ],
  "$defs": {
    "LogPublishingOption": {
      "type": "object",
      "title": "AWSElasticsearchDomainLogPublishingOptionDefinition",
      "properties": {
        "CloudWatchLogsLogGroupArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Enabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "ElasticsearchClusterConfig": {
      "type": "object",
      "title": "AWSElasticsearchDomainElasticsearchClusterConfigDefinition",
      "properties": {
        "InstanceCount": {
          "type": "integer"
        },
        "WarmEnabled": {
          "type": "boolean"
        },
        "WarmCount": {
          "type": "integer"
        },
        "DedicatedMasterEnabled": {
          "type": "boolean"
        },
        "ZoneAwarenessConfig": {
          "$ref": "#/$defs/ZoneAwarenessConfig"
        },
        "ColdStorageOptions": {
          "$ref": "#/$defs/ColdStorageOptions"
        },
        "DedicatedMasterCount": {
          "type": "integer"
        },
        "InstanceType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "WarmType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ZoneAwarenessEnabled": {
          "type": "boolean"
        },
        "DedicatedMasterType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "VPCOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainVPCOptionsDefinition",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "SubnetIds": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "SnapshotOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainSnapshotOptionsDefinition",
      "properties": {
        "AutomatedSnapshotStartHour": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "ZoneAwarenessConfig": {
      "type": "object",
      "title": "AWSElasticsearchDomainZoneAwarenessConfigDefinition",
      "properties": {
        "AvailabilityZoneCount": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "NodeToNodeEncryptionOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainNodeToNodeEncryptionOptionsDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "ColdStorageOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainColdStorageOptionsDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "DomainEndpointOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainDomainEndpointOptionsDefinition",
      "properties": {
        "CustomEndpointCertificateArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "CustomEndpointEnabled": {
          "type": "boolean"
        },
        "EnforceHTTPS": {
          "type": "boolean"
        },
        "CustomEndpoint": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TLSSecurityPolicy": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "CognitoOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainCognitoOptionsDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        },
        "IdentityPoolId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "UserPoolId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "EBSOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainEBSOptionsDefinition",
      "properties": {
        "EBSEnabled": {
          "type": "boolean"
        },
        "VolumeType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Iops": {
          "type": "integer"
        },
        "VolumeSize": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSElasticsearchDomainTagDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "EncryptionAtRestOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainEncryptionAtRestOptionsDefinition",
      "properties": {
        "KmsKeyId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Enabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "MasterUserOptions": {
      "type": "object",
      "title": "AWSElasticsearchDomainMasterUserOptionsDefinition",
      "properties": {
        "MasterUserPassword": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MasterUserName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MasterUserARN": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "AdvancedSecurityOptionsInput": {
      "type": "object",
      "title": "AWSElasticsearchDomainAdvancedSecurityOptionsInputDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        },
        "MasterUserOptions": {
          "$ref": "#/$defs/MasterUserOptions"
        },
        "AnonymousAuthEnabled": {
          "type": "boolean"
        },
        "InternalUserDatabaseEnabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/DomainName"
  ]
}
