{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-list-connectors-response-schema.json",
  "title": "ListConnectorsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-connector-api-openapi.yml#/components/schemas/ListConnectorsResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Connector"
      },
      "description": "A list of connectors."
    },
    "nextToken": {
      "type": "string",
      "description": "A pagination token. If this value is not null, there are additional results available. Use this token in the nextToken parameter of a subsequent request to retrieve the next page of results."
    }
  },
  "required": [
    "items"
  ],
  "$defs": {
    "AzureScopeConfiguration": {
      "type": "object",
      "properties": {
        "vmScanning": {
          "$ref": "#/$defs/ScopeConfiguration"
        },
        "containerImageScanning": {
          "$ref": "#/$defs/ScopeConfiguration"
        },
        "serverlessScanning": {
          "$ref": "#/$defs/ScopeConfiguration"
        }
      }
    },
    "Connector": {
      "type": "object",
      "properties": {
        "connectorArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the connector."
        },
        "name": {
          "type": "string",
          "description": "The name of the connector."
        },
        "description": {
          "type": "string",
          "description": "A description of the connector."
        },
        "provider": {
          "type": "string",
          "enum": [
            "AZURE"
          ],
          "description": "The cloud provider for the connector."
        },
        "enablementStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "PENDING_ENABLEMENT",
            "FAILED_TO_ENABLE",
            "PENDING_UPDATE",
            "FAILED_TO_UPDATE",
            "PENDING_DELETION",
            "DELETED",
            "FAILED_TO_DELETE"
          ],
          "description": "The enablement status of the connector, which indicates whether the connector is active and scanning resources."
        },
        "enablementStatusReason": {
          "type": "string",
          "description": "Additional information about the current enablement status of the connector."
        },
        "health": {
          "$ref": "#/$defs/ConnectorHealth"
        },
        "createdAt": {
          "type": "string",
          "description": "The date and time when the connector was created."
        },
        "updatedAt": {
          "type": "string",
          "description": "The date and time when the connector was last updated."
        },
        "azureRegions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Azure regions configured for the connector."
        },
        "awsConfigConnectorArn": {
          "type": "string",
          "description": "The ARN of the Amazon Web Services Config connector associated with this connector."
        },
        "scopeConfiguration": {
          "$ref": "#/$defs/AzureScopeConfiguration"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags associated with the connector."
        },
        "autoInstallVMScanner": {
          "type": "boolean",
          "description": "Specifies whether the VM scanner is automatically installed on connected resources."
        }
      },
      "required": [
        "connectorArn",
        "provider",
        "createdAt",
        "updatedAt"
      ]
    },
    "ConnectorHealth": {
      "type": "object",
      "properties": {
        "connectorStatus": {
          "type": "string",
          "enum": [
            "CONNECTED",
            "DEGRADED",
            "FAILED_TO_CONNECT",
            "PENDING_AUTHORIZATION",
            "PENDING_CONFIGURATION",
            "UNKNOWN"
          ],
          "description": "The health status of the connector."
        },
        "lastCheckedAt": {
          "type": "string",
          "description": "The date and time when the connector health was last checked."
        },
        "message": {
          "type": "string",
          "description": "A message providing additional details about the connector health status."
        }
      },
      "required": [
        "connectorStatus",
        "lastCheckedAt"
      ]
    },
    "ScopeConfiguration": {
      "type": "object",
      "properties": {
        "scopeType": {
          "type": "string",
          "enum": [
            "TENANT",
            "SUBSCRIPTION"
          ],
          "description": "The type of scope. Valid values are TENANT, which scans all resources in the Azure tenant, and SUBSCRIPTION, which scans only the resources in the specified Azure subscriptions."
        },
        "scopeValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of scope values. For subscription-level scope, these are Azure subscription IDs."
        },
        "state": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "PENDING",
            "ERROR",
            "DISABLED"
          ],
          "description": "The current state of the scope configuration."
        },
        "stateReason": {
          "type": "string",
          "description": "The reason for the current state of the scope configuration."
        }
      },
      "required": [
        "scopeType"
      ]
    }
  }
}