Class BundlingFileAccess
The access mechanism used to make source files available to the bundling container and to return the bundling output back to the host.
Inheritance
System.Object
BundlingFileAccess
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class BundlingFileAccess : Enum
Syntax (vb)
Public NotInheritable Class BundlingFileAccess
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
new GoFunction(this, "GoFunction", new GoFunctionProps {
Entry = "app/cmd/api",
Bundling = new BundlingOptions {
BundlingFileAccess = BundlingFileAccess.VOLUME_COPY
}
});
Synopsis
Fields
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 |
value__ | |
VOLUME_COPY | Creates temporary volumes and containers to copy files from the host to the bundling container and back. |
Fields
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
.
public const BundlingFileAccess BIND_MOUNT
Field Value
Type | Description |
---|---|
BundlingFileAccess |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |
VOLUME_COPY
Creates temporary volumes and containers to copy files from the host to the bundling container and back.
public const BundlingFileAccess VOLUME_COPY
Field Value
Type | Description |
---|---|
BundlingFileAccess |
Remarks
This is slower, but works also in more complex situations with remote or shared docker sockets.