{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-update-connector-request-schema.json",
  "title": "UpdateConnectorRequest",
  "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/UpdateConnectorRequest",
  "type": "object",
  "properties": {
    "connectorArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the connector to update."
    },
    "description": {
      "type": "string",
      "description": "The updated description of the connector."
    },
    "providerDetail": {
      "$ref": "#/$defs/ProviderDetailUpdate"
    }
  },
  "required": [
    "connectorArn"
  ],
  "$defs": {
    "AzureProviderDetailUpdate": {
      "type": "object",
      "properties": {
        "azureRegions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The updated Azure regions to scan."
        },
        "scopeConfiguration": {
          "$ref": "#/$defs/AzureScopeConfigurationInput"
        },
        "autoInstallVMScanner": {
          "type": "boolean",
          "description": "Specifies whether to automatically install the VM scanner on connected Azure resources."
        }
      }
    },
    "AzureScopeConfigurationInput": {
      "type": "object",
      "properties": {
        "vmScanning": {
          "$ref": "#/$defs/ScopeConfigurationInput"
        },
        "containerImageScanning": {
          "$ref": "#/$defs/ScopeConfigurationInput"
        },
        "serverlessScanning": {
          "$ref": "#/$defs/ScopeConfigurationInput"
        }
      }
    },
    "ProviderDetailUpdate": {
      "type": "object",
      "properties": {
        "azure": {
          "$ref": "#/$defs/AzureProviderDetailUpdate"
        }
      },
      "description": "Exactly one member is set."
    },
    "ScopeConfigurationInput": {
      "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."
        }
      },
      "required": [
        "scopeType"
      ]
    }
  }
}