Enum LustreAutoImportPolicy

java.lang.Object
java.lang.Enum<LustreAutoImportPolicy>
software.amazon.awscdk.services.fsx.LustreAutoImportPolicy
All Implemented Interfaces:
Serializable, Comparable<LustreAutoImportPolicy>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-15T10:24:59.978Z") @Stability(Stable) public enum LustreAutoImportPolicy extends Enum<LustreAutoImportPolicy>
The different auto import policies which are allowed.

Example:

 import software.amazon.awscdk.services.s3.*;
 Vpc vpc;
 Bucket bucket;
 Map<String, Object> lustreConfiguration = Map.of(
         "deploymentType", LustreDeploymentType.SCRATCH_2,
         "exportPath", bucket.s3UrlForObject(),
         "importPath", bucket.s3UrlForObject(),
         "autoImportPolicy", LustreAutoImportPolicy.NEW_CHANGED_DELETED);
 LustreFileSystem fs = LustreFileSystem.Builder.create(this, "FsxLustreFileSystem")
         .vpc(vpc)
         .vpcSubnet(vpc.getPrivateSubnets()[0])
         .storageCapacityGiB(1200)
         .lustreConfiguration(lustreConfiguration)
         .build();
 
  • Enum Constant Details

    • NONE

      @Stability(Stable) public static final LustreAutoImportPolicy NONE
      AutoImport is off.

      Amazon FSx only updates file and directory listings from the linked S3 bucket when the file system is created. FSx does not update file and directory listings for any new or changed objects after choosing this option.

    • NEW

      @Stability(Stable) public static final LustreAutoImportPolicy NEW
      AutoImport is on.

      Amazon FSx automatically imports directory listings of any new objects added to the linked S3 bucket that do not currently exist in the FSx file system.

    • NEW_CHANGED

      @Stability(Stable) public static final LustreAutoImportPolicy NEW_CHANGED
      AutoImport is on.

      Amazon FSx automatically imports file and directory listings of any new objects added to the S3 bucket and any existing objects that are changed in the S3 bucket after you choose this option.

    • NEW_CHANGED_DELETED

      @Stability(Stable) public static final LustreAutoImportPolicy NEW_CHANGED_DELETED
      AutoImport is on.

      Amazon FSx automatically imports file and directory listings of any new objects added to the S3 bucket, any existing objects that are changed in the S3 bucket, and any objects that were deleted in the S3 bucket.

  • Method Details

    • values

      public static LustreAutoImportPolicy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LustreAutoImportPolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null