Class CodeConfig
Result of binding Code
into a Function
.
Inheritance
System.Object
CodeConfig
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class CodeConfig : Object, ICodeConfig
Syntax (vb)
Public Class CodeConfig
Inherits Object
Implements ICodeConfig
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 codeConfig = new CodeConfig {
Image = new CodeImageConfig {
ImageUri = "imageUri",
// the properties below are optional
Cmd = new [] { "cmd" },
Entrypoint = new [] { "entrypoint" },
WorkingDirectory = "workingDirectory"
},
InlineCode = "inlineCode",
S3Location = new Location {
BucketName = "bucketName",
ObjectKey = "objectKey",
// the properties below are optional
ObjectVersion = "objectVersion"
}
};
Synopsis
Constructors
CodeConfig() |
Properties
Image | Docker image configuration (mutually exclusive with |
InlineCode | Inline code (mutually exclusive with |
S3Location | The location of the code in S3 (mutually exclusive with |
Constructors
CodeConfig()
public CodeConfig()
Properties
Image
Docker image configuration (mutually exclusive with s3Location
and inlineCode
).
public ICodeImageConfig Image { get; set; }
Property Value
Remarks
Default: - code is not an ECR container image
InlineCode
Inline code (mutually exclusive with s3Location
and image
).
public string InlineCode { get; set; }
Property Value
System.String
Remarks
Default: - code is not inline code
S3Location
The location of the code in S3 (mutually exclusive with inlineCode
and image
).
public ILocation S3Location { get; set; }
Property Value
Remarks
Default: - code is not an s3 location