{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-efs-accesspoint.json",
  "title": "AWSEFSAccessPointProperties",
  "description": "Resource Type definition for AWS::EFS::AccessPoint. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-efs-accesspoint.json",
    "sourceSha256": "751eb9fd00cd0be33cf5f9fa3bcf6f2721339d6f7af33b18c6d3c9bccb6255f8"
  },
  "type": "object",
  "properties": {
    "ClientToken": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "(optional) A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation."
    },
    "AccessPointTags": {
      "type": "array",
      "insertionOrder": false,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/AccessPointTag"
      }
    },
    "FileSystemId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the EFS file system that the access point provides access to."
    },
    "PosixUser": {
      "description": "The operating system user and group applied to all file system requests made using the access point.",
      "$ref": "#/$defs/PosixUser"
    },
    "RootDirectory": {
      "description": "Specifies the directory on the Amazon EFS file system that the access point exposes as the root directory of your file system to NFS clients using the access point. The clients using the access point can only access the root directory and below. If the RootDirectory>Path specified does not exist, EFS creates it and applies the CreationInfo settings when a client connects to an access point. When specifying a RootDirectory, you need to provide the Path, and the CreationInfo is optional.",
      "$ref": "#/$defs/RootDirectory"
    }
  },
  "typeName": "AWS::EFS::AccessPoint",
  "readOnlyProperties": [
    "/properties/AccessPointId",
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/FileSystemId",
    "/properties/ClientToken",
    "/properties/CreationInfo",
    "/properties/CreationInfo/OwnerUid",
    "/properties/CreationInfo/OwnerGid",
    "/properties/CreationInfo/Permissions",
    "/properties/PosixUser",
    "/properties/PosixUser/Uid",
    "/properties/PosixUser/Gid",
    "/properties/PosixUser/SecondaryGids",
    "/properties/RootDirectory",
    "/properties/RootDirectory/Path",
    "/properties/RootDirectory/CreationInfo"
  ],
  "$defs": {
    "AccessPointTag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSEFSAccessPointAccessPointTagDefinition",
      "additionalProperties": false
    },
    "CreationInfo": {
      "type": "object",
      "properties": {
        "OwnerUid": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Specifies the POSIX user ID to apply to the RootDirectory. Accepts values from 0 to 2^32 (4294967295)."
        },
        "OwnerGid": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Specifies the POSIX group ID to apply to the RootDirectory. Accepts values from 0 to 2^32 (4294967295)."
        },
        "Permissions": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[0-7]{3,4}$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Specifies the POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits."
        }
      },
      "required": [
        "OwnerUid",
        "OwnerGid",
        "Permissions"
      ],
      "title": "AWSEFSAccessPointCreationInfoDefinition",
      "additionalProperties": false
    },
    "RootDirectory": {
      "type": "object",
      "properties": {
        "Path": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide the CreationInfo."
        },
        "CreationInfo": {
          "description": "(Optional) Specifies the POSIX IDs and permissions to apply to the access point's RootDirectory. If the RootDirectory>Path specified does not exist, EFS creates the root directory using the CreationInfo settings when a client connects to an access point. When specifying the CreationInfo, you must provide values for all properties.   If you do not provide CreationInfo and the specified RootDirectory>Path does not exist, attempts to mount the file system using the access point will fail. ",
          "$ref": "#/$defs/CreationInfo"
        }
      },
      "title": "AWSEFSAccessPointRootDirectoryDefinition",
      "additionalProperties": false
    },
    "PosixUser": {
      "type": "object",
      "properties": {
        "Uid": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The POSIX user ID used for all file system operations using this access point."
        },
        "Gid": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The POSIX group ID used for all file system operations using this access point."
        },
        "SecondaryGids": {
          "type": "array",
          "description": "Secondary POSIX group IDs used for all file system operations using this access point.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "Uid",
        "Gid"
      ],
      "title": "AWSEFSAccessPointPosixUserDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "FileSystemId"
  ],
  "primaryIdentifier": [
    "/properties/AccessPointId"
  ]
}
