{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-update-data-source-request-schema.json",
  "title": "UpdateDataSourceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-datasource-api-openapi.yml#/components/schemas/UpdateDataSourceRequest",
  "type": "object",
  "properties": {
    "DomainName": {
      "type": "string",
      "description": "The name of the domain."
    },
    "Name": {
      "type": "string",
      "description": "The name of the data source to modify."
    },
    "DataSourceType": {
      "$ref": "#/$defs/DataSourceType"
    },
    "Description": {
      "type": "string",
      "description": "A new description of the data source."
    },
    "Status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "DISABLED"
      ],
      "description": "The status of the data source update."
    }
  },
  "required": [
    "DomainName",
    "Name",
    "DataSourceType"
  ],
  "$defs": {
    "DataSourceType": {
      "type": "object",
      "properties": {
        "S3GlueDataCatalog": {
          "$ref": "#/$defs/S3GlueDataCatalog"
        }
      },
      "description": "Exactly one member is set."
    },
    "S3GlueDataCatalog": {
      "type": "object",
      "properties": {
        "RoleArn": {
          "type": "string",
          "description": ">The Amazon Resource Name (ARN) for the S3 Glue Data Catalog."
        }
      }
    }
  }
}