Interface ContainerImageAssetCacheOption

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    ContainerImageAssetCacheOption.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
               date="2024-09-18T12:13:36.890Z")
    @Stability(Stable)
    public interface ContainerImageAssetCacheOption
    extends software.amazon.jsii.JsiiSerializable
    Options for configuring the Docker cache backend.
    • 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:

         declare const branch: string;
         const params = {
           ref: `12345678.dkr.ecr.us-west-2.amazonaws.com/cache:${branch}`,
           mode: "max",
         };