{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-amplify-domain.json",
  "title": "AWSAmplifyDomainProperties",
  "description": "The AWS::Amplify::Domain resource allows you to connect a custom domain to your app.. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-amplify-domain.json",
    "sourceSha256": "08a193ef3cd90c6c56f86eff7544c70613a6db7205325ce6cc41a16aa8448ad9"
  },
  "type": "object",
  "properties": {
    "AppId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 20,
          "pattern": "d[a-z0-9]+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AutoSubDomainCreationPatterns": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 2048,
        "pattern": "(?s).+"
      }
    },
    "AutoSubDomainIAMRole": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^$|^arn:.+:iam::\\d{12}:role.+",
          "maxLength": 1000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DomainName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])(\\.)?$",
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EnableAutoSubDomain": {
      "type": "boolean"
    },
    "SubDomainSettings": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/SubDomainSetting"
      },
      "maxItems": 255
    }
  },
  "typeName": "AWS::Amplify::Domain",
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/DomainStatus",
    "/properties/StatusReason",
    "/properties/CertificateRecord"
  ],
  "$defs": {
    "SubDomainSetting": {
      "type": "object",
      "title": "AWSAmplifyDomainSubDomainSettingDefinition",
      "properties": {
        "Prefix": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 255,
              "pattern": "(?s).*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "BranchName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "(?s).+"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Prefix",
        "BranchName"
      ],
      "additionalProperties": false
    }
  },
  "createOnlyProperties": [
    "/properties/AppId",
    "/properties/DomainName"
  ],
  "additionalProperties": false,
  "required": [
    "AppId",
    "DomainName",
    "SubDomainSettings"
  ],
  "primaryIdentifier": [
    "/properties/Arn"
  ]
}
