{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-auth-info-schema.json",
  "title": "AuthInfo",
  "description": "A collection of authorization information.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-test-authorization-api-openapi.yml#/components/schemas/AuthInfo",
  "type": "object",
  "required": [
    "resources"
  ],
  "properties": {
    "actionType": {
      "allOf": [
        {
          "$ref": "#/$defs/ActionType"
        },
        {
          "description": "The type of action for which the principal is being authorized."
        }
      ]
    },
    "resources": {
      "allOf": [
        {
          "$ref": "#/$defs/Resources"
        },
        {
          "description": "The resources for which the principal is being authorized to perform the specified action."
        }
      ]
    }
  },
  "$defs": {
    "ActionType": {
      "type": "string",
      "enum": [
        "PUBLISH",
        "SUBSCRIBE",
        "RECEIVE",
        "CONNECT"
      ]
    },
    "Resource": {
      "type": "string",
      "pattern": "[\\s\\S]*",
      "maxLength": 2048
    },
    "Resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Resource"
      }
    }
  }
}