{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/GatewayPlatform",
  "/properties/GatewayVersion"
 ],
 "definitions": {
  "CapabilityConfiguration": {
   "type": "string"
  },
  "CapabilityNamespace": {
   "type": "string"
  },
  "GatewayCapabilitySummary": {
   "additionalProperties": false,
   "properties": {
    "CapabilityConfiguration": {
     "$ref": "#/definitions/CapabilityConfiguration"
    },
    "CapabilityNamespace": {
     "$ref": "#/definitions/CapabilityNamespace"
    }
   },
   "required": [
    "CapabilityNamespace"
   ],
   "type": "object"
  },
  "GatewayPlatform": {
   "additionalProperties": false,
   "oneOf": [
    {
     "required": [
      "GreengrassV2"
     ]
    },
    {
     "required": [
      "SiemensIE"
     ]
    }
   ],
   "properties": {
    "GreengrassV2": {
     "$ref": "#/definitions/GreengrassV2"
    },
    "SiemensIE": {
     "$ref": "#/definitions/SiemensIE"
    }
   },
   "type": "object"
  },
  "GatewayVersion": {
   "type": "string"
  },
  "GreengrassV2": {
   "additionalProperties": false,
   "properties": {
    "CoreDeviceOperatingSystem": {
     "enum": [
      "LINUX_AARCH64",
      "LINUX_AMD64",
      "WINDOWS_AMD64"
     ],
     "type": "string"
    },
    "CoreDeviceThingName": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^[a-zA-Z0-9:_-]+$",
     "type": "string"
    }
   },
   "required": [
    "CoreDeviceThingName"
   ],
   "type": "object"
  },
  "SiemensIE": {
   "additionalProperties": false,
   "properties": {
    "IotCoreThingName": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^[a-zA-Z0-9:_-]+$",
     "type": "string"
    }
   },
   "required": [
    "IotCoreThingName"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/GatewayId"
 ],
 "properties": {
  "GatewayCapabilitySummaries": {
   "insertionOrder": true,
   "items": {
    "$ref": "#/definitions/GatewayCapabilitySummary"
   },
   "type": "array",
   "uniqueItems": true
  },
  "GatewayId": {
   "type": "string"
  },
  "GatewayName": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
   "type": "string"
  },
  "GatewayPlatform": {
   "$ref": "#/definitions/GatewayPlatform"
  },
  "GatewayVersion": {
   "maxLength": 1024,
   "minLength": 1,
   "pattern": "^[0-9]+$",
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  }
 },
 "readOnlyProperties": [
  "/properties/GatewayId"
 ],
 "required": [
  "GatewayName",
  "GatewayPlatform"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-IoTSiteWise.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::IoTSiteWise::Gateway"
}
