{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fsx/json-schema/amazon-fsx-update-data-repository-association-request-schema.json",
  "title": "UpdateDataRepositoryAssociationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fsx-data-repository-association-api-openapi.yml#/components/schemas/UpdateDataRepositoryAssociationRequest",
  "type": "object",
  "properties": {
    "AssociationId": {
      "type": "string",
      "description": "The ID of the data repository association that you are updating."
    },
    "ClientRequestToken": {
      "type": "string"
    },
    "ImportedFileChunkSize": {
      "type": "integer",
      "description": "For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system. The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB."
    },
    "S3": {
      "$ref": "#/$defs/S3DataRepositoryConfiguration"
    }
  },
  "required": [
    "AssociationId"
  ],
  "$defs": {
    "AutoExportPolicy": {
      "type": "object",
      "properties": {
        "Events": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "NEW",
              "CHANGED",
              "DELETED"
            ]
          },
          "description": "The AutoExportPolicy can have the following event values: NEW - New files and directories are automatically exported to the data repository as they are added to the file system. CHANGED - Changes to files and directories on the file system are automatically exported to the data repository. DELETED - Files and directories are automatically deleted on the data repository when they are deleted on the file system. You can define any combination of event types for your AutoExportPolicy."
        }
      }
    },
    "AutoImportPolicy": {
      "type": "object",
      "properties": {
        "Events": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "NEW",
              "CHANGED",
              "DELETED"
            ]
          },
          "description": "The AutoImportPolicy can have the following event values: NEW - Amazon FSx automatically imports metadata of files added to the linked S3 bucket that do not currently exist in the FSx file system. CHANGED - Amazon FSx automatically updates file metadata and invalidates existing file content on the file system as files change in the data repository. DELETED - Amazon FSx automatically deletes files on the file system as corresponding files are deleted in the data repository. You can define any combination of event types for your AutoImportPolicy."
        }
      }
    },
    "S3DataRepositoryConfiguration": {
      "type": "object",
      "properties": {
        "AutoImportPolicy": {
          "$ref": "#/$defs/AutoImportPolicy"
        },
        "AutoExportPolicy": {
          "$ref": "#/$defs/AutoExportPolicy"
        }
      }
    }
  }
}