@Generated(value="jsii-pacmak/1.12.0 (build 5ddc9f2)", date="2020-09-22T23:51:18.608Z") @Stability(value=Experimental) public interface BundlingOptions extends software.amazon.jsii.JsiiSerializable
EXPERIMENTAL
| Modifier and Type | Interface and Description |
|---|---|
static class |
BundlingOptions.Builder
A builder for
BundlingOptions |
static class |
BundlingOptions.Jsii$Proxy
An implementation for
BundlingOptions |
| Modifier and Type | Method and Description |
|---|---|
static BundlingOptions.Builder |
builder() |
default List<String> |
getCommand()
The command to run in the Docker container.
|
default Map<String,String> |
getEnvironment()
The environment variables to pass to the Docker container.
|
BundlingDockerImage |
getImage()
The Docker image where the command will run.
|
default ILocalBundling |
getLocal()
Local bundling provider.
|
default String |
getUser()
The user to use when running the Docker container.
|
default List<DockerVolume> |
getVolumes()
Additional Docker volumes to mount.
|
default String |
getWorkingDirectory()
Working directory inside the Docker container.
|
@Stability(value=Experimental) @NotNull BundlingDockerImage getImage()
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default List<String> getCommand()
Default: - run the command defined in the image
Example:
// Example automatically generated. See https://github.com/aws/jsii/issues/826 asList("npm", "install");
EXPERIMENTAL
https://docs.docker.com/engine/reference/run/@Stability(value=Experimental) @Nullable default Map<String,String> getEnvironment()
Default: - no environment variables.
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default ILocalBundling getLocal()
The provider implements a method tryBundle() which should return true
if local bundling was performed. If false is returned, docker bundling
will be done.
Default: - bundling will only be performed in a Docker container
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getUser()
user | user:group | uid | uid:gid | user:gid | uid:group
Default: - uid:gid of the current user or 1000:1000 on Windows
EXPERIMENTAL
https://docs.docker.com/engine/reference/run/#user@Stability(value=Experimental) @Nullable default List<DockerVolume> getVolumes()
Default: - no additional volumes are mounted
EXPERIMENTAL
@Stability(value=Experimental) @Nullable default String getWorkingDirectory()
Default: /asset-input
EXPERIMENTAL
@Stability(value=Experimental) static BundlingOptions.Builder builder()
BundlingOptions.Builder of BundlingOptionsCopyright © 2020. All rights reserved.