{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-prometheus/json-schema/amazon-managed-prometheus-update-scraper-logging-configuration-request-schema.json",
  "title": "UpdateScraperLoggingConfigurationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-managed-prometheus-logging-configuration-api-openapi.yml#/components/schemas/UpdateScraperLoggingConfigurationRequest",
  "type": "object",
  "properties": {
    "scraperId": {
      "type": "string",
      "description": "The ID of the scraper whose logging configuration will be updated."
    },
    "loggingDestination": {
      "$ref": "#/$defs/ScraperLoggingDestination"
    },
    "scraperComponents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScraperComponent"
      },
      "description": "The list of scraper components to configure for logging."
    }
  },
  "required": [
    "scraperId",
    "loggingDestination"
  ],
  "$defs": {
    "CloudWatchLogDestination": {
      "type": "object",
      "properties": {
        "logGroupArn": {
          "type": "string",
          "description": "The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist prior to calling this operation."
        }
      },
      "required": [
        "logGroupArn"
      ]
    },
    "ComponentConfig": {
      "type": "object",
      "properties": {
        "options": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Configuration options for the scraper component."
        }
      }
    },
    "ScraperComponent": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of the scraper component."
        },
        "config": {
          "$ref": "#/$defs/ComponentConfig"
        }
      },
      "required": [
        "type"
      ]
    },
    "ScraperLoggingDestination": {
      "type": "object",
      "properties": {
        "cloudWatchLogs": {
          "$ref": "#/$defs/CloudWatchLogDestination"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}