public BucketBuilder OnNewObject(IConstructBuilder <Function> function, INotificationKeyFilter[] filters) { _events.Add(new BucketEventEntity { EventType = EventType.OBJECT_CREATED, Destination = function, Filter = filters }); return(this); }
public IFunctionBuilder AddS3EventSource(IConstructBuilder <Bucket> bucketBuilder, params EventType[] eventTypes) { var props = new S3EventSourceProps { Events = eventTypes }; _s3Events.Add(new S3EventEntity { BucketBuilder = bucketBuilder, Props = props }); return(this); }
public StackBuilder Add(IConstructBuilder <Construct> construct) { _constructs.Add(construct); return(this); }