{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-get-resource-metrics-configuration-output-schema.json",
  "title": "GetResourceMetricsConfigurationOutput",
  "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/GetResourceMetricsConfigurationOutput",
  "type": "object",
  "properties": {
    "ResourceMetricsConfiguration": {
      "$ref": "#/$defs/ResourceMetricsConfiguration"
    }
  },
  "required": [
    "ResourceMetricsConfiguration"
  ],
  "$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"
      ]
    },
    "ResourceMetricsConfiguration": {
      "type": "object",
      "properties": {
        "ResourceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Web Services resource that this configuration applies to."
        },
        "CreatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the resource metrics configuration was created."
        },
        "UpdatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the resource metrics configuration was last updated. When the configuration is first created, this value is the same as CreatedAt."
        },
        "MetricSelections": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceMetricSelection"
          },
          "description": "The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource."
        }
      },
      "required": [
        "ResourceArn",
        "CreatedAt",
        "UpdatedAt"
      ]
    }
  }
}