{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-storage-gateway/json-schema/amazon-storage-gateway-start-cache-report-input-schema.json",
  "title": "StartCacheReportInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-storage-gateway-cache-report-api-openapi.yml#/components/schemas/StartCacheReportInput",
  "type": "object",
  "properties": {
    "FileShareARN": {
      "type": "string"
    },
    "Role": {
      "type": "string",
      "description": "The ARN of the IAM role used when saving the cache report to Amazon S3."
    },
    "LocationARN": {
      "type": "string",
      "description": "The ARN of the Amazon S3 bucket where you want to save the cache report. We do not recommend saving the cache report to the same Amazon S3 bucket for which you are generating the report. This field does not accept access point ARNs."
    },
    "BucketRegion": {
      "type": "string",
      "description": "The Amazon Web Services Region of the Amazon S3 bucket where you want to save the cache report."
    },
    "VPCEndpointDNSName": {
      "type": "string",
      "description": "The DNS name of the VPC endpoint associated with the Amazon S3 where you want to save the cache report. Optional."
    },
    "InclusionFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CacheReportFilter"
      },
      "description": "The list of filters and parameters that determine which files are included in the report. You must specify at least one value for InclusionFilters or ExclusionFilters in a StartCacheReport request."
    },
    "ExclusionFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CacheReportFilter"
      },
      "description": "The list of filters and parameters that determine which files are excluded from the report. You must specify at least one value for InclusionFilters or ExclusionFilters in a StartCacheReport request."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique identifier that you use to ensure idempotent report generation if you need to retry an unsuccessful StartCacheReport request. If you retry a request, use the same ClientToken you specified in the initial request."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of up to 50 key/value tags that you can assign to the cache report. Using tags can help you categorize your reports and more easily locate them in search results."
    }
  },
  "required": [
    "FileShareARN",
    "Role",
    "LocationARN",
    "BucketRegion",
    "ClientToken"
  ],
  "$defs": {
    "CacheReportFilter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "UploadState",
            "UploadFailureReason"
          ],
          "description": "The parameter name for a filter that determines which files are included or excluded from a cache report. Valid Names: UploadFailureReason | UploadState"
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The parameter value for a filter that determines which files are included or excluded from a cache report. Valid UploadFailureReason Values: InaccessibleStorageClass | InvalidObjectState | ObjectMissing | S3AccessDenied Valid UploadState Values: FailingUpload"
        }
      },
      "required": [
        "Name",
        "Values"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Tag key. The key can't start with aws:."
        },
        "Value": {
          "type": "string",
          "description": "Value of the tag key."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}