{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/OdbNetworkId",
  "/properties/PeerNetworkId",
  "/properties/PeerNetworkRouteTableIds"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/OdbPeeringConnectionArn"
 ],
 "properties": {
  "AdditionalPeerNetworkCidrs": {
   "insertionOrder": false,
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "DisplayName": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z_](?!.*--)[a-zA-Z0-9_-]*$",
   "type": "string"
  },
  "OdbNetworkArn": {
   "type": "string"
  },
  "OdbNetworkId": {
   "maxLength": 2048,
   "minLength": 6,
   "pattern": "^(arn:(?:aws|aws-cn|aws-us-gov|aws-iso-{0,1}[a-z]{0,1}):[a-z0-9-]+:[a-z0-9-]*:[0-9]+:[a-z0-9-]+/[a-zA-Z0-9_~.-]{6,64}|[a-zA-Z0-9_~.-]{6,64})$",
   "type": "string"
  },
  "OdbPeeringConnectionArn": {
   "type": "string"
  },
  "OdbPeeringConnectionId": {
   "type": "string"
  },
  "PeerNetworkArn": {
   "type": "string"
  },
  "PeerNetworkCidrs": {
   "insertionOrder": false,
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "PeerNetworkId": {
   "maxLength": 2048,
   "minLength": 6,
   "pattern": "^(arn:(?:aws|aws-cn|aws-us-gov|aws-iso-{0,1}[a-z]{0,1}):[a-z0-9-]+:[a-z0-9-]*:[0-9]+:[a-z0-9-]+/[a-zA-Z0-9_~.-]{6,64}|[a-zA-Z0-9_~.-]{6,64})$",
   "type": "string"
  },
  "PeerNetworkRouteTableIds": {
   "insertionOrder": false,
   "items": {
    "pattern": "^rtb-[a-z0-9]{8,17}$",
    "type": "string"
   },
   "maxItems": 1,
   "minItems": 1,
   "type": "array",
   "uniqueItems": false
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  }
 },
 "readOnlyProperties": [
  "/properties/OdbPeeringConnectionArn",
  "/properties/OdbPeeringConnectionId",
  "/properties/OdbNetworkArn",
  "/properties/PeerNetworkArn",
  "/properties/PeerNetworkCidrs"
 ],
 "replacementStrategy": "delete_then_create",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ODB::OdbPeeringConnection",
 "writeOnlyProperties": [
  "/properties/OdbNetworkId",
  "/properties/PeerNetworkId",
  "/properties/AdditionalPeerNetworkCidrs",
  "/properties/PeerNetworkRouteTableIds"
 ]
}
