{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-execute-action-request-schema.json",
  "title": "ExecuteActionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-actions-api-openapi.yml#/components/schemas/ExecuteActionRequest",
  "type": "object",
  "properties": {
    "targetResource": {
      "$ref": "#/$defs/TargetResource"
    },
    "actionDefinitionId": {
      "type": "string",
      "description": "The ID of the action definition."
    },
    "actionPayload": {
      "$ref": "#/$defs/ActionPayload"
    },
    "clientToken": {
      "type": "string",
      "description": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required."
    },
    "resolveTo": {
      "$ref": "#/$defs/ResolveTo"
    }
  },
  "required": [
    "targetResource",
    "actionDefinitionId",
    "actionPayload"
  ],
  "$defs": {
    "ActionPayload": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "The payload of the action in a JSON string."
        }
      },
      "required": [
        "stringValue"
      ]
    },
    "ResolveTo": {
      "type": "object",
      "properties": {
        "assetId": {
          "type": "string",
          "description": "The ID of the asset that the resource resolves to."
        }
      },
      "required": [
        "assetId"
      ]
    },
    "TargetResource": {
      "type": "object",
      "properties": {
        "assetId": {
          "type": "string",
          "description": "The ID of the asset, in UUID format."
        },
        "computationModelId": {
          "type": "string",
          "description": "The ID of the computation model."
        }
      }
    }
  }
}