Class S3EventSourceV2
S3EventSourceV2 Use S3 bucket notifications as an event source for AWS Lambda.
Inheritance
System.Object
S3EventSourceV2
Implements
Namespace: Amazon.CDK.AWS.Lambda.EventSources
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class S3EventSourceV2 : DeputyBase, IEventSource
Syntax (vb)
Public Class S3EventSourceV2
Inherits DeputyBase
Implements IEventSource
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.Lambda.EventSources;
Function fn;
var bucket = Bucket.FromBucketName(this, "Bucket", "bucket-name");
fn.AddEventSource(new S3EventSourceV2(bucket, new S3EventSourceProps {
Events = new [] { EventType.OBJECT_CREATED, EventType.OBJECT_REMOVED },
Filters = new [] { new NotificationKeyFilter { Prefix = "subdir/" } }
}));
Synopsis
Constructors
S3EventSourceV2(IBucket, IS3EventSourceProps) | |
S3EventSourceV2(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
S3EventSourceV2(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IFunction) | Called by |
Constructors
S3EventSourceV2(IBucket, IS3EventSourceProps)
public S3EventSourceV2(IBucket bucket, IS3EventSourceProps props)
Parameters
- bucket IBucket
- props IS3EventSourceProps
S3EventSourceV2(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected S3EventSourceV2(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
S3EventSourceV2(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected S3EventSourceV2(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IFunction)
Called by lambda.addEventSource
to allow the event source to bind to this function.
public virtual void Bind(IFunction target)
Parameters
- target IFunction