{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-fleetwise/json-schema/amazon-iot-fleetwise-create-state-template-request-schema.json",
  "title": "CreateStateTemplateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-fleetwise-state-template-api-openapi.yml#/components/schemas/CreateStateTemplateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the state template."
    },
    "description": {
      "type": "string",
      "description": "A brief description of the state template."
    },
    "signalCatalogArn": {
      "type": "string",
      "description": "The ARN of the signal catalog associated with the state template."
    },
    "stateTemplateProperties": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of signals from which data is collected. The state template properties contain the fully qualified names of the signals."
    },
    "dataExtraDimensions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of vehicle attributes to associate with the payload published on the state template's MQTT topic. (See Processing last known state vehicle data using MQTT messaging). For example, if you add Vehicle.Attributes.Make and Vehicle.Attributes.Model attributes, Amazon Web Services IoT FleetWise will enrich the protobuf encoded payload with those attributes in the extraDimensions field."
    },
    "metadataExtraDimensions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of vehicle attributes to associate with user properties of the messages published on the state template's MQTT topic. (See Processing last known state vehicle data using MQTT messaging). For example, if you add Vehicle.Attributes.Make and Vehicle.Attributes.Model attributes, Amazon Web Services IoT FleetWise will include these attributes as User Properties with the MQTT message. Default: An empty array"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata that can be used to manage the state template."
    }
  },
  "required": [
    "name",
    "signalCatalogArn",
    "stateTemplateProperties"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag's key."
        },
        "Value": {
          "type": "string",
          "description": "The tag's value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}