Interface ContainerOptions
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.097Z") @Stability(Experimental) public interface ContainerOptions extends software.amazon.jsii.JsiiSerializable
(experimental) Options pertaining to container environments.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContainerOptions.BuilderA builder forContainerOptionsstatic classContainerOptions.Jsii$ProxyAn implementation forContainerOptions
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ContainerOptions.Builderbuilder()default ContainerCredentialsgetCredentials()(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.StringgetImage()(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.
-
-
-
Method Detail
-
getImage
@Stability(Experimental) @NotNull String getImage()
(experimental) The Docker image to use as the container to run the action.The value can be the Docker Hub image name or a registry name.
-
getCredentials
@Stability(Experimental) @Nullable 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.The credentials are the same values that you would provide to the docker login command.
-
getEnv
@Stability(Experimental) @Nullable default Map<String,String> getEnv()
(experimental) Sets a map of environment variables in the container.
-
getOptions
@Stability(Experimental) @Nullable default List<String> getOptions()
(experimental) Additional Docker container resource options.
-
getPorts
@Stability(Experimental) @Nullable default List<Number> getPorts()
(experimental) Sets an array of ports to expose on the container.
-
getVolumes
@Stability(Experimental) @Nullable default List<String> getVolumes()
(experimental) Sets an array of volumes for the container to use.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>.
-
builder
@Stability(Experimental) static ContainerOptions.Builder builder()
- Returns:
- a
ContainerOptions.BuilderofContainerOptions
-
-