EcrImageCodeProps

class aws_cdk.aws_lambda.EcrImageCodeProps(*, cmd=None, entrypoint=None, tag=None)

Bases: object

Properties to initialize a new EcrImageCode.

Parameters
  • cmd (Optional[List[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[List[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]) – The image tag to use when pulling the image from ECR. Default: ‘latest’

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

https://docs.docker.com/engine/reference/builder/#cmd

Return type

Optional[List[str]]

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

Return type

Optional[List[str]]

tag

The image tag to use when pulling the image from ECR.

Default

‘latest’

Return type

Optional[str]