{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fsx/json-schema/amazon-fsx-create-and-attach-s3-access-point-request-schema.json",
  "title": "CreateAndAttachS3AccessPointRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fsx-operations-api-openapi.yml#/components/schemas/CreateAndAttachS3AccessPointRequest",
  "type": "object",
  "properties": {
    "ClientRequestToken": {
      "type": "string"
    },
    "Name": {
      "type": "string",
      "description": "The name you want to assign to this S3 access point."
    },
    "Type": {
      "type": "string",
      "enum": [
        "OPENZFS",
        "ONTAP"
      ],
      "description": "The type of S3 access point you want to create. Only OpenZFS is supported."
    },
    "OpenZFSConfiguration": {
      "$ref": "#/$defs/CreateAndAttachS3AccessPointOpenZFSConfiguration"
    },
    "OntapConfiguration": {
      "$ref": "#/$defs/CreateAndAttachS3AccessPointOntapConfiguration"
    },
    "S3AccessPoint": {
      "$ref": "#/$defs/CreateAndAttachS3AccessPointS3Configuration"
    }
  },
  "required": [
    "Name",
    "Type"
  ],
  "$defs": {
    "CreateAndAttachS3AccessPointOntapConfiguration": {
      "type": "object",
      "properties": {
        "VolumeId": {
          "type": "string",
          "description": "The ID of the FSx for ONTAP volume to which you want the S3 access point attached."
        },
        "FileSystemIdentity": {
          "$ref": "#/$defs/OntapFileSystemIdentity"
        }
      },
      "required": [
        "VolumeId",
        "FileSystemIdentity"
      ]
    },
    "CreateAndAttachS3AccessPointOpenZFSConfiguration": {
      "type": "object",
      "properties": {
        "VolumeId": {
          "type": "string",
          "description": "The ID of the FSx for OpenZFS volume to which you want the S3 access point attached."
        },
        "FileSystemIdentity": {
          "$ref": "#/$defs/OpenZFSFileSystemIdentity"
        }
      },
      "required": [
        "VolumeId",
        "FileSystemIdentity"
      ]
    },
    "CreateAndAttachS3AccessPointS3Configuration": {
      "type": "object",
      "properties": {
        "VpcConfiguration": {
          "$ref": "#/$defs/S3AccessPointVpcConfiguration"
        },
        "Policy": {
          "type": "string",
          "description": "Specifies an access policy to associate with the S3 access point configuration. For more information, see Configuring IAM policies for using access points in the Amazon Simple Storage Service User Guide."
        }
      }
    },
    "OntapFileSystemIdentity": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "UNIX",
            "WINDOWS"
          ],
          "description": "Specifies the FSx for ONTAP user identity type. Valid values are UNIX and WINDOWS."
        },
        "UnixUser": {
          "$ref": "#/$defs/OntapUnixFileSystemUser"
        },
        "WindowsUser": {
          "$ref": "#/$defs/OntapWindowsFileSystemUser"
        }
      },
      "required": [
        "Type"
      ]
    },
    "OntapUnixFileSystemUser": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the UNIX user. The name can be up to 256 characters long."
        }
      },
      "required": [
        "Name"
      ]
    },
    "OntapWindowsFileSystemUser": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the Windows user. The name can be up to 256 characters long and supports Active Directory users."
        }
      },
      "required": [
        "Name"
      ]
    },
    "OpenZFSFileSystemIdentity": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "POSIX"
          ],
          "description": "Specifies the FSx for OpenZFS user identity type, accepts only POSIX."
        },
        "PosixUser": {
          "$ref": "#/$defs/OpenZFSPosixFileSystemUser"
        }
      },
      "required": [
        "Type"
      ]
    },
    "OpenZFSPosixFileSystemUser": {
      "type": "object",
      "properties": {
        "Uid": {
          "type": "integer",
          "description": "The UID of the file system user."
        },
        "Gid": {
          "type": "integer",
          "description": "The GID of the file system user."
        },
        "SecondaryGids": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "The list of secondary GIDs for the file system user."
        }
      },
      "required": [
        "Uid",
        "Gid"
      ]
    },
    "S3AccessPointVpcConfiguration": {
      "type": "object",
      "properties": {
        "VpcId": {
          "type": "string",
          "description": "Specifies the virtual private cloud (VPC) for the S3 access point VPC configuration, if one exists."
        }
      }
    }
  }
}