{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/FileSystemId",
  "/properties/FileSystemPath",
  "/properties/DataRepositoryPath",
  "/properties/BatchImportMetaDataOnCreate"
 ],
 "definitions": {
  "AutoExportPolicy": {
   "additionalProperties": false,
   "properties": {
    "Events": {
     "$ref": "#/definitions/EventTypes"
    }
   },
   "required": [
    "Events"
   ],
   "type": "object"
  },
  "AutoImportPolicy": {
   "additionalProperties": false,
   "properties": {
    "Events": {
     "$ref": "#/definitions/EventTypes"
    }
   },
   "required": [
    "Events"
   ],
   "type": "object"
  },
  "EventType": {
   "enum": [
    "NEW",
    "CHANGED",
    "DELETED"
   ],
   "type": "string"
  },
  "EventTypes": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/EventType"
   },
   "maxItems": 3,
   "minItems": 0,
   "type": "array",
   "uniqueItems": true
  },
  "S3": {
   "additionalProperties": false,
   "properties": {
    "AutoExportPolicy": {
     "$ref": "#/definitions/AutoExportPolicy"
    },
    "AutoImportPolicy": {
     "$ref": "#/definitions/AutoImportPolicy"
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/AssociationId"
 ],
 "properties": {
  "AssociationId": {
   "type": "string"
  },
  "BatchImportMetaDataOnCreate": {
   "type": "boolean"
  },
  "DataRepositoryPath": {
   "maxLength": 4357,
   "minLength": 3,
   "pattern": "^[^\\u0000\\u0085\\u2028\\u2029\\r\\n]{3,4357}$",
   "type": "string"
  },
  "FileSystemId": {
   "maxLength": 21,
   "minLength": 11,
   "pattern": "^(fs-[0-9a-f]{8,})$",
   "type": "string"
  },
  "FileSystemPath": {
   "maxLength": 4096,
   "minLength": 1,
   "pattern": "^[^\\u0000\\u0085\\u2028\\u2029\\r\\n]{1,4096}$",
   "type": "string"
  },
  "ImportedFileChunkSize": {
   "maximum": 512000,
   "minimum": 1,
   "type": "integer"
  },
  "ResourceARN": {
   "type": "string"
  },
  "S3": {
   "$ref": "#/definitions/S3"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 1,
   "type": "array",
   "uniqueItems": false
  }
 },
 "readOnlyProperties": [
  "/properties/AssociationId",
  "/properties/ResourceARN"
 ],
 "required": [
  "FileSystemId",
  "FileSystemPath",
  "DataRepositoryPath"
 ],
 "resourceLink": {
  "mappings": {
   "AssociationId": "/AssociationId",
   "FileSystemId": "/FileSystemId"
  },
  "templateUri": "/fsx/home?region=${awsRegion}#data-repository-associations-details/${FileSystemId}/${AssociationId}"
 },
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-fsx.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::FSx::DataRepositoryAssociation"
}
