Enum BundlingFileAccess

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-15T10:24:53.374Z") @Stability(Stable) public enum BundlingFileAccess extends Enum<BundlingFileAccess>
The access mechanism used to make source files available to the bundling container and to return the bundling output back to the host.

Example:

 GoFunction.Builder.create(this, "GoFunction")
         .entry("app/cmd/api")
         .bundling(BundlingOptions.builder()
                 .bundlingFileAccess(BundlingFileAccess.VOLUME_COPY)
                 .build())
         .build();
 
  • Enum Constant Details

    • VOLUME_COPY

      @Stability(Stable) public static final BundlingFileAccess VOLUME_COPY
      Creates temporary volumes and containers to copy files from the host to the bundling container and back.

      This is slower, but works also in more complex situations with remote or shared docker sockets.

    • BIND_MOUNT

      @Stability(Stable) public static final BundlingFileAccess BIND_MOUNT
      The source and output folders will be mounted as bind mount from the host system This is faster and simpler, but less portable than VOLUME_COPY.
  • Method Details

    • values

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