@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.775Z") @Stability(value=Experimental) public interface ContainerOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
ContainerOptions.Builder
A builder for
ContainerOptions |
static class |
ContainerOptions.Jsii$Proxy
An implementation for
ContainerOptions |
| Modifier and Type | Method and Description |
|---|---|
static ContainerOptions.Builder |
builder() |
default ContainerCredentials |
getCredentials()
(experimental) f the image's container registry requires authentication to pull the image, you can use credentials to set a map of the username and password.
|
default Map<String,String> |
getEnv()
(experimental) Sets a map of environment variables in the container.
|
String |
getImage()
(experimental) The Docker image to use as the container to run the action.
|
default List<String> |
getOptions()
(experimental) Additional Docker container resource options.
|
default List<Number> |
getPorts()
(experimental) Sets an array of ports to expose on the container.
|
default List<String> |
getVolumes()
(experimental) Sets an array of volumes for the container to use.
|
@Stability(value=Experimental) @NotNull String getImage()
The value can be the Docker Hub image name or a registry name.
@Stability(value=Experimental) @Nullable default ContainerCredentials getCredentials()
The credentials are the same values that you would provide to the docker login command.
@Stability(value=Experimental) @Nullable default Map<String,String> getEnv()
@Stability(value=Experimental) @Nullable default List<String> getOptions()
https://docs.docker.com/engine/reference/commandline/create/#options@Stability(value=Experimental) @Nullable default List<Number> getPorts()
@Stability(value=Experimental) @Nullable default List<String> getVolumes()
You can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.
To specify a volume, you specify the source and destination path:
<source>:<destinationPath>.
@Stability(value=Experimental) static ContainerOptions.Builder builder()
ContainerOptions.Builder of ContainerOptionsCopyright © 2021. All rights reserved.