Share via


S3ResourceExtensions.AddObjectRemovedNotification Method

Definition

Overloads

AddObjectRemovedNotification(IResourceBuilder<IConstructResource<Bucket>>, IResourceBuilder<IConstructResource<ITopic>>, INotificationKeyFilter[])

Subscribes a destination to receive notifications when an object is removed from the bucket.

AddObjectRemovedNotification(IResourceBuilder<IConstructResource<Bucket>>, IResourceBuilder<IConstructResource<IQueue>>, INotificationKeyFilter[])

Subscribes a destination to receive notifications when an object is removed from the bucket.

AddObjectRemovedNotification(IResourceBuilder<IConstructResource<Bucket>>, IResourceBuilder<IConstructResource<ITopic>>, INotificationKeyFilter[])

Source:
S3ResourceExtensions.cs

Subscribes a destination to receive notifications when an object is removed from the bucket.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>> AddObjectRemovedNotification (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.SNS.ITopic>> destination, params Amazon.CDK.AWS.S3.INotificationKeyFilter[] filters);
static member AddObjectRemovedNotification : 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.SNS.ITopic>> * Amazon.CDK.AWS.S3.INotificationKeyFilter[] -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>>
<Extension()>
Public Function AddObjectRemovedNotification (builder As IResourceBuilder(Of IConstructResource(Of Bucket)), destination As IResourceBuilder(Of IConstructResource(Of ITopic)), 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.SNS.ITopic>>

The notification destination topic.

filters
Amazon.CDK.AWS.S3.INotificationKeyFilter[]

Filters.

Returns

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

Applies to

AddObjectRemovedNotification(IResourceBuilder<IConstructResource<Bucket>>, IResourceBuilder<IConstructResource<IQueue>>, INotificationKeyFilter[])

Source:
S3ResourceExtensions.cs

Subscribes a destination to receive notifications when an object is removed from the bucket.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>> AddObjectRemovedNotification (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, params Amazon.CDK.AWS.S3.INotificationKeyFilter[] filters);
static member AddObjectRemovedNotification : 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.INotificationKeyFilter[] -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.S3.Bucket>>
<Extension()>
Public Function AddObjectRemovedNotification (builder As IResourceBuilder(Of IConstructResource(Of Bucket)), destination As IResourceBuilder(Of IConstructResource(Of IQueue)), 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.

filters
Amazon.CDK.AWS.S3.INotificationKeyFilter[]

Filters.

Returns

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

Applies to