Bases: object
Code property for the DockerImageFunction construct.
infused
Example:
lambda_.DockerImageFunction(self, "AssetFunction", code=lambda_.DockerImageCode.from_image_asset(path.join(__dirname, "docker-handler")) )
Static Methods
Use an existing ECR image as the Lambda code.
repository (IRepository
) â the ECR repository that the image is in.
cmd (Optional
[Sequence
[str
]]) â Specify or override the CMD on the specified Docker image or Dockerfile. This needs to be in the âexec formâ, viz., [ 'executable', 'param1', 'param2' ]
. Default: - use the CMD specified in the docker image or Dockerfile.
entrypoint (Optional
[Sequence
[str
]]) â Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile. An ENTRYPOINT allows you to configure a container that will run as an executable. This needs to be in the âexec formâ, viz., [ 'executable', 'param1', 'param2' ]
. Default: - use the ENTRYPOINT in the docker image or Dockerfile.
tag (Optional
[str
]) â (deprecated) The image tag to use when pulling the image from ECR. Default: âlatestâ
tag_or_digest (Optional
[str
]) â The image tag or digest to use when pulling the image from ECR (digests must start with sha256:
). Default: âlatestâ
working_directory (Optional
[str
]) â Specify or override the WORKDIR on the specified Docker image or Dockerfile. A WORKDIR allows you to configure the working directory the container will use. Default: - use the WORKDIR in the docker image or Dockerfile.
Create an ECR image from the specified asset and bind it as the Lambda code.
directory (str
) â the directory from which the asset must be created.
cmd (Optional
[Sequence
[str
]]) â Specify or override the CMD on the specified Docker image or Dockerfile. This needs to be in the âexec formâ, viz., [ 'executable', 'param1', 'param2' ]
. Default: - use the CMD specified in the docker image or Dockerfile.
entrypoint (Optional
[Sequence
[str
]]) â Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile. An ENTRYPOINT allows you to configure a container that will run as an executable. This needs to be in the âexec formâ, viz., [ 'executable', 'param1', 'param2' ]
. Default: - use the ENTRYPOINT in the docker image or Dockerfile.
working_directory (Optional
[str
]) â Specify or override the WORKDIR on the specified Docker image or Dockerfile. A WORKDIR allows you to configure the working directory the container will use. Default: - use the WORKDIR in the docker image or Dockerfile.
build_args (Optional
[Mapping
[str
, str
]]) â 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
). Default: - no build args are passed
file (Optional
[str
]) â Path to the Dockerfile (relative to the directory). Default: âDockerfileâ
invalidation (Union
[DockerImageAssetInvalidationOptions
, Dict
[str
, Any
], None
]) â Options to control which parameters are used to invalidate the asset hash. Default: - hash all parameters
network_mode (Optional
[NetworkMode
]) â Networking 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)
platform (Optional
[Platform
]) â Platform to build for. Requires Docker Buildx. Default: - no platform specified (the current machine architecture will be used)
repository_name (Optional
[str
]) â (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: - the default ECR repository for CDK assets
target (Optional
[str
]) â Docker target to build to. Default: - no target
extra_hash (Optional
[str
]) â (deprecated) Extra information to encode into the fingerprint (e.g. build instructions and other inputs). Default: - hash is only based on source content
exclude (Optional
[Sequence
[str
]]) â (deprecated) Glob patterns to exclude from the copy. Default: nothing is excluded
follow (Optional
[FollowMode
]) â (deprecated) A strategy for how to handle symlinks. Default: Never
ignore_mode (Optional
[IgnoreMode
]) â (deprecated) The ignore behavior to use for exclude patterns. Default: - GLOB for file assets, DOCKER or GLOB for docker assets depending on whether the â
follow_symlinks (Optional
[SymlinkFollowMode
]) â A strategy for how to handle symlinks. Default: SymlinkFollowMode.NEVER
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4