Class DockerImageAssetSource.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.core.DockerImageAssetSource.Jsii$Proxy
All Implemented Interfaces:
DockerImageAssetSource, software.amazon.jsii.JsiiSerializable
Enclosing interface:
DockerImageAssetSource

@Stability(Stable) @Internal public static final class DockerImageAssetSource.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DockerImageAssetSource
An implementation for DockerImageAssetSource
  • Constructor Details

    • 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.
    • Jsii$Proxy

      protected Jsii$Proxy(DockerImageAssetSource.Builder builder)
      Constructor that initializes the object based on literal property values passed by the DockerImageAssetSource.Builder.
  • Method Details

    • getSourceHash

      public final String getSourceHash()
      Description copied from interface: DockerImageAssetSource
      The hash of the contents of the docker build context.

      This hash is used throughout the system to identify this image and avoid duplicate work in case the source did not change.

      NOTE: this means that if you wish to update your docker image, you must make a modification to the source (e.g. add some metadata to your Dockerfile).

      Specified by:
      getSourceHash in interface DockerImageAssetSource
    • getDirectoryName

      public final String getDirectoryName()
      Description copied from interface: DockerImageAssetSource
      The directory where the Dockerfile is stored, must be relative to the cloud assembly root.

      Default: - Exactly one of `directoryName` and `executable` is required

      Specified by:
      getDirectoryName in interface DockerImageAssetSource
    • getDockerBuildArgs

      public final Map<String,String> getDockerBuildArgs()
      Description copied from interface: DockerImageAssetSource
      Build args to pass to the docker build command.

      Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as lambda.functionArn or queue.queueUrl).

      Only allowed when directoryName is specified.

      Default: - no build args are passed

      Specified by:
      getDockerBuildArgs in interface DockerImageAssetSource
    • getDockerBuildTarget

      public final String getDockerBuildTarget()
      Description copied from interface: DockerImageAssetSource
      Docker target to build to.

      Only allowed when directoryName is specified.

      Default: - no target

      Specified by:
      getDockerBuildTarget in interface DockerImageAssetSource
    • getDockerFile

      public final String getDockerFile()
      Description copied from interface: DockerImageAssetSource
      Path to the Dockerfile (relative to the directory).

      Only allowed when directoryName is specified.

      Default: - no file

      Specified by:
      getDockerFile in interface DockerImageAssetSource
    • getExecutable

      public final List<String> getExecutable()
      Description copied from interface: DockerImageAssetSource
      An external command that will produce the packaged asset.

      The command should produce the name of a local Docker image on stdout.

      Default: - Exactly one of `directoryName` and `executable` is required

      Specified by:
      getExecutable in interface DockerImageAssetSource
    • getNetworkMode

      public final String getNetworkMode()
      Description copied from interface: DockerImageAssetSource
      Networking mode for the RUN commands during build. Requires Docker Engine API v1.25+.

      Specify this property to build images on a specific networking mode.

      Default: - no networking mode specified

      Specified by:
      getNetworkMode in interface DockerImageAssetSource
    • getPlatform

      public final String getPlatform()
      Description copied from interface: DockerImageAssetSource
      Platform to build for. Requires Docker Buildx.

      Specify this property to build images on a specific platform.

      Default: - no platform specified (the current machine architecture will be used)

      Specified by:
      getPlatform in interface DockerImageAssetSource
    • getRepositoryName

      public final String getRepositoryName()
      Description copied from interface: DockerImageAssetSource
      (deprecated) ECR repository name.

      Specify this property if you need to statically address the image, e.g. from a Kubernetes Pod. Note, this is only the repository name, without the registry and the tag parts.

      Default: - automatically derived from the asset's ID.

      Specified by:
      getRepositoryName in interface DockerImageAssetSource
    • $jsii$toJson

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

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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