{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-prometheus/json-schema/amazon-managed-prometheus-describe-scraper-logging-configuration-response-schema.json",
  "title": "DescribeScraperLoggingConfigurationResponse",
  "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/DescribeScraperLoggingConfigurationResponse",
  "type": "object",
  "properties": {
    "status": {
      "$ref": "#/$defs/ScraperLoggingConfigurationStatus"
    },
    "scraperId": {
      "type": "string",
      "description": "The ID of the scraper."
    },
    "loggingDestination": {
      "$ref": "#/$defs/ScraperLoggingDestination"
    },
    "scraperComponents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ScraperComponent"
      },
      "description": "The list of scraper components configured for logging."
    },
    "modifiedAt": {
      "type": "string",
      "description": "The date and time when the logging configuration was last modified."
    }
  },
  "required": [
    "status",
    "scraperId",
    "loggingDestination",
    "scraperComponents",
    "modifiedAt"
  ],
  "$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"
      ]
    },
    "ScraperLoggingConfigurationStatus": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "string",
          "description": "The status code of the scraper logging configuration."
        },
        "statusReason": {
          "type": "string",
          "description": "The reason for the current status of the scraper logging configuration."
        }
      },
      "required": [
        "statusCode"
      ]
    },
    "ScraperLoggingDestination": {
      "type": "object",
      "properties": {
        "cloudWatchLogs": {
          "$ref": "#/$defs/CloudWatchLogDestination"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}