{
 "additionalIdentifiers": [
  [
   "/properties/Id"
  ]
 ],
 "additionalProperties": false,
 "definitions": {
  "Status": {
   "enum": [
    "PENDING",
    "CONNECTED",
    "REJECTED"
   ],
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "lifecycle": {
  "date": "2026-10-07",
  "status": "sunset"
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "CodebuildRoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 200,
   "minLength": 1,
   "pattern": "^arn:(aws|aws-cn|aws-us-gov):iam::\\d{12}:role/([\\w+=,.@-]{1,512}[/:])*([\\w+=,.@-]{1,64})$",
   "type": "string"
  },
  "ComponentRoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 200,
   "minLength": 1,
   "pattern": "^arn:(aws|aws-cn|aws-us-gov):iam::\\d{12}:role/([\\w+=,.@-]{1,512}[/:])*([\\w+=,.@-]{1,64})$",
   "type": "string"
  },
  "EnvironmentAccountId": {
   "pattern": "^\\d{12}$",
   "type": "string"
  },
  "EnvironmentName": {
   "maxLength": 100,
   "minLength": 1,
   "pattern": "^[0-9A-Za-z]+[0-9A-Za-z_\\-]*$",
   "type": "string"
  },
  "Id": {
   "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
   "type": "string"
  },
  "ManagementAccountId": {
   "pattern": "^\\d{12}$",
   "type": "string"
  },
  "RoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 200,
   "minLength": 1,
   "pattern": "^arn:(aws|aws-cn|aws-us-gov):iam::\\d{12}:role/([\\w+=,.@-]{1,512}[/:])*([\\w+=,.@-]{1,64})$",
   "type": "string"
  },
  "Status": {
   "$ref": "#/definitions/Status"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 0,
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/Arn",
  "/properties/Id",
  "/properties/Status"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-proton",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Proton::EnvironmentAccountConnection"
}
