Enum Class StorageClass

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

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-03-01T20:58:30.567Z") @Stability(Stable) public enum StorageClass extends Enum<StorageClass>
Storage class used for storing the object.

Example:

 Bucket websiteBucket = Bucket.Builder.create(this, "WebsiteBucket")
         .websiteIndexDocument("index.html")
         .publicReadAccess(true)
         .build();
 BucketDeployment.Builder.create(this, "DeployWebsite")
         .sources(List.of(Source.asset("./website-dist")))
         .destinationBucket(websiteBucket)
         .destinationKeyPrefix("web/static") // optional prefix in destination bucket
         .metadata(Map.of("A", "1", "b", "2")) // user-defined metadata
         // system-defined metadata
         .contentType("text/html")
         .contentLanguage("en")
         .storageClass(StorageClass.INTELLIGENT_TIERING)
         .serverSideEncryption(ServerSideEncryption.AES_256)
         .cacheControl(List.of(CacheControl.setPublic(), CacheControl.maxAge(Duration.hours(1))))
         .accessControl(BucketAccessControl.BUCKET_OWNER_FULL_CONTROL)
         .build();
 

See Also:
  • Enum Constant Details

    • STANDARD

      @Stability(Stable) public static final StorageClass STANDARD
      'STANDARD'.
    • REDUCED_REDUNDANCY

      @Stability(Stable) public static final StorageClass REDUCED_REDUNDANCY
      'REDUCED_REDUNDANCY'.
    • STANDARD_IA

      @Stability(Stable) public static final StorageClass STANDARD_IA
      'STANDARD_IA'.
    • ONEZONE_IA

      @Stability(Stable) public static final StorageClass ONEZONE_IA
      'ONEZONE_IA'.
    • INTELLIGENT_TIERING

      @Stability(Stable) public static final StorageClass INTELLIGENT_TIERING
      'INTELLIGENT_TIERING'.
    • GLACIER

      @Stability(Stable) public static final StorageClass GLACIER
      'GLACIER'.
    • DEEP_ARCHIVE

      @Stability(Stable) public static final StorageClass DEEP_ARCHIVE
      'DEEP_ARCHIVE'.
  • Method Details

    • values

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

      public static StorageClass valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null