{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iot-domainconfiguration.json",
  "title": "AWSIoTDomainConfigurationProperties",
  "description": "Create and manage a Domain Configuration. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iot-domainconfiguration.json",
    "sourceSha256": "c27bdeb0beefc64434d114c2cb78b970e58da4f3ed41f718c7609390d0658cc8"
  },
  "type": "object",
  "properties": {
    "DomainConfigurationName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[\\w.-]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AuthorizerConfig": {
      "$ref": "#/$defs/AuthorizerConfig"
    },
    "DomainName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 253
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ServerCertificateArns": {
      "type": "array",
      "minItems": 0,
      "maxItems": 1,
      "insertionOrder": true,
      "items": {
        "type": "string",
        "pattern": "^arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\\d{1}:\\d{12}:certificate/[a-zA-Z0-9/-]+$",
        "minLength": 1,
        "maxLength": 2048
      }
    },
    "ServiceType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "DATA",
            "CREDENTIAL_PROVIDER",
            "JOBS"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ValidationCertificateArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\\d{1}:\\d{12}:certificate/[a-zA-Z0-9/-]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DomainConfigurationStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "TlsConfig": {
      "$ref": "#/$defs/TlsConfig"
    },
    "Tags": {
      "type": "array",
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::IoT::DomainConfiguration",
  "primaryIdentifier": [
    "/properties/DomainConfigurationName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "writeOnlyProperties": [
    "/properties/ValidationCertificateArn",
    "/properties/ServerCertificateArns"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "$defs": {
    "AuthorizerConfig": {
      "type": "object",
      "properties": {
        "AllowAuthorizerOverride": {
          "type": "boolean"
        },
        "DefaultAuthorizerName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[\\w=,@-]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSIoTDomainConfigurationAuthorizerConfigDefinition",
      "additionalProperties": false
    },
    "ServerCertificateSummary": {
      "type": "object",
      "properties": {
        "ServerCertificateArn": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^arn:aws(-cn|-us-gov|-iso-b|-iso)?:acm:[a-z]{2}-(gov-|iso-|isob-)?[a-z]{4,9}-\\d{1}:\\d{12}:certificate/[a-zA-Z0-9/-]+$",
              "minLength": 1,
              "maxLength": 2048
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ServerCertificateStatus": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "INVALID",
                "VALID"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ServerCertificateStatusDetail": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSIoTDomainConfigurationServerCertificateSummaryDefinition",
      "additionalProperties": false
    },
    "TlsConfig": {
      "type": "object",
      "properties": {
        "SecurityPolicy": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSIoTDomainConfigurationTlsConfigDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSIoTDomainConfigurationTagDefinition",
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "required": [],
  "createOnlyProperties": [
    "/properties/DomainConfigurationName",
    "/properties/DomainName",
    "/properties/ServiceType",
    "/properties/ValidationCertificateArn",
    "/properties/ServerCertificateArns"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/DomainType",
    "/properties/ServerCertificates"
  ]
}
