{
  "name": "ListResources",
  "plane": "control",
  "terraformEligible": false,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudInventory.ListResources",
    "service": "inventory"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "definitions": {
      "ResourceKind": {
        "enum": [
          "table",
          "queue",
          "secret",
          "object_bucket",
          "event_bus",
          "schedule",
          "function",
          "api",
          "api_integration",
          "api_authorizer",
          "api_route",
          "event_rule",
          "event_target",
          "dns_zone",
          "dns_record",
          "certificate",
          "api_domain_name",
          "site",
          "site_domain_binding"
        ],
        "type": "string"
      }
    },
    "properties": {
      "maxResults": {
        "default": null,
        "format": "uint32",
        "minimum": 0.0,
        "type": [
          "integer",
          "null"
        ]
      },
      "nextToken": {
        "default": null,
        "type": [
          "string",
          "null"
        ]
      },
      "resourceType": {
        "anyOf": [
          {
            "$ref": "#/definitions/ResourceKind"
          },
          {
            "type": "null"
          }
        ],
        "default": null
      }
    },
    "title": "ListResourcesRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "InventoryResource": {
        "properties": {
          "configDigest": {
            "type": "string"
          },
          "lastApplied": true,
          "physicalId": {
            "type": "string"
          },
          "provider": {
            "type": [
              "string",
              "null"
            ]
          },
          "resourceType": {
            "$ref": "#/definitions/ResourceKind"
          },
          "revision": {
            "format": "uint64",
            "minimum": 0.0,
            "type": "integer"
          },
          "stackId": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/definitions/ResourceStatus"
          },
          "workspaceId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "configDigest",
          "lastApplied",
          "physicalId",
          "resourceType",
          "revision",
          "status"
        ],
        "type": "object"
      },
      "ResourceKind": {
        "enum": [
          "table",
          "queue",
          "secret",
          "object_bucket",
          "event_bus",
          "schedule",
          "function",
          "api",
          "api_integration",
          "api_authorizer",
          "api_route",
          "event_rule",
          "event_target",
          "dns_zone",
          "dns_record",
          "certificate",
          "api_domain_name",
          "site",
          "site_domain_binding"
        ],
        "type": "string"
      },
      "ResourceStatus": {
        "enum": [
          "PROVISIONING",
          "READY",
          "FAILED",
          "MISSING",
          "CHANGED"
        ],
        "type": "string"
      }
    },
    "properties": {
      "items": {
        "items": {
          "$ref": "#/definitions/InventoryResource"
        },
        "type": "array"
      },
      "nextToken": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "required": [
      "items"
    ],
    "title": "ListResourcesResponse",
    "type": "object"
  }
}
