{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iottwinmaker-entity.json",
  "title": "AWSIoTTwinMakerEntityProperties",
  "description": "Resource schema for AWS::IoTTwinMaker::Entity. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iottwinmaker>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iottwinmaker-entity.json",
    "sourceSha256": "7a1bae3dc37b38dbd64dd2acfcfb03d7dc5ba023df4188821b116fad4182459c"
  },
  "type": "object",
  "properties": {
    "EntityId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\\-0-9.:]*[a-zA-Z0-9]+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the entity."
    },
    "EntityName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "pattern": "[a-zA-Z_0-9-.][a-zA-Z_0-9-. ]*[a-zA-Z0-9]+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the entity."
    },
    "ParentEntityId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "\\$ROOT|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\\-0-9.:]*[a-zA-Z0-9]+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the parent entity."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 512
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The description of the entity."
    },
    "Tags": {
      "type": "object",
      "description": "A key-value pair to associate with a resource.",
      "additionalProperties": false,
      "patternProperties": {
        "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        }
      }
    },
    "WorkspaceId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "[a-zA-Z_0-9][a-zA-Z_\\-0-9]*[a-zA-Z0-9]+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the workspace."
    },
    "Components": {
      "description": "A map that sets information about a component type.",
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "[a-zA-Z_\\-0-9]+": {
          "$ref": "#/$defs/Component"
        }
      }
    }
  },
  "typeName": "AWS::IoTTwinMaker::Entity",
  "primaryIdentifier": [
    "/properties/WorkspaceId",
    "/properties/EntityId"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iottwinmaker",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/WorkspaceId",
    "/properties/EntityId"
  ],
  "$defs": {
    "DateTimeFormat": {
      "oneOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSIoTTwinMakerEntityDateTimeFormatDefinition"
    },
    "Relationship": {
      "description": "The type of the relationship.",
      "type": "object",
      "properties": {
        "RelationshipType": {
          "oneOf": [
            {
              "type": "string",
              "pattern": ".*",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The type of the relationship."
        },
        "TargetComponentTypeId": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z_\\.\\-0-9:]+",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ID of the target component type associated with this relationship."
        }
      },
      "title": "AWSIoTTwinMakerEntityRelationshipDefinition",
      "additionalProperties": false
    },
    "PropertyDefinitionConfiguration": {
      "description": "An object that specifies information about a property.",
      "type": "object",
      "additionalProperties": false,
      "title": "AWSIoTTwinMakerEntityPropertyDefinitionConfigurationDefinition",
      "patternProperties": {
        "[a-zA-Z_\\-0-9]+": {
          "type": "string",
          "pattern": "[a-zA-Z_\\-0-9]+",
          "minLength": 1,
          "maxLength": 256
        }
      }
    },
    "DataType": {
      "description": "An object that specifies the data type of a property.",
      "type": "object",
      "properties": {
        "AllowedValues": {
          "description": "The allowed values for this data type.",
          "type": "array",
          "minItems": 0,
          "maxItems": 50,
          "uniqueItems": false,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/DataValue"
          }
        },
        "NestedType": {
          "description": "The nested type in the data type.",
          "$ref": "#/$defs/DataType"
        },
        "Relationship": {
          "description": "A relationship that associates a component with another component.",
          "$ref": "#/$defs/Relationship"
        },
        "Type": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "RELATIONSHIP",
                "STRING",
                "LONG",
                "BOOLEAN",
                "INTEGER",
                "DOUBLE",
                "LIST",
                "MAP"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The underlying type of the data type."
        },
        "UnitOfMeasure": {
          "oneOf": [
            {
              "type": "string",
              "pattern": ".*",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The unit of measure used in this data type."
        }
      },
      "title": "AWSIoTTwinMakerEntityDataTypeDefinition",
      "additionalProperties": false
    },
    "DataValue": {
      "description": "An object that specifies a value for a property.",
      "type": "object",
      "properties": {
        "BooleanValue": {
          "description": "A Boolean value.",
          "type": "boolean"
        },
        "DoubleValue": {
          "description": "A double value.",
          "type": "number"
        },
        "Expression": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "(^\\$\\{Parameters\\.[a-zA-z]+([a-zA-z_0-9]*)\\}$)",
              "minLength": 1,
              "maxLength": 316
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "An expression that produces the value."
        },
        "IntegerValue": {
          "description": "An integer value.",
          "type": "integer"
        },
        "ListValue": {
          "description": "A list of multiple values.",
          "type": "array",
          "minItems": 0,
          "maxItems": 50,
          "uniqueItems": false,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/DataValue"
          }
        },
        "LongValue": {
          "description": "A long value.",
          "type": "number"
        },
        "StringValue": {
          "oneOf": [
            {
              "type": "string",
              "pattern": ".*",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A string value."
        },
        "MapValue": {
          "description": "An object that maps strings to multiple DataValue objects.",
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            "[a-zA-Z_\\-0-9]+": {
              "$ref": "#/$defs/DataValue"
            }
          }
        },
        "RelationshipValue": {
          "description": "A value that relates a component to another component.",
          "type": "object",
          "properties": {
            "TargetComponentName": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "[a-zA-Z_\\-0-9]+",
                  "minLength": 1,
                  "maxLength": 256
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ]
            },
            "TargetEntityId": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|^[a-zA-Z0-9][a-zA-Z_\\-0-9.:]*[a-zA-Z0-9]+",
                  "minLength": 1,
                  "maxLength": 128
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "title": "AWSIoTTwinMakerEntityDataValueDefinition",
      "additionalProperties": false
    },
    "Property": {
      "type": "object",
      "properties": {
        "Definition": {
          "description": "An object that specifies information about a property.",
          "type": "object",
          "properties": {
            "Configuration": {
              "description": "An object that specifies information about a property.",
              "$ref": "#/$defs/PropertyDefinitionConfiguration"
            },
            "DataType": {
              "description": "An object that contains information about the data type.",
              "$ref": "#/$defs/DataType"
            },
            "DefaultValue": {
              "description": "An object that contains the default value.",
              "$ref": "#/$defs/DataValue"
            },
            "IsExternalId": {
              "description": "A Boolean value that specifies whether the property ID comes from an external data store.",
              "type": "boolean"
            },
            "IsFinal": {
              "description": "A Boolean value that specifies whether the property definition can be updated.",
              "type": "boolean"
            },
            "IsImported": {
              "description": "A Boolean value that specifies whether the property definition is imported from an external data store.",
              "type": "boolean"
            },
            "IsInherited": {
              "description": "A Boolean value that specifies whether the property definition is inherited from a parent entity.",
              "type": "boolean"
            },
            "IsRequiredInEntity": {
              "description": "A Boolean value that specifies whether the property is required.",
              "type": "boolean"
            },
            "IsStoredExternally": {
              "description": "A Boolean value that specifies whether the property is stored externally.",
              "type": "boolean"
            },
            "IsTimeSeries": {
              "description": "A Boolean value that specifies whether the property consists of time series data.",
              "type": "boolean"
            }
          },
          "additionalProperties": false
        },
        "Value": {
          "description": "The value of the property.",
          "$ref": "#/$defs/DataValue"
        }
      },
      "title": "AWSIoTTwinMakerEntityPropertyDefinition",
      "additionalProperties": false
    },
    "PropertyName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[a-zA-Z_\\-0-9]+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSIoTTwinMakerEntityPropertyNameDefinition"
    },
    "PropertyGroup": {
      "description": "An object that specifies information about a property group.",
      "type": "object",
      "properties": {
        "GroupType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "TABULAR"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The type of property group."
        },
        "PropertyNames": {
          "description": "The list of property names in the property group.",
          "type": "array",
          "minItems": 1,
          "maxItems": 256,
          "uniqueItems": true,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/PropertyName"
          }
        }
      },
      "title": "AWSIoTTwinMakerEntityPropertyGroupDefinition",
      "additionalProperties": false
    },
    "Component": {
      "type": "object",
      "properties": {
        "ComponentName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z_\\-0-9]+",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of the component."
        },
        "ComponentTypeId": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[a-zA-Z_\\-0-9]+",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ID of the component type."
        },
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 512
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The description of the component."
        },
        "DefinedIn": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name of the property definition set in the component."
        },
        "Properties": {
          "description": "An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.",
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            "[a-zA-Z_\\-0-9]+": {
              "$ref": "#/$defs/Property"
            }
          }
        },
        "PropertyGroups": {
          "description": "An object that maps strings to the property groups to set in the component type. Each string in the mapping must be unique to this object.",
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            "[a-zA-Z_\\-0-9]+": {
              "$ref": "#/$defs/PropertyGroup"
            }
          }
        },
        "Status": {
          "description": "The current status of the entity.",
          "$ref": "#/$defs/Status"
        }
      },
      "title": "AWSIoTTwinMakerEntityComponentDefinition",
      "additionalProperties": false
    },
    "Status": {
      "type": "object",
      "properties": {
        "State": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "CREATING",
                "UPDATING",
                "DELETING",
                "ACTIVE",
                "ERROR"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Error": {
          "type": "object",
          "anyOf": [
            {
              "description": "Empty Error object.",
              "type": "object",
              "additionalProperties": false
            },
            {
              "description": "Error object with Message and Code.",
              "type": "object",
              "properties": {
                "Message": {
                  "type": "string",
                  "minLength": 0,
                  "maxLength": 2048
                },
                "Code": {
                  "type": "string",
                  "enum": [
                    "VALIDATION_ERROR",
                    "INTERNAL_FAILURE"
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        }
      },
      "title": "AWSIoTTwinMakerEntityStatusDefinition",
      "additionalProperties": false
    }
  },
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "WorkspaceId",
    "EntityName"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/CreationDateTime",
    "/properties/UpdateDateTime",
    "/properties/Status",
    "/properties/HasChildEntities"
  ]
}
