{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-get-connector-v2-response-schema.json",
  "title": "GetConnectorV2Response",
  "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/GetConnectorV2Response",
  "type": "object",
  "properties": {
    "ConnectorArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the connectorV2."
    },
    "ConnectorId": {
      "type": "string",
      "description": "The UUID of the connectorV2 to identify connectorV2 resource."
    },
    "Name": {
      "type": "string",
      "description": "The name of the connectorV2."
    },
    "Description": {
      "type": "string",
      "description": "The description of the connectorV2."
    },
    "KmsKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of KMS key used for the connectorV2."
    },
    "CreatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 UTC timestamp for the time create the connectorV2."
    },
    "LastUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 UTC timestamp for the time update the connectorV2 connectorStatus."
    },
    "Health": {
      "$ref": "#/$defs/HealthCheck"
    },
    "ProviderDetail": {
      "$ref": "#/$defs/ProviderDetail"
    },
    "EnablementStatus": {
      "type": "string",
      "enum": [
        "ENABLED",
        "PENDING_ENABLEMENT",
        "FAILED_TO_ENABLE",
        "PENDING_UPDATE",
        "FAILED_TO_UPDATE",
        "PENDING_DELETION",
        "FAILED_TO_DELETE"
      ],
      "description": "The enablement status of the connector."
    },
    "EnablementStatusReason": {
      "type": "string",
      "description": "The reason for the current enablement status. Provides additional context when the connector is in a failed state."
    }
  },
  "required": [
    "ConnectorId",
    "Name",
    "CreatedAt",
    "LastUpdatedAt",
    "Health",
    "ProviderDetail"
  ],
  "$defs": {
    "AzureDetail": {
      "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 being monitored."
        }
      },
      "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"
      ]
    },
    "HealthCheck": {
      "type": "object",
      "properties": {
        "ConnectorStatus": {
          "type": "string",
          "enum": [
            "CONNECTED",
            "DEGRADED",
            "FAILED_TO_CONNECT",
            "PENDING_AUTHORIZATION",
            "PENDING_CONFIGURATION",
            "UNKNOWN"
          ],
          "description": "The status of the connectorV2."
        },
        "Message": {
          "type": "string",
          "description": "The message for the reason of connectorStatus change."
        },
        "LastCheckedAt": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 UTC timestamp for the time check the health status of the connectorV2."
        },
        "Issues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HealthIssue"
          },
          "description": "A list of health issues associated with the connector, including error codes and messages."
        }
      },
      "required": [
        "ConnectorStatus",
        "LastCheckedAt"
      ]
    },
    "HealthIssue": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "enum": [
            "AUTHENTICATION_FAILURE",
            "STREAM_AUTHORIZATION_FAILURE",
            "DISCOVERY_FAILURE",
            "STREAM_LIMIT_EXCEEDED",
            "STREAM_DISCONNECTED",
            "RECORDING_FAILURE",
            "NO_HEALTH_DATA"
          ],
          "description": "The error code that identifies the type of health issue."
        },
        "Message": {
          "type": "string",
          "description": "A human-readable message that describes the health issue."
        }
      },
      "required": [
        "Code",
        "Message"
      ]
    },
    "JiraCloudDetail": {
      "type": "object",
      "properties": {
        "CloudId": {
          "type": "string",
          "description": "The cloud id of the Jira Cloud."
        },
        "ProjectKey": {
          "type": "string",
          "description": "The projectKey of Jira Cloud."
        },
        "Domain": {
          "type": "string",
          "description": "The URL domain of your Jira Cloud instance."
        },
        "AuthUrl": {
          "type": "string",
          "description": "The URL to provide to customers for OAuth auth code flow."
        },
        "AuthStatus": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "FAILED"
          ],
          "description": "The status of the authorization between Jira Cloud and the service."
        }
      }
    },
    "ProviderDetail": {
      "type": "object",
      "properties": {
        "JiraCloud": {
          "$ref": "#/$defs/JiraCloudDetail"
        },
        "ServiceNow": {
          "$ref": "#/$defs/ServiceNowDetail"
        },
        "Azure": {
          "$ref": "#/$defs/AzureDetail"
        }
      },
      "description": "Exactly one member is set."
    },
    "ServiceNowDetail": {
      "type": "object",
      "properties": {
        "InstanceName": {
          "type": "string",
          "description": "The instanceName 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."
        },
        "AuthStatus": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "FAILED"
          ],
          "description": "The status of the authorization between ServiceNow and the service."
        }
      },
      "required": [
        "SecretArn",
        "AuthStatus"
      ]
    }
  }
}