示例#1
0
        public BucketBuilder OnNewObject(IConstructBuilder <Function> function, INotificationKeyFilter[] filters)
        {
            _events.Add(new BucketEventEntity {
                EventType   = EventType.OBJECT_CREATED,
                Destination = function,
                Filter      = filters
            });

            return(this);
        }
示例#2
0
        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);
        }
示例#3
0
 public StackBuilder Add(IConstructBuilder <Construct> construct)
 {
     _constructs.Add(construct);
     return(this);
 }