Class S3Code
Lambda code from an S3 archive.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class S3Code : Code
Syntax (vb)
Public Class S3Code
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.Lambda;
using Amazon.CDK.AWS.S3;
Bucket bucket;
var s3Code = new S3Code(bucket, "key", "objectVersion");
Synopsis
Constructors
S3Code(IBucket, String, String) | |
S3Code(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
S3Code(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
S3Code(IBucket, String, String)
public S3Code(IBucket bucket, string key, string objectVersion = null)
Parameters
- bucket IBucket
- key System.String
- objectVersion System.String
S3Code(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected S3Code(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
S3Code(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected S3Code(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