{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-twinmaker/json-schema/amazon-iot-twinmaker-get-entity-response-schema.json",
  "title": "GetEntityResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-twinmaker-entities-api-openapi.yml#/components/schemas/GetEntityResponse",
  "type": "object",
  "properties": {
    "entityId": {
      "type": "string",
      "description": "The ID of the entity."
    },
    "entityName": {
      "type": "string",
      "description": "The name of the entity."
    },
    "arn": {
      "type": "string",
      "description": "The ARN of the entity."
    },
    "status": {
      "$ref": "#/$defs/Status"
    },
    "workspaceId": {
      "type": "string",
      "description": "The ID of the workspace."
    },
    "description": {
      "type": "string",
      "description": "The description of the entity."
    },
    "components": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ComponentResponse"
      },
      "description": "An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object."
    },
    "parentEntityId": {
      "type": "string",
      "description": "The ID of the parent entity for this entity."
    },
    "hasChildEntities": {
      "type": "boolean",
      "description": "A Boolean value that specifies whether the entity has associated child entities."
    },
    "creationDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the entity was created."
    },
    "updateDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the entity was last updated."
    },
    "syncSource": {
      "type": "string",
      "description": "The syncSource of the sync job, if this entity was created by a sync job."
    },
    "areAllComponentsReturned": {
      "type": "boolean",
      "description": "This flag notes whether all components are returned in the API response. The maximum number of components returned is 30."
    }
  },
  "required": [
    "entityId",
    "entityName",
    "arn",
    "status",
    "workspaceId",
    "parentEntityId",
    "hasChildEntities",
    "creationDateTime",
    "updateDateTime"
  ],
  "$defs": {
    "ComponentPropertyGroupResponse": {
      "type": "object",
      "properties": {
        "groupType": {
          "type": "string",
          "description": "The group type."
        },
        "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"
      ]
    },
    "ComponentResponse": {
      "type": "object",
      "properties": {
        "componentName": {
          "type": "string",
          "description": "The name of the component."
        },
        "description": {
          "type": "string",
          "description": "The description of the component type."
        },
        "componentTypeId": {
          "type": "string",
          "description": "The ID of the component type."
        },
        "status": {
          "$ref": "#/$defs/Status"
        },
        "definedIn": {
          "type": "string",
          "description": "The name of the property definition set in the request."
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/PropertyResponse"
          },
          "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."
        },
        "propertyGroups": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ComponentPropertyGroupResponse"
          },
          "description": "The property groups."
        },
        "syncSource": {
          "type": "string",
          "description": "The syncSource of the sync job, if this entity was created by a sync job."
        },
        "areAllPropertiesReturned": {
          "type": "boolean",
          "description": "This flag notes whether all properties of the component are returned in the API response. The maximum number of properties returned is 800."
        },
        "compositeComponents": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ComponentSummary"
          },
          "description": "This lists objects that contain information about the compositeComponents."
        },
        "areAllCompositeComponentsReturned": {
          "type": "boolean",
          "description": "This flag notes whether all compositeComponents are returned in the API response."
        }
      }
    },
    "ComponentSummary": {
      "type": "object",
      "properties": {
        "componentName": {
          "type": "string",
          "description": "The name of the component."
        },
        "componentTypeId": {
          "type": "string",
          "description": "The ID of the component type."
        },
        "definedIn": {
          "type": "string",
          "description": "The name of the property definition set in the request."
        },
        "description": {
          "type": "string",
          "description": "The description of the component request."
        },
        "propertyGroups": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ComponentPropertyGroupResponse"
          },
          "description": "The property groups."
        },
        "status": {
          "$ref": "#/$defs/Status"
        },
        "syncSource": {
          "type": "string",
          "description": "The syncSource of the sync job, if this entity was created by a sync job."
        },
        "componentPath": {
          "type": "string",
          "description": "This string specifies the path to the composite component, starting from the top-level component."
        }
      },
      "required": [
        "componentName",
        "componentTypeId",
        "status"
      ]
    },
    "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."
        }
      }
    },
    "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"
      ]
    },
    "PropertyResponse": {
      "type": "object",
      "properties": {
        "definition": {
          "$ref": "#/$defs/PropertyDefinitionResponse"
        },
        "value": {
          "$ref": "#/$defs/DataValue"
        },
        "areAllPropertyValuesReturned": {
          "type": "boolean",
          "description": "This flag notes whether all values of a list or map type property are returned in the API response. The maximum number of values per property returned is 50."
        }
      }
    },
    "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"
        }
      }
    }
  }
}