Share via


S3ResourceExtensions.AddObjectCreatedNotification Method

Definition

Overloads

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

Subscribes a destination to receive notifications when an object is created in the bucket.

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

Subscribes a destination to receive notifications when an object is created in the bucket.

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

Source:
S3ResourceExtensions.cs

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>> AddObjectCreatedNotification (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 AddObjectCreatedNotification : 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 AddObjectCreatedNotification (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

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

Source:
S3ResourceExtensions.cs

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>> AddObjectCreatedNotification (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 AddObjectCreatedNotification : 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 AddObjectCreatedNotification (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