{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-license-manager/json-schema/amazon-license-manager-update-license-manager-report-generator-request-schema.json",
  "title": "UpdateLicenseManagerReportGeneratorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-license-manager-license-manager-report-generator-api-openapi.yml#/components/schemas/UpdateLicenseManagerReportGeneratorRequest",
  "type": "object",
  "properties": {
    "LicenseManagerReportGeneratorArn": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the report generator to update."
    },
    "ReportGeneratorName": {
      "type": "string",
      "description": "Name of the report generator."
    },
    "Type": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "LicenseConfigurationSummaryReport",
          "LicenseConfigurationUsageReport",
          "LicenseAssetGroupUsageReport"
        ]
      },
      "description": "Type of reports to generate. The following report types are supported: License configuration report - Reports the number and details of consumed licenses for a license configuration. Resource report - Reports the tracked licenses and resource consumption for a license configuration."
    },
    "ReportContext": {
      "$ref": "#/$defs/ReportContext"
    },
    "ReportFrequency": {
      "$ref": "#/$defs/ReportFrequency"
    },
    "ClientToken": {
      "type": "string",
      "description": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    },
    "Description": {
      "type": "string",
      "description": "Description of the report generator."
    }
  },
  "required": [
    "LicenseManagerReportGeneratorArn",
    "ReportGeneratorName",
    "Type",
    "ReportContext",
    "ReportFrequency",
    "ClientToken"
  ],
  "$defs": {
    "ReportContext": {
      "type": "object",
      "properties": {
        "licenseConfigurationArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Amazon Resource Name (ARN) of the license configuration that this generator reports on."
        },
        "licenseAssetGroupArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Amazon Resource Names (ARNs) of the license asset groups to include in the report."
        },
        "reportStartDate": {
          "type": "string",
          "format": "date-time",
          "description": "Start date for the report data collection period."
        },
        "reportEndDate": {
          "type": "string",
          "format": "date-time",
          "description": "End date for the report data collection period."
        }
      }
    },
    "ReportFrequency": {
      "type": "object",
      "properties": {
        "value": {
          "type": "integer",
          "description": "Number of times within the frequency period that a report is generated. The only supported value is 1."
        },
        "period": {
          "type": "string",
          "enum": [
            "DAY",
            "WEEK",
            "MONTH",
            "ONE_TIME"
          ],
          "description": "Time period between each report. The period can be daily, weekly, or monthly."
        }
      }
    }
  }
}