interface EcrImageCodeProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.EcrImageCodeProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#EcrImageCodeProps |
Java | software.amazon.awscdk.services.lambda.EcrImageCodeProps |
Python | aws_cdk.aws_lambda.EcrImageCodeProps |
TypeScript (source) | aws-cdk-lib » aws_lambda » EcrImageCodeProps |
Properties to initialize a new EcrImageCode.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const ecrImageCodeProps: lambda.EcrImageCodeProps = {
cmd: ['cmd'],
entrypoint: ['entrypoint'],
tag: 'tag',
tagOrDigest: 'tagOrDigest',
workingDirectory: 'workingDirectory',
};
Properties
Name | Type | Description |
---|---|---|
cmd? | string[] | Specify or override the CMD on the specified Docker image or Dockerfile. |
entrypoint? | string[] | Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile. |
tag? | string | The image tag to use when pulling the image from ECR. |
tag | string | The image tag or digest to use when pulling the image from ECR (digests must start with sha256: ). |
working | string | Specify or override the WORKDIR on the specified Docker image or Dockerfile. |
cmd?
Type:
string[]
(optional, default: use the CMD specified in the docker image or Dockerfile.)
Specify or override the CMD on the specified Docker image or Dockerfile.
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ]
.
See also: https://docs.docker.com/engine/reference/builder/#cmd
entrypoint?
Type:
string[]
(optional, default: use the ENTRYPOINT in the docker image or Dockerfile.)
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' ]
.
See also: https://docs.docker.com/engine/reference/builder/#entrypoint
tag?
⚠️ Deprecated: use tagOrDigest
Type:
string
(optional, default: 'latest')
The image tag to use when pulling the image from ECR.
tagOrDigest?
Type:
string
(optional, default: 'latest')
The image tag or digest to use when pulling the image from ECR (digests must start with sha256:
).
workingDirectory?
Type:
string
(optional, default: use the WORKDIR in the docker image or Dockerfile.)
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.
See also: https://docs.docker.com/engine/reference/builder/#workdir