{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unity-catalog/json-schema/unity-catalog-credential-info-schema.json",
  "title": "CredentialInfo",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unity-catalog-credentials-api-openapi.yml#/components/schemas/CredentialInfo",
  "type": "object",
  "properties": {
    "name": {
      "description": "The credential name. The name must be unique within the metastore.",
      "type": "string"
    },
    "aws_iam_role": {
      "$ref": "#/$defs/AwsIamRoleResponse"
    },
    "comment": {
      "description": "Comment associated with the credential.",
      "type": "string"
    },
    "owner": {
      "description": "Username of current owner of credential.",
      "type": "string"
    },
    "full_name": {
      "description": "The full name of the credential.",
      "type": "string"
    },
    "id": {
      "description": "The unique identifier of the credential.",
      "type": "string"
    },
    "created_at": {
      "description": "Time at which this Credential was created, in epoch milliseconds.",
      "type": "integer",
      "format": "int64"
    },
    "created_by": {
      "description": "Username of credential creator.",
      "type": "string"
    },
    "updated_at": {
      "description": "Time at which this credential was last modified, in epoch milliseconds.",
      "type": "integer",
      "format": "int64"
    },
    "updated_by": {
      "description": "Username of user who last modified the credential.",
      "type": "string"
    },
    "purpose": {
      "$ref": "#/$defs/CredentialPurpose"
    }
  },
  "$defs": {
    "AwsIamRoleArn": {
      "description": "The Amazon Resource Name (ARN) of the AWS IAM role used to vend temporary credentials.",
      "type": "string"
    },
    "AwsIamRoleResponse": {
      "type": "object",
      "required": [
        "role_arn"
      ],
      "properties": {
        "role_arn": {
          "$ref": "#/$defs/AwsIamRoleArn"
        },
        "unity_catalog_iam_arn": {
          "description": "The Amazon Resource Name (ARN) of the AWS IAM used by the Unity Catalog Server. This is the identity that is going to assume the AWS IAM role.",
          "type": "string"
        },
        "external_id": {
          "description": "The external ID used in role assumption to prevent confused deputy problem.",
          "type": "string"
        }
      }
    },
    "CredentialPurpose": {
      "type": "string",
      "enum": [
        "STORAGE"
      ]
    }
  }
}