{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-validate-cloud-connector-result-schema.json",
  "title": "ValidateCloudConnectorResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-cloud-connector-api-openapi.yml#/components/schemas/ValidateCloudConnectorResult",
  "type": "object",
  "properties": {
    "ValidationFindings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ValidationFinding"
      },
      "description": "A list of validation findings for the cloud connector."
    },
    "NextToken": {
      "type": "string",
      "description": "The token to use when requesting the next set of items."
    }
  },
  "$defs": {
    "ValidationFinding": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "INFO",
            "WARN",
            "ERROR"
          ],
          "description": "The type of the validation finding."
        },
        "Code": {
          "type": "string",
          "enum": [
            "TargetInaccessible",
            "TargetUnusable",
            "TargetStateWarning",
            "AwsRoleAssumptionFailed",
            "WebIdentityTokenFailed",
            "OutboundWebIdentityFederationDisabled",
            "ProviderCredentialCreationFailed",
            "TenantSummary",
            "SubscriptionAccessible"
          ],
          "description": "A code that identifies the specific validation finding."
        },
        "Message": {
          "type": "string",
          "description": "A message that describes the validation finding."
        },
        "ProviderMessage": {
          "type": "string",
          "description": "A message from the third-party cloud provider related to the validation finding."
        },
        "Scope": {
          "$ref": "#/$defs/ValidationFindingScope"
        }
      }
    },
    "ValidationFindingScope": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "azure:tenant",
            "azure:subscription"
          ],
          "description": "The type of the resource scope."
        },
        "Id": {
          "type": "string",
          "description": "The ID of the resource within the scope."
        }
      }
    }
  }
}