{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-update-otel-enrichment-input-schema.json",
  "title": "UpdateOTelEnrichmentInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-o-tel-enrichment-api-openapi.yml#/components/schemas/UpdateOTelEnrichmentInput",
  "type": "object",
  "properties": {
    "IncludeFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OTelEnrichmentMetricSelector"
      },
      "description": "The metric namespaces, and the metric names, to enrich. If this parameter is omitted, every namespace that Amazon CloudWatch supports for enrichment is in scope. A maximum of 100 filters is allowed across IncludeFilters and ExcludeFilters combined."
    },
    "ExcludeFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OTelEnrichmentMetricSelector"
      },
      "description": "The metric namespaces, and the metric names, to leave unenriched. If this parameter is omitted, nothing is excluded. Amazon CloudWatch applies ExcludeFilters after IncludeFilters, so a metric that both parameters match is not enriched. A maximum of 100 filters is allowed across IncludeFilters and ExcludeFilters combined."
    }
  },
  "$defs": {
    "OTelEnrichmentMetricSelector": {
      "type": "object",
      "properties": {
        "Namespace": {
          "type": "string",
          "description": "The namespace of the metrics to select. Namespaces are matched exactly and are case-sensitive."
        },
        "MetricNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The names of the metrics to select within the namespace. Metric names are matched exactly and are case-sensitive. If this parameter is omitted, every metric in the namespace is selected. A maximum of 100 metric names is allowed for each selector."
        }
      },
      "required": [
        "Namespace"
      ]
    }
  }
}