{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-twinmaker/json-schema/amazon-iot-twinmaker-get-component-type-response-schema.json",
  "title": "GetComponentTypeResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-twinmaker-component-types-api-openapi.yml#/components/schemas/GetComponentTypeResponse",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace that contains the component type."
    },
    "isSingleton": {
      "type": "boolean",
      "description": "A Boolean value that specifies whether an entity can have more than one component of this type."
    },
    "componentTypeId": {
      "type": "string",
      "description": "The ID of the component type."
    },
    "description": {
      "type": "string",
      "description": "The description of the component type."
    },
    "propertyDefinitions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/PropertyDefinitionResponse"
      },
      "description": "An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object."
    },
    "extendsFrom": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The name of the parent component type that this component type extends."
    },
    "functions": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/FunctionResponse"
      },
      "description": "An object that maps strings to the functions in the component type. Each string in the mapping must be unique to this object."
    },
    "creationDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the component type was created."
    },
    "updateDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the component was last updated."
    },
    "arn": {
      "type": "string",
      "description": "The ARN of the component type."
    },
    "isAbstract": {
      "type": "boolean",
      "description": "A Boolean value that specifies whether the component type is abstract."
    },
    "isSchemaInitialized": {
      "type": "boolean",
      "description": "A Boolean value that specifies whether the component type has a schema initializer and that the schema initializer has run."
    },
    "status": {
      "$ref": "#/$defs/Status"
    },
    "propertyGroups": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/PropertyGroupResponse"
      },
      "description": "The maximum number of results to return at one time. The default is 25. Valid Range: Minimum value of 1. Maximum value of 250."
    },
    "syncSource": {
      "type": "string",
      "description": "The syncSource of the SyncJob, if this entity was created by a SyncJob."
    },
    "componentTypeName": {
      "type": "string",
      "description": "The component type name."
    },
    "compositeComponentTypes": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/CompositeComponentTypeResponse"
      },
      "description": "This is an object that maps strings to compositeComponentTypes of the componentType. CompositeComponentType is referenced by componentTypeId."
    }
  },
  "required": [
    "workspaceId",
    "componentTypeId",
    "creationDateTime",
    "updateDateTime",
    "arn"
  ],
  "$defs": {
    "CompositeComponentTypeResponse": {
      "type": "object",
      "properties": {
        "componentTypeId": {
          "type": "string",
          "description": "This is the componentTypeId that this compositeComponentType refers to."
        },
        "isInherited": {
          "type": "boolean",
          "description": "This boolean indicates whether this compositeComponentType is inherited from its parent."
        }
      }
    },
    "DataConnector": {
      "type": "object",
      "properties": {
        "lambda": {
          "$ref": "#/$defs/LambdaFunction"
        },
        "isNative": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the data connector is native to IoT TwinMaker."
        }
      }
    },
    "DataType": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The underlying type of the data type."
        },
        "nestedType": {
          "$ref": "#/$defs/DataType"
        },
        "allowedValues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataValue"
          },
          "description": "The allowed values for this data type."
        },
        "unitOfMeasure": {
          "type": "string",
          "description": "The unit of measure used in this data type."
        },
        "relationship": {
          "$ref": "#/$defs/Relationship"
        }
      },
      "required": [
        "type"
      ]
    },
    "DataValue": {
      "type": "object",
      "properties": {
        "booleanValue": {
          "type": "boolean",
          "description": "A Boolean value."
        },
        "doubleValue": {
          "type": "number",
          "description": "A double value."
        },
        "integerValue": {
          "type": "integer",
          "description": "An integer value."
        },
        "longValue": {
          "type": "integer",
          "description": "A long value."
        },
        "stringValue": {
          "type": "string",
          "description": "A string value."
        },
        "listValue": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DataValue"
          },
          "description": "A list of multiple values."
        },
        "mapValue": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DataValue"
          },
          "description": "An object that maps strings to multiple DataValue objects."
        },
        "relationshipValue": {
          "$ref": "#/$defs/RelationshipValue"
        },
        "expression": {
          "type": "string",
          "description": "An expression that produces the value."
        }
      }
    },
    "ErrorDetails": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message."
        }
      }
    },
    "FunctionResponse": {
      "type": "object",
      "properties": {
        "requiredProperties": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The required properties of the function."
        },
        "scope": {
          "type": "string",
          "description": "The scope of the function."
        },
        "implementedBy": {
          "$ref": "#/$defs/DataConnector"
        },
        "isInherited": {
          "type": "boolean",
          "description": "Indicates whether this function is inherited."
        }
      }
    },
    "LambdaFunction": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The ARN of the Lambda function."
        }
      },
      "required": [
        "arn"
      ]
    },
    "PropertyDefinitionResponse": {
      "type": "object",
      "properties": {
        "dataType": {
          "$ref": "#/$defs/DataType"
        },
        "isTimeSeries": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the property consists of time series data."
        },
        "isRequiredInEntity": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the property is required in an entity."
        },
        "isExternalId": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the property ID comes from an external data store."
        },
        "isStoredExternally": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the property is stored externally."
        },
        "isImported": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the property definition is imported from an external data store."
        },
        "isFinal": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the property definition can be updated."
        },
        "isInherited": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the property definition is inherited from a parent entity."
        },
        "defaultValue": {
          "$ref": "#/$defs/DataValue"
        },
        "configuration": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A mapping that specifies configuration information about the property."
        },
        "displayName": {
          "type": "string",
          "description": "A friendly name for the property."
        }
      },
      "required": [
        "dataType",
        "isTimeSeries",
        "isRequiredInEntity",
        "isExternalId",
        "isStoredExternally",
        "isImported",
        "isFinal",
        "isInherited"
      ]
    },
    "PropertyGroupResponse": {
      "type": "object",
      "properties": {
        "groupType": {
          "type": "string",
          "description": "The group types."
        },
        "propertyNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The names of properties."
        },
        "isInherited": {
          "type": "boolean",
          "description": "A Boolean value that specifies whether the property group is inherited from a parent entity"
        }
      },
      "required": [
        "groupType",
        "propertyNames",
        "isInherited"
      ]
    },
    "Relationship": {
      "type": "object",
      "properties": {
        "targetComponentTypeId": {
          "type": "string",
          "description": "The ID of the target component type associated with this relationship."
        },
        "relationshipType": {
          "type": "string",
          "description": "The type of the relationship."
        }
      }
    },
    "RelationshipValue": {
      "type": "object",
      "properties": {
        "targetEntityId": {
          "type": "string",
          "description": "The ID of the target entity associated with this relationship value."
        },
        "targetComponentName": {
          "type": "string",
          "description": "The name of the target component associated with the relationship value."
        }
      }
    },
    "Status": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "The current state of the entity, component, component type, or workspace."
        },
        "error": {
          "$ref": "#/$defs/ErrorDetails"
        }
      }
    }
  }
}