{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-get-resources-trends-v2-request-schema.json",
  "title": "GetResourcesTrendsV2Request",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-operations-api-openapi.yml#/components/schemas/GetResourcesTrendsV2Request",
  "type": "object",
  "properties": {
    "Filters": {
      "$ref": "#/$defs/ResourcesTrendsFilters"
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The starting timestamp for the time period to analyze resources trends, in ISO 8601 format."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The ending timestamp for the time period to analyze resources trends, in ISO 8601 format."
    },
    "NextToken": {
      "type": "string",
      "description": "The token to use for paginating results. This value is returned in the response if more results are available."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of trend data points to return in a single response."
    }
  },
  "required": [
    "StartTime",
    "EndTime"
  ],
  "$defs": {
    "ResourcesTrendsCompositeFilter": {
      "type": "object",
      "properties": {
        "StringFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourcesTrendsStringFilter"
          },
          "description": "A list of string filters that apply to resources trend data fields."
        },
        "NestedCompositeFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourcesTrendsCompositeFilter"
          },
          "description": "A list of nested composite filters that you can use to create complex filter conditions for resources trend data."
        },
        "Operator": {
          "type": "string",
          "enum": [
            "AND",
            "OR"
          ],
          "description": "The logical operator (AND, OR) to apply between the string filters and nested composite filters."
        }
      }
    },
    "ResourcesTrendsFilters": {
      "type": "object",
      "properties": {
        "CompositeFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourcesTrendsCompositeFilter"
          },
          "description": "A list of composite filters to apply to the resources trend data."
        },
        "CompositeOperator": {
          "type": "string",
          "enum": [
            "AND",
            "OR"
          ],
          "description": "The logical operator (AND, OR) to apply between multiple composite filters."
        }
      }
    },
    "ResourcesTrendsStringFilter": {
      "type": "object",
      "properties": {
        "FieldName": {
          "type": "string",
          "enum": [
            "account_id",
            "region",
            "resource_type",
            "resource_category",
            "resource_cloud_provider",
            "resource_region",
            "resource_owner_id",
            "resource_owner_organization_id"
          ],
          "description": "The name of the resources field to filter on. You can specify one of the following fields. account_id – The Amazon Web Services account ID that owns the resource. region – The Amazon Web Services Region of the resource. resource_type – The type of the resource. resource_category – The category of the resource. resource_cloud_provider – The cloud provider of the resource. Valid values are AWS and Azure. resource_region – The Region of the resource. For an Amazon Web Services resource, this is the Amazon Web Services Region. For an Azure resource, this is the Azure Region, such as eastus. resour"
        },
        "Filter": {
          "$ref": "#/$defs/StringFilter"
        }
      }
    },
    "StringFilter": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "The string filter value. Filter values are case sensitive. For example, the product name for control-based findings is Security Hub CSPM. If you provide security hub as the filter value, there's no match."
        },
        "Comparison": {
          "type": "string",
          "enum": [
            "EQUALS",
            "PREFIX",
            "NOT_EQUALS",
            "PREFIX_NOT_EQUALS",
            "CONTAINS",
            "NOT_CONTAINS",
            "CONTAINS_WORD"
          ],
          "description": "The condition to apply to a string value when filtering Security Hub CSPM findings. To search for values that have the filter value, use one of the following comparison operators: To search for values that include the filter value, use CONTAINS. For example, the filter Title CONTAINS CloudFront matches findings that have a Title that includes the string CloudFront. To search for values that contain a word matching the filter value, regardless of case, use CONTAINS_WORD. For example, the filter Title CONTAINS_WORD lambda matches a finding whose Title is GuardDuty Lambda Protection, because the "
        }
      }
    }
  }
}