Package software.amazon.awscdk
Enum 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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe source and output folders will be mounted as bind mount from the host system This is faster and simpler, but less portable thanVOLUME_COPY
.Creates temporary volumes and containers to copy files from the host to the bundling container and back. -
Method Summary
Modifier and TypeMethodDescriptionstatic BundlingFileAccess
Returns the enum constant of this type with the specified name.static BundlingFileAccess[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
The source and output folders will be mounted as bind mount from the host system This is faster and simpler, but less portable thanVOLUME_COPY
.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-