{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-codeartifact-repository.json",
  "title": "AWSCodeArtifactRepositoryProperties",
  "description": "The resource schema to create a CodeArtifact repository.. 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-repository.json",
    "sourceSha256": "e32caa5dfbfdb6895128215cfe00f8685e11e2268c2f749629175391e1a33cb1"
  },
  "type": "object",
  "properties": {
    "RepositoryName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^([A-Za-z0-9][A-Za-z0-9._\\-]{1,99})$",
          "minLength": 2,
          "maxLength": 100
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the repository."
    },
    "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 that contains the repository."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A text description of the repository."
    },
    "ExternalConnections": {
      "description": "A list of external connections associated with the repository.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "Upstreams": {
      "description": "A list of upstream repositories associated with the repository.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "PermissionsPolicyDocument": {
      "description": "The access control resource policy on the provided repository.",
      "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::Repository",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codeartifact",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Name",
    "/properties/DomainOwner",
    "/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": "AWSCodeArtifactRepositoryTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "RepositoryName",
    "DomainName"
  ],
  "createOnlyProperties": [
    "/properties/RepositoryName",
    "/properties/DomainName",
    "/properties/DomainOwner"
  ]
}
