@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.980Z") @Stability(value=Experimental) public class DevContainer extends Component implements IDevEnvironment
used by GitHub codespaces.
| Modifier and Type | Class and Description |
|---|---|
static class |
DevContainer.Builder
(experimental) A fluent builder for
DevContainer. |
software.amazon.jsii.JsiiObject.InitializationModeIDevEnvironment.Jsii$Default, IDevEnvironment.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
DevContainer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DevContainer(software.amazon.jsii.JsiiObjectRef objRef) |
|
DevContainer(Project project) |
|
DevContainer(Project project,
DevContainerOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDockerImage(DevEnvironmentDockerImage image)
(experimental) Add a custom Docker image or Dockerfile for the container.
|
void |
addPorts(String... ports)
(experimental) Adds ports that should be exposed (forwarded) from the container.
|
void |
addTasks(Task... tasks)
(experimental) Adds tasks to run when the container starts.
|
void |
addVscodeExtensions(String... extensions)
(experimental) Adds a list of VSCode extensions that should be automatically installed in the container.
|
Object |
getConfig()
(experimental) Direct access to the devcontainer configuration (escape hatch).
|
getProject, postSynthesize, preSynthesize, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected DevContainer(software.amazon.jsii.JsiiObjectRef objRef)
protected DevContainer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public DevContainer(@NotNull
Project project,
@Nullable
DevContainerOptions options)
project - This parameter is required.options - @Stability(value=Experimental)
public DevContainer(@NotNull
Project project)
project - This parameter is required.@Stability(value=Experimental)
public void addDockerImage(@NotNull
DevEnvironmentDockerImage image)
addDockerImage in interface IDevEnvironmentimage - This parameter is required.@Stability(value=Experimental)
public void addPorts(@NotNull
String... ports)
addPorts in interface IDevEnvironmentports - The new ports. This parameter is required.@Stability(value=Experimental)
public void addTasks(@NotNull
Task... tasks)
Tasks will be run in sequence.
addTasks in interface IDevEnvironmenttasks - The new tasks. This parameter is required.@Stability(value=Experimental)
public void addVscodeExtensions(@NotNull
String... extensions)
addVscodeExtensions in interface IDevEnvironmentextensions - The extension IDs. This parameter is required.@Stability(value=Experimental) @NotNull public Object getConfig()
Copyright © 2021. All rights reserved.