{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-create-connector-request-schema.json",
  "title": "CreateConnectorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-connectors-api-openapi.yml#/components/schemas/CreateConnectorRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the connector. Must be unique within the account."
    },
    "Description": {
      "type": "string",
      "description": "The description of the connector."
    },
    "Provider": {
      "$ref": "#/$defs/CspmProviderConfiguration"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to add to the connector resource."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique identifier used to ensure idempotency of the request."
    }
  },
  "required": [
    "Name",
    "Provider"
  ],
  "$defs": {
    "AzureProviderConfiguration": {
      "type": "object",
      "properties": {
        "AWSConfigConnectorArn": {
          "type": "string",
          "description": "The ARN of the multi-cloud configuration connector used to establish the connection to Azure."
        },
        "ScopeConfiguration": {
          "$ref": "#/$defs/AzureScopeConfiguration"
        },
        "AzureRegions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of Azure regions to monitor."
        }
      },
      "required": [
        "AWSConfigConnectorArn",
        "ScopeConfiguration",
        "AzureRegions"
      ]
    },
    "AzureScopeConfiguration": {
      "type": "object",
      "properties": {
        "ScopeType": {
          "type": "string",
          "enum": [
            "TENANT",
            "SUBSCRIPTION"
          ],
          "description": "The type of scope. Valid values are tenant and subscription."
        },
        "ScopeValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of scope values, such as subscription IDs, when the scope type is subscription."
        }
      },
      "required": [
        "ScopeType"
      ]
    },
    "CspmProviderConfiguration": {
      "type": "object",
      "properties": {
        "Azure": {
          "$ref": "#/$defs/AzureProviderConfiguration"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}