{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ConnectionName",
  "/properties/ProviderType",
  "/properties/HostArn"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/ConnectionArn"
 ],
 "properties": {
  "ConnectionArn": {
   "maxLength": 256,
   "minLength": 0,
   "pattern": "arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+",
   "type": "string"
  },
  "ConnectionName": {
   "maxLength": 32,
   "minLength": 1,
   "pattern": "^[\\s\\S]*$",
   "type": "string"
  },
  "ConnectionStatus": {
   "type": "string"
  },
  "HostArn": {
   "maxLength": 256,
   "minLength": 0,
   "pattern": "arn:aws(-[\\w]+)*:.+:.+:[0-9]{12}:.+",
   "type": "string"
  },
  "OwnerAccountId": {
   "maxLength": 12,
   "minLength": 12,
   "pattern": "[0-9]{12}",
   "type": "string"
  },
  "ProviderType": {
   "enum": [
    "Bitbucket",
    "GitHub",
    "GitHubEnterpriseServer",
    "GitLab",
    "GitLabSelfManaged"
   ],
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 200,
   "minItems": 0,
   "type": "array"
  }
 },
 "readOnlyProperties": [
  "/properties/ConnectionArn",
  "/properties/ConnectionStatus",
  "/properties/OwnerAccountId"
 ],
 "required": [
  "ConnectionName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codestarconnections.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::CodeStarConnections::Connection"
}
