{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-codeartifact-domain.json",
  "title": "AWSCodeArtifactDomainProperties",
  "description": "The resource schema to create a CodeArtifact domain.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codeartifact>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-codeartifact-domain.json",
    "sourceSha256": "a0e9a73f599757b8bae9e39d05a9ff50bd93bc4d533e2703a66a35bde41d0a1f"
  },
  "type": "object",
  "properties": {
    "DomainName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^([a-z][a-z0-9\\-]{0,48}[a-z0-9])$",
          "minLength": 2,
          "maxLength": 50
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the domain."
    },
    "PermissionsPolicyDocument": {
      "description": "The access control resource policy on the provided domain.",
      "type": "object",
      "minLength": 2,
      "maxLength": 5120
    },
    "Tags": {
      "type": "array",
      "description": "An array of key-value pairs to apply to this resource.",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::CodeArtifact::Domain",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codeartifact",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Owner",
    "/properties/Name",
    "/properties/EncryptionKey",
    "/properties/Arn"
  ],
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "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 key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "title": "AWSCodeArtifactDomainTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "DomainName"
  ],
  "createOnlyProperties": [
    "/properties/DomainName",
    "/properties/EncryptionKey"
  ]
}
