Class DockerCacheOption.Jsii$Proxy

    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getType

        public final String getType()
        Description copied from interface: DockerCacheOption
        The type of cache to use.

        Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.

        Default: - unspecified

        Example:

         'registry'
         
        Specified by:
        getType in interface DockerCacheOption
      • getParams

        public final Map<String,​String> getParams()
        Description copied from interface: DockerCacheOption
        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",
         };
         
        Specified by:
        getParams in interface DockerCacheOption
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object