{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-update-resource-metrics-configuration-input-schema.json",
  "title": "UpdateResourceMetricsConfigurationInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-resource-metrics-configuration-api-openapi.yml#/components/schemas/UpdateResourceMetricsConfigurationInput",
  "type": "object",
  "properties": {
    "ResourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Amazon Web Services resource to update the resource metrics configuration for."
    },
    "MetricSelections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceMetricSelection"
      },
      "description": "Specifies which metrics Amazon CloudWatch collects for the resource. The selections that you provide completely replace any existing metric selections. If you omit this parameter, Amazon CloudWatch removes any existing metric selection filter and collects all available detailed metrics for the resource."
    }
  },
  "required": [
    "ResourceArn"
  ],
  "$defs": {
    "ResourceMetricSelection": {
      "type": "object",
      "properties": {
        "IncludeMetrics": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The names of the metrics to collect for the resource. Amazon CloudWatch collects only the metrics that you list here."
        }
      },
      "required": [
        "IncludeMetrics"
      ]
    }
  }
}