{
 "$schema": "https://schema.cloudformation.us-east-1.amazonaws.com/provider.definition.schema.v1.json",
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/NodeJsVersion"
 ],
 "definitions": {
  "S3Location": {
   "$comment": "Contains object details present in the S3 Bucket",
   "additionalProperties": false,
   "properties": {
    "Bucket": {
     "minLength": 1,
     "type": "string"
    },
    "Key": {
     "minLength": 1,
     "type": "string"
    },
    "ObjectVersion": {
     "minLength": 1,
     "type": "string"
    },
    "RoleArn": {
     "format": "AWS::IAM::Role.Arn",
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Bucket",
    "Key",
    "RoleArn"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Arn": {
   "pattern": "^arn:.*:script\\/script-\\S+",
   "type": "string"
  },
  "CreationTime": {
   "type": "string"
  },
  "Id": {
   "pattern": "^script-\\S+",
   "type": "string"
  },
  "Name": {
   "maxLength": 1024,
   "minLength": 1,
   "type": "string"
  },
  "NodeJsVersion": {
   "maxLength": 16,
   "minLength": 0,
   "pattern": "^\\d+\\.[x0-9]+$",
   "type": "string"
  },
  "SizeOnDisk": {
   "minimum": 0,
   "type": "integer"
  },
  "StorageLocation": {
   "$ref": "#/definitions/S3Location",
   "type": "object"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 200,
   "minItems": 0,
   "type": "array",
   "uniqueItems": true
  },
  "Version": {
   "maxLength": 1024,
   "minLength": 1,
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Id",
  "/properties/CreationTime",
  "/properties/Arn",
  "/properties/SizeOnDisk"
 ],
 "required": [
  "StorageLocation"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-gamelift.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::GameLift::Script"
}
