{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-create-dimension-request-schema.json",
  "title": "CreateDimensionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-dimensions-api-openapi.yml#/components/schemas/CreateDimensionRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does."
    },
    "type": {
      "type": "string",
      "enum": [
        "TOPIC_FILTER"
      ],
      "description": "Specifies the type of dimension. Supported types: TOPIC_FILTER."
    },
    "stringValues": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Specifies the value or list of values for the dimension. For TOPIC_FILTER dimensions, this is a pattern used to match the MQTT topic (for example, \"admin/#\")."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata that can be used to manage the dimension."
    },
    "clientRequestToken": {
      "type": "string",
      "description": "Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request."
    }
  },
  "required": [
    "name",
    "type",
    "stringValues",
    "clientRequestToken"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag's key."
        },
        "Value": {
          "type": "string",
          "description": "The tag's value."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}