{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-efs/json-schema/amazon-efs-create-access-point-request-schema.json",
  "title": "CreateAccessPointRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-efs-access-points-api-openapi.yml#/components/schemas/CreateAccessPointRequest",
  "type": "object",
  "properties": {
    "ClientToken": {
      "type": "string",
      "description": "A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent creation."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Creates tags associated with the access point. Each tag is a key-value pair, each key must be unique. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide."
    },
    "FileSystemId": {
      "type": "string",
      "description": "The ID of the EFS file system that the access point provides access to."
    },
    "PosixUser": {
      "$ref": "#/$defs/PosixUser"
    },
    "RootDirectory": {
      "$ref": "#/$defs/RootDirectory"
    }
  },
  "required": [
    "ClientToken",
    "FileSystemId"
  ],
  "$defs": {
    "CreationInfo": {
      "type": "object",
      "properties": {
        "OwnerUid": {
          "type": "integer",
          "description": "Specifies the POSIX user ID to apply to the RootDirectory. Accepts values from 0 to 2^32 (4294967295)."
        },
        "OwnerGid": {
          "type": "integer",
          "description": "Specifies the POSIX group ID to apply to the RootDirectory. Accepts values from 0 to 2^32 (4294967295)."
        },
        "Permissions": {
          "type": "string",
          "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"
      ]
    },
    "PosixUser": {
      "type": "object",
      "properties": {
        "Uid": {
          "type": "integer",
          "description": "The POSIX user ID used for all file system operations using this access point."
        },
        "Gid": {
          "type": "integer",
          "description": "The POSIX group ID used for all file system operations using this access point."
        },
        "SecondaryGids": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Secondary POSIX group IDs used for all file system operations using this access point."
        }
      },
      "required": [
        "Uid",
        "Gid"
      ]
    },
    "RootDirectory": {
      "type": "object",
      "properties": {
        "Path": {
          "type": "string",
          "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": {
          "$ref": "#/$defs/CreationInfo"
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key (String). The key can't start with aws:."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag key."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}