This is the preferred interface for making S3 TargetConfigurations with Fugue. If you want to manage an S3 TargetConfiguration with Fugue, the new function is the right place to start.

Table of Contents

Module Members



new S3 TargetConfiguration (Constructor)

Call this constructor to create a new Fugue.Core.AWS.S3.TargetConfiguration value.


import Fugue.AWS as AWS
import Fugue.AWS.S3 as S3
import Fugue.AWS.SNS as SNS

topic: SNS.Topic.new {
    name: "my-topic",
    region: AWS.Eu-west-2

targetConfig: S3.TargetConfiguration.new {
    target: S3.Topic(topic),
    events: [S3.S3ObjectCreatedAny]

Type Signature

 fun { target: NotificationTarget,
       events: List<Event>,
       filters: Optional<List<FilterRule>>,
       id: Optional<String> } -> TargetConfiguration
Argument: target

An S3.NotificationTarget value that defines the target topic, queue, or lambda function for notifications.

Type: NotificationTarget

Argument: events

A List of S3.Event values that defines the events for which notifications will be sent. At least one Event is needed.

Type: List<Event>

Argument: filters

An Optional of S3.FilterRule values that defines prefix or suffix filters for this notification configuration.

For example: [S3.PrefixRule(“pictures/”), S3.SuffixRule(”.jpg”)]

Type: Optional<List<FilterRule>>

Argument: id

An Optional that defines an id for this configuration.

Type: Optional<String>


A Fugue.Core.AWS.S3.TargetConfiguration value.

Type: TargetConfiguration