{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iotsitewise-gateway.json",
  "title": "AWSIoTSiteWiseGatewayProperties",
  "description": "Resource schema for AWS::IoTSiteWise::Gateway. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-IoTSiteWise.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iotsitewise-gateway.json",
    "sourceSha256": "c259b60b76d9ad616c854c67d1ab6a30a62c63ca4807c59b6ecccd4118014b68"
  },
  "type": "object",
  "properties": {
    "GatewayName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A unique, friendly name for the gateway."
    },
    "GatewayPlatform": {
      "description": "The gateway's platform. You can only specify one platform in a gateway.",
      "$ref": "#/$defs/GatewayPlatform"
    },
    "Tags": {
      "description": "A list of key-value pairs that contain metadata for the gateway.",
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "GatewayCapabilitySummaries": {
      "description": "A list of gateway capability summaries that each contain a namespace and status.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/GatewayCapabilitySummary"
      }
    }
  },
  "typeName": "AWS::IoTSiteWise::Gateway",
  "primaryIdentifier": [
    "/properties/GatewayId"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-IoTSiteWise.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/GatewayPlatform"
  ],
  "$defs": {
    "GatewayPlatform": {
      "description": "Contains a gateway's platform information.",
      "type": "object",
      "title": "AWSIoTSiteWiseGatewayGatewayPlatformDefinition",
      "properties": {
        "Greengrass": {
          "description": "A gateway that runs on AWS IoT Greengrass V1.",
          "$ref": "#/$defs/Greengrass"
        },
        "GreengrassV2": {
          "description": "A gateway that runs on AWS IoT Greengrass V2.",
          "$ref": "#/$defs/GreengrassV2"
        }
      },
      "oneOf": [
        {
          "required": [
            "Greengrass"
          ]
        },
        {
          "required": [
            "GreengrassV2"
          ]
        }
      ],
      "additionalProperties": false
    },
    "Greengrass": {
      "description": "Contains the ARN of AWS IoT Greengrass Group V1 that the gateway runs on.",
      "type": "object",
      "title": "AWSIoTSiteWiseGatewayGreengrassDefinition",
      "properties": {
        "GroupArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ARN of the Greengrass group."
        }
      },
      "required": [
        "GroupArn"
      ],
      "additionalProperties": false
    },
    "GreengrassV2": {
      "description": "Contains the CoreDeviceThingName of AWS IoT Greengrass Group V2 that the gateway runs on.",
      "type": "object",
      "title": "AWSIoTSiteWiseGatewayGreengrassV2Definition",
      "properties": {
        "CoreDeviceThingName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of the CoreDevice in GreenGrass V2."
        }
      },
      "required": [
        "CoreDeviceThingName"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "description": "To add or update tag, provide both key and value. To delete tag, provide only tag key to be deleted",
      "type": "object",
      "title": "AWSIoTSiteWiseGatewayTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    },
    "CapabilityNamespace": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The namespace of the capability configuration.",
      "title": "AWSIoTSiteWiseGatewayCapabilityNamespaceDefinition"
    },
    "CapabilityConfiguration": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The JSON document that defines the gateway capability's configuration.",
      "title": "AWSIoTSiteWiseGatewayCapabilityConfigurationDefinition"
    },
    "GatewayCapabilitySummary": {
      "description": "Contains a summary of a gateway capability configuration.",
      "type": "object",
      "title": "AWSIoTSiteWiseGatewayGatewayCapabilitySummaryDefinition",
      "properties": {
        "CapabilityNamespace": {
          "$ref": "#/$defs/CapabilityNamespace"
        },
        "CapabilityConfiguration": {
          "$ref": "#/$defs/CapabilityConfiguration"
        }
      },
      "required": [
        "CapabilityNamespace"
      ],
      "additionalProperties": false
    }
  },
  "taggable": true,
  "required": [
    "GatewayName",
    "GatewayPlatform"
  ],
  "readOnlyProperties": [
    "/properties/GatewayId"
  ]
}
