Class DockerImageAssetProps.Jsii$Proxy
- All Implemented Interfaces:
FileCopyOptions,FileFingerprintOptions,DockerImageAssetOptions,DockerImageAssetProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
DockerImageAssetProps
DockerImageAssetProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecr.assets.DockerImageAssetProps
DockerImageAssetProps.Builder, DockerImageAssetProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(DockerImageAssetProps.Builder builder) Constructor that initializes the object based on literal property values passed by theDockerImageAssetProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringUnique identifier of the docker image asset and its potential revisions.Build args to pass to thedocker buildcommand.Build secrets.final StringSSH agent socket or keys to pass to thedocker buildcommand.final BooleanDisable the cache and pass--no-cacheto thedocker buildcommand.final List<DockerCacheOption> Cache from options to pass to thedocker buildcommand.final DockerCacheOptionCache to options to pass to thedocker buildcommand.final StringThe directory where the Dockerfile is stored.final StringA display name for this asset.File paths matching the patterns will be excluded.final StringExtra information to encode into the fingerprint (e.g.final StringgetFile()Path to the Dockerfile (relative to the directory).final SymlinkFollowModeA strategy for how to handle symlinks.final IgnoreModeThe ignore behavior to use forexcludepatterns.Options to control which parameters are used to invalidate the asset hash.final NetworkModeNetworking mode for the RUN commands during build.Outputs to pass to thedocker buildcommand.final PlatformPlatform to build for.final StringDocker target to build to.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
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
Constructor that initializes the object based on literal property values passed by theDockerImageAssetProps.Builder.
-
-
Method Details
-
getDirectory
Description copied from interface:DockerImageAssetPropsThe directory where the Dockerfile is stored.Any directory inside with a name that matches the CDK output folder (cdk.out by default) will be excluded from the asset
- Specified by:
getDirectoryin interfaceDockerImageAssetProps
-
getAssetName
Description copied from interface:DockerImageAssetOptionsUnique identifier of the docker image asset and its potential revisions.Required if using AppScopedStagingSynthesizer.
Default: - no asset name
- Specified by:
getAssetNamein interfaceDockerImageAssetOptions
-
getBuildArgs
Description copied from interface:DockerImageAssetOptionsBuild args to pass to thedocker buildcommand.Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as
lambda.functionArnorqueue.queueUrl).Default: - no build args are passed
- Specified by:
getBuildArgsin interfaceDockerImageAssetOptions
-
getBuildSecrets
Description copied from interface:DockerImageAssetOptionsBuild secrets.Docker BuildKit must be enabled to use build secrets.
Default: - no build secrets
Example:
import software.amazon.awscdk.DockerBuildSecret; Map<String, String> buildSecrets = Map.of( "MY_SECRET", DockerBuildSecret.fromSrc("file.txt"));- Specified by:
getBuildSecretsin interfaceDockerImageAssetOptions- See Also:
-
getBuildSsh
Description copied from interface:DockerImageAssetOptionsSSH agent socket or keys to pass to thedocker buildcommand.Docker BuildKit must be enabled to use the ssh flag
Default: - no --ssh flag
- Specified by:
getBuildSshin interfaceDockerImageAssetOptions- See Also:
-
getCacheDisabled
Description copied from interface:DockerImageAssetOptionsDisable the cache and pass--no-cacheto thedocker buildcommand.Default: - cache is used
- Specified by:
getCacheDisabledin interfaceDockerImageAssetOptions
-
getCacheFrom
Description copied from interface:DockerImageAssetOptionsCache from options to pass to thedocker buildcommand.Default: - no cache from options are passed to the build command
- Specified by:
getCacheFromin interfaceDockerImageAssetOptions- See Also:
-
getCacheTo
Description copied from interface:DockerImageAssetOptionsCache to options to pass to thedocker buildcommand.Default: - no cache to options are passed to the build command
- Specified by:
getCacheToin interfaceDockerImageAssetOptions- See Also:
-
getDisplayName
Description copied from interface:DockerImageAssetOptionsA display name for this asset.If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used.
If
assetNameis given, it will also be used as the defaultdisplayName. Otherwise, the default is the construct path of the ImageAsset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such aslambda.Code.fromAssetImage()), this will look likeMyFunction/AssetImage.We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like
/MyBetaStack/MyFunction/Codewhen you are actually deploying to production.Default: - Stack-relative construct path
- Specified by:
getDisplayNamein interfaceDockerImageAssetOptions
-
getFile
Description copied from interface:DockerImageAssetOptionsPath to the Dockerfile (relative to the directory).Default: 'Dockerfile'
- Specified by:
getFilein interfaceDockerImageAssetOptions
-
getInvalidation
Description copied from interface:DockerImageAssetOptionsOptions to control which parameters are used to invalidate the asset hash.Default: - hash all parameters
- Specified by:
getInvalidationin interfaceDockerImageAssetOptions
-
getNetworkMode
Description copied from interface:DockerImageAssetOptionsNetworking mode for the RUN commands during build.Support docker API 1.25+.
Default: - no networking mode specified (the default networking mode `NetworkMode.DEFAULT` will be used)
- Specified by:
getNetworkModein interfaceDockerImageAssetOptions
-
getOutputs
Description copied from interface:DockerImageAssetOptionsOutputs to pass to thedocker buildcommand.Default: - no outputs are passed to the build command (default outputs are used)
- Specified by:
getOutputsin interfaceDockerImageAssetOptions- See Also:
-
getPlatform
Description copied from interface:DockerImageAssetOptionsPlatform to build for.Requires Docker Buildx.
Default: - no platform specified (the current machine architecture will be used)
- Specified by:
getPlatformin interfaceDockerImageAssetOptions
-
getTarget
Description copied from interface:DockerImageAssetOptionsDocker target to build to.Default: - no target
- Specified by:
getTargetin interfaceDockerImageAssetOptions
-
getExtraHash
Description copied from interface:FileFingerprintOptionsExtra information to encode into the fingerprint (e.g. build instructions and other inputs).Default: - hash is only based on source content
- Specified by:
getExtraHashin interfaceFileFingerprintOptions
-
getExclude
Description copied from interface:FileCopyOptionsFile paths matching the patterns will be excluded.See
ignoreModeto set the matching behavior. Has no effect on Assets bundled using thebundlingproperty.Default: - nothing is excluded
- Specified by:
getExcludein interfaceFileCopyOptions
-
getFollowSymlinks
Description copied from interface:FileCopyOptionsA strategy for how to handle symlinks.Default: SymlinkFollowMode.NEVER
- Specified by:
getFollowSymlinksin interfaceFileCopyOptions
-
getIgnoreMode
Description copied from interface:FileCopyOptionsThe ignore behavior to use forexcludepatterns.Default: IgnoreMode.GLOB
- Specified by:
getIgnoreModein interfaceFileCopyOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-