{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ClusterName"
 ],
 "definitions": {
  "CapacityProviderStrategyItem": {
   "additionalProperties": false,
   "properties": {
    "Base": {
     "maximum": 100000,
     "minimum": 0,
     "type": "integer"
    },
    "CapacityProvider": {
     "type": "string"
    },
    "Weight": {
     "maximum": 1000,
     "minimum": 0,
     "type": "integer"
    }
   },
   "type": "object"
  },
  "ClusterConfiguration": {
   "additionalProperties": false,
   "properties": {
    "ExecuteCommandConfiguration": {
     "$ref": "#/definitions/ExecuteCommandConfiguration"
    },
    "ManagedStorageConfiguration": {
     "$ref": "#/definitions/ManagedStorageConfiguration"
    }
   },
   "type": "object"
  },
  "ClusterSettings": {
   "additionalProperties": false,
   "properties": {
    "Name": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "ExecuteCommandConfiguration": {
   "additionalProperties": false,
   "properties": {
    "KmsKeyId": {
     "type": "string"
    },
    "LogConfiguration": {
     "$ref": "#/definitions/ExecuteCommandLogConfiguration"
    },
    "Logging": {
     "enum": [
      "DEFAULT",
      "NONE",
      "OVERRIDE"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "ExecuteCommandLogConfiguration": {
   "additionalProperties": false,
   "properties": {
    "CloudWatchEncryptionEnabled": {
     "type": "boolean"
    },
    "CloudWatchLogGroupName": {
     "type": "string"
    },
    "S3BucketName": {
     "type": "string"
    },
    "S3EncryptionEnabled": {
     "type": "boolean"
    },
    "S3KeyPrefix": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "ManagedStorageConfiguration": {
   "additionalProperties": false,
   "properties": {
    "FargateEphemeralStorageKmsKeyId": {
     "type": "string"
    },
    "KmsKeyId": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "ServiceConnectDefaults": {
   "additionalProperties": false,
   "properties": {
    "Namespace": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/ClusterName"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "CapacityProviders": {
   "items": {
    "type": "string"
   },
   "type": "array"
  },
  "ClusterName": {
   "type": "string"
  },
  "ClusterSettings": {
   "items": {
    "$ref": "#/definitions/ClusterSettings"
   },
   "type": "array"
  },
  "Configuration": {
   "$ref": "#/definitions/ClusterConfiguration"
  },
  "DefaultCapacityProviderStrategy": {
   "items": {
    "$ref": "#/definitions/CapacityProviderStrategyItem"
   },
   "type": "array"
  },
  "ServiceConnectDefaults": {
   "$ref": "#/definitions/ServiceConnectDefaults"
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 0,
   "type": "array"
  }
 },
 "propertyTransform": {
  "/properties/Configuration/ManagedStorageConfiguration/FargateEphemeralStorageKmsKeyId": "$join([\"arn:aws[-a-z]*:kms:[a-z0-9-]+:[0-9]{12}:key/\", FargateEphemeralStorageKmsKeyId])"
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ECS::Cluster",
 "writeOnlyProperties": [
  "/properties/ServiceConnectDefaults"
 ]
}
