Enum AssetHashType

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:23:55.639Z") @Stability(Stable) public enum AssetHashType extends Enum<AssetHashType>
The type of asset hash.

NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc.

  • Enum Constant Details

    • SOURCE

      @Stability(Stable) public static final AssetHashType SOURCE
      Based on the content of the source path.

      When bundling, use SOURCE when the content of the bundling output is not stable across repeated bundling operations.

    • OUTPUT

      @Stability(Stable) public static final AssetHashType OUTPUT
      Based on the content of the bundling output.

      Use OUTPUT when the source of the asset is a top level folder containing code and/or dependencies that are not directly linked to the asset.

    • CUSTOM

      @Stability(Stable) public static final AssetHashType CUSTOM
      Use a custom hash.
  • Method Details

    • values

      public static AssetHashType[] 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 AssetHashType 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