{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unity-catalog/json-schema/unity-catalog-update-credential-request-schema.json",
  "title": "UpdateCredentialRequest",
  "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/UpdateCredentialRequest",
  "type": "object",
  "properties": {
    "comment": {
      "description": "Comment associated with the credential.",
      "type": "string"
    },
    "owner": {
      "description": "Username of current owner of credential.",
      "type": "string"
    },
    "aws_iam_role": {
      "$ref": "#/$defs/AwsIamRoleRequest"
    },
    "new_name": {
      "description": "New name for the credential.",
      "type": "string"
    }
  },
  "$defs": {
    "AwsIamRoleArn": {
      "description": "The Amazon Resource Name (ARN) of the AWS IAM role used to vend temporary credentials.",
      "type": "string"
    },
    "AwsIamRoleRequest": {
      "type": "object",
      "required": [
        "role_arn"
      ],
      "properties": {
        "role_arn": {
          "$ref": "#/$defs/AwsIamRoleArn"
        }
      }
    }
  }
}