Interface RootDirectory.Builder

  • Method Details

    • path

      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.

      Parameters:
      path - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationInfo

      RootDirectory.Builder creationInfo(CreationInfo creationInfo)

      (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.

      Parameters:
      creationInfo - (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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationInfo

      default RootDirectory.Builder creationInfo(Consumer<CreationInfo.Builder> creationInfo)

      (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.

      This is a convenience method that creates an instance of the CreationInfo.Builder avoiding the need to create one manually via CreationInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to creationInfo(CreationInfo).

      Parameters:
      creationInfo - a consumer that will call methods on CreationInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: