共用方式為


S3ResourceExtensions.AddEventNotification Method

Definition

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.

Returns

IResourceBuilder<IConstructResource<Amazon.CDK.AWS.S3.Bucket>>

Applies to