Interface IEcrImageCodeProps
Properties to initialize a new EcrImageCode.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEcrImageCodeProps
Syntax (vb)
Public Interface IEcrImageCodeProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var ecrImageCodeProps = new EcrImageCodeProps {
Cmd = new [] { "cmd" },
Entrypoint = new [] { "entrypoint" },
Tag = "tag",
TagOrDigest = "tagOrDigest",
WorkingDirectory = "workingDirectory"
};
Synopsis
Properties
Cmd | Specify or override the CMD on the specified Docker image or Dockerfile. |
Entrypoint | Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile. |
Tag | (deprecated) The image tag to use when pulling the image from ECR. |
TagOrDigest | The image tag or digest to use when pulling the image from ECR (digests must start with |
WorkingDirectory | Specify or override the WORKDIR on the specified Docker image or Dockerfile. |
Properties
Cmd
Specify or override the CMD on the specified Docker image or Dockerfile.
virtual string[] Cmd { get; }
Property Value
System.String[]
Remarks
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ]
.
Default: - use the CMD specified in the docker image or Dockerfile.
Entrypoint
Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
virtual string[] Entrypoint { get; }
Property Value
System.String[]
Remarks
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.
virtual string Tag { get; }
Property Value
System.String
Remarks
Default: 'latest'
Stability: Deprecated
TagOrDigest
The image tag or digest to use when pulling the image from ECR (digests must start with sha256:
).
virtual string TagOrDigest { get; }
Property Value
System.String
Remarks
Default: 'latest'
WorkingDirectory
Specify or override the WORKDIR on the specified Docker image or Dockerfile.
virtual string WorkingDirectory { get; }
Property Value
System.String
Remarks
A WORKDIR allows you to configure the working directory the container will use.
Default: - use the WORKDIR in the docker image or Dockerfile.
See: https://docs.docker.com/engine/reference/builder/#workdir