{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-compute-optimizer/json-schema/amazon-compute-optimizer-get-license-recommendations-request-schema.json",
  "title": "GetLicenseRecommendationsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-compute-optimizer-operations-api-openapi.yml#/components/schemas/GetLicenseRecommendationsRequest",
  "type": "object",
  "properties": {
    "resourceArns": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The ARN that identifies the Amazon EC2 instance. The following is the format of the ARN: arn:aws:ec2:region:aws_account_id:instance/instance-id"
    },
    "nextToken": {
      "type": "string",
      "description": "The token to advance to the next page of license recommendations."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of license recommendations to return with a single request. To retrieve the remaining results, make another request with the returned nextToken value."
    },
    "filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LicenseRecommendationFilter"
      },
      "description": "An array of objects to specify a filter that returns a more specific list of license recommendations."
    },
    "accountIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The ID of the Amazon Web Services account for which to return license recommendations. If your account is the management account of an organization, use this parameter to specify the member account for which you want to return license recommendations. Only one account ID can be specified per request."
    }
  },
  "$defs": {
    "LicenseRecommendationFilter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "enum": [
            "Finding",
            "FindingReasonCode",
            "LicenseName"
          ],
          "description": "The name of the filter. Specify Finding to return recommendations with a specific finding classification. Specify FindingReasonCode to return recommendations with a specific finding reason code. You can filter your license recommendations by tag:key and tag-key tags. A tag:key is a key and value combination of a tag assigned to your license recommendations. Use the tag key in the filter name and the tag value as the filter value. For example, to find all license recommendations that have a tag with the key of Owner and the value of TeamA, specify tag:Owner for the filter name and TeamA for the"
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The value of the filter. The valid values for this parameter are as follows, depending on what you specify for the name parameter: If you specify the name parameter as Finding, then specify Optimized, NotOptimized, or InsufficentMetrics. If you specify the name parameter as FindingReasonCode, then specify Optimized, LicenseOverprovisioned, InvalidCloudwatchApplicationInsights, or CloudwatchApplicationInsightsError."
        }
      }
    }
  }
}