EcrImageCodePropsο
- class aws_cdk.aws_lambda.EcrImageCodeProps(*, cmd=None, entrypoint=None, tag=None, tag_or_digest=None, working_directory=None)ο
Bases:
objectProperties to initialize a new EcrImageCode.
- Parameters:
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 withsha256:). 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.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_lambda as lambda_ ecr_image_code_props = lambda.EcrImageCodeProps( cmd=["cmd"], entrypoint=["entrypoint"], tag="tag", tag_or_digest="tagOrDigest", working_directory="workingDirectory" )
Attributes
- cmdο
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.
- See:
- entrypointο
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.
- See:
https://docs.docker.com/engine/reference/builder/#entrypoint
- tagο
(deprecated) The image tag to use when pulling the image from ECR.
- Default:
βlatestβ
- Deprecated:
use
tagOrDigest- Stability:
deprecated
- tag_or_digestο
The image tag or digest to use when pulling the image from ECR (digests must start with
sha256:).- Default:
βlatestβ
- working_directoryο
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.
- See: