{
  "typeName" : "AWS::Batch::JobQueue",
  "description" : "Resource Type definition for AWS::Batch::JobQueue",
  "additionalProperties" : false,
  "definitions" : {
    "ResourceArn" : {
      "type" : "string",
      "pattern" : "arn:[a-z0-9-\\.]{1,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[^/].{0,1023}"
    },
    "ComputeEnvironmentOrder" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ComputeEnvironment" : {
          "type" : "string"
        },
        "Order" : {
          "type" : "integer"
        }
      },
      "required" : [ "ComputeEnvironment", "Order" ]
    }
  },
  "properties" : {
    "JobQueueName" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 128
    },
    "JobQueueArn" : {
      "$ref" : "#/definitions/ResourceArn"
    },
    "ComputeEnvironmentOrder" : {
      "type" : "array",
      "insertionOrder" : true,
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/ComputeEnvironmentOrder"
      }
    },
    "Priority" : {
      "type" : "integer",
      "minimum" : 0,
      "maximum" : 1000
    },
    "State" : {
      "type" : "string",
      "enum" : [ "DISABLED", "ENABLED" ]
    },
    "SchedulingPolicyArn" : {
      "$ref" : "#/definitions/ResourceArn"
    },
    "Tags" : {
      "type" : "object",
      "description" : "A key-value pair to associate with a resource.",
      "patternProperties" : {
        ".*" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : false,
    "cloudFormationSystemTags" : false,
    "tagProperty" : "/properties/Tags"
  },
  "required" : [ "ComputeEnvironmentOrder", "Priority" ],
  "primaryIdentifier" : [ "/properties/JobQueueArn" ],
  "createOnlyProperties" : [ "/properties/Tags", "/properties/JobQueueName" ],
  "readOnlyProperties" : [ "/properties/JobQueueArn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "Batch:CreateJobQueue", "Batch:TagResource", "Batch:DescribeJobQueues" ]
    },
    "read" : {
      "permissions" : [ "Batch:DescribeJobQueues" ]
    },
    "update" : {
      "permissions" : [ "Batch:UpdateJobQueue", "Batch:TagResource", "Batch:UnTagResource" ]
    },
    "delete" : {
      "permissions" : [ "Batch:DeleteJobQueue" ]
    },
    "list" : {
      "permissions" : [ "Batch:DescribeJobQueues" ]
    }
  }
}