{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-create-connector-v2-request-schema.json",
  "title": "CreateConnectorV2Request",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-connectorsv2-api-openapi.yml#/components/schemas/CreateConnectorV2Request",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The unique name of the connectorV2."
    },
    "Description": {
      "type": "string",
      "description": "The description of the connectorV2."
    },
    "Provider": {
      "$ref": "#/$defs/ProviderConfiguration"
    },
    "KmsKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of KMS key used to encrypt secrets for the connectorV2."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to add to the connectorV2 when you create."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique identifier used to ensure idempotency."
    }
  },
  "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"
      ]
    },
    "JiraCloudProviderConfiguration": {
      "type": "object",
      "properties": {
        "ProjectKey": {
          "type": "string",
          "description": "The project key for a JiraCloud instance."
        }
      }
    },
    "ProviderConfiguration": {
      "type": "object",
      "properties": {
        "JiraCloud": {
          "$ref": "#/$defs/JiraCloudProviderConfiguration"
        },
        "ServiceNow": {
          "$ref": "#/$defs/ServiceNowProviderConfiguration"
        },
        "Azure": {
          "$ref": "#/$defs/AzureProviderConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "ServiceNowProviderConfiguration": {
      "type": "object",
      "properties": {
        "InstanceName": {
          "type": "string",
          "description": "The instance name of ServiceNow ITSM."
        },
        "SecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the ServiceNow credentials."
        }
      },
      "required": [
        "InstanceName",
        "SecretArn"
      ]
    }
  }
}