{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-codegurureviewer-repositoryassociation.json",
  "title": "AWSCodeGuruReviewerRepositoryAssociationProperties",
  "description": "This resource schema represents the RepositoryAssociation resource in the Amazon CodeGuru Reviewer service.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codegurureviewer>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-codegurureviewer-repositoryassociation.json",
    "sourceSha256": "8d9da5e1170c83c73a087ade27a93d45c0508f0e1bbf9152f4dbcc834b34e5dc"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 100,
          "pattern": "^\\S[\\w.-]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of the repository to be associated."
    },
    "Type": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "CodeCommit",
            "Bitbucket",
            "GitHubEnterpriseServer",
            "S3Bucket"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of repository to be associated."
    },
    "Owner": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 100,
          "pattern": "^\\S(.*\\S)?$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The owner of the repository. For a Bitbucket repository, this is the username for the account that owns the repository."
    },
    "BucketName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 3,
          "maxLength": 63,
          "pattern": "^\\S(.*\\S)?$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the S3 bucket associated with an associated S3 repository. It must start with `codeguru-reviewer-`."
    },
    "ConnectionArn": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 256,
          "pattern": "arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) of an AWS CodeStar Connections connection."
    },
    "Tags": {
      "description": "The tags associated with a repository association.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "maxItems": 50,
      "uniqueItems": false
    }
  },
  "typeName": "AWS::CodeGuruReviewer::RepositoryAssociation",
  "primaryIdentifier": [
    "/properties/AssociationArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codegurureviewer",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Type",
    "/properties/Owner",
    "/properties/ConnectionArn",
    "/properties/Tags",
    "/properties/BucketName"
  ],
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSCodeGuruReviewerRepositoryAssociationTagDefinition",
      "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 128 Unicode characters in length and cannot be prefixed with aws:. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @."
        },
        "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 0 to 256 Unicode characters in length. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @."
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "Type"
  ],
  "readOnlyProperties": [
    "/properties/AssociationArn"
  ]
}
