{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-create-connector-request-schema.json",
  "title": "CreateConnectorRequest",
  "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/CreateConnectorRequest",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error."
    },
    "name": {
      "type": "string",
      "description": "The name of the connector."
    },
    "provider": {
      "type": "string",
      "enum": [
        "AZURE"
      ],
      "description": "The cloud provider for the connector."
    },
    "description": {
      "type": "string",
      "description": "A description of the connector."
    },
    "providerDetail": {
      "$ref": "#/$defs/ProviderDetailCreate"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to apply to the connector."
    }
  },
  "required": [
    "name",
    "provider",
    "providerDetail"
  ],
  "$defs": {
    "AzureProviderDetailCreate": {
      "type": "object",
      "properties": {
        "awsConfigConnectorArn": {
          "type": "string",
          "description": "The ARN of the Amazon Web Services Config connector to associate with this connector."
        },
        "scopeConfiguration": {
          "$ref": "#/$defs/AzureScopeConfigurationInput"
        },
        "azureRegions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Azure regions to scan."
        },
        "autoInstallVMScanner": {
          "type": "boolean",
          "description": "Specifies whether to automatically install the VM scanner on connected Azure resources. Defaults to true."
        }
      },
      "required": [
        "awsConfigConnectorArn",
        "scopeConfiguration",
        "azureRegions"
      ]
    },
    "AzureScopeConfigurationInput": {
      "type": "object",
      "properties": {
        "vmScanning": {
          "$ref": "#/$defs/ScopeConfigurationInput"
        },
        "containerImageScanning": {
          "$ref": "#/$defs/ScopeConfigurationInput"
        },
        "serverlessScanning": {
          "$ref": "#/$defs/ScopeConfigurationInput"
        }
      }
    },
    "ProviderDetailCreate": {
      "type": "object",
      "properties": {
        "azure": {
          "$ref": "#/$defs/AzureProviderDetailCreate"
        }
      },
      "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"
      ]
    }
  }
}