{
  "typeName" : "AWS::Batch::ServiceEnvironment",
  "description" : "Resource Type definition for AWS::Batch::ServiceEnvironment",
  "additionalProperties" : false,
  "properties" : {
    "ServiceEnvironmentArn" : {
      "type" : "string"
    },
    "ServiceEnvironmentName" : {
      "type" : "string"
    },
    "State" : {
      "type" : "string"
    },
    "ServiceEnvironmentType" : {
      "type" : "string"
    },
    "CapacityLimits" : {
      "$ref" : "#/definitions/CapacityLimits"
    },
    "Tags" : {
      "type" : "object",
      "description" : "A key-value pair to associate with a resource.",
      "patternProperties" : {
        ".*" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false
    }
  },
  "definitions" : {
    "CapacityLimits" : {
      "type" : "array",
      "uniqueItems" : false,
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/CapacityLimit"
      }
    },
    "CapacityLimit" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "MaxCapacity" : {
          "type" : "integer"
        },
        "CapacityUnit" : {
          "type" : "string"
        }
      }
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "Batch:TagResource", "Batch:UntagResource" ]
  },
  "required" : [ "ServiceEnvironmentType", "CapacityLimits" ],
  "createOnlyProperties" : [ "/properties/ServiceEnvironmentName", "/properties/ServiceEnvironmentType" ],
  "primaryIdentifier" : [ "/properties/ServiceEnvironmentArn" ],
  "readOnlyProperties" : [ "/properties/ServiceEnvironmentArn" ],
  "additionalIdentifiers" : [ [ "/properties/ServiceEnvironmentName" ] ],
  "handlers" : {
    "create" : {
      "permissions" : [ "Batch:CreateServiceEnvironment", "Batch:TagResource", "Batch:DescribeServiceEnvironments", "Iam:CreateServiceLinkedRole" ]
    },
    "read" : {
      "permissions" : [ "Batch:DescribeServiceEnvironments" ]
    },
    "update" : {
      "permissions" : [ "Batch:UpdateServiceEnvironment", "Batch:DescribeServiceEnvironments", "Batch:TagResource", "Batch:UntagResource" ]
    },
    "delete" : {
      "permissions" : [ "Batch:DeleteServiceEnvironment", "Batch:DescribeServiceEnvironments", "Batch:UpdateServiceEnvironment" ]
    },
    "list" : {
      "permissions" : [ "Batch:DescribeServiceEnvironments" ]
    }
  }
}