{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/FileSystemId",
  "/properties/ClientToken",
  "/properties/PosixUser",
  "/properties/PosixUser/Uid",
  "/properties/PosixUser/Gid",
  "/properties/PosixUser/SecondaryGids",
  "/properties/RootDirectory",
  "/properties/RootDirectory/Path",
  "/properties/RootDirectory/CreationPermissions",
  "/properties/RootDirectory/CreationPermissions/OwnerUid",
  "/properties/RootDirectory/CreationPermissions/OwnerGid",
  "/properties/RootDirectory/CreationPermissions/Permissions"
 ],
 "definitions": {
  "AccessPointTag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+)$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "CreationPermissions": {
   "additionalProperties": false,
   "properties": {
    "OwnerGid": {
     "maximum": 4294967295,
     "minimum": 0,
     "pattern": "^[0-9]+$",
     "type": "string"
    },
    "OwnerUid": {
     "maximum": 4294967295,
     "minimum": 0,
     "pattern": "^[0-9]+$",
     "type": "string"
    },
    "Permissions": {
     "pattern": "^[0-7]{3,4}$",
     "type": "string"
    }
   },
   "required": [
    "OwnerUid",
    "OwnerGid",
    "Permissions"
   ],
   "type": "object"
  },
  "PosixUser": {
   "additionalProperties": false,
   "properties": {
    "Gid": {
     "maximum": 4294967295,
     "minimum": 0,
     "pattern": "^[0-9]+$",
     "type": "string"
    },
    "SecondaryGids": {
     "items": {
      "maximum": 4294967295,
      "minimum": 0,
      "pattern": "^[0-9]+$",
      "type": "string"
     },
     "type": "array"
    },
    "Uid": {
     "maximum": 4294967295,
     "minimum": 0,
     "pattern": "^[0-9]+$",
     "type": "string"
    }
   },
   "required": [
    "Uid",
    "Gid"
   ],
   "type": "object"
  },
  "RootDirectory": {
   "additionalProperties": false,
   "properties": {
    "CreationPermissions": {
     "$ref": "#/definitions/CreationPermissions"
    },
    "Path": {
     "maxLength": 100,
     "minLength": 1,
     "pattern": "^(\\/|(\\/(?!\\.)+[^$#<>;;`|&?{}^*/\\n]+){1,4})$",
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/AccessPointId"
 ],
 "properties": {
  "AccessPointArn": {
   "maxLength": 256,
   "pattern": "^arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}/access-point/fsap-[0-9a-f]{17,40}$",
   "type": "string"
  },
  "AccessPointId": {
   "maxLength": 256,
   "pattern": "^(arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}/access-point/fsap-[0-9a-f]{17,40}|fsap-[0-9a-f]{17,40})$",
   "type": "string"
  },
  "ClientToken": {
   "maxLength": 64,
   "minLength": 1,
   "pattern": "^(.+)$",
   "type": "string"
  },
  "FileSystemId": {
   "maxLength": 128,
   "pattern": "^(arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}|fs-[0-9a-f]{17,40})$",
   "type": "string"
  },
  "OwnerId": {
   "maxLength": 12,
   "pattern": "^((\\d{12})|(\\d{4}-\\d{4}-\\d{4}))$",
   "type": "string"
  },
  "PosixUser": {
   "$ref": "#/definitions/PosixUser"
  },
  "RootDirectory": {
   "$ref": "#/definitions/RootDirectory"
  },
  "Status": {
   "enum": [
    "available",
    "creating",
    "updating",
    "deleting",
    "deleted",
    "error"
   ],
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/AccessPointTag"
   },
   "maxItems": 50,
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  }
 },
 "propertyTransform": {
  "/properties/FileSystemId": "$split(FileSystemId, \"/\")[-1] $OR FileSystemId"
 },
 "readOnlyProperties": [
  "/properties/AccessPointId",
  "/properties/AccessPointArn",
  "/properties/Status",
  "/properties/OwnerId"
 ],
 "required": [
  "FileSystemId"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::S3Files::AccessPoint"
}
