{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Cluster",
  "/properties/ExternalId",
  "/properties/LaunchType",
  "/properties/LoadBalancers",
  "/properties/NetworkConfiguration",
  "/properties/PlatformVersion",
  "/properties/Service",
  "/properties/ServiceRegistries",
  "/properties/TaskDefinition",
  "/properties/CapacityProviderStrategy"
 ],
 "definitions": {
  "AwsVpcConfiguration": {
   "additionalProperties": false,
   "properties": {
    "AssignPublicIp": {
     "enum": [
      "DISABLED",
      "ENABLED"
     ],
     "type": "string"
    },
    "SecurityGroups": {
     "format": "AWS::EC2::SecurityGroup.Ids",
     "items": {
      "format": "AWS::EC2::SecurityGroup.Id",
      "type": "string"
     },
     "maxItems": 5,
     "type": "array"
    },
    "Subnets": {
     "format": "AWS::EC2::Subnet.Ids",
     "items": {
      "format": "AWS::EC2::Subnet.Id",
      "type": "string"
     },
     "maxItems": 16,
     "type": "array"
    }
   },
   "required": [
    "Subnets"
   ],
   "type": "object"
  },
  "CapacityProviderStrategyItem": {
   "additionalProperties": false,
   "properties": {
    "Base": {
     "maximum": 100000,
     "minimum": 0,
     "type": "integer"
    },
    "CapacityProvider": {
     "type": "string"
    },
    "Weight": {
     "maximum": 1000,
     "minimum": 0,
     "type": "integer"
    }
   },
   "type": "object"
  },
  "LoadBalancer": {
   "additionalProperties": false,
   "properties": {
    "ContainerName": {
     "type": "string"
    },
    "ContainerPort": {
     "type": "integer"
    },
    "TargetGroupArn": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "NetworkConfiguration": {
   "additionalProperties": false,
   "properties": {
    "AwsVpcConfiguration": {
     "$ref": "#/definitions/AwsVpcConfiguration"
    }
   },
   "type": "object"
  },
  "Scale": {
   "additionalProperties": false,
   "properties": {
    "Unit": {
     "enum": [
      "PERCENT"
     ],
     "type": "string"
    },
    "Value": {
     "maximum": 100,
     "minimum": 0,
     "type": "number"
    }
   },
   "type": "object"
  },
  "ServiceRegistry": {
   "additionalProperties": false,
   "properties": {
    "ContainerName": {
     "type": "string"
    },
    "ContainerPort": {
     "type": "integer"
    },
    "Port": {
     "type": "integer"
    },
    "RegistryArn": {
     "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/Cluster",
  "/properties/Service",
  "/properties/Id"
 ],
 "properties": {
  "CapacityProviderStrategy": {
   "items": {
    "$ref": "#/definitions/CapacityProviderStrategyItem"
   },
   "type": "array"
  },
  "Cluster": {
   "type": "string"
  },
  "ExternalId": {
   "type": "string"
  },
  "Id": {
   "type": "string"
  },
  "LaunchType": {
   "enum": [
    "EC2",
    "FARGATE"
   ],
   "type": "string"
  },
  "LoadBalancers": {
   "items": {
    "$ref": "#/definitions/LoadBalancer"
   },
   "type": "array"
  },
  "NetworkConfiguration": {
   "$ref": "#/definitions/NetworkConfiguration"
  },
  "PlatformVersion": {
   "type": "string"
  },
  "Scale": {
   "$ref": "#/definitions/Scale"
  },
  "Service": {
   "type": "string"
  },
  "ServiceRegistries": {
   "items": {
    "$ref": "#/definitions/ServiceRegistry"
   },
   "type": "array"
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 0,
   "type": "array"
  },
  "TaskDefinition": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Id"
 ],
 "required": [
  "Cluster",
  "Service",
  "TaskDefinition"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ecs.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ECS::TaskSet"
}
