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.
    • 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.
      • 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>.