Interface DockerCacheOption
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DockerCacheOption.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-07-30T08:06:26.696Z") @Stability(Stable) public interface DockerCacheOption extends software.amazon.jsii.JsiiSerializable
Options for configuring the Docker cache backend.Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.cloudassembly.schema.*; DockerCacheOption dockerCacheOption = DockerCacheOption.builder() .type("type") // the properties below are optional .params(Map.of( "paramsKey", "params")) .build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDockerCacheOption.BuilderA builder forDockerCacheOptionstatic classDockerCacheOption.Jsii$ProxyAn implementation forDockerCacheOption
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static DockerCacheOption.Builderbuilder()default Map<String,String>getParams()Any parameters to pass into the docker cache backend configuration.StringgetType()The type of cache to use.
-
-
-
Method Detail
-
getType
@Stability(Stable) @NotNull String getType()
The type of cache to use.Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.
Default: - unspecified
Example:
"registry";
-
getParams
@Stability(Stable) @Nullable default Map<String,String> getParams()
Any parameters to pass into the docker cache backend configuration.Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.
Default: {} No options provided
Example:
String branch; Map<String, Object> params = Map.of( "ref", String.format("12345678.dkr.ecr.us-west-2.amazonaws.com/cache:%s", branch), "mode", "max");
-
builder
@Stability(Stable) static DockerCacheOption.Builder builder()
- Returns:
- a
DockerCacheOption.BuilderofDockerCacheOption
-
-