{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-create-resource-metrics-configuration-input-schema.json",
  "title": "CreateResourceMetricsConfigurationInput",
  "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/CreateResourceMetricsConfigurationInput",
  "type": "object",
  "properties": {
    "ResourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Amazon Web Services resource to enable detailed monitoring for."
    },
    "MetricSelections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceMetricSelection"
      },
      "description": "Specifies which metrics Amazon CloudWatch collects for the resource. If you omit this parameter, Amazon CloudWatch 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"
      ]
    }
  }
}