{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iottwinmaker-componenttype.json",
  "title": "AWSIoTTwinMakerComponentTypeProperties",
  "description": "Resource schema for AWS::IoTTwinMaker::ComponentType. 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-componenttype.json",
    "sourceSha256": "b0a6eef97537b3dde13f1170e86359287c9aa71596e38289b861392cc86fa03e"
  },
  "type": "object",
  "properties": {
    "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 that contains the component type."
    },
    "ComponentTypeId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "pattern": "[a-zA-Z_\\.\\-0-9:]+"
        },
        {
          "$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 type."
    },
    "ExtendsFrom": {
      "description": "Specifies the parent component type to extend.",
      "type": "array",
      "minItems": 1,
      "maxItems": 256,
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/ParentComponentType"
      }
    },
    "Functions": {
      "description": "a Map of functions in the component type. Each function's key must be unique to this map.",
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "[a-zA-Z_\\-0-9]+": {
          "$ref": "#/$defs/Function"
        }
      }
    },
    "IsSingleton": {
      "description": "A Boolean value that specifies whether an entity can have more than one component of this type.",
      "type": "boolean"
    },
    "PropertyDefinitions": {
      "description": "An map of the property definitions in the component type. Each property definition's key must be unique to this map.",
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "[a-zA-Z_\\-0-9]+": {
          "$ref": "#/$defs/PropertyDefinition"
        }
      }
    },
    "PropertyGroups": {
      "description": "An map of the property groups in the component type. Each property group's key must be unique to this map.",
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        "[a-zA-Z_\\-0-9]+": {
          "$ref": "#/$defs/PropertyGroup"
        }
      }
    },
    "Tags": {
      "type": "object",
      "description": "A map of key-value pairs to associate with a resource.",
      "additionalProperties": false,
      "maxProperties": 50,
      "patternProperties": {
        "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        }
      }
    }
  },
  "typeName": "AWS::IoTTwinMaker::ComponentType",
  "primaryIdentifier": [
    "/properties/WorkspaceId",
    "/properties/ComponentTypeId"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iottwinmaker",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/WorkspaceId",
    "/properties/ComponentTypeId"
  ],
  "$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": "AWSIoTTwinMakerComponentTypeDateTimeFormatDefinition"
    },
    "ParentComponentType": {
      "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": "AWSIoTTwinMakerComponentTypeParentComponentTypeDefinition"
    },
    "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": "AWSIoTTwinMakerComponentTypePropertyNameDefinition"
    },
    "RequiredProperty": {
      "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": "AWSIoTTwinMakerComponentTypeRequiredPropertyDefinition"
    },
    "LambdaFunction": {
      "type": "object",
      "properties": {
        "Arn": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "arn:((aws)|(aws-cn)|(aws-us-gov)):lambda:[a-z0-9-]+:[0-9]{12}:function:[\\/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"
            }
          ]
        }
      },
      "title": "AWSIoTTwinMakerComponentTypeLambdaFunctionDefinition",
      "required": [
        "Arn"
      ],
      "additionalProperties": false
    },
    "DataConnector": {
      "description": "The data connector.",
      "type": "object",
      "properties": {
        "IsNative": {
          "description": "A Boolean value that specifies whether the data connector is native to IoT TwinMaker.",
          "type": "boolean"
        },
        "Lambda": {
          "description": "The Lambda function associated with this data connector.",
          "$ref": "#/$defs/LambdaFunction"
        }
      },
      "title": "AWSIoTTwinMakerComponentTypeDataConnectorDefinition",
      "additionalProperties": false
    },
    "Function": {
      "description": "The function of component type.",
      "type": "object",
      "properties": {
        "ImplementedBy": {
          "description": "The data connector.",
          "$ref": "#/$defs/DataConnector"
        },
        "RequiredProperties": {
          "description": "The required properties of the function.",
          "type": "array",
          "minItems": 1,
          "maxItems": 256,
          "uniqueItems": true,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/RequiredProperty"
          }
        },
        "Scope": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "ENTITY",
                "WORKSPACE"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The scope of the function."
        }
      },
      "title": "AWSIoTTwinMakerComponentTypeFunctionDefinition",
      "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. \n\n",
          "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": "AWSIoTTwinMakerComponentTypeDataValueDefinition",
      "additionalProperties": false
    },
    "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": "AWSIoTTwinMakerComponentTypeRelationshipDefinition",
      "additionalProperties": false
    },
    "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": "AWSIoTTwinMakerComponentTypeDataTypeDefinition",
      "required": [
        "Type"
      ],
      "additionalProperties": false
    },
    "PropertyDefinition": {
      "description": "An object that sets information about a property.",
      "type": "object",
      "properties": {
        "Configurations": {
          "description": "An object that specifies information about a property.",
          "type": "object",
          "additionalProperties": false,
          "patternProperties": {
            "[a-zA-Z_\\-0-9]+": {
              "type": "string",
              "pattern": "[a-zA-Z_\\-0-9]+",
              "minLength": 1,
              "maxLength": 256
            }
          }
        },
        "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"
        },
        "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"
        }
      },
      "title": "AWSIoTTwinMakerComponentTypePropertyDefinition",
      "additionalProperties": false
    },
    "PropertyGroup": {
      "description": "An object that sets 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": "AWSIoTTwinMakerComponentTypePropertyGroupDefinition",
      "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": "AWSIoTTwinMakerComponentTypeStatusDefinition",
      "additionalProperties": false
    }
  },
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "WorkspaceId",
    "ComponentTypeId"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/CreationDateTime",
    "/properties/UpdateDateTime",
    "/properties/Status",
    "/properties/IsAbstract",
    "/properties/IsSchemaInitialized"
  ]
}
