{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-twinmaker/json-schema/amazon-iot-twinmaker-get-property-value-response-schema.json",
  "title": "GetPropertyValueResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-twinmaker-entity-properties-api-openapi.yml#/components/schemas/GetPropertyValueResponse",
  "type": "object",
  "properties": {
    "propertyValues": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/PropertyLatestValue"
      },
      "description": "An object that maps strings to the properties and latest property values in the response. Each string in the mapping must be unique to this object."
    },
    "nextToken": {
      "type": "string",
      "description": "The string that specifies the next page of results."
    },
    "tabularPropertyValues": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/DataValue"
          }
        }
      },
      "description": "A table of property values."
    }
  },
  "$defs": {
    "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."
        }
      }
    },
    "EntityPropertyReference": {
      "type": "object",
      "properties": {
        "componentName": {
          "type": "string",
          "description": "The name of the component."
        },
        "componentPath": {
          "type": "string",
          "description": "This string specifies the path to the composite component, starting from the top-level component."
        },
        "externalIdProperty": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A mapping of external IDs to property names. External IDs uniquely identify properties from external data stores."
        },
        "entityId": {
          "type": "string",
          "description": "The ID of the entity."
        },
        "propertyName": {
          "type": "string",
          "description": "The name of the property."
        }
      },
      "required": [
        "propertyName"
      ]
    },
    "PropertyLatestValue": {
      "type": "object",
      "properties": {
        "propertyReference": {
          "$ref": "#/$defs/EntityPropertyReference"
        },
        "propertyValue": {
          "$ref": "#/$defs/DataValue"
        }
      },
      "required": [
        "propertyReference"
      ]
    },
    "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."
        }
      }
    }
  }
}