Class DockerImageSource.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- software.amazon.awscdk.cloudassembly.schema.DockerImageSource.Jsii$Proxy
-
- All Implemented Interfaces:
DockerImageSource,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- DockerImageSource
@Stability(Stable) @Internal public static final class DockerImageSource.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DockerImageSource
An implementation forDockerImageSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface software.amazon.awscdk.cloudassembly.schema.DockerImageSource
DockerImageSource.Builder, DockerImageSource.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(DockerImageSource.Builder builder)Constructor that initializes the object based on literal property values passed by theDockerImageSource.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)BooleangetCacheDisabled()Disable the cache and pass--no-cacheto thedocker buildcommand.List<DockerCacheOption>getCacheFrom()Cache from options to pass to thedocker buildcommand.DockerCacheOptiongetCacheTo()Cache to options to pass to thedocker buildcommand.StringgetDirectory()The directory containing the Docker image build instructions.Map<String,String>getDockerBuildArgs()Additional build arguments.Map<String,String>getDockerBuildSecrets()Additional build secrets.StringgetDockerBuildSsh()SSH agent socket or keys.StringgetDockerBuildTarget()Target build stage in a Dockerfile with multiple build stages.StringgetDockerFile()The name of the file with build instructions.List<String>getDockerOutputs()Outputs.List<String>getExecutable()A command-line executable that returns the name of a local Docker image on stdout after being run.StringgetNetworkMode()Networking mode for the RUN commands during build.StringgetPlatform()Platform to build for.inthashCode()
-
-
-
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.
-
Jsii$Proxy
protected Jsii$Proxy(DockerImageSource.Builder builder)
Constructor that initializes the object based on literal property values passed by theDockerImageSource.Builder.
-
-
Method Detail
-
getCacheDisabled
public final Boolean getCacheDisabled()
Description copied from interface:DockerImageSourceDisable the cache and pass--no-cacheto thedocker buildcommand.Default: - cache is used
- Specified by:
getCacheDisabledin interfaceDockerImageSource
-
getCacheFrom
public final List<DockerCacheOption> getCacheFrom()
Description copied from interface:DockerImageSourceCache from options to pass to thedocker buildcommand.Default: - no cache from options are passed to the build command
- Specified by:
getCacheFromin interfaceDockerImageSource- See Also:
- https://docs.docker.com/build/cache/backends/
-
getCacheTo
public final DockerCacheOption getCacheTo()
Description copied from interface:DockerImageSourceCache to options to pass to thedocker buildcommand.Default: - no cache to options are passed to the build command
- Specified by:
getCacheToin interfaceDockerImageSource- See Also:
- https://docs.docker.com/build/cache/backends/
-
getDirectory
public final String getDirectory()
Description copied from interface:DockerImageSourceThe directory containing the Docker image build instructions.This path is relative to the asset manifest location.
Default: - Exactly one of `directory` and `executable` is required
- Specified by:
getDirectoryin interfaceDockerImageSource
-
getDockerBuildArgs
public final Map<String,String> getDockerBuildArgs()
Description copied from interface:DockerImageSourceAdditional build arguments.Only allowed when
directoryis set.Default: - No additional build arguments
- Specified by:
getDockerBuildArgsin interfaceDockerImageSource
-
getDockerBuildSecrets
public final Map<String,String> getDockerBuildSecrets()
Description copied from interface:DockerImageSourceAdditional build secrets.Only allowed when
directoryis set.Default: - No additional build secrets
- Specified by:
getDockerBuildSecretsin interfaceDockerImageSource
-
getDockerBuildSsh
public final String getDockerBuildSsh()
Description copied from interface:DockerImageSourceSSH agent socket or keys.Requires building with docker buildkit.
Default: - No ssh flag is set
- Specified by:
getDockerBuildSshin interfaceDockerImageSource
-
getDockerBuildTarget
public final String getDockerBuildTarget()
Description copied from interface:DockerImageSourceTarget build stage in a Dockerfile with multiple build stages.Only allowed when
directoryis set.Default: - The last stage in the Dockerfile
- Specified by:
getDockerBuildTargetin interfaceDockerImageSource
-
getDockerFile
public final String getDockerFile()
Description copied from interface:DockerImageSourceThe name of the file with build instructions.Only allowed when
directoryis set.Default: "Dockerfile"
- Specified by:
getDockerFilein interfaceDockerImageSource
-
getDockerOutputs
public final List<String> getDockerOutputs()
Description copied from interface:DockerImageSourceOutputs.Default: - no outputs are passed to the build command (default outputs are used)
- Specified by:
getDockerOutputsin interfaceDockerImageSource- See Also:
- https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs
-
getExecutable
public final List<String> getExecutable()
Description copied from interface:DockerImageSourceA command-line executable that returns the name of a local Docker image on stdout after being run.Default: - Exactly one of `directory` and `executable` is required
- Specified by:
getExecutablein interfaceDockerImageSource
-
getNetworkMode
public final String getNetworkMode()
Description copied from interface:DockerImageSourceNetworking 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:
getNetworkModein interfaceDockerImageSource
-
getPlatform
public final String getPlatform()
Description copied from interface:DockerImageSourcePlatform to build for. Requires Docker Buildx.Specify this property to build images on a specific platform/architecture.
Default: - current machine platform
- Specified by:
getPlatformin interfaceDockerImageSource
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-