Show / Hide Table of Contents

Class S3EventSourceProps

Inheritance
object
S3EventSourceProps
Implements
IS3EventSourceProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Lambda.EventSources
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class S3EventSourceProps : IS3EventSourceProps
Syntax (vb)
Public Class S3EventSourceProps Implements IS3EventSourceProps
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.S3;
            using Amazon.CDK.AWS.Lambda.EventSources;
            Function fn;


            var bucket = new Bucket(this, "mybucket");

            fn.AddEventSource(new S3EventSource(bucket, new S3EventSourceProps {
                Events = new [] { EventType.OBJECT_CREATED, EventType.OBJECT_REMOVED },
                Filters = new [] { new NotificationKeyFilter { Prefix = "subdir/" } }
            }));

Synopsis

Constructors

S3EventSourceProps()

Properties

Events

The s3 event types that will trigger the notification.

Filters

S3 object key filter rules to determine which objects trigger this event.

Constructors

S3EventSourceProps()

public S3EventSourceProps()
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.S3;
            using Amazon.CDK.AWS.Lambda.EventSources;
            Function fn;


            var bucket = new Bucket(this, "mybucket");

            fn.AddEventSource(new S3EventSource(bucket, new S3EventSourceProps {
                Events = new [] { EventType.OBJECT_CREATED, EventType.OBJECT_REMOVED },
                Filters = new [] { new NotificationKeyFilter { Prefix = "subdir/" } }
            }));

Properties

Events

The s3 event types that will trigger the notification.

public EventType[] Events { get; set; }
Property Value

EventType[]

Remarks

ExampleMetadata: infused

Filters

S3 object key filter rules to determine which objects trigger this event.

public INotificationKeyFilter[]? Filters { get; set; }
Property Value

INotificationKeyFilter[]

Remarks

Each filter must include a prefix and/or suffix that will be matched against the s3 object key. Refer to the S3 Developer Guide for details about allowed filter rules.

Implements

IS3EventSourceProps
Back to top Generated by DocFX