S3ResourceExtensions.AddEventNotification Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Subscribes a destination to receive notifications when an object is created in the bucket.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>> AddEventNotification (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SQS.IQueue>> destination, Amazon.CDK.AWS.S3.EventType eventType, params Amazon.CDK.AWS.S3.INotificationKeyFilter[] filters);
static member AddEventNotification : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>> * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.SQS.IQueue>> * Amazon.CDK.AWS.S3.EventType * Amazon.CDK.AWS.S3.INotificationKeyFilter[] -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>>
<Extension()>
Public Function AddEventNotification (builder As IResourceBuilder(Of IConstructResource(Of Bucket)), destination As IResourceBuilder(Of IConstructResource(Of IQueue)), eventType As EventType, ParamArray filters As INotificationKeyFilter()) As IResourceBuilder(Of IConstructResource(Of Bucket))
Parameters
- builder
- IResourceBuilder<IConstructResource<Amazon.CDK.AWS.S3.Bucket>>
The builder for the bucket resource.
- destination
- IResourceBuilder<IConstructResource<Amazon.CDK.AWS.SQS.IQueue>>
The notification destination queue.
- eventType
- Amazon.CDK.AWS.S3.EventType
The type of bucket event.
- filters
- Amazon.CDK.AWS.S3.INotificationKeyFilter[]
Filters.