{
  "typeName" : "AWS::ECS::PrimaryTaskSet",
  "description" : "A pseudo-resource that manages which of your ECS task sets is primary.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ecs.git",
  "properties" : {
    "Cluster" : {
      "description" : "The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.",
      "type" : "string"
    },
    "TaskSetId" : {
      "description" : "The ID or full Amazon Resource Name (ARN) of the task set.",
      "type" : "string"
    },
    "Service" : {
      "description" : "The short name or full Amazon Resource Name (ARN) of the service to create the task set in.",
      "type" : "string"
    }
  },
  "additionalProperties" : false,
  "required" : [ "Cluster", "Service", "TaskSetId" ],
  "createOnlyProperties" : [ "/properties/Cluster", "/properties/Service" ],
  "primaryIdentifier" : [ "/properties/Cluster", "/properties/Service" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "ecs:DescribeTaskSets", "ecs:UpdateServicePrimaryTaskSet" ]
    },
    "read" : {
      "permissions" : [ "" ]
    },
    "update" : {
      "permissions" : [ "ecs:DescribeTaskSets", "ecs:UpdateServicePrimaryTaskSet" ]
    },
    "delete" : {
      "permissions" : [ "" ]
    }
  }
}