Class EcrImageCode
Represents a Docker image in ECR that can be bound as Lambda Code.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EcrImageCode : Code
Syntax (vb)
Public Class EcrImageCode
Inherits Code
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.ECR;
using Amazon.CDK.AWS.Lambda;
Repository repository;
var ecrImageCode = new EcrImageCode(repository, new EcrImageCodeProps {
Cmd = new [] { "cmd" },
Entrypoint = new [] { "entrypoint" },
Tag = "tag",
TagOrDigest = "tagOrDigest",
WorkingDirectory = "workingDirectory"
});
Synopsis
Constructors
EcrImageCode(IRepository, IEcrImageCodeProps) | |
EcrImageCode(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EcrImageCode(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
IsInline | Determines whether this Code is inline code or not. |
Methods
Bind(Construct) | Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun. |
Constructors
EcrImageCode(IRepository, IEcrImageCodeProps)
public EcrImageCode(IRepository repository, IEcrImageCodeProps props = null)
Parameters
- repository IRepository
- props IEcrImageCodeProps
EcrImageCode(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EcrImageCode(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EcrImageCode(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EcrImageCode(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
IsInline
Determines whether this Code is inline code or not.
public virtual bool IsInline { get; }
Property Value
System.Boolean
Methods
Bind(Construct)
Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun.
public override ICodeConfig Bind(Construct scope)
Parameters
- scope Constructs.Construct
Returns