{
  "typeName" : "AWS::S3Files::FileSystemPolicy",
  "description" : "Resource Type definition for AWS::S3Files::FileSystemPolicy",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties" : false,
  "tagging" : {
    "taggable" : false,
    "tagOnCreate" : false,
    "tagUpdatable" : false,
    "cloudFormationSystemTags" : false
  },
  "properties" : {
    "FileSystemId" : {
      "type" : "string",
      "pattern" : "^(arn:aws[-a-z]*:s3files:[0-9a-z-:]+:file-system/fs-[0-9a-f]{17,40}|fs-[0-9a-f]{17,40})$",
      "maxLength" : 128
    },
    "Policy" : {
      "type" : "object"
    }
  },
  "primaryIdentifier" : [ "/properties/FileSystemId" ],
  "createOnlyProperties" : [ "/properties/FileSystemId" ],
  "required" : [ "FileSystemId", "Policy" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "s3files:GetFileSystemPolicy", "s3files:PutFileSystemPolicy" ]
    },
    "read" : {
      "permissions" : [ "s3files:GetFileSystemPolicy" ]
    },
    "update" : {
      "permissions" : [ "s3files:GetFileSystemPolicy", "s3files:PutFileSystemPolicy" ]
    },
    "delete" : {
      "permissions" : [ "s3files:GetFileSystemPolicy", "s3files:DeleteFileSystemPolicy" ]
    },
    "list" : {
      "permissions" : [ "s3files:GetFileSystemPolicy", "s3files:ListFileSystems" ]
    }
  }
}