{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-update-data-accessor-request-schema.json",
  "title": "UpdateDataAccessorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-dataaccessors-api-openapi.yml#/components/schemas/UpdateDataAccessorRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The unique identifier of the Amazon Q Business application."
    },
    "dataAccessorId": {
      "type": "string",
      "description": "The unique identifier of the data accessor to update."
    },
    "actionConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ActionConfiguration"
      },
      "description": "The updated list of action configurations specifying the allowed actions and any associated filters."
    },
    "authenticationDetail": {
      "$ref": "#/$defs/DataAccessorAuthenticationDetail"
    },
    "displayName": {
      "type": "string",
      "description": "The updated friendly name for the data accessor."
    }
  },
  "required": [
    "applicationId",
    "dataAccessorId",
    "actionConfigurations"
  ],
  "$defs": {
    "ActionConfiguration": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "description": "The Amazon Q Business action that is allowed."
        },
        "filterConfiguration": {
          "$ref": "#/$defs/ActionFilterConfiguration"
        }
      },
      "required": [
        "action"
      ]
    },
    "ActionFilterConfiguration": {
      "type": "object",
      "properties": {
        "documentAttributeFilter": {
          "$ref": "#/$defs/AttributeFilter"
        }
      },
      "required": [
        "documentAttributeFilter"
      ]
    },
    "AttributeFilter": {
      "type": "object",
      "properties": {
        "andAllFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttributeFilter"
          },
          "description": "Performs a logical AND operation on all supplied filters."
        },
        "orAllFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttributeFilter"
          },
          "description": "Performs a logical OR operation on all supplied filters."
        },
        "notFilter": {
          "$ref": "#/$defs/AttributeFilter"
        },
        "equalsTo": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "containsAll": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "containsAny": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "greaterThan": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "greaterThanOrEquals": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "lessThan": {
          "$ref": "#/$defs/DocumentAttribute"
        },
        "lessThanOrEquals": {
          "$ref": "#/$defs/DocumentAttribute"
        }
      }
    },
    "DataAccessorAuthenticationConfiguration": {
      "type": "object",
      "properties": {
        "idcTrustedTokenIssuerConfiguration": {
          "$ref": "#/$defs/DataAccessorIdcTrustedTokenIssuerConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "DataAccessorAuthenticationDetail": {
      "type": "object",
      "properties": {
        "authenticationType": {
          "type": "string",
          "enum": [
            "AWS_IAM_IDC_TTI",
            "AWS_IAM_IDC_AUTH_CODE"
          ],
          "description": "The type of authentication to use for the data accessor. This determines how the ISV authenticates when accessing data. You can use one of two authentication types: AWS_IAM_IDC_TTI - Authentication using IAM Identity Center Trusted Token Issuer (TTI). This authentication type allows the ISV to use a trusted token issuer to generate tokens for accessing the data. AWS_IAM_IDC_AUTH_CODE - Authentication using IAM Identity Center authorization code flow. This authentication type uses the standard OAuth 2.0 authorization code flow for authentication."
        },
        "authenticationConfiguration": {
          "$ref": "#/$defs/DataAccessorAuthenticationConfiguration"
        },
        "externalIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of external identifiers associated with this authentication configuration. These are used to correlate the data accessor with external systems."
        }
      },
      "required": [
        "authenticationType"
      ]
    },
    "DataAccessorIdcTrustedTokenIssuerConfiguration": {
      "type": "object",
      "properties": {
        "idcTrustedTokenIssuerArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM Identity Center Trusted Token Issuer that will be used for authentication."
        }
      },
      "required": [
        "idcTrustedTokenIssuerArn"
      ]
    },
    "DocumentAttribute": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The identifier for the attribute."
        },
        "value": {
          "$ref": "#/$defs/DocumentAttributeValue"
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "DocumentAttributeValue": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "A string."
        },
        "stringListValue": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of strings."
        },
        "longValue": {
          "type": "integer",
          "description": "A long integer value."
        },
        "dateValue": {
          "type": "string",
          "format": "date-time",
          "description": "A date expressed as an ISO 8601 string. It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}