{
 "additionalProperties": false,
 "conditionalCreateOnlyProperties": [
  "/properties/DbNodes"
 ],
 "createOnlyProperties": [
  "/properties/CloudExadataInfrastructureId",
  "/properties/DataCollectionOptions",
  "/properties/DataStorageSizeInTBs",
  "/properties/DbNodeStorageSizeInGBs",
  "/properties/OdbNetworkId",
  "/properties/GiVersion",
  "/properties/ClusterName",
  "/properties/LicenseModel",
  "/properties/Hostname",
  "/properties/IsLocalBackupEnabled",
  "/properties/IsSparseDiskgroupEnabled",
  "/properties/SystemVersion",
  "/properties/TimeZone",
  "/properties/ScanListenerPortTcp",
  "/properties/SshPublicKeys",
  "/properties/CpuCoreCount",
  "/properties/DisplayName",
  "/properties/MemorySizeInGBs",
  "/properties/DbServers",
  "/properties/DbNodes/*/DbServerId"
 ],
 "definitions": {
  "DataCollectionOptions": {
   "additionalProperties": false,
   "properties": {
    "IsDiagnosticsEventsEnabled": {
     "type": "boolean"
    },
    "IsHealthMonitoringEnabled": {
     "type": "boolean"
    },
    "IsIncidentLogsEnabled": {
     "type": "boolean"
    }
   },
   "type": "object"
  },
  "DbNode": {
   "additionalProperties": false,
   "properties": {
    "BackupIpId": {
     "type": "string"
    },
    "BackupVnic2Id": {
     "type": "string"
    },
    "CpuCoreCount": {
     "type": "integer"
    },
    "DbNodeArn": {
     "type": "string"
    },
    "DbNodeId": {
     "type": "string"
    },
    "DbNodeStorageSizeInGBs": {
     "type": "integer"
    },
    "DbServerId": {
     "type": "string"
    },
    "DbSystemId": {
     "type": "string"
    },
    "HostIpId": {
     "type": "string"
    },
    "Hostname": {
     "type": "string"
    },
    "MemorySizeInGBs": {
     "type": "integer"
    },
    "Ocid": {
     "type": "string"
    },
    "Status": {
     "type": "string"
    },
    "Tags": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/Tag"
     },
     "type": "array",
     "uniqueItems": false
    },
    "Vnic2Id": {
     "type": "string"
    },
    "VnicId": {
     "type": "string"
    }
   },
   "required": [
    "DbServerId"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/CloudVmClusterArn"
 ],
 "properties": {
  "CloudExadataInfrastructureId": {
   "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"
  },
  "CloudVmClusterArn": {
   "type": "string"
  },
  "CloudVmClusterId": {
   "type": "string"
  },
  "ClusterName": {
   "maxLength": 11,
   "minLength": 1,
   "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$",
   "type": "string"
  },
  "ComputeModel": {
   "type": "string"
  },
  "CpuCoreCount": {
   "maximum": 368,
   "minimum": 0,
   "type": "integer"
  },
  "DataCollectionOptions": {
   "$ref": "#/definitions/DataCollectionOptions"
  },
  "DataStorageSizeInTBs": {
   "type": "number"
  },
  "DbNodeStorageSizeInGBs": {
   "type": "integer"
  },
  "DbNodes": {
   "insertionOrder": true,
   "items": {
    "$ref": "#/definitions/DbNode"
   },
   "minLength": 1,
   "type": "array",
   "uniqueItems": true
  },
  "DbServers": {
   "items": {
    "type": "string"
   },
   "maxItems": 1024,
   "minItems": 1,
   "type": "array",
   "uniqueItems": false
  },
  "DiskRedundancy": {
   "type": "string"
  },
  "DisplayName": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z_](?!.*--)[a-zA-Z0-9_-]*$",
   "type": "string"
  },
  "Domain": {
   "type": "string"
  },
  "GiVersion": {
   "maxLength": 255,
   "minLength": 1,
   "type": "string"
  },
  "Hostname": {
   "maxLength": 12,
   "minLength": 1,
   "pattern": "^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$",
   "type": "string"
  },
  "IsLocalBackupEnabled": {
   "type": "boolean"
  },
  "IsSparseDiskgroupEnabled": {
   "type": "boolean"
  },
  "LicenseModel": {
   "enum": [
    "BRING_YOUR_OWN_LICENSE",
    "LICENSE_INCLUDED"
   ],
   "type": "string"
  },
  "ListenerPort": {
   "type": "integer"
  },
  "MemorySizeInGBs": {
   "type": "integer"
  },
  "NodeCount": {
   "type": "integer"
  },
  "OciResourceAnchorName": {
   "type": "string"
  },
  "OciUrl": {
   "type": "string"
  },
  "Ocid": {
   "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"
  },
  "ScanDnsName": {
   "type": "string"
  },
  "ScanIpIds": {
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  },
  "ScanListenerPortTcp": {
   "maximum": 8999,
   "minimum": 1024,
   "type": "integer"
  },
  "Shape": {
   "type": "string"
  },
  "SshPublicKeys": {
   "items": {
    "type": "string"
   },
   "maxItems": 1024,
   "minItems": 1,
   "type": "array",
   "uniqueItems": false
  },
  "StorageSizeInGBs": {
   "type": "integer"
  },
  "SystemVersion": {
   "maxLength": 255,
   "minLength": 1,
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "TimeZone": {
   "maxLength": 255,
   "minLength": 1,
   "type": "string"
  },
  "VipIds": {
   "items": {
    "type": "string"
   },
   "type": "array",
   "uniqueItems": false
  }
 },
 "propertyTransform": {
  "/properties/CloudExadataInfrastructureId": "$split(CloudExadataInfrastructureId, \"cloud-exadata-infrastructure/\")[-1] $OR CloudExadataInfrastructureId",
  "/properties/OdbNetworkId": "$split(OdbNetworkId, \"odb-network/\")[-1] $OR OdbNetworkId"
 },
 "readOnlyProperties": [
  "/properties/CloudVmClusterArn",
  "/properties/CloudVmClusterId",
  "/properties/ComputeModel",
  "/properties/DiskRedundancy",
  "/properties/Domain",
  "/properties/ListenerPort",
  "/properties/NodeCount",
  "/properties/Ocid",
  "/properties/OciResourceAnchorName",
  "/properties/OciUrl",
  "/properties/ScanDnsName",
  "/properties/ScanIpIds",
  "/properties/Shape",
  "/properties/StorageSizeInGBs",
  "/properties/VipIds",
  "/properties/DbNodes/*/DbNodeId",
  "/properties/DbNodes/*/Status",
  "/properties/DbNodes/*/MemorySizeInGBs",
  "/properties/DbNodes/*/DbNodeStorageSizeInGBs",
  "/properties/DbNodes/*/CpuCoreCount",
  "/properties/DbNodes/*/Hostname",
  "/properties/DbNodes/*/DbNodeArn",
  "/properties/DbNodes/*/Ocid",
  "/properties/DbNodes/*/DbSystemId",
  "/properties/DbNodes/*/BackupIpId",
  "/properties/DbNodes/*/BackupVnic2Id",
  "/properties/DbNodes/*/VnicId",
  "/properties/DbNodes/*/Vnic2Id",
  "/properties/DbNodes/*/HostIpId"
 ],
 "replacementStrategy": "delete_then_create",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ODB::CloudVmCluster",
 "writeOnlyProperties": [
  "/properties/ScanListenerPortTcp"
 ]
}
